Polars 2.0 spills memory-heavy operations to disk at 80% RAM usage

KhuyenTran16 · x · 2026-10-28

Khuyen Tran highlights a practical Polars 2.0 feature: memory-intensive operations like sorting, window functions, and complex expressions now automatically spill from memory to disk once they use roughly 80% of available RAM, preventing OOM crashes on large queries.

Caveat: joins and group-by operations do not yet support spilling to disk.

Related event: Polars 2.0 Released with Disk Spilling and Performance Upgrades(2 posts)→

Original post →

More from coding & agent

coding & agent channel →