Chris Bonham wrote:
> I'm running JBoss 3.2.0beta with Dain's Unidirectional performance
> patch, Sun JDK 1.3.1_03 on both Win2K and RedHat Linux 7.3, plus
> XDoclet 1.2.0beta.
>
> I have two local CMP entity beans with this relationship:
>
> SelectedBowComponent (M) -> (1) BowComponent
>
> When I create a new SelectedBowComponent, the read ahead cache adds
> the relation SelectedBowComponent_bowComponent. Then, that
> BowComponent tries to load up all SelectedBowComponents that's it's
> related to. Since this is a unidirectional relationship, that
> relationship will never be traversed, so why is the data put in the
> cache or is that a bug? I wouldn't have noticed this problem except
> for the BowComponent the new SelectedBowComponent points to is also
> pointed to by 300000 rows! So, depending on memory settings, the
> read ahead cache insertion process either runs out of memory or the
> transaction times out. I've attached code snippets below.
Directionally of relationships has no effect on the code; it is just a
matter of convince for designers. With the performance patch you
mention above, I make sure to not load relationships unless absolutely
necessary for referential integrity, so what you are seeing is a bug.
Please, file a bug report with a simple test case (Order-LineItem) that
reproduces the error.
-dain
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
- [JBoss-user] Performance issue while adding to a EJB 2.0 re... bobby abraham
- Re: [JBoss-user] Performance issue while adding to a E... Stephen Coy
- Re: [JBoss-user] Performance issue while adding to... Chris Bonham
- Re: [JBoss-user] Performance issue while addin... Marius Kotsbak
- Re: [JBoss-user] Performance issue while addin... Dain Sundstrom
- Re: [JBoss-user] Performance issue while a... Chris Bonham
