discourse/app
Sam Saffron 81a1bafe54 PERF: Speed up home page unread+new query
restructure query so it avoids ORs

It appears postgres is picking suboptimal indexes if too many ORs exist
despite how trivial the condition is.

This bypasses conditional in the query and evals them upfront.

On meta for my user this made a 10x perf difference.

This boils down to either having `OR u.admin` or not having `OR u.admin` in
the query.
2019-04-05 15:25:19 +11:00
..
assets FIX: computed is not used 2019-04-04 17:38:27 -04:00
controllers FEATURE: ability to restrict some tags to a category while allowing all others 2019-04-04 16:40:15 -04:00
helpers PERF: no need to select entire group just to find name 2019-03-26 17:59:05 +11:00
jobs FIX: Make sure the site setting works and fix build 2019-04-04 17:44:10 -04:00
mailers DEV: Remove unused method. 2019-04-04 14:19:39 +08:00
models PERF: Speed up home page unread+new query 2019-04-05 15:25:19 +11:00
serializers FEATURE: ability to restrict some tags to a category while allowing all others 2019-04-04 16:40:15 -04:00
services UX: Slightly improved reviewable user display, plus link to admin if possible 2019-04-03 17:07:48 -04:00
views FEATURE: change layout when default page is category to tabular for _… (#7270) 2019-04-04 15:57:18 +02:00