[OSM-dev] Data corruption :) II

Stefan de Konink stefan at konink.de
Wed Nov 26 12:10:51 GMT 2008


On Wed, 26 Nov 2008, Matt Amos wrote:

> On Wed, Nov 26, 2008 at 7:54 AM, Stefan de Konink <stefan at konink.de> wrote:
> > Then let me even get a better proposal; A second machines will be
> > installed that has enforced foreign keys. This second machine will produce
> > the planet. And will directly trigger events upon corruption so the main
> > API doesn't need to cope with them until 0.6.
>
> it is worth noting that foreign keys and transactions alone will
> drastically reduce the number of problems, but may not solve them
> entirely. the foreign key from current_way_nodes to current_ways and
> current_nodes only ensures that those nodes have existed. the
> current_* table stores (as the name suggests) the current state of
> entities. that state may be "deleted".

The visible= aspect breaks SQL, and its good features. That was a thing I
have also observed and basically, my `workaround' for it is only storing
the `real' current nodes opposed to deleted onces, that are obviously not
current anymore.


Stefan





More information about the dev mailing list