aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-03-01 01:22:42 +0900
committerkennyj <kennyj@gmail.com>2012-03-01 01:22:42 +0900
commit46c12172fe651980438e0b0663e2005cf3132079 (patch)
treed70ceb60aa1902198b24aba7fcd121b9b66cd0d4 /activerecord/CHANGELOG.md
parent5cbba30a1292dde9c83ab42287c2a1f38f3fcc44 (diff)
downloadrails-46c12172fe651980438e0b0663e2005cf3132079.tar.gz
rails-46c12172fe651980438e0b0663e2005cf3132079.tar.bz2
rails-46c12172fe651980438e0b0663e2005cf3132079.zip
Add entry for schema cache dump to CHANGELOG.md.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md23
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