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.
7 lines
73 B
Ruby
7 lines
73 B
Ruby
FactoryBot.define do
|
|
factory(:favorite) do
|
|
user
|
|
post
|
|
end
|
|
end
|