Skip to content
Permalink
Browse files

updated benchmark script

  • Loading branch information...
dhoss committed Nov 6, 2014
1 parent 654ad8f commit 4759454ea384bbd22e6626fcfa3c0547b413be57
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/bm_in_find_by_sql.rb
@@ -37,10 +37,10 @@ def down
nodes = []

puts "Creating records..."
10.times do |i|
100.times do |i|
nodes[i] = []
parent = Node.create(name: "root_#{i}")
10.times do |j|
50.times do |j|
node = Node.new(name: "node_#{i}_#{j}")
_parent = nodes[i][rand(nodes[i].size)] || parent
node.parent_id = _parent.id

0 comments on commit 4759454

Please sign in to comment.
You can’t perform that action at this time.