Skip to content

Optimize Drafts retrieval#295

Merged
thebaer merged 4 commits into
developfrom
optimize-drafts-fetch
May 29, 2020
Merged

Optimize Drafts retrieval#295
thebaer merged 4 commits into
developfrom
optimize-drafts-fetch

Conversation

@thebaer
Copy link
Copy Markdown
Member

@thebaer thebaer commented Apr 9, 2020

This adds a database index to speed up retrieval of Drafts.

Most small instances won't notice any difference from this change, but it'll ensure they stay fast as they grow. It was driven by the performance issues we've encountered on Write.as as we've approached 800,000 posts on the platform. Response times for our "Drafts" page (labelled as "Posts") dropped from several seconds to under half a second with this change.

This is a draft, since it's untested with SQLite. Ready for review now.

This adds a database index to speed up retrieval of Drafts.

It is untested with SQLite.
@thebaer thebaer added this to the 0.13 milestone Apr 9, 2020
@thebaer thebaer marked this pull request as ready for review May 6, 2020 18:09
@thebaer
Copy link
Copy Markdown
Member Author

thebaer commented May 29, 2020

Merging now.

@thebaer thebaer merged commit 2aa154d into develop May 29, 2020
@thebaer thebaer deleted the optimize-drafts-fetch branch May 29, 2020 09:53
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.

1 participant