discourse/app/jobs
Krzysztof Kotlarek ad3ec5809f
FIX: Dismiss new with better migration (#12062)
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
2021-02-15 08:50:33 +11:00
..
concerns DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onceoff FIX: In FastImage 2.2.2 an error is raised with a nil path (#11954) 2021-02-03 11:45:12 -05:00
regular FIX: do not notify when the hidden tag is added or removed (#12025) 2021-02-11 10:03:45 +11:00
scheduled FIX: Dismiss new with better migration (#12062) 2021-02-15 08:50:33 +11:00
base.rb DEV: Always enqueue sidekiq jobs after database transaction commit (#11293) 2020-12-08 11:05:01 +11:00