README.md in seed_dump-3.0.0 vs README.md in seed_dump-3.0.1
- old
+ new
@@ -38,11 +38,11 @@
User.create!([
{id: 1, password: "123456", username: "test_1"},
{id: 2, password: "234567", username: "test_2"}
])
-Dump only data from the users table and dump a maximum amount of 1 record:
+Dump only data from the users table and dump a maximum of 1 record:
$ rake db:seed:dump MODELS=User,Product LIMIT=1
Result:
@@ -84,9 +84,11 @@
-------
Options are common to both the Rake task and the console, except where noted.
`append`: If set to `true`, append the data to the file instead of overwriting it. Default: `false`.
+
+`batch_size`: Controls the number of records that are written to file at a given time. Default: 1000. If you're running out of memory when dumping, try decreasing this. If things are dumping too slow, trying increasing this.
`exclude`: Attributes to be excluded from the dump. Default: `id, created_at, updated_at`.
`file`: Write to the specified output file. Default in Rake task is `db/seeds.rb`. Console returns the dump as a string by default.