[OSM-dev] new planet.rb and planet2mysql.rb

SteveC steve at asklater.com
Fri Aug 4 01:14:13 BST 2006


* @ 04/08/06 01:11:12 AM tpe at ida.liu.se wrote:
> SteveC <steve at asklater.com> writes:
> 
> > It doesn't look like it checks whether a segments nodes are visible?
> > 
> > Yes, the db is inconsistant and when you delete a node it should delete
> > its segments. But it doesn't.
> 
> Should it really?  I would expect that the deletion of a node should
> fail if the segments contaning the node is not deleted first.  In that
> way you guard somewhat against mistakes and buggy code.

Either way, it's performing extra db lookups on delete. The scheme you
outline is what I'll aim for with the rails-base OSM I think.

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the dev mailing list