subsquid / worker-rs

GNU Affero General Public License v3.0
0 stars 1 forks source link

Optimize query engine #2

Closed kalabukdima closed 6 months ago

kalabukdima commented 9 months ago

We've tried using Apache DataFusion for the new query engine. On average, it is slower than DuckDB but it's much more hackable and extensible, which may be profitable for our use case. At least it allows us to build the expression trees directly instead of forming an SQL string and parsing it back.

Looking at how the query performance can be optimized, there are several approaches to try:

kalabukdima commented 9 months ago

Current observations: