Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is the VFP File System Stable
Message
De
26/10/2001 13:13:11
 
 
À
26/10/2001 12:27:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00571072
Message ID:
00573763
Vues:
25
>>>
>>>My suggestion would be to check out the Primary Key article on Craig's site (www.craigberntson.com). Uniqueness is enforced by an flock() on the keys table before obtaining the next key value (which I think is clever, Craig).
>>>
>>
>>Thanks. For the record, many people have told me they use my code to generate their PKs, often times in heavily used tables. No one has experienced any problems with the FLOCK().
>>
>
>Well, flock() is faster than rlock(), and it is only locked for a very short instance. BTW, what SET REPROCESS setting do you use for this?

My preference is 0, which is the default. If you check my code, it waits indefinately for the lock anyway.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform