aquadoggo
aquadoggo copied to clipboard
Node for the p2panda network handling validation, storage, aggregation and replication
Its sadly not really compatible with SQL queries for SQLite and causes us headache 😢
This will allow other services to do cool stuff with that. For example querying it via GraphQL
Our materializer has two sorts of "events" which are important to re-attempt when a node quit prematurely to assure we're not losing data: 1. Re-attempt tasks 2. Re-attempt unmaterialized operations...
Currently we're using our more expensive SQL queries to retreive whole documents and views from the database to just check if they are `is_some()`.
Logs taken from our `ci` here https://github.com/p2panda/aquadoggo/actions/runs/5329912373/jobs/9656055842?pr=410 ``` Run actions-rs/cargo@v1 /home/runner/.cargo/bin/cargo test --manifest-path aquadoggo/Cargo.toml Compiling aquadoggo v0.4.0 (/home/runner/work/aquadoggo/aquadoggo/aquadoggo) thread 'rustc' panicked at 'forcing query with already existing `DepNode` - query-key:...
It's too large: https://github.com/p2panda/aquadoggo/blob/main/aquadoggo/src/db/stores/query.rs