bullet
bullet copied to clipboard
help to kill N+1 queries and unused eager loading
Is essentially impossible to instrument Bullet as far as I can tell. Adding ActiveSupport::Notifications.instrument blocks around the detection, or in the worst case scenario on NotificationCollector (as I've done as...
Would it be possible to extend this gem to notify when `JOIN`/`WHERE` query is used on column(s) without an index?
Rails v8 may be a while away from release, but I made this PR to support ActiveRecord 8.0.0.alpha, duplicating the same one made for 7.2.0 in #707
Setting the Bullet.enable swtich, flips the Bullet.unused_eager_loading_enable value. `3.2.2 :005 > Bullet.unused_eager_loading_enable? => false 3.2.2 :006 > Bullet.enable = true => true 3.2.2 :007 > Bullet.unused_eager_loading_enable? => true 3.2.2 :009...
Hello, is there a Guide how to write spec tests? We have enabled Bullet.raise in our specs. Now when we load an object with associations, bullet tells us to includes([:foo])...
I have `before_action` method which checks if profile of current user is enabled ```ruby before_action :require_enabled_profile .... def require_enabled_profile unless current_user.profile.enabled? ... end end ... def current_user @current_user ||= super.tap...
Description I encountered an error while trying to use the Bullet gem with ActiveRecord 8.0.0.beta1. The Bullet gem version is 7.2.0, and it appears that it does not support the...
This PR should be pulled into a new testing/rails8beta branch, so we can use bullet with new Rails 8 beta and figure out if there are no breaking changes since...