in reply to Re^2: The State of Parallel Computing in perl 2007?
in thread The State of Parallel Computing in perl 2007?
A common use case is to cache the results of an SQL query. I use the query as the cache key and the value is the result set from the query. I check the cache to see if the dataset is there. If it is, I get it from the cache. If it isn't, I run the SQL and put the results in the cache. This provides me with a huge speedup.
If the data in the database gets updated, I flush the cache and start again. This is not a problem for parts of my application, so those are the parts where I use memcached. Instead of storing lot of data in a perl data structure in mod_perl program and counting on the copy-on-write mechanism to save RAM, I use memcached.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: The State of Parallel Computing in perl 2007?
by perrin (Chancellor) on Jan 24, 2007 at 14:54 UTC |