bullet
bullet copied to clipboard
help to kill N+1 queries and unused eager loading
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. 
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