discourse/spec
David Taylor 800c6e1a68 PERF: Improve topic_user.liked update performance when moving posts
Previously we would re-calculate topic_user.liked for all users who have ever viewed the source or destination topic. This can be very expensive on large sites. Instead, we can use the array of moved post ids to find which users are actually affected by the move, and restrict the update query to only check/update their records.

On an example site this reduced the `update_post_action_cache` time from ~27s to 300ms
2021-07-13 12:30:38 +01:00
..
components FIX: Show correct dates in topic timelines (#13670) 2021-07-12 19:35:24 +03:00
fabricators DEV: Add SMTP group ID to EmailLog (#13381) 2021-06-15 11:29:46 +10:00
fixtures FEATURE: Let users select flair (#13587) 2021-07-08 10:46:21 +03:00
helpers DEV: Prefer .pluck_first over .pluck.first (#13607) 2021-07-02 10:03:54 +08:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FEATURE: A low priority filter for the review queue. (#12822) 2021-04-23 15:34:24 -03:00
integration DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
integrity DEV: Fix a flaky Onceoff spec (#13314) 2021-06-07 20:38:31 +02:00
jobs DEV: Commit failing test for email substution bug 2021-07-08 15:56:09 -07:00
lib DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
mailers FEATURE: Use group SMTP job and mailer instead of UserNotifications change (#13489) 2021-06-28 08:55:13 +10:00
models PERF: Improve topic_user.liked update performance when moving posts 2021-07-13 12:30:38 +01:00
multisite DEV: Isolate multisite specs (#13634) 2021-07-07 18:57:42 +02:00
requests FEATURE: Uppy image uploader with UppyUploadMixin (#13656) 2021-07-13 12:22:00 +10:00
script/import_scripts DEV: If disabled do not change setting after import (#12142) 2021-02-19 09:33:35 -07:00
serializers FEATURE: Let users select flair (#13587) 2021-07-08 10:46:21 +03:00
services FIX: Let user clear their flair group (#13669) 2021-07-09 12:41:26 +08:00
support FIX: Make sure reset-new for tracked is not limited by per_page count (#13395) 2021-06-17 08:20:09 +10:00
tasks FIX: remove migrate_from_s3 task that silently corrupts data (#11703) 2021-01-17 22:33:29 +01:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Absorb onebox gem into core (#12979) 2021-05-26 15:11:35 +05:30
swagger_helper.rb FEATURE: Let users select flair (#13587) 2021-07-08 10:46:21 +03:00