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

Add a rake task that prioritizes solr reindexing to minimize downtime #1067

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

fbacall
Copy link
Member

@fbacall fbacall commented Dec 4, 2024

Summary of changes

  • Adds tess:reindex which indexes upcoming events and materials before other resources.

Motivation and context

When running sunspot:reindex it will drop the index of each model and then reindex every resource, which can lead to long periods of time where the index pages are blank while it indexes e.g. thousands of expired events.

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree
    to license it to the TeSS codebase under the
    BSD license.

@fbacall fbacall merged commit bfa79f8 into master Dec 17, 2024
11 checks passed
@fbacall fbacall deleted the better-reindex-task branch December 17, 2024 15:09
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