[Geoserver-devel] [JIRA] (GEOS-7296) Features fecthed from data source twice for WFS v1.1/2.0 queries

Alvaro created an issue

GeoServer / BugGEOS-7296

Features fecthed from data source twice for WFS v1.1/2.0 queries

Issue Type:

BugBug

Assignee:

Unassigned

Components:

WFS

Created:

05/Nov/15 1:12 AM

Environment:

Running GeoServer (master) in Eclipse IDE. Tests using shapefiles as data provider or any WFS request available in the demos panel.

Priority:

MediumMedium

Reporter:

Alvaro

The WFS requests of 1.1/2.0 versions force to read the features twice from the data source.

The GetFeature operation in these versions needs precalculate the size of results (See: https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/GetFeature.java#L318). It forces to read the features from the data provider (shapefiles) later (See: https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/GetFeature.java#L531).

Finally when the results are encoded the features are fetched again (See: https://github.com/geotools/geotools/blob/master/modules/extension/xsd/xsd-gml2/src/main/java/org/geotools/gml2/simple/FeatureCollectionEncoderDelegate.java#L101).

There is a performance duplication issue. This issue is especially problematic with big data sources or complex/heavy querys.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-08-005#70107-sha1:5fb2f7e)

Atlassian logo