mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Old query used to scan the full topics table, on home page Instead we now perform 2 queries, one for pinned and one for unpinned and merge results in a 10x improvement on a 1 million topic DB