Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index does not match in OleDb
Message
De
24/09/2006 11:12:24
 
 
À
24/09/2006 08:56:32
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
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01153721
Message ID:
01156777
Vues:
17
>It still can be useful. It is likely to not speed up selects on tables with only few deleted records, even with the new BINARY indices. It's a trade off between the index data, which needs to be read vs the number of deleted() records loaded and discarded anyway.
>
>But you can also have filtered indexes with DELETED(), that are used by rushmore. There's a chapter "Indexes Based on Deleted Records" about this. So even an index on "A" for Deleted() may work better than a binary index in situations with few deleted records, but you need to have a maintainance routine rebuilding the indexes, as filtered index have some bloating effect and don't shrink to fit, if you pack the tables and recycle records with recall and blank.
>
>All in all it's still an issue of try on error, what's best. If you often do maintainance, pack and reindex, it's likely the partial optimizations rushmore does without the deleted() index are even faster or at least sufficient, as you normally have other filters on a table limiting the result much more than the deleted flag. But those indexes can be helpful to speed up aggregations like Min(), Max() and Count().
>
>So it's still "it depends". But I'd not generally index on deleted().

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform