[Geoserver-users] DataStore - Query Delay.

Hello,

I implemented a GeoServer datastore, which fetches an XML structure from a URL. When executing a WFS GetFeature request I get a surprisingly constant delay of 6 seconds.

I'm parsing the XML with JDOM (the XML doc is small and flat). Is JDOM the only reason for making the query process slow or could you imagine e.g. a GeoServer timer or something similar, which blocks the transaction?

Thank you very much,
Bernd.

Bernd Resch ha scritto:

Hello,

I implemented a GeoServer datastore, which fetches an XML structure from a URL. When executing a WFS GetFeature request I get a surprisingly constant delay of 6 seconds.

I'm parsing the XML with JDOM (the XML doc is small and flat). Is JDOM the only reason for making the query process slow or could you imagine e.g. a GeoServer timer or something similar, which blocks the transaction?

Hum no, afaik we don't have any delay in GeoServer (we'd like it to go
fast, not slow :wink: ). Yet, parsing with jdom is expensive and it's
probably reaching for schemas or dtd that are referenced by the
document, if they are on the internet that may justify the wait you're
seeing.

GeoServer internal parser, based on a completely different technology
stack, caches the schemas so we have a wait for schema gathering
and parsing only on the first access.

I'd suggest you try to use your own datastore stand alone and see
if you can reproduce the slowdown, otherwise grab a profiler
(for example a YourKit demo) and see where those 6 seconds are spent.

Cheers
Andrea