Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pessimistic buffering
Message
 
 
To
17/11/2002 16:43:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00723655
Message ID:
00723683
Views:
9
The reason I was asking about switching to pessimistic buffering is that I ran into a problem (description in Q190496) where MSFT recommends to switch to pessimistic buffering to get over the problem. However, I found that even with pessimistic buffering the problem didn't go away.

Thank you for your help.
Dmitry

>>I have always used optimistic table buffering in my applications but I came across a situation where I might need to change it to pessimistic buffering.
>>
>>Under Pessimistic Buffering:
>>What happens, on the network, when user A is making changes to a record and user B attempts to make changes to the same record. What kind of message does user B gets?
>
>Well, the difference with pessimistic buffering is that the record will be blocked immediately, as soon as user A starts editing. User B will probably get something similar to "cursor is in use by another".
>
>Optimistic buffering only attempts the (implicit) record lock when changes are being saved (TableUpdate()).
>
>>
>>Also, if you have pessimistic table buffering, user A can make changes to one record while user B can make changes to another record? Right?
>
>Yes.
>
>I would recommend optimistic buffering in most cases. The fact that two users can edit the same record is usually no problem: a) they usually won't, in practice, b) nothing bad happens if two users really do edit the same record: the last one to try saving will simply have to undo and start over again.
>
>Hilmar.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform