RubyGems Navigation menu

n_plus_one_control 0.0.3

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.1 - February 17, 2023 (13KB)
  2. 0.7.0 - February 17, 2023 (13KB)
  3. 0.6.2 - October 26, 2021 (12.5KB)
  4. 0.6.1 - March 05, 2021 (12.5KB)
  5. 0.6.0 - November 27, 2020 (12.5KB)
  6. 0.0.3 - June 06, 2017 (12.5KB)
全てのバージョンを表示(全19件)

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チェックサム:

d41e64dddb9118b73fae2b46a7816aa1ad91f01e6380476215b93523a43657d6

累計ダウンロード数 1,566,600

このバージョンのみ 1,643

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: