Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views - Speed issues
Message
From
03/11/2003 19:32:08
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Views - Speed issues
Miscellaneous
Thread ID:
00845866
Message ID:
00845866
Views:
55
I know this has been posted already but I am still looking for answers.

Assume the following table:
PLOTS: 300K records and the possibility of 1.5M records. Index on field "plot_id".

cFilter: 1 TO RECCOUNT("plots") records. Index on field "linkfield"

View appear to be a great tool when used with a simple where.
WHERE plot_id = ?lnPlotId)
The abopve returns one record. No more, no less. And in under .01 seconds.

But what if your WHERE isn't quite so simple?
WHERE plot_id IN (SELECT linkfield FROM cFilter)
OR
WHERE EXITS (SELECT linkfield FROM cFilter)
OR even change the WHERE to a JOIN
JOIN cFilter ON plots.plot_id = cFilter.linkfield
Select times can run up to 20 minutes in a logrithmic type curve.

SET DELETED is OFF
All indexes appear proper.
SYS(3045,11) indicates that rushmore if full when it should be (example #1) and none in examples 2 and 3. On example 4, SYS(3045,11) returns joining table x to table y on index z.

Anyone have any thoughts?

TC
Next
Reply
Map
View

Click here to load this message in the networking platform