db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r385101 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java
Date Sat, 11 Mar 2006 16:09:18 GMT
Author: arminw
Date: Sat Mar 11 08:09:18 2006
New Revision: 385101

URL: http://svn.apache.org/viewcvs?rev=385101&view=rev
Log:
add comment

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java?rev=385101&r1=385100&r2=385101&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/compare/PerformanceODMGTest.java
Sat Mar 11 08:09:18 2006
@@ -115,6 +115,9 @@
         TransactionExt tx = (TransactionExt) odmg.newTransaction();
         // we don't want implicite locks when compare performance
         tx.setImplicitLocking(false);
+        // the odmg-api hasn't specific methods to lookup objects
+        // by primary key. It's recommended to use use PB-api instead for
+        // best performance. But here we use an oql-query for each object.
         String sql = "select allArticles from " + PerformanceArticle.class.getName() + "
where articleId=$1";
         long start = System.currentTimeMillis();
         tx.begin();



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message