TIP: Click on subject to list as thread! ANSI
echo: paradox
to: ALL
from: KENNETH ULLMAN
date: 1995-09-28 15:04:00
subject: query

I have found that by using a secondary index, I can "walk" the database and 
copying the records which fit my criteria and write them a a created database 
much faster than by using a query! It seems odd but I did do a timing test on 
both approaches. The query took almost a full minute to complete and the 
script which "walks" the database took less than 10 seconds!
The database has about 20k records my secondary key is on a date field and I 
just want to select only current (that day's ) transaction;starting at the 
end of the database and going backwards. I really don't understand why the 
query takes so much longer. 
This is pdoxw 5.0. I was told that the query engine is far superior than the 
dos ver. Well is news to me! Or am I missing something in the query?
--- FLAME v1.1
---------------
* Origin: HAL-PC - (713)963-4100 (1:106/4100)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.