discourse/db
Sam Saffron 624184560e PERF: improve performance of publish_notifications_state
User.publish_notifications_state is called every time a notification is
created, this can become a very critical code path.

On some heavy notification related sites this can be a major CPU user on PG

This index makes it much cheaper to publish notification state, cause a
simple index lookup does the trick.
2019-05-14 16:02:55 +10:00
..
fixtures DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
migrate PERF: improve performance of publish_notifications_state 2019-05-14 16:02:55 +10:00
post_migrate Make rubocop happy. 2019-05-13 09:55:44 +08:00
api_test_seeds.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00