in reply to Re: Saving big blessed hashes to disk
in thread Saving big blessed hashes to disk

...20-40 requests per second from users, and each of these requests will make 10-30 requests to some db..
200-1200 for now, and will grow even more in nearest future.

Sure, mysql is a good thing. But it just can't resolve my situation (tested already).

Why to keep data in DB/files if it's stand alone application? The question for which I'm seeking answer is "how to get this data from application and store to disk/db/other memory".

Thanks anyway. Got know some new information after reading :)

  • Comment on Re^2: Saving big blessed hashes to disk

Replies are listed 'Best First'.
Re^3: Saving big blessed hashes to disk
by lwknet (Initiate) on Jul 25, 2005 at 20:23 UTC
    you said its a stand alone app, if it is your own writeen server daemon or any kind of daemonized app, it is easier to "get away" with your considered slow mysql than CGI/mod_perl rely on apache. sharing variables in perl ithreads is pretty easy, look for "threads", "Thread::shared" modules from cpan. remember variables in perl never get cleaned even after undef/delete, so, use hashes with care