diff options
author | kennyj <kennyj@gmail.com> | 2012-03-01 01:22:42 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-03-01 01:22:42 +0900 |
commit | 46c12172fe651980438e0b0663e2005cf3132079 (patch) | |
tree | d70ceb60aa1902198b24aba7fcd121b9b66cd0d4 /activerecord | |
parent | 5cbba30a1292dde9c83ab42287c2a1f38f3fcc44 (diff) | |
download | rails-46c12172fe651980438e0b0663e2005cf3132079.tar.gz rails-46c12172fe651980438e0b0663e2005cf3132079.tar.bz2 rails-46c12172fe651980438e0b0663e2005cf3132079.zip |
Add entry for schema cache dump to CHANGELOG.md.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index cea50aaa9d..16f1c589c4 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,28 @@ ## Rails 4.0.0 (unreleased) ## +* Added the schema cache dump feature. + + `Schema cache dump` feature was implemetend. This feature can dump/load internal state of `SchemaCache` instance + because we want to boot rails more quickly when we have many models. + + Usage notes: + + 1) execute rake task. + RAILS_ENV=production bundle exec rake db:schema:cache:dump + => generate db/schema_cache.dump + + 2) add config.use_schema_cache_dump = true in config/production.rb. BTW, true is default. + + 3) boot rails. + RAILS_ENV=production bundle exec rails server + => use db/schema_cache.db + + 4) If you remove clear dumped cache, execute rake task. + RAILS_ENV=production bundle exec rake db:schema:cache:clear + => remove db/schema_cache.dump + + *kennyj* + * Added support for partial indices to PostgreSQL adapter The `add_index` method now supports a `where` option that receives a |