App-schema: get numberOfFeatures without executing the query
------------------------------------------------------------
Key: GEOT-3302
URL: http://jira.codehaus.org/browse/GEOT-3302
Project: GeoTools
Issue Type: Improvement
Components: core xml
Reporter: Rini Angreani
Assignee: Rini Angreani
To support streaming of features, GeoServer WFS writes the root element of a
response and then each feature as it is created. The root element requires a
numberOfFeatures element; because the number of features is not known,
GeoServer must get them all to count them. It then must get them all a second
time to encode them one by one. (Streaming is needed as not all responses will
fit in memory.) The consequence of the double query is that WFS responses take
twice as long. This is particularly bad for app-schema as it is already very
slow.
In practice, GeoServer streams features to disk first, so that an error
document can be returned if an error occurs. (This is a selectable output
strategy.)
In theory it should be possible to stream only the features to disk as an XML
fragment, then encode the root element on the fly when all the features have
been seen, meaning the numberOfFeatures is known, and only one query is
required.
This may require modification to Encoder, OutputStrategy, and OutputFormat
APIs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel