ConvertMemoryEngine
When i use rspec to do a lot of test, each time database is inserted data and truncate table, when tables grows the speed grow down too much. At first i convert the db engine from innodb to memory in db/seed.rb file. After that i write this gem to do the job for more app. Notice: Tables those contain text col can not convert to memory engine, so i convert those colums to string first. So if there are test case use too long string to insert, there would be trouble.
Installation
Add this line to your application's Gemfile:
gem 'convert_memory_engine'
And then execute:
$ bundle
Or install it yourself as:
$ gem install convert_memory_engine
Usage
rake convert_memory_engine RAILS_ENV=test
Contributing
- Fork it ( https://github.com/superwf/convert_memory_engine/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request