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

Stream queries when traversing database to reduce memory footprint #67

Open
aamirsahmad opened this issue Jan 17, 2024 · 0 comments
Open

Comments

@aamirsahmad
Copy link

AFAIK Polo relies on ActiveSupport::Notifications.subscribed to traverse the ActiveRecord tree. This works fine when associated data is small however in production scenario, we have experienced huge memory consumption as collect_sql stores everything in memory. I was wondering if others have similar issues and how they solved this? Also, are there plans to perhaps implement a streaming style methodology (e.g. probably using yield) in future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant