Dec 9th, 2011, 07:01 AM
Runtime performance of Repository proxy for mongo-db is very slow.
I have tested performance of bulk save with Repository and MongoOperations.
with MongoOperations to save 10240 entities ~2seconds
with proxied Repository to save 10240 entities ~431seconds.
Profiler show me that most of time is spent by org.springframework.aop.framework.JdkDynamicAopPro xy.
windows 7 64bit
jdk 1.6_29 64bit
Last edited by bauman; Dec 9th, 2011 at 07:52 AM.
Dec 9th, 2011, 08:30 AM
Sorry, spring managed repository has different connection options then manually created.
Dec 12th, 2011, 05:48 AM
So does that mean the issue is solved or at least explained for you? Not that configuring different WriteConcerns heavily impact performance. So make sure you're using the very same MongoTemplate instance for both direct access and repository usage when doing performance comparisons.
Dec 12th, 2011, 06:11 AM
Yes, it is solved. Thank you.