Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  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 ACCESS
Query Join Performance
Martin Ross
2006-06-20 07:26:19
select
* from Claims this_
left outer join Items this_1_ on this_.ClaimID=this_1_.ClaimID
inner join Doctors sureclaim2x2_ on this_.DoctorID=sureclaim2x2_.DoctorID
inner join Patients sureclaim2x3_ on this_.PatientID=sureclaim2x3_.PatientID
where Items.ItemID=1 and this_.DateCreated>?

This query has terrible performance.. The join columns are all indexed.
Re:Query Join Performance
HXTT Support
2006-06-20 08:50:39
Because there is an Items.ItemID=1 condition, HXTT Access will optimize left out join to inner join, so that your sql becomes
select * from Claims this_, Items this_1_, Doctors sureclaim2x2_,Patients sureclaim2x3_ where this_.ClaimID=this_1_.ClaimID and this_.DoctorID=sureclaim2x2_.DoctorID and this_.PatientID=sureclaim2x3_.PatientID and Items.ItemID=1 and this_.DateCreated>?

It should work normal. Please download the latest package and try it. If it's slow still, please let us know how many rows in Claims, Items, Doctors, and Patients.
Re:Re:Query Join Performance
Martin Ross
2006-06-20 08:56:48
Items actually has a composite key of ClaimID, ItemID. There isn't any optimization going on here because ItemID alone is not part of the key. However setting ItemID to 1 makes sure that we have a one-to-one mapping of Claims and Items.

Hope this clarifies.
Re:Re:Re:Query Join Performance
HXTT Support
2006-06-21 04:25:07
Please download the latest package which has supported optimization on this_.ClaimID=this_1_.ClaimID and Items.ItemID=1 on a composite key of ClaimID, ItemID.

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