[mapserver-users] MS7 wfs
Even Rouault
even.rouault at spatialys.com
Thu Mar 12 13:57:38 PDT 2015
Selon Steve.Toutant at inspq.qc.ca:
> hello
> Using mapserver 7 I make this request to get the number of features in a
> WFS layer. it returns numberOfFeatures="450361"
>
http://localhost/cgi-bin/ms7?version=1.1.0&request=getfeature&service=wfs&typename=feature:aqreseau&resultType=hits
>
> this layer is a postgis table on localhost.
> This request takes 18 seconds to run with mapserver 7
> in postgis select count(*) from table takes 61ms to run
> the same request using a geoserver WFS takes less than 1 second
>
> Is there something that can be done with MS7 to improve performance?
Not really unfortunately. Efficient count is something that should be
implemented. Currently it basically retrieves each individual feature and
iterates over them. So it takes nearly as much as time as getting the full
features.
> thanks
>
>
>
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the MapServer-users
mailing list