discourse/app
David Taylor 3d049245af PERF: Improve post_timing performance when moving posts
Scanning for all possible invalid post_timing records in the destination topics can be a very expensive operation. The main aim is to avoid the data clashing with soon-to-be-moved posts, so we can reduce the scope of the query by targeting only rows which would actually cause a clash. post_timings has an index on (topic_id, post_number), so this is very fast.

On an example site, this reduced the query from ~6s to <10ms
2021-07-13 12:30:38 +01:00
..
assets FIX: Various translation string fixes (#13715) 2021-07-13 12:52:13 +03:00
controllers FEATURE: Uppy image uploader with UppyUploadMixin (#13656) 2021-07-13 12:22:00 +10:00
helpers FIX: Do not interpret backreferences in email content 2021-07-08 15:56:09 -07:00
jobs FIX: Do not prevent other topic timers running on error (#13665) 2021-07-08 12:49:58 +10:00
mailers FIX: Do not show In Reply To for group SMTP emails (#13541) 2021-06-28 13:19:17 +10:00
models PERF: Improve post_timing performance when moving posts 2021-07-13 12:30:38 +01:00
serializers FEATURE: Penalty history improvements (#13359) 2021-07-12 11:36:56 -07:00
services FIX: Let user clear their flair group (#13669) 2021-07-09 12:41:26 +08:00
views FEATURE: add title tag for group detail page (#13702) 2021-07-12 20:05:57 +05:30