discourse/app/services
David Taylor db4ae50928
PERF: Load users in batches when generating notifications (#8870)
Previously, `notify_first_post_users` was loading all users into memory simultaneously, which can cause Sidekiq to run out of memory for large sites. `notify_post_users` was loading every user one-by-one in a loop.

This commit makes both these functions load users in batches of 100. This should make the memory usage of `notify_first_post_users` lower, and reduce the number of queries required in `notify_post_users`.
2020-02-06 12:14:19 +00:00
..
spam_rule FIX: Use default locale for flag reasons 2019-07-12 12:04:23 +02:00
anonymous_shadow_creator.rb FEATURE: introduce dedicated storage and DB constraints for anon users 2019-05-29 14:26:24 +10:00
badge_granter.rb FEATURE: Replace existing badge owners when using the bulk award feature (#8770) 2020-01-23 14:14:58 -03:00
color_scheme_revisor.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
destroy_task.rb REFACTOR: Cleanup rake tasks based on feedback 2019-07-18 19:15:01 -06:00
email_style_updater.rb FEATURE: support SCSS in custom email style 2019-10-23 15:42:37 -04:00
group_action_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_mentions_updater.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
group_message.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
handle_chunk_upload.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
heat_settings_updater.rb FIX: round the calculated heat values 2019-06-06 15:44:55 -04:00
inline_uploads.rb FIX: parallel spec system needs a dedicated upload folder for each worker. (#8547) 2019-12-18 11:21:57 +05:30
notification_consolidator.rb DEV: handle all notification consolidations in new 'NotificationConsolidator' class. 2019-12-05 14:36:06 +05:30
notification_emailer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
post_action_notifier.rb FIX: check for presence of liked post before creating notification 2019-10-24 14:25:56 +05:30
post_alerter.rb PERF: Load users in batches when generating notifications (#8870) 2020-02-06 12:14:19 +00:00
post_owner_changer.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
push_notification_pusher.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
random_topic_selector.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
search_indexer.rb FEATURE: Tag synonyms 2019-12-04 13:33:51 -05:00
site_settings_task.rb DEV: Apply Rubocop redundant return style 2019-11-14 15:10:51 -05:00
staff_action_logger.rb FIX: Mark secure media upload insecure automatically if used for theme component (#8413) 2019-11-28 07:32:17 +10:00
themes_install_task.rb DEV: Apply Rubocop redundant return style 2019-11-14 15:10:51 -05:00
topic_status_updater.rb FIX: Disallow featuring hidden topics (#8814) 2020-01-30 10:00:49 -06:00
topic_timestamp_changer.rb DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
tracked_topics_updater.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
trust_level_granter.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_action_manager.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_activator.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_anonymizer.rb DEV: Remove two more references to instagram_user_infos 2019-11-29 17:12:06 +00:00
user_authenticator.rb FIX: Clear authentication data from session after create account (#8040) 2019-09-12 12:11:12 +01:00
user_destroyer.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
user_merger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
user_notification_renderer.rb FIX: during concurrent emails generation renderer should not be reused 2019-10-10 08:50:48 +11:00
user_silencer.rb DEV: update rubocop to version 0.77 2019-12-10 11:48:39 +11:00
user_updater.rb DEV: Use blank instead of NOT present 2020-01-18 07:34:15 -07:00
username_changer.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
username_checker_service.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
wildcard_domain_checker.rb SECURITY: vulnerability in WildcardUrlChecker 2019-12-13 09:29:09 -05:00
wildcard_url_checker.rb FIX: Allow any protocol in wildcard url checker (#8651) 2020-01-02 16:03:13 +00:00
word_watcher.rb FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00