Thanks for the tip Frederik,<div>I enabled Postgres logging and the SQL selects are quite fast (under 1000ms). I am guessing the load maybe on the tile rendering and tile cutting maybe.<br><br><div class="gmail_quote">On Wed, Jan 11, 2012 at 11:43 AM, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div class="im"><br>
<br>
On 01/11/2012 11:39 AM, Jason Lee wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ten seconds does sound quite slow and I was wondering what can be done<br>
to improve it. Just out of curiosity, I tried disabling all the 7 Layers<br>
except for 1 Layer in the Mapnik stylesheet, so the rendering requires a<br>
lot less db querying and map rendering<br>
</blockquote>
<br></div>
To get a definitve answer on how much time is spent in database processing, set log_min_duration_statement to 0 (default is -1 = disabled) in your postgresql.conf, kill -HUP the database, and re-run your request. You'll get durations for every single statement. It is very easy to overlook a performance killer here. If you find a statement that takes seconds, run an "explain" on it to make sure it uses an index, or create an appropriate index if it doesn't.<br>

<br>
Bye<span class="HOEnZb"><font color="#888888"><br>
Frederik<br>
<br>
-- <br>
Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org" target="_blank">frederik@remote.org</a>  ##  N49°00'09" E008°23'33"</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/dev" target="_blank">http://lists.openstreetmap.<u></u>org/listinfo/dev</a><br>
</div></div></blockquote></div><br></div>