RubyGems Navigation menu

n_plus_one_control 0.1.2

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:
=

安裝:
=

版本列表:

  1. 0.7.2 August 06, 2024 (13.5 KB)
  2. 0.7.1 February 17, 2023 (13.0 KB)
  3. 0.7.0 February 17, 2023 (13.0 KB)
  4. 0.6.2 October 26, 2021 (12.5 KB)
  5. 0.6.1 March 05, 2021 (12.5 KB)
  6. 0.1.2 June 15, 2017 (12.5 KB)
顯示所有版本(共 20)

Development 相依性套件 (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

擁有者:

作者:

  • palkan

SHA 256 總和檢查碼:

=

總下載次數 1,870,948

這個版本 7,891

版本发布:

授權:

MIT

Ruby 版本需求: >= 2.3.0

相關連結: