RubyGems Navigation menu

n_plus_one_control 0.2.1

RSpec and Minitest matchers to prevent N+1 queries problem. Evaluates code under consideration several times with different scale factors to make sure that the number of DB queries behaves as expected (i.e. O(1) instead of O(N)). Example: ```ruby context "N+1", :n_plus_one do populate { |n| create_list(:post, n) } specify do expect { get :index }.to perform_constant_number_of_queries end end ```

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.7.1 - February 17, 2023 (13 KB)
  2. 0.7.0 - February 17, 2023 (13 KB)
  3. 0.6.2 - October 26, 2021 (12.5 KB)
  4. 0.6.1 - March 05, 2021 (12.5 KB)
  5. 0.6.0 - November 27, 2020 (12.5 KB)
  6. 0.2.1 - October 31, 2017 (13 KB)
Show all versions (19 total)

Development Dependencies (9):

activerecord ~> 5.1
bundler ~> 1.10
factory_girl ~> 4.8.0
minitest ~> 5.9
pry-byebug >= 0
rake ~> 10.0
rspec ~> 3.5
rubocop ~> 0.49
sqlite3 >= 0

Owners:

Authors:

  • palkan

SHA 256 checksum:

3697491f8b4bb43b6b53a7a68d1c5f6ad55ce68c24c10849b971debb996e56b2

Total downloads 1,557,496

For this version 9,742

License:

MIT

Required Ruby Version: >= 2.0.0

Links: