-
Bug
-
Resolution: Won't Do
-
Major
-
JBossAS-3.2.6 Final
-
None
SourceForge Submitter: morphace .
Hi,
apparently read-ahead is only working for 1-n
relationships , not for n-1.
In my case I used JB3.2b3 but it is the same with 3.0.4.
My OS: WinXP, JDK 1.4.1_01
Yes, I have the CMP docs ...
Here my standardjbosscmp-jdbc.xml settings:
<read-ahead>
<strategy>on-find</strategy>
<page-size>500</page-size>
<eager-load-group>*</eager-load-group>
</read-ahead>
<list-cache-max>1000</list-cache-max>
I use commit-option B, instance per transaction
configuration for my CMP EJB's.
I looked at the code, and (I hope that I am right) it's
clear that it does not work, because the read-ahead
mechanism relies on the collection of primary keys (not
foreign keys).
I feel, that it could be (easily ) done by
collecting the foreign keys too and due to the fact
that the current behavior has grave performance loss I
submit it as bug.
Is it okay ?
TX
Markus