Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to buffering?
Message
From
20/06/2005 06:33:05
 
 
To
20/06/2005 06:19:56
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01024789
Message ID:
01024790
Views:
20
>Help please
>How can I differeces the pessimistic and optimistic in buffering modes?
>can give some example?
>
>thanks in advance

Kelvin

Essentially: Pessimistic means the record is locked all the time the user has (editing) access to it, until the record pointer is moved on or TableUpdate() or TableRevert() are issued. So, it one user has a record, keeps it for a long time while he eidts it, then other users have no access to it during this time.

Optimistic means the record is locked ONLY when the TableUpdate() is issued, so there's far less chance of the above contention.

On top of this there is Row and Table buffering for both cases. Table buffering locks all records in the table, during either an "optimistic" or "pessimistic" length of time.

See help on BufferMode and BufferModeOverride properties

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform