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

Use Finder::date() to limit files to iterate over #132

Merged
merged 1 commit into from
May 9, 2022

Conversation

johncarter-
Copy link

@johncarter- johncarter- commented May 9, 2022

I have a content model that has ~17k content files. I have been working on some potential performance gains.

This PR restricts the amount of files returned in the seedData method by those that have been modified since the model file or the Orbit cache file (database).

In my application it reduced my seedData() execution time from 3.149s to 0.713s ( -77%).

Hopefully I haven't missed something glaringly obviously wrong with this approach.

@ryangjchandler
Copy link
Owner

I did not know about this method!

@ryangjchandler ryangjchandler merged commit a1ec977 into ryangjchandler:2.x May 9, 2022
@ryangjchandler
Copy link
Owner

Ignore the failing test, they're not super stable apparently. Thanks!

@johncarter- johncarter- deleted the patch-4 branch May 11, 2022 15:10
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