Indexing time.

Post Reply
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Indexing time.

Post by HunterEC »

Guys:

When I create 9 tags on a CDX index on a 340MB dbf file without a meter the whole process takes 1 minute 2 seconds.

Code: Select all

         INDEX ON &cKeyField TAG (cTagName) FOR &cForCond
 
If I execute the same command with a meter, it takes over 25 minutes. Why this humongous time difference ?

Code: Select all

         INDEX ON &cKeyField TAG (cTagName) FOR &cForCond EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )
Can anyone have a clue ?

FiveWin 13.09, xHarbour


Thank you very much.
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: Indexing time.

Post by FranciscoA »

Try this, please

Code: Select all

INDEX ON &cKeyField TAG (cTagName) FOR &cForCond EVAL ( oMeter:Set( RecNo() ), SysRefresh(), ! lEnd )  EVERY 80
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
Patrizio
Posts: 90
Joined: Wed Nov 07, 2007 8:56 am
Location: Italy
Contact:

Re: Indexing time.

Post by Patrizio »

The difference is the SysRefresh() function called a very large number of times.
Post Reply