Commit 9cc2f3d16a5d7976fa1ad46be62c3ed1d1cf6d80
1 parent
a601ffb6
Exists in
master
and in
5 other branches
Fixed search benchmark code [skip ci]
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
benchmark/search.rb
... | ... | @@ -22,6 +22,12 @@ end |
22 | 22 | if ENV["SETUP"] |
23 | 23 | total_docs = 1000000 |
24 | 24 | |
25 | + ActiveRecord::Migration.create_table :products, force: :cascade do |t| | |
26 | + t.string :name | |
27 | + t.string :color | |
28 | + t.integer :store_id | |
29 | + end | |
30 | + | |
25 | 31 | records = [] |
26 | 32 | total_docs.times do |i| |
27 | 33 | records << { | ... | ... |