Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suggestions for random candidate key generation methodol
Message
 
 
À
09/05/2004 13:35:39
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00902286
Message ID:
00902293
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
Nancy,

Maybe you can pre-generate those numbers in advance, store in a table and use as needed?

>I need to generate 7-digit, unique, random numeric quasi-serial number. I'll generate these serial numbers (SN) within a buffered transaction that may or may not be finalized. So, the SN generated won't be written to disk right away. Therefore, I can't use the usual primary key routine most of use. I want to find an efficient system that won't add any (!) processing time to the transaction overall.
>
>I can keep a table of just serial numbers generated and not reuse any that are in that table. However, it's possible that a number will be generated but not used.
>
>I could, when I finalize the transaction, delete the unused SN record.
>
>These sorts of transactions aren't frequent, but I'd like to be as efficient as possible. Plus, I was just sort of interested in the complexity using randomly generated numbers in addition to generating them in buffered transactions adds to using the usual PK routines.
>
>TIA for any thoughts.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform