On 07/14/2011 12:57 PM, Vincent Veyron wrote:
This is what I first did, using Apache::Session. But I noticed the call to tie was very slow (response time around 70ms with it, 15ms without it), so I changed for Storable because filesystem reads were much faster.
I don't personally like Apache::Session because of the tie thing, but that's more an interface preference than anything else.
Also, I did not find how to store a hash in the database without tie. I read it's possible to use Data::Dumper to write the data in a field and read it as Perl code. Would that be a way to do it?
The same way you're doing it now with Storable and a file. But instead of reading a file you read a database field.
-- Michael Peters Plus Three, LP