← Back to context

Comment by nlittlepoole

4 days ago

DuckDB can read/write SQLite files via extension. So you can do that now with DuckDB as is.

https://duckdb.org/docs/stable/core_extensions/sqlite

My understanding is that this is still too slow for quick inserts, because duckdb (like all columnar stores) is designed for batches.

  • The way I understood it, you can do your inserts with SQLite "proper", and simultaneously use DuckDB for analytics (aka read-only).

    • Aha! That makes so much sense. Thank you for this.

      Edit: Ah, right, the downside is that this is not going to have good olap query performance when interacting directly with the sqlite tables. So still necessary to copy out to duckdb tables (probably in batches) if this matters. Still seems very useful to me though.

      5 replies →