search: optimize counting posts for fav: and pool: searches.
Optimize counting the number of posts returned by fav:<name> and pool:<name> searches. Use cached counts to avoid slow count(*) queries for users with lots of favorites.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
FactoryBot.define do
|
||||
factory(:favorite)
|
||||
factory(:favorite) do
|
||||
user
|
||||
post
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user