Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by isoprophlex on Wednesday October 27, 2021 @03:00AM
(#29010325)
The relevant results from the linked article:
I'd bet that doing the same with Pandas would require time and space similar to RDS (1). I really hope DuckDB makes it in the Python world, everything I read about it seems very promising. Using it myself for toy projects was pleasant, too.
[ Parent
| on HN ]
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by ryndbfsrw on Wednesday October 27, 2021 @03:59AM
(#29010657)
Have you used the Polars (https://www.pola.rs/) package? It does what Pandas does with a fraction of the RAM and twice the speed
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by thinker5555 on Wednesday October 27, 2021 @09:38AM
(#29013133)
Thanks for that! Polars looks really interesting.
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by kristjansson on Wednesday October 27, 2021 @12:06PM
(#29015137)
Of course, since the memory allocation comes from Rprofmem (via benchmark::mark), this only measures allocations of memory for objects on R's heap. Allocations by C extensions (like DuckDB and SQLite) aren't tracked. They're surely _more_ space efficient than just reading everything into RAM, but perhaps by a smaller margin than shown here.
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by hantusk on Wednesday October 27, 2021 @03:56AM
(#29010639)
this benchmark is more comprehensive for this type of analytical work:
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by selimnairb on Wednesday October 27, 2021 @06:24AM
(#29011369)
Here’s hoping that DuckDB will add support for spatial data, indexing, and query predicates. It would be great if this were a first-class feature instead of bolted on like SpatiaLite is to SQLite.
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by loxias on Wednesday October 27, 2021 @06:32AM
(#29011405)
It could! But those are not exactly "easy things to do" ;) I'm sure it could happen, for a sufficiently large grant.
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by selimnairb on Wednesday October 27, 2021 @11:09AM
(#29014322)
Are you a contributor? Is there a way to bring this up with the team? Perhaps a place to start would be to add support for storing OGC Simple Features and corresponding to/from conversion functions. I don’t have a lot of spare time, but may want to take a stab at a proof of concept if some developers could help orient me to the code.
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by mytherin on Wednesday October 27, 2021 @03:50PM
(#29018237)
DuckDB developer here - we absolutely welcome outside contributions. Feel free to open an issue or discussion on our github for a feature request, and we would be happy to point you in the right direction!
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by selimnairb on Wednesday October 27, 2021 @06:25AM
(#29011372)
Maybe I should get involved and try to help this…however DB hacking is a bit out of my depth at the moment…
Re:Comparing SQLite, DuckDB and Arrow with UN trade data
by andyferris on Wednesday October 27, 2021 @04:36AM
(#29010822)
I thought pandas was in some sense evolving towards arrow? (For those who aren’t aware, they share a co-creator).
Edit: that said a benchmark would be worthwhile, and similarly the tidiverse should evolve towards arrow speed I hope since they also share a co-creator.