Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking & Buffering Question
Message
De
28/08/2001 16:03:42
 
 
À
28/08/2001 14:18:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00549965
Message ID:
00550033
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
SNIP
>From a "best practices" POV, are you better to :-
>
>A) LOCK all candidate records first and THEN process all of the locked records.
>
>or...
>
>B) Buffer the table and individually lock/process each candidate record in sequence (or abort the whole job when a record lock cannot be achieved) and depending on a success flag, TableUpdate() or TableRevert() the buffered data.
>
>I am taking about a "free table" updated from a processing program. There is no View involved and this operation is running in a SESSION CLASS subclass.
>
>Any advice would be very much appreciated.

I just want to remind you that RLOCK() can handle multiple records. That might make it a bit easier or give you more confidence.

good luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform