Skip to content

Add indexes on bookshelves_books.created and community_edits_queue.updated#12107

Merged
cdrini merged 2 commits intoperf/bookshelves-books-created-indexfrom
copilot/sub-pr-12106
Mar 17, 2026
Merged

Add indexes on bookshelves_books.created and community_edits_queue.updated#12107
cdrini merged 2 commits intoperf/bookshelves-books-created-indexfrom
copilot/sub-pr-12106

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

Pages like /trending/now and /merges are taking 7+ seconds due to missing indexes on columns used for sorting/filtering.

Technical

  • Added CREATE INDEX bookshelves_books_created_idx ON bookshelves_books (created)
  • Added CREATE INDEX community_edits_queue_updated_idx ON community_edits_queue (updated)

Both columns are heavily used in ORDER BY and WHERE clauses across trending, merges, and reading history queries.

Testing

Screenshot

Stakeholders


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Co-authored-by: cdrini <6251786+cdrini@users.noreply.github.com>
Copilot AI changed the title [WIP] Add index on 'created' column in bookshelves_books Add indexes on bookshelves_books.created and community_edits_queue.updated Mar 17, 2026
Copilot AI requested a review from cdrini March 17, 2026 03:23
@cdrini cdrini marked this pull request as ready for review March 17, 2026 03:31
@cdrini cdrini merged commit 6e777ef into perf/bookshelves-books-created-index Mar 17, 2026
1 check passed
@cdrini cdrini deleted the copilot/sub-pr-12106 branch March 17, 2026 03:31
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.

2 participants