account_tree

Tree Persistence Explorer

Relational vs. Document Strategies

Adjacency List

The most common pattern. Each row contains a pointer to its parent.

check Simpleclose Deep Reads Hard

account_tree Logical Structure

Interactive
1
Electronics
2
Computers
6
Cameras
7
Phones
3
Laptops
4
Desktops
8
Smart
9
Feature
10
Rotary
5
Towers
Regular Node
Selected / Result

database Table: Categories

READ-ONLY
idnameparent_id
1 "Electronics" NULL
2 "Computers" 1
3 "Laptops" 2
4 "Desktops" 2
5 "Towers" 4
6 "Cameras" 1
7 "Phones" 1
8 "Smart" 7
9 "Feature" 7
10 "Rotary" 7

Operation Simulation

code
Select an operation above to see the query logic.