Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBFs x Indice
Message
De
07/02/2004 10:09:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00873926
Message ID:
00875146
Vues:
19
>Marcio,
>
>> select * from tabela where campo = valor_procurado
>> - com índice => 12,72 segundos
>> - sem índice => 0,13 segundos
>
>Com índice demorou mais que sem índice?
>
>[]s!

Sim, isto pode ocorrer: VFP usa tudo índice que concorda com uma parte da expressão a ser optimizada - nao faz um análise detalhado, se isto vai faze-lo mais rápido, ou mais devagar. O problema são os índices que selecionan muitos registros para um só valor. Veja também o meu FAQ #8109.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform