Adith Manikonda Project / 2026 / Systems / Backend
AetherQuery Analytical Query Engine
Cross-database analytical query engine supporting DuckDB/PostgreSQL/MySQL with adaptive execution.
Source ↗The Problem
Exploratory analytics makes you wait for exact answers you do not need yet. While shaping a query you want the shape of the result in a fraction of the time, and you want to know how wrong the fast answer is.
The Approach
Approximate execution alongside exact, over DuckDB, Postgres and MySQL. Both sides of a join are sampled independently rather than after the join, so join selectivity survives; HyperLogLog sketches estimate result cardinality without materialising it, and bloom filters pre-filter the probe side. A benchmark mode runs exact and approximate together and reports the error and the speedup rather than asking you to trust the sample.
Measured
6.85x faster
TPC-H Q5, 3-way star join
0.035s exact vs 0.005s approximate at 1% sampling
~1%
Cardinality estimate error
HyperLogLog, 2^14 registers, 16KB per sketch
2x / 3.5x
Adaptive time budget
Multipliers applied for 2-way and 3-way joins
What It Does Not Do
Only one of five TPC-H join queries came out ahead. Q3, Q10, Q12 and Q18 ran 5x to 50x slower approximate than exact, because TABLESAMPLE overhead dominates at these sizes and small samples never reach parallel execution. At 1% sampling all five returned zero rows: join selectivity collapses on small samples. The sampling strategy holds for single-table aggregates; selective multi-way joins need a higher floor on sample size before it pays.
Built With
- FastAPI
- Python
- DuckDB
- PostgreSQL
- MySQL
More from Adith Manikonda
- 2025 / Systems / BackendSCOTLAND YARDReal-time multiplayer backend supporting 100+ users with persistent game state and server-authoritative gameplay.
- 2026 / Systems / BackendHYBRID SYMBOL TABLECache-conscious, arena-backed symbol table in C11 with adaptive per-scope storage and constant-time scope teardown.
- 2026 / Systems / BackendarchAIcDistributed reliability engineering platform with observability, metrics, tracing, and anomaly detection.