The Unified and Autonomous Development Platform
midwork
robin shinec3527b495a7e
diff --git a/gitplex.web/pom.xml b/gitplex.web/pom.xmlindex 3eb340238b..b3dfc5c341 100644--- a/gitplex.web/pom.xml+++ b/gitplex.web/pom.xml@@ -45,7 +45,7 @@<artifactId>gitplex.rest</artifactId><version>1.0.0</version></dependency>-+<!-- JERSEY CLIENT --><dependency><groupId>org.glassfish.jersey.core</groupId>@@ -64,11 +64,15 @@</dependency><dependency>- <groupId>org.ocpsoft.prettytime</groupId>- <artifactId>prettytime</artifactId>- <version>3.2.4.Final</version>+ <groupId>org.ocpsoft.prettytime</groupId>+ <artifactId>prettytime</artifactId>+ <version>3.2.4.Final</version>+ </dependency>+ <dependency>+ <groupId>com.h2database</groupId>+ <artifactId>h2</artifactId>+ <version>1.4.190</version></dependency>-<dependency><groupId>com.pmease</groupId><artifactId>gitplex.search</artifactId>@@ -106,7 +110,7 @@<url>file://${project.basedir}/repo</url></repository></repositories>-+<properties><moduleClass>com.pmease.gitplex.web.WebModule</moduleClass><owsi-core.version>0.8.6-SNAPSHOT</owsi-core.version>diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/test/TestPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/test/TestPage.javaindex 6a784f6760..f04f1245b9 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/test/TestPage.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/test/TestPage.java@@ -2,12 +2,16 @@ package com.pmease.gitplex.web.page.test;import org.apache.wicket.markup.head.IHeaderResponse;import org.apache.wicket.markup.html.link.Link;+import org.h2.mvstore.MVMap;+import org.h2.mvstore.MVStore;import com.pmease.gitplex.web.page.base.BasePage;@SuppressWarnings("serial")public class TestPage extends BasePage {+ private int count = 0;+@Overrideprotected void onInitialize() {super.onInitialize();@@ -16,6 +20,18 @@ public class TestPage extends BasePage {@Overridepublic void onClick() {+ long time = System.currentTimeMillis();+ MVStore s = MVStore.open("w:\\temp\\db5");++ // create/get the map named "data"+ MVMap<Long, String> map = s.openMap("data");++ for (int i=1000000; i<1001000; i++)+ map.get(i);++ // close the store (this will persist changes)+ s.close();+ System.out.println(System.currentTimeMillis()-time);}});