2 Replies Latest reply on Sep 25, 2003 9:33 AM by Juha Lindfors

    CMP2.0 Docs and read-ahead

    Armin Newbie

      In the CMP2.0 docs Appendix A discusses putting read-ahead in jbosscmp-jdbc.xml. However, immediatley before this, there is an example showing read-ahead inside ejb-jar.xml. I assume this is a mistake and have set the read-ahead tags (i.e.strategy, limit, cache-size) in jbosscmp-jdbc.xml. After deploying read-ahead entity, I have a remote client call a finder and iterate thru the returned collection. The log file shows N+1 SELECT's. No read-ahead. Switching off the read-ahead yields the same results except no JDBCStoreManager.PreloadKeys are being created.