S
S
Sergey Petrov2020-06-25 18:46:31
MySQL
Sergey Petrov, 2020-06-25 18:46:31

What is the best way to store a tree in mySQL?

There is a task to store a binary tree (that is, each node has no more than 2 descendants). The tree can grow significantly. Hundreds of thousands of knots, probably millions. The user sees a small piece of the tree at a time, but the problem is that he must see how many children each tree node he sees has.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-06-25
@Curosio

Look for nested set it's universal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question