|
Kewl thanks for your input, i guessed the integer
would of been the smarter pick, as for indexing purposes alone it would have to
have been faster. I just noted in some higher-end applications i have seen that
they have used UUID which left me thinking maybe they aren't as bad as i
thought.
But..
I was however thinking of maybe another
solution?
What if i assign the ID as:
#DateFormat(Now(),'yyyymmdd')# +
#TimeFormat(Now(),'hhmmss')# + #RandRange(1,999)#
Would Would Give me:
20030122947339999
I guess its still a very large integer, but i don't
anticipate the database or the tables in question having approx 1-999 people
inserting information into the database on that split second, so in a way its
very unique?
I Guess what i am trying to do is basically make
sure that in any given table the same ID doesn't exist throughout the db, so
they are all individual rows
(I have thought of just using a table, as a "pool"
and just keep incrementing as i go, which is still an ok solution i guess; just
requires one more query before the insertion)
Scott.
--- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
- [cfaussie] Re: UUID vs Integer with Primary keys.. Mark Lynch
- [cfaussie] Re: UUID vs Integer with Primary keys.. Toby Tremayne
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
- [cfaussie] Re: UUID vs Integer with Primary keys.. Viktor . Radnai
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
- [cfaussie] Re: UUID vs Integer with Primary keys.. Scott Barnes
- [cfaussie] Re: UUID vs Integer with Primary keys.. James Silva
- [cfaussie] Re: UUID vs Integer with Primary keys.. John Reed
- [cfaussie] Re: UUID vs Integer with Primary keys.. Scott Barnes
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
- [cfaussie] Re: UUID vs Integer with Primary keys.. Grant Straker
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
- [cfaussie] Re: UUID vs Integer with Primary keys.. Trent Shepherd
- [cfaussie] Re: UUID vs Integer with Primary keys.. Mark Stanton
- [cfaussie] Re: UUID vs Integer with Primary keys.. taco
