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

Make AssetQueryBuilder for performance gains #218

Merged
merged 21 commits into from
Nov 29, 2023

Conversation

ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Nov 9, 2023

This PR brings an AssetQueryBuilder to eloquent driver, reducing the number of file systems calls made and removing the need for a stache cache of the path listing.

This is particularly useful for sites with a large number of assets in cloud storage, as asides from initially populating a folder cache and accessing assets individually, all queries, filtering and meta will be only accessed from the database.

Replaces #207
Closes #191

@SylvesterDamgaard
Copy link
Contributor

I can confirm the migration is now working as expected.

@ryanmitchell ryanmitchell marked this pull request as ready for review November 28, 2023 10:58
@ryanmitchell ryanmitchell merged commit bf039e9 into statamic:master Nov 29, 2023
11 checks passed
ryanmitchell added a commit that referenced this pull request Nov 29, 2023
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.

Please don't load all asset infos , when call exists method of the Statamic\ Eloquent\ Assets\Asset
2 participants