Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimize Drafts retrieval #295
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.