1 Reply Latest reply on Aug 27, 2002 2:05 PM by Dain Sundstrom

    Performance issues w/ CMP 2.0

    Partha Dutta Newbie

      It seems that JBoss tries to synchronize quite heavily with the database server when using simple accessor methods (getXXX) in CMP beans. For every method called, it looks like there is an SQL call being made. Is there any way to tune this for better performance? Thanks in advance. - Partha

        • 1. Re: Performance issues w/ CMP 2.0
          Dain Sundstrom Master

          You can switch to commit option A which assumes that the EJB server is the sole user of the database, and can therefore cache all data. Or you can increase the size of your transactions. Transaction limit the time overwhich a read is considered valid. Be careful here because if you make the tx too large you get contention problems.