Skip to content

Conversation

@marcus8448
Copy link
Contributor

Issue

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

Purpose

Resolves the N+1 query in PseudsController#index by reusing the work counts used for display.

Notably, this means that a pseud with only draft works will no longer have an 'Orphan Pseud' button. I think this is acceptable since they wouldn't have a works listing in the blurb anyways, but I'm open to changing this if not.

Credit

marcus8448 (he/him)

Utilize displayed work counts instead of querying works. However, this *does* change functionality: a pseud with only unposted drafts will no longer see the orphan pseud button.
@Bilka2
Copy link
Contributor

Bilka2 commented Oct 24, 2025

The bigger concern over drafts may be that it also doesn't count hidden works?

@marcus8448
Copy link
Contributor Author

The bigger concern over drafts may be that it also doesn't count hidden works?

Oops. Yeah, I'll just count it separately then.

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.

2 participants