Open Dandush03 opened 3 months ago
Hey @Dandush03, thanks for reporting! I'm aware of that, since Mission Control was designed to work with multiple adapters that are totally different (Resque vs. Solid Queue right now), it's not as straightforward to address these. If you'd like to contribute a PR with some fixes, they'd be very welcome.
In the meantime, I have disabled my controller-level N+1 detector (prosopite) so it doesn't warn/error when I'm at mission control:
Example of how using controller_path
on a hook condition:
# app/controllers/application_controller.rb
if Rails.env.development?
Prosopite.rails_logger = true
around_action :n_plus_one_detection, unless: -> { controller_path.starts_with?("mission_control") }
def n_plus_one_detection
Prosopite.scan
yield
ensure
Prosopite.finish
end
end
Must views have N+1 issues, I recomend using Bullet to find the out.