Tdatabase performance issue

Post Reply
reds
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London

Tdatabase performance issue

Post by reds »

Should there be any performance overhead when using Tdatabase as opposed USE DBF command

As reading a through a DBF of approx 9k records is about 2-3 seconds slower when opened using Tdatabase than when
it is opened by the USE command.

There are no filters or relations set,DBF uses one NTX

Currently just running on a stand alone PC

Thanks
Peter
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Tdatabase performance issue

Post by nageswaragunupudi »

Should there be any performance overhead when using Tdatabase as opposed USE DBF command
Yes.
Regards

G. N. Rao.
Hyderabad, India
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Tdatabase performance issue

Post by hua »

Peter,
You can try :SetBuffer(.f.) to see whether that could help improve the speed a bit
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Tdatabase performance issue

Post by nageswaragunupudi »

hua wrote:Peter,
You can try :SetBuffer(.f.) to see whether that could help improve the speed a bit
Yes, it does improve the speed. Same as reading DBF directly.
Regards

G. N. Rao.
Hyderabad, India
reds
Posts: 50
Joined: Tue May 16, 2017 12:19 pm
Location: North London

Re: Tdatabase performance issue

Post by reds »

Thanks both that did it
Regards
Peter
Post Reply