bullet
bullet copied to clipboard
help to kill N+1 queries and unused eager loading
Is there anyway Bullet could output the line number of the finder that needs to be modified? I've taken over a convoluted app, and am actually having trouble finding the...
TL;DR When bullet is activated, my request take ~4 seconds to load. When it's not, it take only 0.05s The problem I've a big performance issue in the case of...
Wrong: ```rb users = User.where(:id => [1,2,3]) p users.find{|u| u.id == 2}.posts # => N+1 Query detected ``` Correct: ```rb users = User.where(:id => [1,2,3]) p users.find{|u| u.id == 2}.posts.pluck(:title)...
Bullet is triggering when previewing emails using ```ActionMailer::Preview```. For some people (like me) this will not be a desirable behaviour. The main purpose of action mailer previews is to view...
Rails 5. New app, all default. Bullet gem tell me this: ``` user: root /children/2 N+1 Query detected Child => [:parent] Add to your finder: :includes => [:parent] N+1 Query...
According to the readme: > `Bullet.stacktrace_excludes`: ignore paths with any of these substrings in the stack trace, even if they are not in your main app. However the option does...
Awesome gem; I just imported it into our massive project and it's surfaced a number of issues for us that should make quite some difference! However, we were having some...
I have this: ``` ruby class MatchTeam < ActiveRecord::Base belongs_to :team_captain, :class_name => 'Player', :foreign_key => 'team_captain_id' belongs_to :team_wk, :class_name => 'Player', :foreign_key => 'team_wk_id' end ``` And I use...
I have reproduced the issue in the following test: https://github.com/kbaum/bullet_test/blob/master/test/unit/user_space_test.rb For some reason, when we have the order on the has_many users, the test has an n+1. ``` ruby has_many...
Hoping to get some assistance with getting backtrace info in test mode. Not sure where to begin. Call stacks do show up in my `bullet.log` All specs with bullet errors...