Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: Cache schema resolve back to DSL #17610

Merged
merged 3 commits into from
Jul 13, 2024
Merged

perf: Cache schema resolve back to DSL #17610

merged 3 commits into from
Jul 13, 2024

Conversation

ritchie46
Copy link
Member

This will ensure that a program like this:

inital_q = my_lazy_frame_q...


for expr in my_exprs:
   result = initial_q.filter(expr).collect()

Will only resolve the schema of initial_q once. And subsequent loops will have resolved schema.

@stinodego this is similar to the path resolving case.

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Jul 13, 2024
@ritchie46 ritchie46 changed the title feat: Cache schema resolve back to DSL perf: Cache schema resolve back to DSL Jul 13, 2024
@github-actions github-actions bot added the performance Performance issues or improvements label Jul 13, 2024
@ritchie46
Copy link
Member Author

@kszlim together with the path resolving I think this should improve your use case.

@kszlim
Copy link
Contributor

kszlim commented Jul 13, 2024

Awesome, thanks!

@ritchie46 ritchie46 merged commit 4f0fe6c into main Jul 13, 2024
20 of 21 checks passed
@ritchie46 ritchie46 deleted the cache branch July 13, 2024 19:20
@c-peters c-peters added the accepted Ready for implementation label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants