Our team built Lakeserve and open-source analytical database for open table foramts because we kept seeing that realtime (sub-second) analytics options required moving a secondary copy of the data custom formats (Clickhouse MergeTree, StarRocks, etc...) or some sort of proprietary vendor lock-in (Lakehouse//RT, Snowflake native tables). We're super excited to open-source it today! [1]
We did a lot of interesting work to get it to the performance numbers which we're super proud of. [2]
Just for some highlights on TPC-DS SF-1000 (geomean, 64 vcpu), using their managed formats
3.55x over Databricks SQL Serverless
2.52x over Snowflake Gen2
1.66x over open-source ClickHouse on MergeTree
(always take db benchmarks with a grain of salt so please look at our reproduction steps, also open source [3])- It speaks Spark Connect, so you can point any Spark Connect client at it and run SQL and DataFrame queries against our Rust engine (built on a heavily modified fork of DataFusion at its core).
- You can run it single node even on a laptop or scale it across a cluster.
- Some optimizations we did to improve efficiency across queries: two users can ask different questions and still do a lot of the same work. If one queries this week’s orders and another queries last week’s, both may build the same hash table for the join against customers. Lakeserve can recognize a recurring join and reuse that hash table across queries. New orders can arrive and the customer build is still useful. [4]
- There’s also a lot of work to save before query execution starts (really important for making subsecond on Iceberg a reality). We significantly pipeline and cache Iceberg metadata work. Lakeserve caches the decoded table metadata, manifest lists, and manifests. So even if the next agent asks a completely different question, the planner can apply its new filters to metadata already in memory instead of fetching and decoding the same manifests from S3 again [5].
- There's a lot more cool stuff too, take a look at the repo!
If you want to try it, the quickstart walks through creating a local Iceberg table and querying it from PySpark [6].
[1] https://github.com/contrastdata/lakeserve
[2] https://contrastdb.com/bench
[3] https://github.com/contrastdata/lakeserve-benchmarks/blob/ma...
[4] https://github.com/contrastdata/lakeserve/blob/main/docs/per...
[5] https://github.com/contrastdata/lakeserve/blob/main/docs/con...
[6] https://github.com/contrastdata/lakeserve#run-a-local-databa...