java - spring 4.0.0 + mongodb 3.0.4 working very slow -


below library version defined in pom.xml

<spring.version>4.0.0.release</spring.version> <spring.security.version>3.0.5.release</spring.security.version> <mongo-java-driver.version>2.12.1</mongo-java-driver.version> <spring-data-commons.version>1.7.2.release</spring-data-commons.version> <spring-data-mongodb.version>1.4.2.release</spring-data-mongodb.version> <org.aspectj-version>1.7.4</org.aspectj-version> <jackson.databind-version>2.2.3</jackson.databind-version> <log4j.version>1.2.17</log4j.version>   <dependencies>     <dependency>         <groupid>junit</groupid>         <artifactid>junit</artifactid>         <version>3.8.1</version>         <scope>test</scope>     </dependency>      <!-- spring -->     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-core</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-context</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-beans</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-aop</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-orm</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-web</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework</groupid>         <artifactid>spring-webmvc</artifactid>         <version>${spring.version}</version>     </dependency>     <dependency>         <groupid>org.springframework.ws</groupid>         <artifactid>spring-oxm</artifactid>         <version>1.5.10</version>     </dependency>     <dependency>         <groupid>org.codehaus.jettison</groupid>         <artifactid>jettison</artifactid>         <version>1.1</version>     </dependency>     <dependency>         <groupid>org.codehaus.castor</groupid>         <artifactid>castor</artifactid>         <version>1.2</version>     </dependency>     <dependency>         <groupid>xerces</groupid>         <artifactid>xercesimpl</artifactid>         <version>2.8.1</version>     </dependency>     <dependency>         <groupid>javax.xml.bind</groupid>         <artifactid>jaxb-api</artifactid>         <version>2.0</version>     </dependency>     <!-- xstream , json provider -->     <dependency>         <groupid>com.thoughtworks.xstream</groupid>         <artifactid>xstream</artifactid>         <version>1.3.1</version>         <type>jar</type>     </dependency>     <!-- jackson -->     <dependency>         <groupid>com.fasterxml.jackson.core</groupid>         <artifactid>jackson-databind</artifactid>         <version>${jackson.databind-version}</version>     </dependency>      <!-- spring / mongodb -->     <dependency>         <groupid>org.mongodb</groupid>         <artifactid>mongo-java-driver</artifactid>         <version>${mongo-java-driver.version}</version>     </dependency>     <dependency>         <groupid>org.springframework.data</groupid>         <artifactid>spring-data-mongodb</artifactid>         <version>${spring-data-mongodb.version}</version>     </dependency>      <dependency>         <groupid>cglib</groupid>         <artifactid>cglib</artifactid>         <version>2.2.2</version>     </dependency>     <!-- tiles plugins -->     <dependency>         <groupid>org.apache.tiles</groupid>         <artifactid>tiles-jsp</artifactid>         <version>3.0.3</version>     </dependency>     <!-- jstl plugins -->     <!-- log4j -->     <dependency>         <groupid>log4j</groupid>         <artifactid>log4j</artifactid>         <version>${log4j.version}</version>     </dependency>     <dependency>         <groupid>org.slf4j</groupid>         <artifactid>slf4j-log4j12</artifactid>         <version>${slf4j.version}</version>     </dependency>     <dependency>         <groupid>javax.servlet</groupid>         <artifactid>jstl</artifactid>         <version>1.2</version>     </dependency>     <!-- aspectj -->     <dependency>         <groupid>org.aspectj</groupid>         <artifactid>aspectjrt</artifactid>         <version>${org.aspectj-version}</version>     </dependency>     <dependency>         <groupid>org.aspectj</groupid>         <artifactid>aspectjweaver</artifactid>         <version>${org.aspectj-version}</version>     </dependency>     <dependency>         <groupid>commons-lang</groupid>         <artifactid>commons-lang</artifactid>         <version>2.6</version>     </dependency>       <dependency>         <groupid>commons-fileupload</groupid>         <artifactid>commons-fileupload</artifactid>         <version>1.2.2</version>     </dependency>      <!-- apache commons upload -->     <dependency>         <groupid>commons-io</groupid>         <artifactid>commons-io</artifactid>         <version>1.3.2</version>     </dependency>  </dependencies> 

mongodb version : 3.0.4

list<documentdo> list = getmongooperations().find(query, documentdo.class); 

when try find data above code, takes 5 10 seconds fetch 23 results out of 23.

list<eventdo> list = getmongooperations().find(query, eventdo.class); 

when try find data above code, takes 1 2 seconds fetch 23 results out of 23.

only different between documentdo , eventdo : documentdo contails fields string list eventdo not contails fields string list

can 1 me, why happen me?

let me know if want more information.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -