bullet icon indicating copy to clipboard operation
bullet copied to clipboard

help to kill N+1 queries and unused eager loading

Results 128 bullet issues
Sort by recently updated
recently updated
newest added

We have a model like this ```ruby class Consumer < ApplicationRecord has_many :offers, dependent: :destroy end class Offer < ApplicationRecord has_many :incidents, dependent: :destroy end ``` When we try to...

We have an older app on Rail 4.1.16 and we noticed that our update queries suddenly started having the literal string `id` stripped out of them. On some digging it...

When doing an include using a `String`, ie. ``` ruby Tag.includes('tag_kind') ``` You end up with a double false positive. Bullet appears to always expect includes to be `Symbol`s. ```...

Auto corrected by following Lint Ruby EmptyLine Click [here](https://awesomecode.io/repos/flyerhzm/bullet/config_groups/ruby/16) to configure it on awesomecode.io

Auto corrected by following Lint Ruby Lint/UnusedMethodArgument Click [here](https://awesomecode.io/repos/flyerhzm/bullet/lint_configs/ruby/10901) to configure it on awesomecode.io

Auto corrected by following Lint Ruby Style/SoleNestedConditional Click [here](https://awesomecode.io/repos/flyerhzm/bullet/lint_configs/ruby/109880) to configure it on awesomecode.io

Can Bullet gem support detecting graphql N+1 query. right now for me, it's not detecting anything. ![screen shot 2017-10-18 at 11 22 59 pm](https://user-images.githubusercontent.com/2918256/31734287-db3cf8dc-b45b-11e7-99b0-955570154c69.png)

The error: ``` undefined method `empty?' for 204:Integer excluded from capture: No host specified, no public_key specified, no project_id specified app | app | NoMethodError (undefined method `empty?' for 204:Integer):...

Auto corrected by following Lint Ruby Performance/BlockGivenWithExplicitBlock Click [here](https://awesomecode.io/repos/flyerhzm/bullet/lint_configs/ruby/101417) to configure it on awesomecode.io

Auto corrected by following Format Ruby Code Click [here](https://awesomecode.io/repos/flyerhzm/bullet/format_configs/ruby) to configure it on awesomecode.io