Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore Optimization
Message
 
 
À
14/07/2010 11:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01472464
Message ID:
01472486
Vues:
74
>That still won't use the indeces on the table. VFP can't know what the top N are until the sort, which happens after the data has been selected... at least in this case. If you have a FOR statement on a single table then perhaps an index could be used, but IMO, it's very unlikely.
>
>>Check Message ID: 1362696

Why it can not take top 100 records from the Index and then grab corresponding records? I don't know VFP internals, so I don't know if TOP is optimized or not.

In SQL Server Index can be used for ORDER BY.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform