[udig-devel] Re: Réf. : Re: [Geotools-gt2-users] Poor performance =?ISO-8859-1?Q?_using_Filter_with shapefile=2E=2E=2E?=
Andrea Aime
andrea.aime at alice.it
Thu Sep 21 09:22:15 PDT 2006
sebastien.piau at ingencys.net ha scritto:
> Andrea (and everybody),
>
> Thanks for this response.
>
> Be sure I've tried this test not on one single line, but on thousands...
> To be more precise, i've made this bench on a task which take up to 2
> minutes based on shapefile and only 2 seconds with in memory data
> (really, it isn't a joke!)
I do believe you. Disk access is usually 1000 times slower, and even when
the shapefile is in the file cache, there are still all the decodes needed
to turn shapefile data structures into features, and memory data store does
not need to do anything of these...
> But to be more exact, i am disapoint that I have to clone my shapefile
> into an "in memory" layer myself and i am not sure to use the right way.
> I think our famous Udig's mainteners have something else to do that ;o)
Fact is, udig is geared towards data sets that cannot be loaded into memory
at all because they are too big. I think they took into consideration the
idea of preloading data into memory, but it's hard to make it right, because
on jdbc or wfs data stores data can change under your feet without you noticing
(not all data stores support event notifications for data changes afaik, but
I may be mistaken).
Cheers
Andrea Aime
More information about the udig-devel
mailing list