Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: perl create database with folder system (Tree in SQL) (edit)

by LanX (Saint)
on Dec 02, 2017 at 15:36 UTC ( [id://1204746]=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl create database with folder system (Tree in SQL)
in thread perl create database with folder system

I think imposing order into numerical ° IDs works only for static structures.

If the max depth is fixed I can easily create a performant view where each column represents a level.

SQL views on self joins are even updatetable in mysql.

edit

Of course there are attempts to use a path like strings as ID, ie 0_1 would be a parent of 0_1_15 , but this becomes a can of worms if you need to move branches ...

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

°) integers to be more precise

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found