Use #any? instead of #exists? when checking media attachments (#7570)
If media_attachments are not loaded, SQL query is the same, but the #exists? method performs SQL query even if preloaded
Showing
- app/services/batched_remove_status_service.rb 1 addition, 1 deletionapp/services/batched_remove_status_service.rb
- app/services/fan_out_on_write_service.rb 1 addition, 1 deletionapp/services/fan_out_on_write_service.rb
- app/services/remove_status_service.rb 1 addition, 1 deletionapp/services/remove_status_service.rb
Please register or sign in to comment