|
Steve,
Let me see if I understand your idea:
- The tables would have two id fields, ond which is
an UUID, the other an auto number int (intID).
- Whenever a record is inserted, a new UUID and
intID are created.
- When updating records, user could choose either
the UUID or the intID.
- When exporting, importing, off-line batch
updating etc, the UUID would be used, and the intID is ignored.
- For collection gets, query sums and other db
statements, and and in system database joins, ths intID would be
used.
Am I getting this right ?
I'm considering to give it a try for the new
version of our CMS, the idea of having two IDs seems an overrun at first,
but I guess the
extra coding worth for flexibility and performance.
One question, how would you index the database
columns ? Would you use the intID, UUID or both as indexes ?
Regards.
Marcantonio
Silva
|
- Re: [CFCDev] GUIDs as Primary/Foreign Keys Marcantonio Silva
- [CFCDev] Form Variable Storage John Kellum
- RE: [CFCDev] Form Variable Storage Raymond Camden
- RE: [CFCDev] GUIDs as Primary/Foreign Keys Dawson, Michael
