mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 17:20:05 +08:00

This commit seeks to reduce the memory footprint of `Chat::AutoRemove::HandleCategoryUpdated.call` by optimizing the `Chat::AutoRemove::HandleCategoryUpdated#remove_users_without_channel_permission` method which was loading all the ActiveRecord users objects into memory at once. This change updates the method call to load the ActiveRecord user objects in batches instead.