Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Efficient record search in cursoradapters
Message
From
20/05/2010 13:29:30
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
17/05/2010 16:02:58
Wen Guo
Ss&C Technologies Canada
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
01464934
Message ID:
01465315
Views:
62
>Hi,
>
>I am working on converting an existing application from native database to SQL Server database using CursorAdapters. Since records returned from a cursoradapter are not indexed, I added a couple of INDEX ON statement in AfterCursorfill() so that I can do a SEEK in the cursor. However, I soon realized that this is causing a bad performance issue when the table associated with the cursoradapter is large.
>
>Does anyone have a better idea on how to do a record search in a cursoradapter that matches the speed of an index seek?
>
>Thanks in advance for your help!
>
>Wen

As most others told you, do not bring down the entire table and then seek. Ask the user what they seek and then use that to grab records.
Previous
Reply
Map
View

Click here to load this message in the networking platform