Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 29903 invoked from network); 14 Apr 2004 12:48:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Apr 2004 12:48:27 -0000 Received: (qmail 45776 invoked by uid 500); 14 Apr 2004 12:48:24 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 45600 invoked by uid 500); 14 Apr 2004 12:48:23 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 45571 invoked from network); 14 Apr 2004 12:48:22 -0000 Received: from unknown (HELO mail.fridayfives.net) (209.137.167.162) by daedalus.apache.org with SMTP; 14 Apr 2004 12:48:22 -0000 Received: from kamajii.forthill.int (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 767761F465 for ; Wed, 14 Apr 2004 08:48:23 -0400 (EDT) Received: from filter.fridayfives.net (filter.fridayfives.net [192.168.1.43]) by mail.fridayfives.net (Postfix) with ESMTP id 333461F45B for ; Wed, 14 Apr 2004 08:48:23 -0400 (EDT) Received: by filter.fridayfives.net (Postfix, from userid 5054) id C1E446FD70; Wed, 14 Apr 2004 08:42:38 -0400 (EDT) Received: from freki (freki [127.0.0.1]) by freki (Postfix) with SMTP id 365066FD71 for ; Wed, 14 Apr 2004 08:42:37 -0400 (EDT) Received: from [192.168.1.30] (kite.forthill.int [192.168.1.30]) by filter.fridayfives.net (Postfix) with ESMTP id B8E9D6FD70 for ; Wed, 14 Apr 2004 08:42:36 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v613) In-Reply-To: <20040412182037.21472.qmail@minotaur.apache.org> References: <20040412182037.21472.qmail@minotaur.apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <02F7508B-8E12-11D8-AF9E-000A95782782@forthillcompany.com> Content-Transfer-Encoding: 7bit From: Brian McCallister Subject: Re: cvs commit: db-ojb/src/test/org/apache/ojb/otm PerformanceTest.java Date: Wed, 14 Apr 2004 08:48:21 -0400 To: "OJB Developers List" X-Mailer: Apple Mail (2.613) X-Spam-Status: No, hits=-6.7 required=4.5 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_APPLEMAIL autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Woo hoo! Welcome back, Matt! -Brian On Apr 12, 2004, at 2:20 PM, mattbaird@apache.org wrote: > mattbaird 2004/04/12 11:20:37 > > Modified: src/test/org/apache/ojb/otm PerformanceTest.java > Log: > You need to use transactions with the OTM. > > Revision Changes Path > 1.4 +2 -0 > db-ojb/src/test/org/apache/ojb/otm/PerformanceTest.java > > Index: PerformanceTest.java > =================================================================== > RCS file: > /home/cvs//db-ojb/src/test/org/apache/ojb/otm/PerformanceTest.java,v > retrieving revision 1.3 > retrieving revision 1.4 > diff -u -r1.3 -r1.4 > --- PerformanceTest.java 3 Oct 2003 12:54:09 -0000 1.3 > +++ PerformanceTest.java 12 Apr 2004 18:20:37 -0000 1.4 > @@ -180,6 +180,7 @@ > c.addBetween("articleId", new Integer(offsetId), new > Integer(offsetId + articleCount)); > Query q = new QueryByCriteria(PerformanceArticle.class, c); > long start = System.currentTimeMillis(); > + tx.begin(); > Iterator iter = _conn.getIteratorByQuery(q, > LockType.NO_LOCK); > int fetchCount = 0; > while (iter.hasNext()) > @@ -187,6 +188,7 @@ > fetchCount++; > PerformanceArticle a = (PerformanceArticle) iter.next(); > } > + tx.commit(); > long stop = System.currentTimeMillis(); > logger.info("fetching " + fetchCount + " Objects: " + (stop > - start) + " msec"); > } > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org