mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 04:44:59 +00:00
Index on linkable_type and linkable_id should increase performance of this subquery https://github.com/discourse/discourse/blob/main/app/services/sidebar_site_settings_backfiller.rb#L86 Also, distinct is removing duplicates which are unnecessary.