You should note that if you want to store your own IDs in the Palm record header that:
(1) Current Palm record IDs are 24-bit, non-zero numbers, NOT 32 bit numbers. (2) This is subject to change. The only speed savings attained by puting IDs in the header is in finding records by IDs. However, dmFindRecordByID uses a top down linear search, thus is (for large DBs) pretty much pig slow anyway... -bob mckenzie, palmsource pdx -----Original Message----- From: Matt Hebley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:01 PM To: Palm Developer Forum Subject: Re: Uniqueness of UniqueIDs? The problem as I understand it is the uniqueness of the IDs, i.e. that the ID generator seeds are not maintained. If you are going to manage your own ID generation, you can still use the Palm record header ID memory to store your IDs rather than inside the records, then there is no speed hit. Matt ----- Original Message ----- From: "Sean Kennedy" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, August 15, 2002 10:20 AM Subject: Re: Uniqueness of UniqueIDs? > I have looked at all the links provided in this thread. I think that > this is an issue that Palm should clear up. If unique IDs really are > not guaranteed to be constant and unique, I am not sure what the > point of them are. > > The consensus seems to be that it is very very unlikely to run into a > duplicate unique ID or have a unique ID of a record change on you. > But apparently it can happen in some rare situations where there has > been a hard reset and a software restore. > > Since using a custom written "Unique ID" system is most likely going > to be slower, I have decided to both stick with Palm's unique ID > system and write my own. I will tag each record with my own unique > ID. However, until I run into any problem with Palm's unique ID > system, I am going to have my unique ID system remain dormant. If a > problem results, I will essentially be able to flip a switch and > start using my own unique IDs instead of Palm's built in unique IDs. > > Does anyone have any thoughts on this? > > -Sean Kennedy > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
