activerecord-import/benchmarks/schema/mysql_schema.rb
Zach Dennis 5c287f1042 Added back in basic benchmark support. To run:
ruby benchmark/benchmark.rb --adapter mysql --num 1000
  ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-csv /tmp/results.csv
  ruby benchmark/benchmark.rb --adapter mysql --num 1000 --to-html /tmp/results.html
2010-04-08 23:12:28 -04:00

16 lines
524 B
Ruby

ActiveRecord::Schema.define do
create_table :test_myisam, :options=>'ENGINE=MyISAM', :force=>true do |t|
t.column :my_name, :string, :null=>false
t.column :description, :string
end
create_table :test_innodb, :options=>'ENGINE=InnoDb', :force=>true do |t|
t.column :my_name, :string, :null=>false
t.column :description, :string
end
create_table :test_memory, :options=>'ENGINE=Memory', :force=>true do |t|
t.column :my_name, :string, :null=>false
t.column :description, :string
end
end