Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBFs x Indice
Message
From
07/02/2004 10:09:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00873926
Message ID:
00875146
Views:
18
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform