Bugs item #637934, was opened at 2002-11-13 14:15
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=637934&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Chris Bonham (bonhamcm)
Assigned to: Nobody/Anonymous (nobody)
Summary: CMR add overpopulates read ahead cache

Initial Comment:
Using JBoss 3.2.0beta with Dain's Unidirectional 
performance patch, Sun JDK 
1.3.1_03 on both Win2K and RedHat Linux 7.3.

Given two local CMP entity beans in a CMR 
(unidirectional or bidirectional): Order (M) <--> (1) 
Lineitem.

When a new Lineitem is created with a relationship to 
an Order, all the Order's related Lineitems (siblings of 
the new one) are added to the read ahead cache without 
a limit.

I've attached a testcase that can be integrated with the 
CMP2/Commerce Testsuite as well as an insert script 
for one Order and 10000 related Lineitems.  There are no 
asserts, but the log will show that all 10000 siblings are 
loaded into the read ahead cache.

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

>Comment By: Chris Bonham (bonhamcm)
Date: 2002-11-13 14:40

Message:
Logged In: YES 
user_id=610917

This can be a problem when the dataset is so large (originally 
300000 siblings) that the transaction times out or the user 
has to wait a long time just to add one object.  In this case, 
the CMR add operation is the last one in the transaction, so 
there's not much point to adding the siblings to the read 
ahead cache (commit option B).

Perhaps a per-relationship read ahead cache limit option is a 
good idea?  I haven't had a chance to look at your new code 
to see if maybe you've already done this.

Thanks.

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

Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-11-13 14:29

Message:
Logged In: YES 
user_id=251431

And this a problem why?  The cache uses soft references, so
you won't get an out of memory error.  Also you should take
a look at the new PrefetchCache in 4.0 it is much simpler. 
I plan on merging it into 3.2 when I have tested it more.

-dain

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

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


-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to