Cy
Fri Sep 21 21:19:25 PDT 2007
Bzzzzzt!!! Nope, wrong answer. Locate while quite fast if optimized is
still only a fraction of the speed of seeks. I have done routines that do
100s of 1000s of iterative locates/seeks and the seeks are still many many
times faster. If you do a seek or locate 500,000 times you will see a quite
measurable difference in the time with the seeks being much faster.
--
Cy Welch
Senior Programmer/Analyst
MetSYS Inc.
http://www.metsysinc.com
"Man-wai Chang ToDie" <toylet.toylet@gmail.com> wrote in message
news:ejM7mG4#HHA.4732@TK2MSFTNGP04.phx.gbl...
>> Is is a good idea to change the seek commands with locate commands in
>> order to avoid generating indexes, are CDX files necessary on free
>> tables. should I expect performance problems with this change?
>
> If the DBF has the right indexes on the fields, LOCATE could be till as
> fast as SEEK and remains more flexible.
>
> --
> @~@ Might, Courage, Vision, SINCERITY.
> / v \ Simplicity is Beauty! May the Force and Farce be with you!
> /( _ )\ (Xubuntu 7.04) Linux 2.6.22.6
> ^ ^ 20:26:01 up 9 days 10:45 1 user load average: 0.05 0.01 0.00
> news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk