I'm facing very bad performances when accessing a polygonal layer on PostGIS.
<div>The layer is not that heavy and complex. It is made by 20 polygons with about 4000 to 56000 vertices.</div><div><br></div><div>The raw query (SELECT the_geom FROM mytable), performed through the psql console, fetches the results in about 185 ms.</div>
<div>Logging the layer with DEBUG 5 shows that iterating over the features takes about 7.5 s.</div><div>The time between consecutive msPostGISLayerNextShape calls is about 0.3/0.4 s.</div><div>Here is the log file: <a href="http://www.giovanniallegri.it/share/mspglog.txt">http://www.giovanniallegri.it/share/mspglog.txt</a></div>
<div><br></div><div>The sime times happen with ms4w 3.0.6 and 3.0.4_dev.</div><div>PostGIS is 1.5 on Postgresql 8.4, with no customized options.</div><div>I&#39;m working on a Windows 7 machine, but the work should be deployed on a Windows Server 2003.</div>
<div><br></div><div>I&#39;m not using connection pooling, but I was facing similar performances before disabling it.</div><div>giovanni</div>