Next beta will have record locks.

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Jul 1 13:37:05 CDT 2003


on 7/1/03 11:37, erne at ernestogiannotta at tiscalinet.it wrote:

> on 30-06-2003 23:26, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:
> 
>> For Local db, kServer amd kClient will be the same of course.
>> 
>> Now you will need CREFULLY set parameter kWrite, when you want a cursor that
>> allows modify records. On default cursor will be ReadOnly and ForwardOnly,
>> because this is the most friendly set of parameters for multi-user access.
>> 
> 
> That's great, Ruslan!
> 
> I don't understand well the need of ForwardOnly and why it's set as default

Parameter ForwardOnly is optional.

When you make cursor Forward Only then you say to database that you will
iterate this cursor ONLY once from start to end.

So when you do NextRecord() database knows that you never return on the prev
record so it CAN remove lock from this record. As result we increase chance
that other user can lock this record for his needs.

If you need iterate a cursor few times, or move from back to start,
You need specify kRandom, then records will remain locked during the whole
life of cursor.  


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list