r/datascience • • Oct 09 '26

Tools Polars 2.0 released with the streaming engine, out-of-core processing and first-class SQL support

https://pola.rs/posts/release-polars-2/
274 Upvotes

12 comments sorted by

80

u/jesunushno Oct 09 '26

I've always hated maintaining two code paths: one for data that fits in memory, one for the stuff that doesn't. If the streaming engine means I write the same query for both, that's the upgrade I actually want.

1

u/j_angelo986 5d ago

One query path is the real win; I'd still check that the operators you rely on stream cleanly and produce the same results at both sizes.

29

u/OddsRelay Oct 09 '26

out of core is the bit i care about. i used to drop into duckdb any time a group_by didn't fit in ram, so if that just works now it's one less tool. curious how the sql side stacks up against duckdb's

10

u/OddsRelay Oct 10 '26

Streaming as the default is the big change. A lot of the "doesn't fit in memory" jobs that used to mean Spark or chunking by hand should just run on a laptop now. First class SQL also makes it easier to hand work over to people who don't write Python.

1

u/jramirez_818 1d ago

Out-of-core lowers the RAM barrier, but disk I/O and workload shape still matter; it won't make every large job a laptop job.

5

u/MackDriver0 Oct 09 '26

So cool. Can’t wait to try out SQL

2

u/geekosas Oct 10 '26

They're has been SQL for ages, just not fully implemented.

2

u/ScoutsEatTheirYoung Oct 09 '26

Map dtype looks cool

-5

u/mantequilla69420 Oct 09 '26

Woah, don't you guys just write shit notebooks and kick it to a data engineer?

3

u/chandlerbing_stats Oct 09 '26

No. But, some do

3

u/BostonConnor11 Oct 10 '26

This isn’t 2020 anymore

-7

u/Cold_Bag_8877 Oct 10 '26

how to get karma pls help me