
Co-Founder @cedar_db | Database Systems
Munich, Germany
Joined September 2015
- Tweets35
- Following32
- Followers121
- Likes107
Apparently, on x86-64-v2 (@cedar_db 's minimum architecture), reading 16 bytes atomically can require writing 16 bytes.
CMPXCHG16B gives us 16-byte atomic compare-and-swaps. So surely it can read 16 bytes atomically? Right?! 🥲
Page 3464 of Intel's manual was fun.
Strings are everywhere; and often the most filtered columns in analytics.
So compression isn't just about saving space, it's also about query speed.
CedarDB now uses FSST to reduce string storage while keeping queries fast with the help of a dictionary.
cedardb.com/blog/string_comp…
Ever wondered how @cedar_db can achieve exceptional performance for both analytical and transactional workloads? This amazing blog post from our friends at @AmplifyPartners highlights many of our key innovations.
Replying to @cedar_db
@cedar_db is incredibly cool and more people should know about it. They’re a team of PhDs in Munich building a new relational database, on top of almost 10 years of academic research, that crushes existing benchmarks and maybe (finally?) gets us to the HTAP grail.
The core idea is that existing RDBMSes like MySQL and Postgres were built more than 30 years ago, on assumptions about hardware constraints that are just not true anymore. These ecosystems have evolved admirably but ultimately…it’s a database. It’s built not to change very much.
Here are a few of the ways that CedarDB is rethinking every element of the database:
1) A better query optimizer
In the last 30 years we’ve made a lot of progress on how to optimize SQL queries, to the point where an optimized query can easily outperform a not-so-optimized query by a ton.
But not many query optimization improvements have made the leap from research into databases today.
CedarDB did a few things on this front:
Implemented the unnesting algorithm developed by Thomas Neumann (one of the leaders of the Umbra research project CedarDB came from) — an improvement of more than 1000x
Developed a novel approach to join ordering using adaptive optimization that can handle 5K+ relations
Created a statistics subsystem that tells the optimizer things that traditional databases can’t
2) What if your database was actually a compiler?
CedarDB doesn’t interpret queries, it instead generates code. For every SQL query that a user writes, CedarDB processes, optimizes it, and generates machine code that the CPU can directly execute.
This has been a holy grail for a while, and they implemented it via a custom low-level language that is cheap to convert into machine code via a custom assembler.
Another way that CedarDB improves performance is through Adaptive Query Execution. Essentially they start executing each query immediately with a “quick and dirty” version, while working on better versions in the background.
3) Taking advantage of all cores / Ahmdal’s law
Distributing fairly between all available cores is notoriously difficult, and the CedarDB team would argue that most databases underutilize their hardware.
Their clever approach to this problem is called morsel-driven parallelism. CedarDB breaks down queries into segments: pipelines of self-contained operations. Then, data is divided into “morsels” per segment – small input data chunks containing roughly ~100K tuples each.
You can read more in the original paper here: db.in.tum.de/~leis/papers/mo…
4) Rethinking the buffer manager
Modern systems come equipped with massive amounts of RAM; there’s actually much more “room at the club” than database developers initially assumed.
So the idea of the revamped buffer manager in CedarDB is that you can (and should) expect variance not just in data access patterns, but in storage speed and location, page sizes and data organization, and memory hierarchy.
CedarDB’s buffer manager is designed from the ground up to work in a heavily multi-threaded environment. It decentralizes buffer management with Pointer Swizzling: Each pointer (memory address) knows whether its data is in memory or on disk, eliminating the global lock that throttles traditional buffer managers.
5) Building a database for change
Databases are built to not change. It’s exactly this stability that gives each generation the confidence to build their apps (no matter how different they are) on systems like Postgres. You know what you’re getting. But there’s also a clear downside to this rigidity.
CedarDB’s storage class system employs pluggable interfaces where adding new storage types doesn’t require rewriting other components. E.g. if CXL becomes the go-to storage interface at some point in the future, you don’t need to write another whole component, you just need another endpoint for the buffer manager.
Anyway these are just a few of the ideas they’re bringing to the table. Maybe it’s because they’re in Germany, maybe it’s because they’re just really humble, but more people should know about this team!!
Check out the full post here: amplifypartners.com/blog-pos…
3
57
Dominik Durner retweeted
Leaving academia is always a big step, especially if you bring your research project with you into the real world.
Read our latest post to learn what we did to prepare a research project for production workloads and what we learned along the way: cedardb.com/blog/research_vs…
Happy to announce that we released our community edition!
Built for speed, CedarDB delivers top-tier performance for every workload, from ultra-responsive OLTP to large-scale OLAP - and everything in between.
CedarDB Community Edition is here!
Download CedarDB Community Edition today - no paywall, no signup, just pure performance.
Read more about our CedarDB on our blog: cedardb.com/blog/launch/
8
154
Dominik Durner retweeted
The underlying data layout of your program can either help or hurt your algorithms.
In our latest post, we explore why optimizing the storage layout is the key to unlocking blazingly fast data processing.
cedardb.com/blog/optimizing_…
Dominik Durner retweeted
Having data in memory is considered the gold standard for data analysis, but are you sure that RAM locality alone is enough?
Read on to learn about the new king of efficient data processing:
cedardb.com/blog/reducing_da…
Dominik Durner retweeted
Why old-school exceptions are still a good idea:
They provide a better user and developer experience and are even faster than error values!
Read more in our blog: cedardb.com/blog/exceptions_…
Query optimization is one of the hardest tasks in database systems. Get a quick overview of how our join ordering algorithm is able to unnest arbitrary queries.
SQL is a declarative language. Still, many systems require writing hand-tune SQL to get the best performance.
Learn what it takes to reclaim SQL's declarative power:
cedardb.com/blog/unnest_sql/
5
153
For a high-level overview of how we achieve great OLAP and OLTP performance, you can also browse our blog post at cedardb.com/blog/colibri/.
If you are at VLDB this year, don't miss Tobias' presentation ;)
Vol:17 No:11 → Two Birds With One Stone: Designing a Hybrid Cloud Storage Engine for HTAP vldb.org/pvldb/vol17/p3290-s…
I am happy to share our blog post about our new hybrid storage engine that allows us to process analytical and transactional workloads. Details of our storage engine will also be presented at VLDB'24!
Have you ever wondered why existing database systems focus on either analytical or transactional performance?
Learn why this is the case and how a hybrid storage engine can deliver high performance for combined workloads:
cedardb.com/blog/colibri/
17
980
Dominik Durner retweeted
Vol:16 No:11 → Exploiting Cloud Object Storage for High-Performance Analytics vldb.org/pvldb/vol16/p2769-d…
Dominik Durner retweeted
We were surprised to find out that everybody uses our strings. They even call them "German Strings". 😲🇩🇪
Take a look at our latest blog post to find out why @duckdb, @ApacheArrow, @DataPolars, and Facebook Velox use our custom string implementation.
cedardb.com/blog/german_stri…
Dominik Durner retweeted
Have you ever wondered how you can use a database system for good?
Then dive into our latest blog post and learn how to work with JSON data and graphs in CedarDB while hunting for Germany's most wanted white-collar criminal!
cedardb.com/blog/working_wit…
Dominik Durner retweeted
Your SSD (probably) sucks! Find out why and how your database system can deal with it in our latest tech deep dive at cedardb.com/blog/ssd_latency
Our new blog post gives detailed insights into the inner workings of our hash tables. Enjoy the read!
Database systems need simple, efficient, and robust hash tables for join processing!
We spill all our secrets in a paper & in the first tech deep dive on our blog:
cedardb.com/blog/simple_effi…
3
112
Dominik Durner retweeted
Database systems need simple, efficient, and robust hash tables for join processing!
We spill all our secrets in a paper & in the first tech deep dive on our blog:
cedardb.com/blog/simple_effi…
Dominik Durner retweeted
CedarDB: The 🇩🇪German-powered, PostgreSQL-compatible freak-of-nature database management system based on TUM's Umbra (Thomas Neumann + team) is out of stealth and now available: cedardb.com/blog/ode_to_post…
/cc @cedar_db
Super happy to share what we've been up to the last months. Today, we launched our blog.
Check out our first blog post on why a database system built from scratch is the only choice for modern data processing: cedardb.com/blog/ode_to_post…
4
96









