Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time accessing records 1

Status
Not open for further replies.

teknik

Programmer
Feb 27, 2001
33
IN
I have a table in Foxpro 2.5 which has about 20,000 records. When I try to access some records (ie records meeting some criteria) by using a pop up (DEFINE POPUP PROMPT <table name.field name) or a SQL query it takes a lot of time to get the records from the table. Is there an method by which the time can be reduced.
 
Index the DBF on the field name or combinatio of field name you are using for the extraction. Then remember to set the order to that index when you open the file.

When the index exactly matches the expression you use to filter in an SQL statement, the access will be rushmore optimised. The results will be alomost instantaneous and will not disappoint you for sure.

Best of luck. ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Even if the dbf is indexed it does not work specially when two dbfs are joined in a SQL query
 
Creating popup menu from 20000 records (I think)
is strongly unusually. I use only BROW,
and i have no time problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top