Skip to content

AO3-7350 Fix N+1 queries on readings index#5650

Merged
brianjaustin merged 2 commits intootwcode:masterfrom
Bilka2:AO3-7350-readings-index-n-plus-1
Mar 28, 2026
Merged

AO3-7350 Fix N+1 queries on readings index#5650
brianjaustin merged 2 commits intootwcode:masterfrom
Bilka2:AO3-7350-readings-index-n-plus-1

Conversation

@Bilka2
Copy link
Copy Markdown
Contributor

@Bilka2 Bilka2 commented Mar 20, 2026

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7350

Purpose

Fixes the N+1 queries on the readings index for the case where the work blurbs are cached. If the work blurbs are uncached there are more queries, but we'll leave those be for now, similar to the works and bookmarks index.

Failing test pushed first to show it's testing the right thing.

Credit

Bilka

@brianjaustin brianjaustin merged commit afd54cc into otwcode:master Mar 28, 2026
29 checks passed
@Bilka2 Bilka2 deleted the AO3-7350-readings-index-n-plus-1 branch March 29, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants