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

Don't process content items multiple times in the scheduled job #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbottema
Copy link

@rbottema rbottema commented Feb 1, 2024

A content item can be tagged with multiple tags, which would make them end up multiple times in the GetTaggedContentGuids list. Filtering out duplicates cleans this list and avoids doing duplicate processing. This speeds up the job greatly, especially in sites with heavy tag usage

A content item can be tagged with multiple tags, which would make them end up multiple times in the GetTaggedContentGuids list. Filtering out duplicates cleans this list and avoids doing duplicate processing. This speeds up the job greatly, especially in sites with heavy tag usage
@rbottema
Copy link
Author

rbottema commented Feb 1, 2024

There are more potential performance improvements that are worth looking into, but I didn't have time for. Examples are:

  • Loading content types only once per content type
  • Constructing a lookup of GUID -> tags to avoid multiple looping over all tags

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.

1 participant