blogical has asked for the wisdom of the Perl Monks concerning the following question:
I'm also pre-loading any other relevant data from any called table in anticipation of it being requested (i.e., if I ask for the 'zipcode' I might also ask for the 'street' and 'town', which are on the same record, so get them all on the same DB call.) My records are fairly small, so this shouldn't eat up much memory that wouldn't have been used, and at best avoids several DB calls.
Or so my line of thought goes... but this is all fairly new to me. I can test performance now for an accurate current answer, but I expect the environment I'm running this in to change several times from here to later production use. I thought I'd see if any fellow monks might offer up insight into this area (or share their favorite resource links) so I can anticipate what the best practice might look like. Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To cache or not to cache
by perrin (Chancellor) on Mar 13, 2006 at 18:39 UTC | |
by diego_de_lima (Beadle) on Mar 15, 2006 at 20:35 UTC | |
by perrin (Chancellor) on Mar 15, 2006 at 21:19 UTC | |
|
Re: To cache or not to cache
by Tanktalus (Canon) on Mar 13, 2006 at 18:36 UTC | |
|
Re: To cache or not to cache
by philcrow (Priest) on Mar 13, 2006 at 16:36 UTC | |
by gloryhack (Deacon) on Mar 13, 2006 at 20:28 UTC | |
|
Re: To cache or not to cache
by kwaping (Priest) on Mar 13, 2006 at 17:41 UTC | |
by blogical (Pilgrim) on Mar 13, 2006 at 18:12 UTC |