ignite-sql-tests - bench fix

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/2ee73270
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/2ee73270
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/2ee73270

Branch: refs/heads/ignite-45
Commit: 2ee732701fad3366f9d9f0f0e914b63ae778defe
Parents: 85d444a
Author: S.Vladykin <svlady...@gridgain.com>
Authored: Tue Mar 17 22:44:48 2015 +0300
Committer: S.Vladykin <svlady...@gridgain.com>
Committed: Tue Mar 17 22:44:48 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheQuerySimpleBenchmark.java   | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/2ee73270/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQuerySimpleBenchmark.java
----------------------------------------------------------------------
diff --git 
a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQuerySimpleBenchmark.java
 
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQuerySimpleBenchmark.java
index 54f9f93..e2be751 100644
--- 
a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQuerySimpleBenchmark.java
+++ 
b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheQuerySimpleBenchmark.java
@@ -46,18 +46,14 @@ public class GridCacheQuerySimpleBenchmark extends 
GridCommonAbstractTest {
         ccfg.setCacheMode(CacheMode.PARTITIONED);
         ccfg.setAtomicityMode(CacheAtomicityMode.ATOMIC);
         ccfg.setSwapEnabled(false);
-        ccfg.setQueryIndexEnabled(true);
+        ccfg.setIndexedTypes(
+            Long.class, Person.class
+        );
 
         ccfg.setMemoryMode(CacheMemoryMode.OFFHEAP_TIERED);
 
         c.setCacheConfiguration(ccfg);
 
-        QueryConfiguration qcfg = new QueryConfiguration();
-
-        qcfg.setMaxOffHeapMemory(0);
-
-        c.setQueryConfiguration(qcfg);
-
         return c;
     }
 

Reply via email to