Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rushmore: One more time...
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Rushmore: One more time...
Miscellaneous
Thread ID:
00642985
Message ID:
00642985
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform