diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 10:54:11 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-09-20 10:54:11 +0000 |
commit | 8a35865b747e0e96ae53e45997d6742f8f0ccfc3 (patch) | |
tree | 45677283cc62d779401de56db6dd71ae2ab74be4 /actionpack/lib | |
parent | 3754822f43f2942f32f14ea326c9a7b2f344d056 (diff) | |
download | rails-8a35865b747e0e96ae53e45997d6742f8f0ccfc3.tar.gz rails-8a35865b747e0e96ae53e45997d6742f8f0ccfc3.tar.bz2 rails-8a35865b747e0e96ae53e45997d6742f8f0ccfc3.zip |
Added small note about how longtext might be needed for large session data
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/session/active_record_store.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/session/active_record_store.rb b/actionpack/lib/action_controller/session/active_record_store.rb index 045232a07f..130ce12150 100644 --- a/actionpack/lib/action_controller/session/active_record_store.rb +++ b/actionpack/lib/action_controller/session/active_record_store.rb @@ -12,8 +12,9 @@ class CGI # may be used as the backing store. # # The default assumes a +sessions+ tables with columns +id+ (numeric - # primary key), +session_id+ (text), and +data+ (text). Session data is - # marshaled to +data+. +session_id+ should be indexed for speedy lookups. + # primary key), +session_id+ (text, or longtext if your session data exceeds 65K), + # and +data+ (text). Session data is marshaled to +data+. +session_id+ should be + # indexed for speedy lookups. # # Since the default class is a simple Active Record, you get timestamps # for free if you add +created_at+ and +updated_at+ datetime columns to |