0
0
Fork 0

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:
alpaca-tc 2017-05-07 04:55:40 +09:00 committed by Eugen Rochko
parent 6f71cfeff9
commit 05b72368ed
2 changed files with 17 additions and 16 deletions

View file

@ -1,4 +1,4 @@
Fabricator(:notification) do
activity_id 1
activity_type "MyString"
activity_type 'Favourite'
end