Patches item #608221, was opened at 2002-09-12 16:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=608221&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephen Coy (scoy)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unidirectional CMR performance patch

Initial Comment:
The attached patches improve CMR performance dramatically 
when many-to-one unidirectional relationships are being employed.

For example, we have a PhoneNumber entity which is related to a 
NumberStatus entity; lots of phone numbers and several statuses. 
There can be tens of thousands of numbers related to a single 
status entity. The status entities don't give a #@$% about the 
numbers, so it's a classic many-to-one unidirectional relationship.

For the most part JBoss CMP currently ignores the fact that 
relationships are unidirectional.

In the above scenario, the act of assigning a status to a number 
causes JBoss to try and preload (up to the cache size I think) all 
of the numbers associated with that status. This is incredibly 
expensive (particularly for something like phone numbers), for 
data that is effectively useless because there's no real CMR 
collection to populate or update.

I've added a flag to JDBCRelationshipRoleMetaData to capture the 
fact that the relationship is unidirectional and then test it in 
JDBCCMRFieldBridge to determine whether or not to do the cache 
load.

The code in these patches passes the cmp2 testsuite and is also 
working in our application.

Environment:
JBoss 3.0.2
Apple 1.3.1 JVM on OSX 10.2.
Oracle 9.2


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=608221&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to