by cuddlyogre · 2y ago · 0 comments
Making any changes to the order or grouping is wrought with peril because you never know if everything is going to be updated properly. When it isn't, it's an ordeal to correct.
Having a parent id and sort order is straightforward and about as simple as it gets. I really don't see why you'd need to do it any other way outside of a thought experiment.
Indeed - you're absolutely right.
Not sure if the comment I responded to was edited to add the parent node after my post or if I just overlooked it, but I should have quoted that I was just referring to the left and right siblings (i.e. two linked lists):
> an old cms that stores the id of the ... left sibling, and right sibling.
Use a transaction.