|
I don't se any problem with the holes. Is it just aesthetics? The
program doesn't care if the data has holes, does it? I use autonum columns in every table and have long since forgotten about the holes caused by deletions, abandonments, etc. Swiss cheese tastes good to me. I suppose one would have to worry about reaching the upper limits of integer generations; I should be so lucky as to have that many zillions of transactions... bill Atrix Wolfe wrote: Hey Alastair, We have kinda been in need of something like this for a while too...we have a tranmaster table that stores transaction ids and right now we do a select max(tranid)+1 from tranmaster to get the next tranid but as transactions are deleted and such, it leaves alot of holes in the id sequence.It has about 10,000 rows in the table, but the max id is up near 45,000! One way we thought about aproaching this problem was to make a utility that would renumber all the tranids in tranmaster as well as all the other tables that use the tranid. That would make it so our 10,000th row would also be tranid 10,000 instead of 45,000 so wed be back on track. Im not sure how you get your ids or what they represent but if you do it like us and just get the max(id)+1 to get the next, this might be of use...im still keepin my eye out for a better solution too though so im glad you brought this topic up! ----- Original Message ----- From: "Alastair Burr" <[EMAIL PROTECTED]> To: "RBASE-L Mailing List" <[EMAIL PROTECTED]> Sent: Monday, September 08, 2003 3:02 PM Subject: [RBASE-L] - Finding unused id codes |
- [RBASE-L] - Finding unused id codes Alastair Burr
- [RBASE-L] - Re: Finding unused id codes Atrix Wolfe
- [RBASE-L] - Re: Finding unused id codes William Stacy
- [RBASE-L] - Re: Finding unused id codes Atrix Wolfe
- [RBASE-L] - Re: Finding unused id codes Alastair Burr
- [RBASE-L] - Re: Finding unused id codes Atrix Wolfe
- [RBASE-L] - Re: Finding unused id codes Atrix Wolfe

