Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reason for creating descending index
Message
 
 
À
16/10/2000 12:43:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00429813
Message ID:
00429825
Vues:
16
>>Hi everybody,
>>
>>I'm just curios, if there a reason for creating index in descending order (i.e. INDEX ON indexpr TAG tagname DESCENDING)? In our database we have indexes in descending order, therefore we have this field in our Index Dictionary. I've just thought, is it really neccessary?
>
>It depends.
>
>If you ever want to use an index in descending order, you can always use
>SET ORDER TO myindex DESCENDING
>
>so there isn't a reason to create the index descending.
>
>However, if the usage of this index is almost always in descending order, then you might as well create the index that way.

Thanks, Trey. Yes, the usage for this index is always in descending order. I leave the logic, as it is.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform