After upgrading to GeoServer 2.3.3 (from version 2.1.1) a GetFeature request is taking several minutes to complete. When using version 2.1.1 the same request took 300-500ms which is already a little bit slow (definitely for our use case). Certainly if you compare with the time needed to render a map, which is lightning fast!
I have monitored the queries that were executed and in the 2.3.3 version it’s a complete other query (using paging). I have no idea why.
2.3.3 query (which takes 23 seconds to execute on sql server 2008):
SELECT *
FROM (SELECT “MI_Id”,“GeoNode”.STAsBinary() as “GeoNode”,“node_type”,“owner”,“system_type”,“asset_id”,“MI_Style”,“uid”,“user_text_3”, ROW_NUMBER() OVER (ORDER BY CURRENT_TIMESTAMP) AS _GT_ROW_NUMBER
FROM “dbo”.“ViewIPUT”
WHERE “GeoNode”.Filter(geometry::STGeomFromText(‘POLYGON ((151985.91214561 211273.46959495, 151985.91214561 211283.84555244, 151996.2881031 211283.84555244, 151996.2881031 211273.46959495, 151985.91214561 211273.46959495))’, 31370)) = 1
) AS _GT_PAGING_SUBQUERY
WHERE _GT_ROW_NUMBER <= 10
2.1.1 query (which takes <30ms to execute):
SELECT “MI_Id”,CAST(“GeoNode”.STSrid as VARCHAR) + ‘:’ + “GeoNode”.STAsText() as “GeoNode”,“node_type”,“owner”,“system_type”,“asset_id”,“MI_Style”,“uid”,“user_text_3”
FROM “dbo”.“ViewIPUT”
WHERE “GeoNode”.Filter(geometry::STGeomFromText(‘POLYGON ((150397.35305405 211179.04838181, 150397.35305405 211199.80029678, 150418.10496902 211199.80029678, 150418.10496902 211179.04838181, 150397.35305405 211179.04838181))’, 31370)) = 1
Is it possible to disable paging? Or increase performance? Maybe I did something wrong when upgrading to this version? Although I did nothing more than just copying the data directory from the 2.1.1 version to the 2.3.3 version.
Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN
Disclaimer: zie www.aquafin.be P Denk aan het milieu. Druk deze mail niet onnodig af.