geekondemand has asked for the wisdom of the Perl Monks concerning the following question:
My task master has requested that for each client of a web system I am building that we stash (key, value) pairs that are stored in a relational database (Postgres in this case) in Perl modules that can simply be use-d.
When values change in the table, the Perl modules would need to be regenerated.
There are roughly 100 pairs and perhaps five to ten are needed by each script in the system.
This seems unnatural to me because:
All the scripts need to connect to the RDBMS for other functionality and it seems that the cost of retrieving the config from the table each time as opposed to reading the module is only a few thousandths of a second.
Has anyone worked with a scenario like this? Please shed the bright light of your wisdom on the darkness of my situation!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stashing DB Key/Value Pairs in Perl Modules
by Tanktalus (Canon) on Apr 21, 2005 at 21:53 UTC | |
|
Re: Stashing DB Key/Value Pairs in Perl Modules
by mpeters (Chaplain) on Apr 22, 2005 at 00:09 UTC | |
|
Re: Stashing DB Key/Value Pairs in Perl Modules
by 5mi11er (Deacon) on Apr 21, 2005 at 21:06 UTC |