Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with multiuser
Message
 
À
18/07/2001 17:28:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00531740
Message ID:
00532451
Vues:
12
If TABLEUPDATE() fails, an error handler won't catch the error. You have to test it with AERROR() on the next line of code immediately following the call to TABLEUPDATE(). Then either commit or rollback the transaction.

Also, Pessimistic locking does not scale well and is not considered good practice. Since a record is locked when an edit begins, a person can begin an edit then walk away from their machine and lock out the whole network. Use Optimistic locking instead. With it, the record is only locked for the amount of time it takes to commit a changes. You can also write custom conflict resolution code to flag whether someone made changes while you were editing. There are some good examples of this in the Developers Guide.

Charlie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform