When using MongoRepository query data in the multi-threads, we meet a performance problem. After geting data collection from MongoDB, we always need to invoke ClassTypeInformation.from(...) to exchange data. Unfortunately, this method invoke a synchronized method CACHE.get(...), expecially when the retuing data very big, making many threads wait for the synchronized lock. Rather that performance of concurrent query go down. In this case, somebody, could you give some advices for me? thanks!
