Expressed otherwise: why would I choose DuckDB over SQLite, or SQLite over DuckDB?
DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
91–100 of 167 posts
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#92has anyone tried this with ESP32/Arduino? I would need an anlytical DB for an hiking application (Temperatur/Pressure data etc.)
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#93What is it that makes a database an OLAP database rather than a generic relational database? Expressed otherwise: why would I choose DuckDB over SQLite, or SQLite over DuckDB?
SQLite/MySQL/Postgres/MSSQL etc are all OLTP databases whose primary operation is based around operations on single (or few) rows.
OLAP databases like ClickHouse/DuckDB, Monet, Redshift, etc are optimised for operating on columns and performing operations like bulk aggregations, group-bys, pivots, etc on a large subsets or whole tables.
If I was recording user purchases/transactions: SQLite.
If I was aggregating and analysing a batch of data on a machine: DuckDB.
I read an interesting engineering blog from Spotify(?) where in their data pipeline instead of passing around CSV’s or rows of JSON, passed around SQLite databases: DuckDB would probably be a good fit there.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#94Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#95I spent a while looking at this today. It's really interesting. It's not based on SQLite at all (except for borrowing the SQLite shell implementation) but it looks very much like SQLite, in particular: - It's designed to work as an embedded library, eliminating the network overhead you usually get when talking to a database - Each database is a single file on disk - It ships as an "amalgamation" build - a single gian…
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#96Please think twice before choosing an embeddable database for hostable software. I see so many open-source projects that get hampered own the line because they chose sqlite and there's now a SPoF that would require a significant rewrite to eliminate - especially as sqlite depending on configuration either corrupts or becomes extremely slow when stored on distributed/network file systems. I assume this goes for duckdb…
But yeah, people shouldn't just "follow the hype". They should always ask why would use this and not that.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#97What is it that makes a database an OLAP database rather than a generic relational database? Expressed otherwise: why would I choose DuckDB over SQLite, or SQLite over DuckDB?
OLAP databases can/are still Relational databases. The difference is that they’re optimised for different workloads. SQLite/MySQL/Postgres/MSSQL etc are all OLTP databases whose primary operation is based around operations on single (or few) rows. OLAP databases like ClickHouse/DuckDB, Monet, Redshift, etc are optimised for operating on columns and performing operations like bulk aggregations, group-bys, pivots, etc…
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#98Please think twice before choosing an embeddable database for hostable software. I see so many open-source projects that get hampered own the line because they chose sqlite and there's now a SPoF that would require a significant rewrite to eliminate - especially as sqlite depending on configuration either corrupts or becomes extremely slow when stored on distributed/network file systems. I assume this goes for duckdb…
I had Plex running via Docker, and the Plex configuration/metadata stored via NFS on my NAS. For quite a while seeking would be intermittently slow, or plain crash the Plex server requiring a restart of the container. Other weird issues as well.
Finally I had enough and did some debugging and searching, and found that Plex uses sqlite in a way that is not compatible with networked storage. So I moved it to an iSCSI volume, mounted as a regular drive on the Docker host and it's been rock solid since.
But yeah, didn't expect that.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#99Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#100This is really neat. Wish I had a problem I could use it for now.