Re: reads which modify data
Klaus Wuestefeld <[email protected]>
| Newsgroups | gmane.comp.java.prevayler |
|---|---|
| Message-ID | <[email protected]> |
Stop thinking in terms of "reads which modify data" and think about it
as "lazy evaluation", which is perfectly ok. Something like this:
Object executeQuery(Date executionTime) {
synchronized (_system) {
if (!isStateUpdatedTo(executionTime))
updateStateWithReallyComplexAndPseudoRandomRulesTo(executionTime);
}
return queryStateWhatever();
}
See you, Klaus.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org