Query Engine used for custom feeds created with the SkyFeed Builder.
Loads all posts from the DB in memory, fetches new posts every 100 seconds, updates like count and runs queries to build feeds.
Depends on a Surreal DB instance with data from https://github.com/skyfeed-dev/indexer.
Uses between 0.5 and 1.0 GB RAM for every 24h you want to keep in memory. CPU usage for queries is pretty low.
- Install Rust (https://www.rust-lang.org/tools/install)
- Run
cargo build --release
- Copy
.env.example
to.env
and edit the values - Run with
./target/release/skyfeed-query-engine