Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.1
Name and version of the database you are using:MySQL 5.0
Hello,
I have several queries in my application I want to optimise, up 4 levels of inner join. Using query cache, Spring Hibernate 3.1 and 1.2.7, as MySQL database. I copy an example
Code:
select this_.id as y0_, this_.item_date as y1_, this_.amount as y3_, company3_.firmname as y7_, company3_.id as y8_,
client2_1_.firmname as y9_, client2_.id as y10_, operator1_.first_name as y11_, operator1_.last_name as y12_
from items this_
inner join companies company3_ on this_.company_id=company3_.id
inner join client client2_ on this_.client_id=client2_.id
left outer join firms client2_1_ on client2_.id=client2_1_.id
inner join users operator1_ on this_.operator_id=operator1_.id
order by this_.id desc;
Thank you!