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

[5.x] Improve performance of the data reference updaters #11442

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

duncanmcclean
Copy link
Member

This pull request makes some performance improvements to the GetsItemsContainingData trait, responsible for gathering all content items (all entries, terms, globals and users).

It's currently used within the asset & term reference updaters, however, it'll soon be used in the UTC dates update script (#11409).

Essentially, instead of loading all items into memory at once (which will cause issues with larger sites), we'll use Laravel's Lazy Collections feature to ensure items can be looped through in a more efficient manner.

@jasonvarga jasonvarga merged commit 22e90f3 into 5.x Feb 17, 2025
19 checks passed
@jasonvarga jasonvarga deleted the reference-updater-performance branch February 17, 2025 21:37
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

Successfully merging this pull request may close these issues.

2 participants