Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore: One more time...
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Rushmore: One more time...
Divers
Thread ID:
00642985
Message ID:
00642985
Vues:
43
Hi! Hello! How are you doing? :)

Take a look at this instruction:
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) If I have the following indexes: A.Field1 e A.Field2 - That SELECT-SQL takes 10.5 seconds to has been executed.

2) If I delete the indexes (both), the same SELECT-SQL takes 2.5 seconds to has been executed.

Important: To do this test, I delete all indexes from both table.

Please... Some logical explanation?

[]s
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform