Earlier quoted context omitted.
I would also love this, in the past I’ve used the H2 in-memory database for tests with Spring boot applications. The Hibernate ORM handles configuring the H2 schema but they’re not fully compatible, so it means I have to be careful to not rely on Postgres-specific features. I generally am not testing database logic, just need a working persistence layer to get the tests running, but an in-memory Postgres implementati…
Although it's something I'd love to write, supporting it over a long time as pure FOSS would probably be a sad experience. I wonder what model could be used here. Maybe something like patreon or "sponsor a feature" with an open-source project? FOSS core + proprietary Java / .NET bindings because corps can pay?
DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
101–110 of 167 posts
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#102Earlier quoted context omitted.
RAM FS + fsync off?
Those solutions still have a high overhead. There's acid compliance, serialisation in memory, maintaining indices, and many other layers. Compare it to an ideal testing solution with no initialisation cost and insert being literally: parse the query, add a new entry to a list, done.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#103Sorry for my perhaps stupid question, has 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
#104Earlier quoted context omitted.
How might one go about using this in a language that’s not supported in the documentation such as golang?
Generally you would need to write bindings for the system. Experimental DuckDB bindings for Go do exist [1], however, they are rather old and might not work anymore. We also have JDBC support, which might help for languages that know how to use that protocol. ODBC support is not implemented yet, but also planned. We also have a SQLite-compatible C API [2], that can potentially be used to use an existing SQLite driver…
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#105 SELECT * FROM part WHERE p_size = 7;Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#106Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#107Earlier quoted context omitted.
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…
I gather that there may be some differences in functionality offered, but that it’s probably not much. So I presume performance is the biggest area of difference. In that regard: how big are the differences in performance for each category’s representative workloads?
The shortest useful description I can give of what constitutes an analytical workloads is that it is table-scan-heavy, and often concerned with a small subset of columns in a table.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#108Please 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…
Not sure where an ORM would help in this case. If anything, it might get in the way sometimes (in terms of performance), as some queries might not be well optimised. But yeah, people shouldn't just "follow the hype". They should always ask why would use this and not that.
My preference for ORMs is still on the 'give me a SQL DSL and map my objects' side. Let me use SQL as SQL, give me convenience in interfacing with the DB. Complex features like object tracking tend to be nice up front but require extra diligence down the line to avoid pitfalls, and tend to be risky from a standpoint of composability.
Sorry. Almost went on an ORM rant there.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#109Please 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…
Not sure where an ORM would help in this case. If anything, it might get in the way sometimes (in terms of performance), as some queries might not be well optimised. But yeah, people shouldn't just "follow the hype". They should always ask why would use this and not that.
In practice though, real projects often have to sidestep the ORM and handwrite SQL, sometimes using database-specific features.
Re: DuckDB – An embeddable SQL database like SQLite, but supports Postgres features
#110Please 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…
Not sure where an ORM would help in this case. If anything, it might get in the way sometimes (in terms of performance), as some queries might not be well optimised. But yeah, people shouldn't just "follow the hype". They should always ask why would use this and not that.