, . , PARENT_ID lft/rght, ( ).
Dole . _ .
. , join_products , . , Dole , . , dole . dole.
Using this structure, returning all elements from any category is easy and fast, with only one request. You cannot do this in the PARENT_ID approach (unless you are hard-coded for parents, grandchildren, etc.) Adding a category is easy. Product categorization requires the insertion of several rows in the connection table. Deleting and moving categories is a bit more complicated.
source
share