Skip to content

Conversation

@v0idheaven
Copy link

Summary

This PR fixes an N+1 query in Node#tagnames_as_classes by removing an
unnecessary database re-query and using the existing Node instance.

Changes

  • Removed Node.select(...).find(id) which caused an N+1 query
  • Used tagnames directly on the Node instance

Result

  • Improves performance when rendering node lists
  • No change in behavior or output

Fixes #11853

@v0idheaven v0idheaven closed this by deleting the head repository Feb 4, 2026
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.

Avoid N+1 query in Tag#tagnames_as_classes

1 participant