On Sat, Nov 6, 2010 at 7:03 AM, Jody Garnett <[email protected]> wrote:
> Thinking out load here .
>
> We have created utility classes for a couple far reaching datastore concepts 
> that would otherwise be hard to implement:
> - we have a locking manager so datastores can manage "wfs style" locks as a 
> wrapper around feature writer access (and do spot checks for any other 
> writing).
> - we have a "diff map" that can hold any edits in memory (and once again 
> operate as a wrapper around feature reader and feature writer access
>
> Could we present a "Caching" utility class that datastore implementors could 
> lean on?

Caching seems to me a perfectly orthogonal concern to normal data
retrieval. All the things we've pushed into the
datastore are there because the store often has a chance to do it
better than separe, in memory code (think
filtering, attribute selection).

But caching... I don't see how that could be made better by a store
than a wrapper. If there is no good reason to
push it in, a wrapping store that adds caching should serve us the best.
It's just that the current caching datastore performance is
disappointing, so it is of some use only if you are using
an alrady very slow data source (think WFS).

The only hook that datastores could provide is some notification that
data changed on the server side, which
I think we have in terms of feature source listeners (and provide
other pluggable ways so that we can
listen to geosynch style rss feeds as well).

Cheers
Andrea

-----------------------------------------------------
Ing. Andrea Aime
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584962313
fax:     +39 0584962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-----------------------------------------------------

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to