Tom Zhao b20b1239a0 3470: Refactor how message counting works:
1. Now we retrieve at first all threads, then use another database call to get count of threads which have unread posts. It makes possible to reuse the logic of unread-post-counting somewhere else.
2. We use QueryDSL instead of native SQL, also left join from thread table instead of exists().
2024-12-18 13:23:58 +01:00
..