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

Re^3: Generate a unique ID

by TheRatKing (Initiate)
on Nov 15, 2010 at 23:06 UTC ( #871604=note: print w/replies, xml ) Need Help??


in reply to Re^2: Generate a unique ID
in thread Generate a unique ID

Yes, I do check for collisions because I was also curious.

I'm not using an autoincrementing primary key because an autoincrementing primary key depends on the state of the table within a given database. My data sits in Google App Engine for production and sits in a postgresql database as the primary source for when I need to curate it. (Processing directly on G.A.E. costs more than transferring the difference periodically.)

Replies are listed 'Best First'.
Re^4: Generate a unique ID
by BrowserUk (Pope) on Nov 15, 2010 at 23:09 UTC
    Yes, I do check for collisions

    Could you describe how please?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://871604]
help
Chatterbox?
[marioroy]: Thank you Lady_Aleena. I've bookmarked the page.
[1nickt]: folks, would you say that 1.0 is an integer ?
[Lady_Aleena]: 1nickt, I wouldn't, but I'm not normal.
LanX aggrees, LA isn't normal ;-P
[Lady_Aleena]: LanX, thanks bunches.
[Lady_Aleena]: Rigth now I'm ranting in my head about an old subject.

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-05-24 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?