3 ms·
materialized path seems really bad for add/delete/inserts.
by ape4 11y ago
materialized path seems really bad for add/delete/inserts.
- noir_lord 11y agoEvery approach has trade offs I guess. This one looks simpler than using Nested Sets which is a plus, if you have a seldom changing tree with lots of reads then this approach is probably a good one.
- netghost 11y agoAdds and deletes are pretty cheap. Inserts can be expensive if you need to re-number the following nodes. Depends on if you're concerned with ordering as well as parentage.