]> cat aescling's git repositories - mastodon.git/commit
Fixes slow query in notifications api (#2851)
authoralpaca-tc <alpaca-tc@alpaca.tc>
Sat, 6 May 2017 19:55:40 +0000 (04:55 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 6 May 2017 19:55:40 +0000 (21:55 +0200)
commit05b72368ed56f23e247d28c2798789f91bb096c5
tree83a589d1e93a734478f9aebdf9d9768f024a6002
parent6f71cfeff9bfffb479ea2dd8feb4f357e81a0676
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.
app/models/notification.rb
spec/fabricators/notification_fabricator.rb