stefankroes/ancestry

Similar package golang?

HamzaAnis opened this issue · 3 comments

This is not an issue.

Is there any similar package like this one in Golang that anyone is aware of?

@HamzaAnis you can look for something that uses "materialized path" to implement trees. That is the search phrase that you want to use.

It will be newer, so hopefully it would take advantage of "LTrees", which is a way to encode the path that is more postgres friendly, and handles indexing better. I'm not as familiar with the tree technologies in mysql.

Alternatively, you can look for an implementation that leverages closure trees. Those use a join table to represent the tree structure.

best of luck

Thank you @kbrock