Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do you RLOCK?
Message
From
10/10/2003 11:32:38
 
 
To
10/10/2003 11:10:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00837183
Message ID:
00837451
Views:
37
If you use buffering, then VFP does all of the locking for you. You just choose the locking mode: optimistic or pessimistic. If you do not want to use buffering but you also do not want to manually lock the record, in order to unlock the record after its been automatically locked, you have to move the record pointer or issue unlock (or end transaction), even if you set MULTILOCKS ON. I think buffering is the safest method for multiuser environments. If I cannot use buffering for whatever reason, I manually lock and unlock the record myself and do not let VFP handle it outside of buffering.

I don't think there's any point in me using VFP's buffering since the records aren't updated until the user saves anyway. But if people using buffering let VFP do the locking for them, why is that any different than using the automatic locking that happens during a GATHER rather than explicitly locking the table during the GATHER? Why do you manually lock the record? It's going to get locked either way. What benefit is there in specifically calling RLOCK?

Thanks,

Michelle
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform