<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d" -->

---
title: Polars 2.0 pre-release comes with a 5x speed boost — but...
description: Polars 2.0's first release candidate makes the streaming engine the default for all LazyFrame collect calls, promising roughly 5x faster performance and better...
canonical: https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order | daily.dev
og:description: Polars 2.0's first release candidate makes the streaming engine the default for all LazyFrame collect calls, promising roughly 5x faster performance and better...
og:url: https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d
og:image: https://api.daily.dev/og/posts/VrEfthY4d.png
og:image:alt: Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order

**[The New Stack](https://daily.dev/sources/newstack)** · 4 min read · 0 upvotes · 0 comments

## Summary

Polars 2.0's first release candidate makes the streaming engine the default for all LazyFrame collect calls, promising roughly 5x faster performance and better memory usage for large dataset processing. The catch: the streaming engine doesn't guarantee row order for operations like join, group_by, and unpivot, which can silently break pipelines that depend on incidental row ordering. Polars recommends sorting explicitly or setting maintain_order=True, or reverting to the in-memory engine via engine affinity. The release also removes ambiguous casts, pushing users toward explicit methods like .str.to_date(), with more changes planned for the 2.x series including a faster S3 reader and cost-based planner.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thenewstack.io/polars-streaming-row-order>

## Questions this post answers

### Why did my Polars pipeline's row order change after upgrading to Polars 2.0?

In the Polars 2.0 release candidate, calling collect on any LazyFrame query now defaults to the streaming engine instead of the in-memory engine, and the streaming engine does not guarantee row order for operations like join, group_by, and unpivot. This can silently change output order and break code that depends on it. Fix it by sorting explicitly, setting maintain_order=True, or reverting to the in-memory engine via engine affinity.

_Migrating a data pipeline to Polars 2.0? daily.dev surfaces breaking changes like this before they bite in production._

### How much faster is the Polars 2.0 streaming engine compared to the in-memory engine?

Polars expects the streaming engine, now the default for LazyFrame collect calls in the 2.0 release candidate, to be easily 5x faster in aggregate compared to the previous in-memory default, along with substantial memory improvements, since it processes data in batches rather than all at once, letting it handle datasets that don't fit in available memory.

_Evaluating whether to adopt Polars over pandas or DuckDB? daily.dev tracks performance changes like this across the data tooling ecosystem._

### How do I prevent Polars from changing row order when using the streaming engine?

Use one of two documented options: sort the results explicitly, or set maintain_order=True on operations like join, group_by, and unpivot where applicable. Alternatively, keep the in-memory engine as the default by configuring engine affinity, which avoids the streaming engine's non-deterministic row ordering entirely at the cost of some speed and memory benefits.

_daily.dev helps developers stay ahead of migration gotchas like Polars' row-order defaults before they ship._

## Similar posts on daily.dev

- [Release of Polars 2.0](https://daily.dev/posts/release-of-polars-2-0-84cwf427y) · Polars Blog · 4 upvotes · 0 comments
- [Announcing Polars 2.1](https://daily.dev/posts/announcing-polars-2-1-wq74kbq6p) · Polars Blog · 1 upvotes · 0 comments
- [Polars 2.0 vs pandas vs DuckDB: 2 GB CSV, 4 GB Memory Limit](https://daily.dev/posts/polars-2-0-vs-pandas-vs-duckdb-2-gb-csv-4-gb-memory-limit-va0ij7pou) · Medium · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#data-engineering](https://daily.dev/tags/data-engineering), [#polars](https://daily.dev/tags/polars)

[View this post on daily.dev](https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order","url":"https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d"},"datePublished":"2026-09-06T13:34:28.801Z","dateModified":"2026-09-06T16:58:46.540Z","description":"Polars 2.0's first release candidate makes the streaming engine the default for all LazyFrame collect calls, promising roughly 5x faster performance and better...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/57605212c27dafd97eb7ea8440819f44?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/57605212c27dafd97eb7ea8440819f44?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The New Stack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The New Stack","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/newstack","url":"https://daily.dev/sources/newstack"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,data-engineering,polars","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The New Stack","item":"https://daily.dev/sources/newstack"},{"@type":"ListItem","position":3,"name":"Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/polars-2-0-pre-release-comes-with-a-5x-speed-boost-but-it-could-change-row-order-vrefthy4d#faq","mainEntity":[{"@type":"Question","name":"Why did my Polars pipeline's row order change after upgrading to Polars 2.0?","acceptedAnswer":{"@type":"Answer","text":"In the Polars 2.0 release candidate, calling collect on any LazyFrame query now defaults to the streaming engine instead of the in-memory engine, and the streaming engine does not guarantee row order for operations like join, group_by, and unpivot. This can silently change output order and break code that depends on it. Fix it by sorting explicitly, setting maintain_order=True, or reverting to the in-memory engine via engine affinity. Migrating a data pipeline to Polars 2.0? daily.dev surfaces breaking changes like this before they bite in production."}},{"@type":"Question","name":"How much faster is the Polars 2.0 streaming engine compared to the in-memory engine?","acceptedAnswer":{"@type":"Answer","text":"Polars expects the streaming engine, now the default for LazyFrame collect calls in the 2.0 release candidate, to be easily 5x faster in aggregate compared to the previous in-memory default, along with substantial memory improvements, since it processes data in batches rather than all at once, letting it handle datasets that don't fit in available memory. Evaluating whether to adopt Polars over pandas or DuckDB? daily.dev tracks performance changes like this across the data tooling ecosystem."}},{"@type":"Question","name":"How do I prevent Polars from changing row order when using the streaming engine?","acceptedAnswer":{"@type":"Answer","text":"Use one of two documented options: sort the results explicitly, or set maintain_order=True on operations like join, group_by, and unpivot where applicable. Alternatively, keep the in-memory engine as the default by configuring engine affinity, which avoids the streaming engine's non-deterministic row ordering entirely at the cost of some speed and memory benefits. daily.dev helps developers stay ahead of migration gotchas like Polars' row-order defaults before they ship."}}]}
```

