Searching in a cursor

Carsten Friehe rblists at online.de
Wed Aug 9 05:34:01 CDT 2006


Hello Ruslan!

Thank you for your fast answer!

>    you need remember in your current record
>    field name value AND its RecID.

Ok, that is no problem!

>In new cursor you do binary search of this name.
>This is fast. 20 jumps for 1000 records. 30 jumps for million records.

What do you mean by "binary search"? Is this something I can do with
Valentina directly?

>May happens that you will find few records with the same name.
>Then INSIDE of this small group you do linear search by RecID

That will happen, but this is faster than all records!

Best Regards,
Carsten


More information about the Valentina mailing list