We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af11104 commit cd8803bCopy full SHA for cd8803b
benchmark/relation.rb
@@ -0,0 +1,14 @@
1
+require "bundler/setup"
2
+Bundler.require(:default)
3
+require "active_record"
4
+
5
+class Product < ActiveRecord::Base
6
+ searchkick
7
+end
8
9
+relation = Product.search("apples")
10
11
+stats = AllocationStats.trace do
12
+ relation.where(store_id: 1).where(in_stock: true).order(:name).limit(10).offset(50)
13
14
+puts stats.allocations(alias_paths: true).to_text
0 commit comments