TL;DR
Polars says version 2.0 makes its streaming engine the default for lazy queries and enables initial out-of-core processing that can spill supported workloads to disk. The release also adds a native Map dtype and promotes SQL support; benchmark results cited by the project are its own tests and have stated limitations.
Polars has released version 2.0, making its streaming engine the default for collecting lazy queries and enabling an initial form of out-of-core processing that can spill supported operations to disk. The data-frame project says the changes are intended to make queries more resilient to memory limits, while the release also expands SQL support and introduces a native Map data type.
Get business pricing on monitors, keyboards and dev gear
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
Under the new default, calling collect on a LazyFrame uses the streaming engine. Polars says this can improve memory use and performance for many queries. The change can affect observable row order for operations including joins, grouping and unpivoting. Users who need order preserved for those operations can opt in with maintain_order=True, according to the release post.
Version 2.0 also enables spill-to-disk at about 80% of RAM use, with a default disk budget of 64 GB. The initial support covers operations such as sorts, window functions and many expressions; the release says joins and group-by operations are not yet supported for out-of-core execution and are planned for later work. The threshold may need tuning, Polars said.
The project describes SQL as a first-class interface in this release and points to optimizer and engine changes, including join reordering, common-subplan elimination and dynamic predicates or bloom filters. It also adds a Map dtype corresponding to Apache Arrow’s MapType, allowing dictionary-like key and value operations. The release says stricter handling of data types and explicitness is intended to provide faster feedback.
Memory Limits and Query Ordering
The execution-default change may affect users who upgrade without reviewing how their queries depend on row order. Since the streaming engine does not preserve order by default for some operations, applications that rely on a particular sequence may need to request it explicitly. That makes testing query results part of an upgrade, not just checking whether code still runs.
Disk spilling can help workloads that exceed available memory, but the initial feature does not cover every operation. Users should not assume that any oversized query will now complete: joins and group-by operations remain outside the stated support, and spill behavior depends on the configured disk budget and workload. SQL improvements may also make Polars relevant to teams that use SQL-based analytical workflows, though comparative performance depends on the query, machine and test conditions.
Products Worth Considering

Levoit Core 400S-P Smart Air Purifier for Large Rooms

Levoit Core 600S-P Smart Air Purifier for Large Rooms

Levoit Vital 200S-P Smart Air Purifier for Large Rooms
As an affiliate, we earn on qualifying purchases.
How Polars Tested SQL Performance
Polars’ release post reports benchmark comparisons against DuckDB 1.5.6, DuckDB 2.0 alpha and DataFusion 54.0.0, using data derived from TPC-H and TPC-DS. Tests ran on two machines: one with 16 virtual CPUs and 32 GB of memory, and another with 192 virtual CPUs and 384 GB. Each query ran five times in a hot setting, and the best run was used; the project compared both total and geometric-mean query times.
These are benchmarks run and published by Polars, not independent results. Polars says its default configuration was fastest in all but one of the reported benchmarks. It also notes that its performance on the 192-thread machine carried a constant overhead that hurt smaller queries, and that limiting Polars to 32 cores was competitive or faster across the benchmarks. The project said it had diagnosed the overhead and hoped to address it in a later release.
The comparison has additional qualifications. DataFusion timed out on one TPC-DS query, timed out once on another, and ran out of memory on a TPC-H query on the smaller machine; those queries were excluded from the results for every engine. Polars says it published a repository so others can replicate its test setup. The findings describe that setup and should not be treated as a guarantee for other hardware or workloads.
“Calling collect on a LazyFrame will now default to the streaming engine.”
— Polars, in its version 2.0 release post
Support Gaps and Benchmark Limits
The release post does not give an independent evaluation of the benchmark claims, and its results apply to the test data, hardware and methodology it describes. It does not establish how Polars 2.0 will perform across different datasets, storage systems or production workloads. The precise effect of the reported 192-thread overhead on other systems is also not established.
It is also not clear from the source when out-of-core support for joins and group-by operations will arrive, or how the default spill threshold may change. The post says the roughly 80% RAM trigger may need tuning. Users should check the release documentation for details relevant to their workloads, especially if they rely on row ordering or queries that exceed memory.
Further Spill Support Planned
Polars says it plans to extend out-of-core execution to joins and group-by operations, but the release post gives no delivery date. The project also said it hoped to fix the high-thread-count overhead in a future release. It has shared a benchmark repository for readers who want to reproduce or inspect the SQL comparisons.
For users adopting version 2.0, the immediate next steps are to test representative queries, verify any order-sensitive results and check whether the operations that exceed memory are covered by the current spill support. The source does not specify a schedule for follow-up releases or further benchmark updates.
Key Questions
What is the main change in Polars 2.0?
LazyFrame.collect now uses the streaming engine by default. The release also enables initial spill-to-disk processing and expands SQL and data-type features.
Will Polars 2.0 preserve row order?
Not by default for some streaming operations, including joins, group-by and unpivot. The release says users who need observable order can use maintain_order=True where supported.
Which operations can spill to disk?
The release lists sorts, window functions and many expressions as initially supported. It says out-of-core joins and group-by operations are planned, but are not included in the current support described in the post.
Are Polars’ benchmark results independently verified?
The supplied source presents them as benchmarks conducted by Polars and links to a repository intended to support replication. It does not provide independent verification. The post also notes excluded queries and a performance overhead on its 192-thread test machine.
Source: hn
