<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 9 Apr 2010, at 17:22, Klemens wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
<font face="Calibri">Hi,<br>
I set up a rails_port on a new server using PostgreSQL 8.3 and imported
the europe.osm data. Now exporting xml using the 0.6 API is really
slow. Exporting a file of about 3.2 MB takes 25 seconds. In the
development.log file I get lines like this:<br>
[2010-04-09 18:11:21.569386 #27182] Completed in 16270ms (View: 5, DB:
1498) | 200 OK <br>
What other components could influence the time? I'm using development
environment but changed the settings in development.rb to the same as
in production.rb<br></font></div></blockquote><div><br></div><div>You shouldn't change the settings in development.rb to the same as productions.rb. Instead startup in production mode: </div><div>env RAILS_ENV=production ./script/server</div><div>You will need to set the config/database.yml as appropriate.</div><div><br></div><div>I presume you are talking about the map call. You will find it is really slow compared to production. You will find that the C based exporter is much faster.</div><div><a href="http://trac.openstreetmap.org/browser/applications/utils/export/cgimap">http://trac.openstreetmap.org/browser/applications/utils/export/cgimap</a></div><div><br></div><div>Shaun</div><div><br></div></div></body></html>