Skilirium

Recognises a hierarchy encoded redundantly

K-608 · Skill knobit · Activity: Design the physical data model · Competence: Data modelling

A recursive relationship stored as a path string or nested-set numbers. The structure is held many times over, moving one node rewrites all its descendants, and no foreign key checks the encoding. A specific form of row 3.

Can AI do this?

Not tested yet

No AI benchmark covers this knobit yet. New results are announced in the Can AI Do the Job? newsletter.

What it looks like in practice

Expected result: The encoding and what keeps it consistent

How it is assessed: Flags the deficient case and passes the acceptable one. Deficient: branch.path = '/1/4/17/' with no foreign key on the parts; moving branch 4 under another region rewrites every row below it, and a mistyped path loads Acceptable: parent_branch_id with a foreign key as the system of record; a path, nested set or closure table only as a derived structure with derivation and a DQ rule. A closure table has foreign keys on both columns

Also known as: Hierarchy encoded redundantly (physical model)

Related knobits

Builds on

All 40 knobits of Design the physical data model.

Source: Review checklist 06-physical, row 8; Karwin, Naive Trees; S&W 12.6; Codd 1971