This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app
David Taylor 67b23c0e22
PERF: Update all user_histories with one query in UserDestroyer (#16717)
7a284164 previously switched the UserDestroyer to use find_each when iterating over UserHistory records. Unfortunately, since this logic is wrapped in a transaction, this didn't actually solve the memory usage problem. ActiveRecord maintains references to all modified models within a transaction.

This commit updates the logic to use a single SQL query, rather than updating models one-by-one
2022-05-11 13:39:31 +01:00
..
assets DEV: First pass at side topics section (#16697) 2022-05-11 13:43:24 +08:00
controllers DEV: Ensure service-worker sourcemap URLs do not duplicate extension (#16704) 2022-05-11 09:51:06 +01:00
helpers FIX: Use registered bookmarkables for BookmarkManager (#16695) 2022-05-11 09:51:03 +10:00
jobs DEV: Remove PostAction/UserAction bookmark refs (#16681) 2022-05-10 10:42:18 +10:00
mailers FIX: Use our header value instead of custom header on duplicates (#16711) 2022-05-11 13:47:12 +10:00
models FIX: Apply watched words to user fields 2022-05-10 11:37:52 +02:00
serializers FIX: Allow .ics for polymorphic bookmarks (#16694) 2022-05-11 09:29:24 +10:00
services PERF: Update all user_histories with one query in UserDestroyer (#16717) 2022-05-11 13:39:31 +01:00
views FIX: Allow .ics for polymorphic bookmarks (#16694) 2022-05-11 09:29:24 +10:00