bullet
bullet copied to clipboard
help to kill N+1 queries and unused eager loading
My gemfile: ``` ... ruby 2.5.3 gem 'rails', '~> 5.2.3' gem 'bullet', '~> 6.0.2' gem 'odbc_adapter', git: 'https://github.com/GPif/odbc_adapter.git' ... ``` I have a data intensive web app that uses the...
I have bullet loaded but not enabled and my test environment is throwing the following: ```ruby # .../ruby/vendor/ruby/2.5.0/gems/bullet-6.0.1/spec/bullet/detector/unused_eager_loading_spec.rb:9:in `block (2 levels) in ' # .../ruby/vendor/ruby/2.5.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:348:in `instance_exec' # .../ruby/vendor/ruby/2.5.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:348:in `run' #...
Below is my code, and it will raise the error as: `USE eager loading detected ChargeStation => [:charge_station_groups] Add to your finder: :includes => [:charge_station_groups]` My Code: > chargers =...
I upgrade bullet from 5.7.5 to 5.9.0 and the following spec fail. ```ruby it 'should not detect unused preload associations' do comment = Comment.last post = Post.last comment.update(post: post) Bullet::Detector::UnusedEagerLoading.check_unused_preload_associations...
There are about 70 Models with translations created by [Globalize](https://github.com/globalize/globalize) Gem. Now the log is filled with 1000 lines like this ``` Place => [:translations] Add to your finder: :includes...
Ruby Version: 2.4.1p111 Rails Version: 5.2.0 Having the following relations: ``` class User has_one user_preference has_one lifestyle end class UserPreference belongs_to :user has_many :goal_preferences, dependent: :destroy has_many :goals, through: :goal_preferences...
We can't use bullet with our setup where we use mongoid 7.0 with rails 5.2. It would be great if mongoid 7.0 support is added.
Hello, We always use bullet but in our new project using rails 5.2.rc1 we notice that using `config.active_record.verbose_query_logs = true` the query is always reported to origin from the bullet...
Hi @flyerhzm, thank you for creating this gem! Quick question - Is there a recommended config with Rails 5 API-mode apps, since they don't have any of the browser front-end...
We're seeing a false positive when a transitive association is created via a model update. ```rb form1 = Form.create! recipient1 = Recipient.create first_name: 'bob', last_name: 'seger' form_request1 = FormRequest.create! form:...