Commit 9cc2f3d16a5d7976fa1ad46be62c3ed1d1cf6d80

Authored by Andrew Kane
1 parent a601ffb6

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,6 +22,12 @@ end
22 if ENV["SETUP"] 22 if ENV["SETUP"]
23 total_docs = 1000000 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 records = [] 31 records = []
26 total_docs.times do |i| 32 total_docs.times do |i|
27 records << { 33 records << {