SpringSource/spring-data-mongodb — pull request #37 by noter (2013-04-25 10:54:01+00:00)
Title: Profiling query methods for mapping model

I have some time to discover profiler features so I don't want to waste it, so I have played a little bit with spring-data-mongo.

I find that some query to mapping model (after warmup) are little bit uneffective because it always use reflection call or whole collection iteration for example.

So I made some changes to cache this methods call and I gained ~ 20% reduction in query time.

If someone confirm my assumptions, I can make clean patch for this.

Test: org.springframework.data.mongodb.performance.PerformanceTests#readAfterWarmup