From: Bryan T. <tho...@us...> - 2007-12-05 15:11:12
|
Update of /cvsroot/cweb/generic-native-test/src/java/org/CognitiveWeb/generic/core/om In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv6025/src/java/org/CognitiveWeb/generic/core/om Modified Files: ObjectManagerTestCase.java Log Message: bigdata-gom is now running. Index: ObjectManagerTestCase.java =================================================================== RCS file: /cvsroot/cweb/generic-native-test/src/java/org/CognitiveWeb/generic/core/om/ObjectManagerTestCase.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ObjectManagerTestCase.java 30 Nov 2007 21:53:57 -0000 1.4 --- ObjectManagerTestCase.java 5 Dec 2007 15:11:09 -0000 1.5 *************** *** 312,316 **** PropertyClass propertyClass2 = om.getPropertyClass ( property, ! false ); --- 312,316 ---- PropertyClass propertyClass2 = om.getPropertyClass ( property, ! false//insert ); *************** *** 340,347 **** // Speed up this test case by running in a native transaction. ! final int counter = om.beginNativeTransaction(); for( int i=0; i<M; i++ ) { final String property = getUniquePropertyName("i="+i); --- 340,350 ---- // Speed up this test case by running in a native transaction. ! int counter = om.beginNativeTransaction(); for( int i=0; i<M; i++ ) { + if(i%100==0) System.err.println(""); + System.err.print("."); + final String property = getUniquePropertyName("i="+i); *************** *** 387,392 **** --- 390,403 ---- om = reopenNativeStore(); + System.err.println("Reopened store - confirming property classes"); + + // speed up test by using a native transaction. + counter = om.beginNativeTransaction(); + for( int i=0; i<M; i++ ) { + if(i%100==0) System.err.println(""); + System.err.print("."); + final String property = propertyNames[ i ]; *************** *** 410,413 **** --- 421,426 ---- } + om.commitNativeTransaction(counter); + closeStore(); |