<div class="gmail_quote"><div>[cross posting from MS4W ml]</div><div><br></div><div>I'm working on a Windows 7 machine with PostGIS 1.5 on Postgresql 8.4, with no tuning (default configuration).</div></div><div class="gmail_quote">
<br></div><div class="gmail_quote">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" target="_blank">http://www.giovanniallegri.it/share/mspglog.txt</a></div>

<div><br></div><div>I obtain the same performances with ms4w 3.0.6(MapServer MapScript to 6.0.3) and 3.0.4_dev (MapServer and MapScript 6.1-dev), which </div><div>PostGIS is 1.5 on Postgresql 8.4, with no customized options.</div>
<div>I'm working on a Windows 7 machine, but the work should be deployed on a Windows Server 2003.</div>
<div><br></div><div>I'm not using connection pooling, but I was facing similar performances before disabling it.</div><div>giovanni</div>
</div><br>