Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to seek data in view
Message
De
07/09/2008 08:13:28
 
 
À
07/09/2008 06:43:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345528
Message ID:
01345533
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform