Closed gagalago closed 3 months ago
sometimes Rails cache queries, so even if they are performed many times, in practice, they go only once to the database other stay in the Rails process. In that case, we can ignore to count them as they are close to free.
we can configure the cache of queries that way in rails: https://guides.rubyonrails.org/configuring.html#configuring-query-cache
I added an option to ignore cached queries (false by default).
corresponding code in rails that generate these events: ActiveRecord::QueryCache
ActiveRecord::QueryCache
Naming of variables is always hard.
Looks good. Thanks!
Released in 0.7.2
thanks a lot
What is the purpose of this pull request?
sometimes Rails cache queries, so even if they are performed many times, in practice, they go only once to the database other stay in the Rails process. In that case, we can ignore to count them as they are close to free.
we can configure the cache of queries that way in rails: https://guides.rubyonrails.org/configuring.html#configuring-query-cache
What changes did you make? (overview)
I added an option to ignore cached queries (false by default).
corresponding code in rails that generate these events:
ActiveRecord::QueryCache
Is there anything you'd like reviewers to focus on?
Naming of variables is always hard.
Checklist