Consider also that if you are moving that much data around, then perhaps you
are using the $Application / $Session object poorly, with performance in mind.
You might redesign your data structures to not require that they be stored
fully on disk between requests.

Please read about the StateDB config at:

  http://www.apache-asp.org/config.html#StateDB

You can use DB_File or GDBM_File to get faster access to larger data
sets for both $Application and $Session.

Regards,

Josh

John Drago wrote:
Apache::ASP uses MLDBM by default.  You can use a different tied-hash class
if you want.  There are several on CPAN.

You may also want to take a look at BerkeleyDB from CPAN.  IIRC it doesn't
have the 1Kb limit.





-----Original Message-----
From: Glen Koundry [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 8:18 AM
To: [EMAIL PROTECTED]
Subject: Storing large amounts of data in the $Application object


I am creating a web application and I some hashes loaded with data I
want to make available to all sessions, so I tried the command:


$Application->{mydata} = \%somehash;

but this chokes due to the fact that the $Application object is stored using
the DBM system which has a size limit of around 1000 bytes (it works fine if
the hash in question is less than 1kb).


    Is there any way to have large data sets available to all sessions?
Also, is there a way to make sure this data is kept in memory (I assume the
DBM system uses disk files)?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


________________________________________________________________________
Josh Chamas, Founder    | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to