1 Reply Latest reply on Aug 29, 2002 7:03 PM by dsundstrom

    Optimized Loading

    attachvishal

      is there any way to optimize cmr-field loading?
      I am trying to lazy load cmr-field and using <read-ahead> on-load .....
      But it eager-loads cmd-field, i may be wrong in specifying the optimization

      <query-method>
      <method-name>ejbSelectGeneric</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>java.lang.Object[]</method-..
      </method-params>
      </query-method>
      <dynamic-ql/>
      <read-ahead>
      on-find
      <page-size>4</page-size>
      <eager-load-group>mostones</eager-load-group>
      <lazy-load-group>basic</lazy-load-group>
      </read-ahead>


      Do i have to define any commit options? I am using Jboss3.0.1


        • 1. Re: Optimized Loading
          dsundstrom

          You should specify the DOCTYPE in the jbosscmp-jdbc.xml file, because I think you have a bad file. The read-ahead element should be as follows: [pre]
          <read-ahead>
          on-find
          <page-size>4</page-size>
          <eager-load-group>basic</eager-load-group>
          </read-ahead> [/pre]
          The read-ahead element does not support a lazy-load-group element. That is specified at the entity level.