Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to seek data in view
Message
From
07/09/2008 08:13:28
 
 
To
07/09/2008 06:43:35
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345528
Message ID:
01345533
Views:
8
>what's the fastest way to seek data in view?
>currently I'm using locate, but I think that's the slowest.
>
>regards,
>
>Jerry

Jerry,

You can index the view

(1) If only used once, ie no requery() done
use v_stock
index on stock_id tag stock_id

?seek('122344')
(2) If requery() done - a bit slower - = create the index before
use v_stock nodata
index on stock_id tag stock_id
....

=requery()
?seek('122344')
...

=requery()
?seek('122344')
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform