Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexseek: No measurable gain
Message
 
To
16/08/1999 08:01:09
Kenneth Downs
Secure Data Software, Inc.
New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00253984
Message ID:
00253985
Views:
27
>Wanted to determine exactly how much I would gain by replacing a lot of SEEK's with INDEXSEEK's, and much to my surprise the answer was zero.
>
>Here's what I did:
>
>Set up table 1, Field1 C(10),Filler C(100). Added 1 million records, populating Field1 with a random integer from 1 to 1 million. Indexed on field1.
>
>I then wrote a routine that did 10,000 SEEKs into Table 1, followed by 10,000 Indexseek's, and back and forth.
>
>This was done on a Compaq laptop, Win 98, 32MB RAM. The data table was 111MB and the CDX was 5MB.
>
>The only noticeable trend was that each run was faster than the one before, suggesting that the file cache has much more to do with this than anything else.
>
>The first run, 10,000 SEEKs, took 245 seconds. The second run, 10,000 INDEXSEEKs, took 190 seconds. Next was 10,000 SEEKS at 174 seconds, and 10,000 INDEXSEEKS at 160 seconds.
>
>This test may not approximate everybody's usage, but it does approximate the usage here in one spot: many hits to the same table by the same user. My conclusion there was that there was no advantage to changing SEEKs into INDEXSEEKs.

My understanding about indexseek was not that IT would be fasted but, it does not move the record pointer.

Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform