[OSM-dev] [OSM-talk] Handling of towns with different or alternative names
Tom Hughes
tom at compton.nu
Wed Jan 28 00:30:01 GMT 2009
Simon Ward wrote:
> Ok, pulling up the wiki page on API 0.6[1] I see that the plan is “to
> create an unique index on the combination of object id and tag key”.
> Presumably this is mainly for performance. An index doesn’t have to be
> unique though—is this a limitation of MySQL or is there some other
> reason to enforce uniqueness?
The main reason is that rails works much better if all objects have
unique primary keys.
In practice keys are unique because although the API has never enforced
uniqueness pretty much every client does because all the clients use a
hash table of some sort to store tags.
Tom
--
Tom Hughes (tom at compton.nu)
http://www.compton.nu/
More information about the dev
mailing list