Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best index expression?
Message
From
18/04/2005 17:39:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01005870
Message ID:
01006000
Views:
11
Hi, Nadya.

>Here is the latest code. I presently have index on SearchTB only. Adding indexes on empty(InsCommand) and others doesn't speed it up but rather slow it down. Can this piece of code be re-worked to achieve maximum performance?

There is no silver bullet for data access optimization. It all depends on the cardinality of your data and a lot more things. That means that what in theory could improve performance, maybe doesn't. For example, I might be trying to optimize your query for records who have an integer value, but in the actual data they are all in zero (0).

If you were using select statements instead of xBAse commands, you could analyze the Rushmore optimization by using Sys(3054). Maybe you can give it a try.

Best luck,
Previous
Reply
Map
View

Click here to load this message in the networking platform