E
E
EVOSandru62017-08-22 10:47:19
Yii
EVOSandru6, 2017-08-22 10:47:19

How to organize a rapidly growing hierarchical table?

Good afternoon,
Please tell me - how would you organize the structure of a table with hierarchical comments? In fact, the table does not store comments, but in my opinion this is the most successful example.
I'm considering several options. Nested Set (loss when writing and updating - overwriting extreme keys) and
adjacency-list (recursion when building descendants-ancestors) A rather robust data growth rate is implied.
I also considered Nested Set using several trees in one table. But I don't know how it will affect performance.
Are there similar solutions for Yii2 (behaviors). Does n't mean NestedSetBehaviorin its purest form, and the behavior is based on the correct decision of the structure and storage about my question.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2017-08-22
@longclaps

Postgres ltree
Search by speed like Nested Set, modification is faster.

F
Fortop, 2017-08-22
@Fortop

demiurg.livejournal.com/53125.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question