Josh Chamas
Wed, 04 Feb 2004 14:02:27 -0800
Hi Chris,
the reason for the data size limit is, that the SDBM hash size limit is 1024 bytes for the key + the value.
You can store more data if you use DB_File or MLDBM::Sync::SDBM_File for storing the data.
But see "man Apache::ASP", Section "State Management" (StateDB).
Regards
Helmut
Helmut is correct. I would like to add that since mod_perl & Apache are multi-process, they don't share memory, so all this session state is stored to disk to allow multi-process data sharing. So basically, you want to keep the data going to disk lighter, and only store enough to allow your objects to be recreated in memory each request via constructors, & not serialize the object to disk/$Session fully each request/read/write.
you just wrote to disk. Though DB_File holds more than SDBM_File, it is much slower to do basic read/write operations for smaller bits of data, and accessing large blocks of data is obviously slow.
Definitely read the MLDBM::Sync man page for a further analysis of this which is the internal state manager used for Apache::ASP.
________________________________________________________________ Josh Chamas, Founder phone:925-552-0128 Chamas Enterprises Inc. http://www.chamas.com NodeWorks Link Checker http://www.nodeworks.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]