Hi folks,

the attachted (svn-)patch adds a preload feature to the DatabaseConfiguration 
class.

I added (for backwards compatibility) a third constructor with a preloadData 
boolean variable. If this variable is set to true, all configuration data is 
read in one step and then cached in a local Map.

This is more performant (and more database gentle) because all following 
operations (getProperty(), getKeys(), ...) are done on the local Map (but 
kept in sync with the database, if it is a write access).

I'd be happy if you apply it to the trunk.


Best,
Oliver

Attachment: dbpreload.txt.gz
Description: GNU Zip compressed data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to