google-code-export / django-mptt

Automatically exported from code.google.com/p/django-mptt
Other
0 stars 0 forks source link

Defer update of mptt fields (left/right/tree/level) until a batch of changes have been made #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using django-mptt to manage the hierarchy of an ecommerce site with a 
lot of products.

We regularly sync large batches of products from another systems to the web 
database and these syncs can include a lot of changes to the category tree.

What would be good is if there was a way to add/update/delete the tree 
without modifying the mptt fields then to do all the mptt changes once at 
the end.

Would the easiest way to just use the default manager to add new nodes, 
then to rebuild the tree using the custom method? It would be nice if there 
was a standard way of doing this.

Original issue reported on code.google.com by AndrewOf...@gmail.com on 25 Feb 2009 at 10:09

GoogleCodeExporter commented 9 years ago
Is there still interest in this? It's been a while.

We now have model.tree.rebuild(), so we're part of the way there.

Original comment by craig.ds@gmail.com on 2 Sep 2010 at 12:27

GoogleCodeExporter commented 9 years ago
Issue 29 has been merged into this issue.

Original comment by craig.ds@gmail.com on 20 Sep 2010 at 10:34

GoogleCodeExporter commented 9 years ago
Migrated to https://github.com/django-mptt/django-mptt/issues/#issue/69

Original comment by craig.ds@gmail.com on 19 Dec 2010 at 1:07