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

Only show the latest 25 revisions for a feature #2056

Merged
merged 2 commits into from Jan 22, 2024
Merged

Conversation

jdorn
Copy link
Member

@jdorn jdorn commented Jan 22, 2024

Features and Changes

Features can have potentially thousands of revisions. Instead of reading them all into memory and rendering them all on the front-end, limit to the most recent 25 revisions. This can help reduce CPU/memory usage on the server.

This PR has some additional code to help solve the following edge cases:

  • Going to a specific revision with a ?v= querystring that's older than 25 revisions ago
  • If the live revision is older than 25 revisions ago

Copy link

Your preview environment pr-2056-bttf has been deployed.

Preview environment endpoints are available at:

@jdorn jdorn merged commit 691cdea into main Jan 22, 2024
3 checks passed
@jdorn jdorn deleted the limit-revision-fetch branch January 22, 2024 15:52
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.

None yet

1 participant