<div dir="ltr">On Wed, Oct 8, 2008 at 9:35 PM, Stefan de Konink <span dir="ltr"><<a href="mailto:stefan@konink.de">stefan@konink.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="Ih2E3d"><br>
</div>No way! The database[1] uses indexing under the hood automatically. So<br>
every created_by k or JOSM v is automatically indexed. This gives a<br>
significant space reduction plus fast lookup.<br>
<br>
Next to that it is very easy now to do lookups like done in OSMXAPI,<br>
which I wrote my own implementation for.<br>
<br>
</blockquote><div><br>So you do want to use tag lookups. Ok, just add an extra numeric value to your primary key of {wayid,k} so that it looks like {wayid,k,number}. When you insert, look for duplicate tag keys and change the "number" when you find a duplicate. <br>
</div></div><br></div>