commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33553] - [configuration] Cache DatabaseConfiguration values for higher performance
Date Mon, 14 Feb 2005 14:48:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33553>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33553





------- Additional Comments From apache@thecoopers.ws  2005-02-14 15:48 -------
I'm working on a refresh approach like what is done for properties.  With that, then the cache
will 
always be at most x seconds older than the database, so my hope is that the querying the cache
will be 
sufficient.  What I might do is take and refactor out the real logic of isEmpty etc to the
strategey.  Have 
one strategy which always queries the database, one strategy which uses a cache and refreshes
etc.
The downside there is it kinda kills my idea of having a generic reloading strategy which
could be used 
for xml, properties files and database.  Perhaps that's just a pipe dream. :-)

As far as the finals go, that's something I always do with instance variables which are set
in the 
constructor and then never change.  It has two advantages:
1) compiler makes sure that I initialize the fields before use and
2) compiler can apply optimizations (inining, direct memory access etc.)
Also, with the default settings for checkstyle which I've kinda gotten ingrained in me now,
checkstyle 
recommends setting those puppies to final. :-)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message