Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox Slow ? with CDX
Message
From
11/08/2007 11:05:54
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
11/08/2007 03:30:59
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01247603
Message ID:
01247628
Views:
16
Hi Suhas

What are you really trying to do? There is no value in creating multiple aopen arrays as each removes the previous one.

I can't believe the time spent building the .IDX is saving anything versus having the indexes. The set relation is not a factor. The SQL inside the scan ignores that and the SET ORDER TO 1 too.

>Select dist symbol from bhav_data into cursor dist1 nofilter && runs fast
>
>Select bhav_data
>index on symbol to symbol.idx
>set order to 1
>select Dist1
>set relation to symbol into bhav_data
>scan
> select open from bhav_data where symbol = dist1.symbol into array aopen order by date
>endscan
>
>*The above runs verry verry fast any tim first time or second time
>
>* tried variations
>* without setting the order and relation,
>* tried using already built IDX Or CDX instead fresh build
>* all the other methods runs very slow the first time and the n fast second time without restarting the system or VFP (maybe uses cached copy)
Previous
Reply
Map
View

Click here to load this message in the networking platform