Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How much data moves from Server to Client?
Message
De
06/12/1999 09:56:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00298027
Message ID:
00299157
Vues:
22
>>>MSDN help says this:
>>>
>>>FOR lExpression
>>>
>>>Specifies a condition whereby only records that satisfy the filter expression lExpression are available for display and access; index keys are created in the index file for just those records matching the filter expression.
>>>
>>>Rushmore optimizes an INDEX ... FOR lExpression command if lExpression is an optimizable expression. For best performance, use an optimizable expression in the FOR clause.
>>
>>Jess, that means that when constructing the index, the construction of the index will use Rushmore optimization to select the set of records for inclusion in the index. It does not mean that Rushmore will utilize the index when optimizing queries and other operations.
>
>That's exactly what I wanted to express. It is the INDEX Expression that can be optimized but not to reference it as a way of optimizing SCANS, CALC SUM etc.

You're missing the idea here. In order for Rushmore optimization to be used to help build the filtered index, that means you'd have to have an unfiltered index on the field used in the FOR statement in the INDEX statement. IOW:

INDEX ON JRandomField FOR OtherField = 42 TAG FILTERIDX

There must be an existing, unfiltered index on OtherField. When the index FILTERIDX is constructed, the unfiltered index on OtherField is used to speed up creation of the filtered index. The filtered index can never be used itself for further optimization.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform