Patching Results:
- Before Patching #
Organization.current = Organization.find(1)
Benchmark.measure { Audit.taxed_and_untaxed.size }
=> #<Benchmark::Tms:0x000000000e467400 @label="", @real=15.642092013731599, @cstime=0.0, @cutime=0.0, @stime=0.004931000000000019, @utime=0.3778380000000041, @total=0.38276900000000413>
Benchmark.measure { Audit.taxed_and_untaxed.search_for("").paginate(:page => 1, :per_page => 20).to_a }
=> #<Benchmark::Tms:0x00000000128c1ec0 @label="", @real=30.39286920009181, @cstime=0.0, @cutime=0.0, @stime=0.008691999999999922, @utime=0.42596799999999746, @total=0.4346599999999974>
Audit.taxed_and_untaxed.size
=> 76438
- After patching #
Organization.current = Organization.find(1)
Benchmark.measure { Audit.taxed_and_untaxed.size }
=> #<Benchmark::Tms:0x0000000010a3b230 @label="", @real=1.3209850522689521, @cstime=0.0, @cutime=0.0, @stime=0.03110000000000035, @utime=0.4616579999999999, @total=0.49275800000000025>
Benchmark.measure { Audit.taxed_and_untaxed.search_for("").paginate(:page => 1, :per_page => 20).to_a }
=> #<Benchmark::Tms:0x00000000104825f0 @label="", @real=1.429460494313389, @cstime=0.0, @cutime=0.0, @stime=0.0002940000000002385, @utime=0.08602599999999683, @total=0.08631999999999707>
Benchmark.measure { Audit.taxed_and_untaxed.search_for("").paginate(:page => 1, :per_page => 1000).to_a }
=> #<Benchmark::Tms:0x000000000e6f70a8 @label="", @real=1.2610410377383232, @cstime=0.0, @cutime=0.0, @stime=0.001735000000000042, @utime=0.09530999999999779, @total=0.09704499999999783>
Benchmark.measure { Audit.taxed_and_untaxed.search_for("").paginate(:page => 1, :per_page => 10000).to_a }
=> #<Benchmark::Tms:0x0000000010cfb538 @label="", @real=1.890949493739754, @cstime=0.0, @cutime=0.0, @stime=0.020961999999999925, @utime=0.6817709999999977, @total=0.7027329999999976>
Audit.taxed_and_untaxed.size
=> 76438