Skip to content

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

Merged
jasonvarga merged 2 commits into5.xfrom
reference-updater-performance
Feb 17, 2025
Merged

[5.x] Improve performance of the data reference updaters#11442
jasonvarga merged 2 commits into5.xfrom
reference-updater-performance

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