logoalt Hacker News

tagspace • yesterday at 7:49 PM • 0 replies • view on HN

Good question. The majority of the work was two things:

1. the replication logic that keeps duckdb in sync with your postgres (like you'd expect from a read replica)

2. the query rewriter that takes incoming postgres queries and turns them into queries that run fast on duckdb (we've spent a lot of time making sure that most queries are answered in a few 100 milliseconds, even on 10+M rows).

So, I guess the main differences are:

- with ADBC the load still hits your postgres (which is what we wanted to avoid)

- with ADBC you're not guaranteed to get the same answer as postgres (we want confidence that our queries will answer the same, not faster but different)

- you'd have to build your own ETL (if you want to avoid the load on your postgres)

Does that make sense?