<br><font size=2 face="sans-serif">Thanks Alan, I didn't know that.</font>
<br><font size=2 face="sans-serif">Steve</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction de la santé environnementale et de la toxicologie<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alan Boudreault &lt;aboudreault@mapgears.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">08/12/2009 09:39 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca, Daniel Morissette
&lt;dmorissette@mapgears.com&gt;, mapserver-users-bounces@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] Layer based on
a view renders faster than &nbsp; &nbsp; &nbsp; &nbsp; if &nbsp;
&nbsp; &nbsp; &nbsp;based on a table</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Steve, Have you put the &quot;DEBUG 5&quot; directive
at the layer level too ?<br>
<br>
Alan<br>
<br>
On December 8, 2009 09:36:27 am Steve.Toutant@inspq.qc.ca wrote:<br>
&gt; Daniel,<br>
&gt; I already set this in the mapfile<br>
&gt; &nbsp; DEBUG 5<br>
&gt; &nbsp; CONFIG MS_ERRORFILE &quot;/ms4w/logs/mapserver.log&quot;<br>
&gt; <br>
&gt; I don't get the SQL query in the log though.<br>
&gt; <br>
&gt; [Tue Dec 08 09:33:56 2009].961000 msDrawMap(): Layer 17 (RSSincidCumul),<br>
&gt; 0.390s<br>
&gt; [Tue Dec 08 09:33:56 2009].992000 msDrawMap(): Drawing Label Cache,
0.031s<br>
&gt; [Tue Dec 08 09:33:56 2009].992000 msDrawMap() total time: 0.421s<br>
&gt; [Tue Dec 08 09:33:57 2009].8000 msSaveImage() total time: 0.016s<br>
&gt; [Tue Dec 08 09:33:57 2009].24000 mapserv request processing time<br>
&gt; (msLoadMap not incl.): 0.453s<br>
&gt; [Tue Dec 08 09:33:57 2009].24000 msFreeMap(): freeing map at 01516C50.<br>
&gt; <br>
&gt; Steve Toutant, M. Sc.<br>
&gt; Analyste en géomatique<br>
&gt; Secteur environnement<br>
&gt; Direction de la santé environnementale et de la toxicologie<br>
&gt; Institut national de santé publique du Québec<br>
&gt; 945, avenue Wolfe<br>
&gt; Québec, Qc G1V 5B3<br>
&gt; Tél.: (418) 650-5115 #5281<br>
&gt; Fax.: (418) 654-3144<br>
&gt; steve.toutant@inspq.qc.ca<br>
&gt; http://www.inspq.qc.ca<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; Daniel Morissette &lt;dmorissette@mapgears.com&gt;@lists.osgeo.org<br>
&gt; Envoyé par : mapserver-users-bounces@lists.osgeo.org<br>
&gt; 04/12/2009 05:05 PM<br>
&gt; <br>
&gt; A<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; cc<br>
&gt; <br>
&gt; Objet<br>
&gt; Re: [mapserver-users] Layer based on a view renders faster than if
based<br>
&gt; on a table<br>
&gt; <br>
&gt; Steve.Toutant@inspq.qc.ca wrote:<br>
&gt; &gt; I thought that a layer definition based on a table would be much
faster<br>
&gt; &gt; than on a view.<br>
&gt; &gt; What should be the expected behavior please?<br>
&gt; &gt;<br>
&gt; &gt; Please tell me is this should be asked to postgis forum.<br>
&gt; <br>
&gt; I'd suggest you capture the exact SQL query that is run in each case<br>
&gt; (using DEBUG/MS_ERRORFILE) and check that the difference in time indeed<br>
&gt; comes form the PostGIS queries.<br>
&gt; <br>
&gt; If that's the case then you could submit a question to the postgis
list<br>
&gt; based on that, taking MapServer out of the equation.<br>
&gt; <br>
&gt; If on the other hand the queries take about the same time and the
time<br>
&gt; difference is in MapServer's code (which I doubt) then we'd need more<br>
&gt; details (ideally a testcase) to be able to reproduce and troubleshoot<br>
&gt; the issue.<br>
&gt; <br>
&gt; Daniel<br>
&gt; <br>
<br>
-- <br>
Alan Boudreault<br>
Mapgears<br>
http://www.mapgears.com<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>