<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I have a layer that renders faster when
DATA is defined on a view than on a table with a clustered index.</font>
<br>
<br><font size=2 face="sans-serif">Here is the layer definition</font>
<br><font size=2 face="sans-serif">&nbsp; CONNECTIONTYPE postgis</font>
<br><font size=2 face="sans-serif">&nbsp; CONNECTION &quot;host=xxxx dbname=xx
user=xx password=xx port=5432&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; DATA &quot;geom900913 FROM prevalence
using unique id using srid=900913&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; PROJECTION</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &quot;init=epsg:900913&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; END</font>
<br>
<br><font size=2 face="sans-serif">My MAP projection is also 900913</font>
<br>
<br><font size=2 face="sans-serif">If prevalence is a</font>
<br><font size=2 face="sans-serif">Postgis View: 0.469s (2.6 seconds in
OpenLayers)</font>
<br><font size=2 face="sans-serif">Postgis table: 0.781s (3.6 seconds in
OpenLayers)</font>
<br><font size=2 face="sans-serif">Postgis table+index+cluster: 0.782s
( 3.4 seconds &nbsp;in OpenLayers)</font>
<br>
<br><font size=2 face="sans-serif">I thought that a layer definition based
on a table would be much faster than on a view.</font>
<br><font size=2 face="sans-serif">What should be the expected behavior
please?</font>
<br>
<br><font size=2 face="sans-serif">Please tell me is this should be asked
to postgis forum.</font>
<br>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br>
<p>