Design question

Arthur Clemens aclemens at xs4all.nl
Wed Dec 3 14:39:24 CST 2003


On Dec 3, 2003, at 1:05 PM, Ruslan Zasukhin wrote:

> on 12/3/03 1:55 PM, Arthur Clemens at aclemens at xs4all.nl wrote:
>
>>> You can SELECT RecID only of left table if you need.
>>> Then iterate this cursor and make Set if you want this.
>>
>> This I could not find, how to make a set if I have a cursor.



Can you point me to the method I should use?




>
> And note, RecID are in RAM, so iteration will be very fast.
>
> Also to be even faster, get pointer on Ulong field BEFORE loop.


So:

unsigned long RecID;
cursor->GetULong( "RecID" );
do {
         RecID = cursor->GetULong( "RecID" );
         if (RecID != NULL) {
             NSLog(@"found: %d", RecID);
         }
     } while( cursor->NextRecord() );

(?)

Why is this faster?

Arthur



More information about the Valentina mailing list