mirror of
https://github.com/discourse/discourse.git
synced 2026-08-02 09:29:37 -05: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.