Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  Buy Now
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.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 Ltd. of Beijing City (abbr, HXTT)

Query Join Performance
Martin Ross
2006-06-20 07:26:19.0
* 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.0
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.0
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.0
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


Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap