Bugs item #686577, was opened at 2003-02-14 14:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=686577&group_id=40712

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Markus Menner (morphace)
Assigned to: Nobody/Anonymous (nobody)
Summary: Loading of entites - low performance

Initial Comment:
I use Hibernate 1.2.3.

There is a problem, which causes a severe performance loss:

If you have 2 entites (A and B) with a 1-1 association,
Hibernate uses an SQL query with a join (if enabled) to
load both entites with 1 statement. Wonderful! If there
is a B for an A, everything is okay.

If there is no B for a certain A, Hibernate tries
(although the 1st statment returned no instance for B)
to load B, when you invoke the corresponding getter,
which results in an unnecessary SQL query!

If there are many entities associated, there are many
unnecessesary SQL queries and the performance suffers.

Thanks
Markus


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428708&aid=686577&group_id=40712


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to