db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker OJBPerfTest.java
Date Sat, 28 Jun 2003 15:53:57 GMT
arminw      2003/06/28 08:53:57

  Modified:    src/test/org/apache/ojb/broker OJBPerfTest.java
  Log:
  enable batching for PB-api,
  disable OJB batch mode when using
  native JDBC
  
  Revision  Changes    Path
  1.9       +5 -3      db-ojb/src/test/org/apache/ojb/broker/OJBPerfTest.java
  
  Index: OJBPerfTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/OJBPerfTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- OJBPerfTest.java	27 Jun 2003 20:47:30 -0000	1.8
  +++ OJBPerfTest.java	28 Jun 2003 15:53:57 -0000	1.9
  @@ -242,6 +242,8 @@
   
           private Connection getConnection() throws LookupException
           {
  +            // don't let OJB handle batching
  +            broker.serviceConnectionManager().setBatchMode(false);
               return broker.serviceConnectionManager().getConnection();
           }
   
  @@ -341,7 +343,7 @@
               try
               {
                   broker = PersistenceBrokerFactory.defaultPersistenceBroker();
  -                // broker.serviceConnectionManager().setBatchMode(true);
  +                broker.serviceConnectionManager().setBatchMode(true);
                   broker.beginTransaction();
                   for (int i = 0; i < arr.length; i++)
                   {
  @@ -382,7 +384,7 @@
               try
               {
                   broker = PersistenceBrokerFactory.defaultPersistenceBroker();
  -                // broker.serviceConnectionManager().setBatchMode(true);
  +                broker.serviceConnectionManager().setBatchMode(true);
                   broker.beginTransaction();
                   for (int i = 0; i < arr.length; i++)
                   {
  
  
  

Mime
View raw message