mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 16:40:13 +08: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