Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT INTO locking mecanism
Message
De
05/09/1997 11:17:44
 
 
À
05/09/1997 11:14:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00048697
Message ID:
00048716
Vues:
25
>>>I have never seen this before, but I guess the first thing you have to do is to check SET REPROCESS setting (should be AUTOMATIC). If you still will see the problem, you can proceed by old RLOCK() way (have separate Locker table with particular record locked when a user try to perform specific operation).
>>
>>I have SET REPROCESS TO 2 SECONDS. If I put AUTOMATIC, how will this change the behavior?
>>
>>In my case, I have 2 collisions approx. per month when 2 applications insert a record. This is the insertion which is the most busy in the application. The error is always the same. It is also at the same line.
>
>To my mind, it doesn't make difference, however I would prefer to use AUTOMATIC, just because it doesn't check time (no additional internal API call involved). Also, remember that there is difference in unsuccessful lock reaction when Lock attemted by command (Insert) and function (Rlock).

You mentioned you've never seen this before. Were you making reference to the fact that you never had an error with INSERT INTO until now?

When INSERT INTO can't obtain the lock, with SET REPROCESS TO AUTOMATIC, will this mean the application will remain on that command until it succeed. What if it can't. Does that mean, the application will wait forever? I just had a situation this morning when the INSERT INTO failed for more than 2 minutes resulting in a Web server timeout for that transacion which was also avoiding any upcoming transaction during that 2 minutes.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform