mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 06:57:57 +08: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.