mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove N+1 queries
This commit is contained in:
@@ -22,7 +22,7 @@ class Site
|
||||
end
|
||||
|
||||
def categories
|
||||
Category.popular
|
||||
Category.popular.includes(:topic_only_relative_url)
|
||||
end
|
||||
|
||||
def archetypes
|
||||
|
||||
Reference in New Issue
Block a user