Original PR was reverted because of broken migration https://github.com/discourse/discourse/pull/12058 I fixed it by adding this line ``` AND topics.id IN(SELECT id FROM topics ORDER BY created_at DESC LIMIT :max_new_topics) ``` This time it is left joining a limited amount of topics. I tested it on few databases and it worked quite smooth |
||
|---|---|---|
| .. | ||
| badge-test.js | ||
| category-test.js | ||
| composer-test.js | ||
| email-log-test.js | ||
| group-test.js | ||
| invite-test.js | ||
| nav-item-test.js | ||
| post-stream-test.js | ||
| post-test.js | ||
| report-test.js | ||
| rest-model-test.js | ||
| result-set-test.js | ||
| session-test.js | ||
| site-test.js | ||
| staff-action-log-test.js | ||
| topic-details-test.js | ||
| topic-test.js | ||
| topic-tracking-state-test.js | ||
| user-action-test.js | ||
| user-badge-test.js | ||
| user-drafts-test.js | ||
| user-stream-test.js | ||
| user-test.js | ||