Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
slow query
milosz
2009-08-11 02:26:19
Hi,

I have dbf file dkcz.dbf (about 8 MB) and 3 ntx files:
dkcz01.ntx [expression: rk+left(id_wej,1)+typdkcz+nrdkcz]
dkcz02.ntx [expression: rk+mc+typdkcz+id_wej+id_ob+id_kli+flgzal]
dkcz03.ntx [expr: typdkcz+id_wej+id_ob+id_kli+rk+mc]
and also dkcz.cgp.

but sql
select count(*) as c from czynsz.dkcz where rk = '2009' and mc = '07' and typdkcz = 'F' and trim(id_wej) = '91001' and trim(id_ob) = '002'"

is very slow. Execution takes about 2 sec. Is there any possible optimization?

thx in advance
Re:slow query
HXTT Support
2009-08-11 03:20:10
>select count(*) as c from czynsz.dkcz where rk = '2009' and mc = '07' and typdkcz = 'F' and trim(id_wej) = '91001' and trim(id_ob) = '002'"
It will utilize index for rk=2009 condtion. You can try select count(*) as c from czynsz.dkcz where rk+mc+typdkcz = '200907F' and trim(id_wej) = '91001' and trim(id_ob) = '002'", if you can make sure rk is a column with char(4), mc is a column with char(2), and typdkcz is a column with char(1).
Re:Re:slow query
milosz
2009-08-11 03:57:05
Thanks you for your response. I made some tests and I think my greatest problem is that all files are stored on maped novell disks. When I copy data from novell disk to local file system query above works quite fast. But I can make it only for tests ;/.
Re:Re:Re:slow query
HXTT Support
2009-08-11 07:28:46
>is that all files are stored on maped novell disks.
Yeah. CUP burden, network bottleneck and IO issue can slowe speed. HXTT DBF supports also novell OS.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap