BertrandBordage / django-tree

Fast and easy tree structures.
BSD 3-Clause "New" or "Revised" License
88 stars 13 forks source link

Comparison with django-treenode? #7

Open jacobjove opened 8 months ago

jacobjove commented 8 months ago

I would be interested to see django-treenode included in the benchmarks. It is described as "probably the best abstract model/admin for your tree based stuff" and appears to be the most actively developed/maintained package for hierarchical data models.

BertrandBordage commented 8 months ago

I didn't know this library. If someone wants to do it, happy to have it in our docs :wink: I might do it one day, but… Don't really have a lot of time/resources for open source, nowadays :confused:

Apart from that, it's a bit sad to see that it uses the same Python-based approach than django-treebeard & django-mptt. So I guess broken trees every time we use bulk_create, bulk_update, raw SQL + multiprocessing issues. But what's great to see is that it contains a tn_parent foreign key and tn_order integer, meaning that a broken tree can be rebuilt without data loss :slightly_smiling_face: Something that is not always possible with django-treebeard Materialized Path :grimacing: