<div class="gmail_quote">On Thu, Mar 25, 2010 at 3:42 AM, Florian Lohoff <span dir="ltr"><<a href="mailto:f@zz.de">f@zz.de</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;">
On Tue, Mar 23, 2010 at 01:30:04PM +0100, Peter Körner wrote:<br>
> Hi<br>
><br>
> On the osm dev-server we're playing around with the postgres-hstore<br>
> extension which allows us to repond to xapi-like queries, but with<br>
> already assembled LIESTRINGs and such neat things.<br>
<br>
Which is not per se a feature of hstore ... hstore is just another<br>
data type which is neat because it fits into the OSM model concerning<br>
tags ...<br>
<br>
I am currently building most of my applications around the osmosis<br>
db schema but the split into node and node_tags and way and way_tags<br>
is - hum - not very efficient.<br></blockquote><div><br>The current schema is fairly naive in its implementation.  I hadn't heard of hstore when implementing it.  Perhaps the current schema needs an upgrade :-)<br><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
This is why i would be interested in some tools to import a planet/sub extract<br>
into a more efficient db scheme which still allows to store all details<br>
of the osm planet (which osm2pgsql does not) but is more efficient<br>
concerning spatial queries.<br>
<br>
E.g. i'd like to drop way_tags and put them into a hstore tags column in the<br>
way table and then cluster the way table with the geom index on the linestring<br>
for example.<br>
<br>
Does anyone have speed/place comparisons?<br></blockquote></div><br>