Fixes slow query in notifications api (#2851)
* Add inclusion validation for activity_type * When excluding all types with `WHERE NOT IN`, the query search all rows.
This commit is contained in:
parent
6f71cfeff9
commit
05b72368ed
2 changed files with 17 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:notification) do
|
||||
activity_id 1
|
||||
activity_type "MyString"
|
||||
activity_type 'Favourite'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue