Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore: Não entendo mais nada...
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Rushmore: Não entendo mais nada...
Miscellaneous
Thread ID:
00642983
Message ID:
00642983
Views:
46
Alow! Alow! Alow!

Estou executando a seguinte instrução:
Select Sum(B.Field3 - B.Field4);
   From B Left Outer Join A On B.Field1 = A.Field1;
   Where B.Field2 = "SOMETHING" .and.;
         B.Field3 > B.Field4 .and.;
         A.Field2 = "YES" .and.;
   Into Cursor MyTest
1) Se eu tenho índices nos campos A.Field1 e A.Field2, esta instrução leva 10,5 segundos para ser executada.

2) Se eu excluir os índices, a mesma instrução leva 2,5 segundos...

PS: Para este teste ser realizado, eu excluí todos os índices das duas tabelas e criei apenas os 2 citados no item 1.

Alguma explicação lógica?

[]s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Next
Reply
Map
View

Click here to load this message in the networking platform