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 index to improve post retrieval speed on large instances #778

Merged
merged 1 commit into from Oct 3, 2023

Conversation

thebaer
Copy link
Member

@thebaer thebaer commented Sep 26, 2023

On an instance with millions of posts across all users, a single blog with thousands of posts on it can take a long time to render. This adds an index to the posts table to speed up the basic GetPosts query.

Run: writefreely db migrate

Closes #741


  • ☑ I have signed the CLA

On an instance with millions of posts across all users, a single blog with
thousands of posts on it can take a long time to render. This adds an index
to the `posts` table to speed up the basic GetPosts query.

Run: `writefreely db migrate`

Closes #741
@thebaer thebaer added this to the 0.15 milestone Sep 26, 2023
@thebaer thebaer linked an issue Sep 26, 2023 that may be closed by this pull request
Base automatically changed from reset-password to develop October 3, 2023 16:03
@thebaer
Copy link
Member Author

thebaer commented Oct 3, 2023

Merging now!

@thebaer thebaer merged commit 711cb38 into develop Oct 3, 2023
@thebaer thebaer deleted the better-indexing branch October 3, 2023 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Rendering a blog is slow for giant databases
1 participant