https://questdb.io logo
Title
a

Abdel

01/19/2023, 12:46 PM
Hello, I’ve been playing with QuestDB and I noticed that it is impressively efficient for filtering queries (value ><= ?). Could you provide me with some intuition of why that is? Thanks!
j

javier ramirez

01/19/2023, 12:52 PM
There are many optimizations in QuestDB. If the filters are operating on the timestamp, then filters can be fast because they apply only to certain partitions (and rows are in timestamp order on each partition). If operating in other columns, it’s probably SIMD (parallelization) and JIT. The fact that questdb uses a columnar based model and memory mapping also explains why some operations can be quite fast. You have a lot of interesting articles at the questdb engineering blog https://questdb.io/blog/tags/engineering/
This one can be very relevant, but a lot of good info also in the others https://questdb.io/blog/2022/01/12/jit-sql-compiler/
a

Andrey Pechkurov

01/19/2023, 1:08 PM
a

Abdel

01/19/2023, 3:00 PM
Thanks a lot @javier ramirez and @Andrey Pechkurov!