Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does index tag on DELETED() help?
Message
De
08/11/2004 14:43:23
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00958911
Message ID:
00959315
Vues:
15
I think that that is not appropriate in this case. Selecting records without an index on deleted() will usually result in a "partially optimized" query, which should be faster than no optimization at all, but also faster than a "fully optimized" query, i.e., one with the inefficient index on deleted().

>Correct...
>That's why some of the VFP Commands have a clause NOOPTIMIZE and a SET OPTIMIZE command.
>
>
>>It's strange though because I went on a course about 4 years ago when it was just Visual FoxPro 6. This course was Microsoft approved and the guy who taught us (who had a Visual FoxPro MCP) told us that we must always set up an index on Deleted to improve performance. Basically I have always followed this advice.
>
>>Basically, if the index exists, the query might become Rushmore Optimizable;whereas without it, it won't. Now, this can cause confusion to some people. For Rushmore Optimizable doesn't necessarily mean it is optimal! The idea is that Visual FoxPro uses any index that will match the search expression, without considering whether doing so will likely make the query slower or faster. So, the expression is "Rushmore Optimizable", everyone is happy, until you find out, in some cases, that things are slower than with a "non-optimized" expression.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform