[JAVA-2935] The question about MongoDB spend Time Created: 17/Aug/18  Updated: 11/Sep/19  Resolved: 22/Aug/18

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 3.2.1
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: liucx Assignee: Unassigned
Resolution: Done Votes: 0
Labels: driver
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mongo server's version:3.2.10
Java driver's version:3.2.2



 Description   

When my application server restart,It will spend more time to finish my query or insert operation on interaction  of my app server and mongodb server in the first time. Then it will be cost a short time to finish query or insert operation. It cost about 180ms to finish my query operation after the application server restart, then it cost just 7ms to finish my query operation.

Why does this happen? 

What can I do to avoid this happen when the first query operation?

 

 



 Comments   
Comment by Ross Lawley [ 17/Aug/18 ]

Hi fcb,

Just to let you know this project is for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage, server behaviour or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support.

If you do follow up via one of the options above please post a link and I will follow the conversation there.

All the best,

Ross

Generated at Thu Feb 08 08:58:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.