Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Too many db queries in note view #119

Open
ptgolden opened this issue Oct 4, 2012 · 1 comment
Open

Too many db queries in note view #119

ptgolden opened this issue Oct 4, 2012 · 1 comment

Comments

@ptgolden
Copy link
Member

ptgolden commented Oct 4, 2012

For two reasons:

  1. Need select_related on note sections
    1a) select_related doesn't follow FK relationships where the fields can be null

  2. We're querying the user for each reversion record individually in the template. That's dumb.

@ptgolden
Copy link
Member Author

ptgolden commented Oct 4, 2012

re: 1a -- Documents in note sections can be null because we said that maybe note sections can just be text content. Maybe it's worth making different models for different types of note sections, especially if we want to add something like, oh I don't know, timelines as a distinct section.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant