mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Refactor topic/comment queries to join voting data
Refactor topic/comment queries to join voting data
Previously this was using a subquery, which appears to be less efficient and is more confusing in some ways.merge-requests/85/head
Deimos
5 years ago
4 changed files with 29 additions and 43 deletions
-
36tildes/tildes/models/comment/comment_query.py
-
30tildes/tildes/models/topic/topic_query.py
-
4tildes/tildes/templates/macros/comments.jinja2
-
2tildes/tildes/templates/topic.jinja2
Write
Preview
Loading…
Cancel
Save
Reference in new issue