From 8a35865b747e0e96ae53e45997d6742f8f0ccfc3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 20 Sep 2005 10:54:11 +0000 Subject: 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 --- actionpack/lib/action_controller/session/active_record_store.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller') 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 -- cgit v1.2.3