<div dir="ltr">Flo, if you're interested, I can give you an account on my SVN server for this code.<br><br>Or we could find a spot on the openstreetmap SVN...<br><br><div class="gmail_quote">On Mon, Sep 8, 2008 at 3:35 PM, Florian Lohoff <span dir="ltr"><<a href="mailto:flo@rfc822.org">flo@rfc822.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi,<br>
i tried around with the postgresql stuff as i like postgres more than<br>
mysql and made a ROMAv2 for postgres. Its completely different as it<br>
implements all of the logic in sql and selects data into temp tables<br>
to be able to stream out nodes, way and relations one after another.<br>
So memory usage vs disk io is handled in the database.<br>
<br>
The postgres variant is much faster when importing the planet. Its<br>
slower when querier cache hot but faster queried cache cold.<br>
The difference might be due to the pgsql version returning user names<br>
and timestamp informations so it adds cpu overhead.<br>
<br>
The URL to try with is here:<br>
<br>
<a href="http://tiles-two.lab.rfc822.org/api/0.5/map?bbox=" target="_blank">http://tiles-two.lab.rfc822.org/api/0.5/map?bbox=</a><br>
<br>
The biggest advantage though is that it seems not to have the obscure<br>
utf-8 bugs i have seen with the mysql. All output i had a look at looked<br>
clean - no strange ???? tags/values ...<br>
<br>
Code is here:<br>
<br>
<a href="http://tiles-two.lab.rfc822.org/%7Eflo/map-pgsql.cgi" target="_blank">http://tiles-two.lab.rfc822.org/~flo/map-pgsql.cgi</a><br>
<br>
Differences to the osmosis simple postgres schema is removal of the ways<br>
bbox as its a cpu time killer and an added btree index on way_id in<br>
ways. See the osmosis patch i send previously.<br>
<br>
BTW: Both ROMAs now have a check for the age of the planet in the db and<br>
return 503 in case the planet is older than 15 minutes.<br>
<br>
Flo<br>
<font color="#888888">--<br>
Florian Lohoff                  <a href="mailto:flo@rfc822.org">flo@rfc822.org</a>             +49-171-2280134<br>
        Those who would give up a little freedom to get a little<br>
          security shall soon have neither - Benjamin Franklin<br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
<br>
iD8DBQFIxYyHUaz2rXW+gJcRAjwlAKDfmLOWUn15AmCbulKcfsdQoHbUWgCeOZVv<br>
Qfr4HoN28xHDm45/vj+O1qk=<br>
=uWcH<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Tilesathome mailing list<br>
<a href="mailto:Tilesathome@openstreetmap.org">Tilesathome@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/tilesathome" target="_blank">http://lists.openstreetmap.org/listinfo/tilesathome</a><br>
<br></blockquote></div><br></div>