On Fri, Oct 25, 2013 at 6:03 PM, Stefano Iacovella <
[email protected]> wrote:

>
> 2013/10/25 Andrea Aime <[email protected]>
>
>> It invalidates GeoServer one. The one managed by the stores is private,
>> no way to reach it and
>> drop it. Different stores do it in a different way, some do not have it
>> at all, but for JDBC ones
>> it is crucial, because of the high cost in figuring out the feature type
>> structure (many queries
>> to the DBMS are normally required)
>>
>
> So when I am removing the featuretype the store caches information about
> its structure just in case I would create it again in the near future, is
> it right?
>

Going to talk about the JDBC stores (spatial databases), since any store
handles this in a different way (as said, some do not
cache the structure at all).
The JDBC store caches the feature type the first time the structure of a
feature type is needed. There is no notion of "near feature"
in this case, the cached information is stored permanently


> And is it this behaviour not ovveridable by the calling method?
>

No. But even if there was a specific way for the JDBC stores, there is
another issue: GeoServer has no idea what
kind of store it's talking to.
So if we wanted to add a method, we would have to add it to the
DataAccess/DataStore interfaces, so that GeoServer
can drop eventual caches without having to know what kind of data backend
it's talking to.
Which, in turn, would require a proposal at the GeoTools level, and some
work in each and every store implemented
so far.
So possible, and could be useful too, but not exactly a couple of hours hack

Cheers
Andrea

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to