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

Parents with more thank 50K children can't participate in some rollup styles #1490

Open
aheber opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@aheber
Copy link
Contributor

aheber commented Aug 13, 2024

Is your feature request related to a problem? Please describe.
If a parent record has more than 50K children then SOQL often can't produce the aggregate result necessary to calculate the rollup. SOQL has a hard limit on rows read during a transaction.

Describe the solution you'd like
It would be nice if DLRS could be smart enough to break the rollup calculation into chunks in extreme cases, processing a single parent in batches. Not sure how to do that safely and for which rollup styles it will be compatible.

Describe alternatives you've considered
Because this is a hard limit in Apex I don't know how to handle this in a single transaction so I don't know of any workarounds.

Additional context
This would be tricky to test and review. Takes a bit of work to stage an environment with enough records to do this but not outside of the storage capabilities. Should build test scenarios using Snowfakery.

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

No branches or pull requests

1 participant