Better HN
topnewbestaskshowjobs
Log inSign up

berendka

7 karma · joined Jul 22, 2022 (4y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

Wait, can you now do QWOP with real human body parts as input and ... finally run? that would be so full circle!

comment 4y ago · link · parent

Nested Sets

https://en.wikipedia.org/wiki/Nested_set_model

You can ust to store tree structures in relational databases for faster querying stuff like "all nodes below node x", "How many nodes to the top node" and so on.

Querying is easy, but comes at the cost that changes like inserting and deleting are more expensive.

I used this for an auth service with roles, user and org units. pretty query heavy, worked very well.