Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT INTO SQL part II
Message
From
06/09/1997 21:27:28
 
 
To
06/09/1997 18:04:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00048825
Message ID:
00048852
Views:
64
Ok, let me try that again. . .

When you update TABLE.DBF, do you:
1) RLOCK table.dbf, then
2) INSERT INTO thread, then
3) Update table.dbf

***OR*** do you
1) RLOCK table.dbf, then
2) update table.dbf, then
3) INSERT INTO thread

My point is simply this: *IF* you do the INSERT *while* the RLOCK is in place on table.dbf, then you run a risk of a "deadly embrace". This is as in the first example, above.

If, however, your logic follows the second situation shown above, then you have little risk (I cannot say *none* because I am not at all sure of the impact of .CDX updates (and their locks)) of deadly embrace.

Your situation would definitely sound like a "dead;y embrace' to me EXCEPT for the fact of you SET REPROCESS *and* the possible length (time-wise) of update to phDBASE table.

Still, good luck,
Jim N

>>Does your logic lock/update/unlock the 'key' table *before* it does the INSERT INTO?, or do you do the INSERT INTO while the 'key table' is still locked?
>
>The key table, which is known here as THREAD, is never locked. The reference to the locked table was to TABLE.DBF, which is used to keep all the actual key.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform