Alan Guo Xiang Tan e3c724f79f
PERF: Use a subquery when excluding a tag from topic query. (#14577)
When a tag with alot of topics is used, we end up allocating a Ruby
array of all the topic ids. Instead, we can just use a subquery here and
handle all of the exclusion logic in PG.

Follow-up to ae13839f98b1b2530a4727a09feee89d7a6ebd88
2021-10-13 09:20:56 +11:00
..
2020-01-15 11:27:12 +01:00
2021-08-10 18:30:34 +04:00
2021-05-31 10:22:50 +08:00
2020-05-05 13:46:57 +10:00
2021-10-06 11:42:52 -04:00
2021-06-21 11:06:58 +08:00
2020-07-21 15:55:03 +08:00
2020-04-30 16:48:53 +10:00