Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Key to use for files in db!

by SamCG (Hermit)
on Jan 18, 2006 at 20:02 UTC ( [id://524054]=note: print w/replies, xml ) Need Help??


in reply to Key to use for files in db!

Hmmm, looking at your problem, are you sure you want to use the path in the primary key at all? What happens if you move a set of files? Multiple updates on primary keys can be a pain...

I'd probably go with a unique number, something that I don't need to worry about updating, and then leave the path in a separate column(s).

Replies are listed 'Best First'.
Re^2: Key to use for files in db!
by Ace128 (Hermit) on Jan 20, 2006 at 21:27 UTC
    Yea, I have it like that now. The unique number is for other tables to use as a foreign key.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-18 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found