Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FLOCK() causes duplicate primary keys.
Message
De
29/08/2005 09:30:01
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Database:
Visual FoxPro
Divers
Thread ID:
01043971
Message ID:
01044750
Vues:
17
>>
>>Thank you. Is is interesting idea to use FOPEN( , 12) instead of FLOCK()
>>I will try it if there is not any possibility to put FLOCK() to work.
>>
>>Will this technique work OK under a heavy load by many concurrent users ?
>
>The semaphore file being opened is NOT a dbf , just a regular text file that holds the information needed to create the primaryKey.
>
>For heavy loads you can have the program automatically retry getting a handle on the file every second or so for about 5 seconds. You can also change the code so that the file closing happens as soon as possible.

Is'nt this the same as using

USE keys EXCLUSIVE

with retries?

Isn't USE ... EXCLUSIVE and your FOPEN(,12) the same ?
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform