Looking at the following image :
How come the response time (blue line) is below the yellow part (mongo)? Response time should be the sum of all operations time.
What am I missing here?
Looking at the following image :
How come the response time (blue line) is below the yellow part (mongo)? Response time should be the sum of all operations time.
What am I missing here?
Response time can be less if requests are non-blocking/asynchronous
The relationship between response time and total amount of time reflects how much concurrency is taking place within the instrumented code in your application.
If response time is less than the total time spent, you are taking advantage of concurrency with a non-blocking or asynchronous computing model.
EDIT
Created a topic in newrelic discuss and found similar issue
I’ve updated to the latest NewRelic Agent 5.2.0 recently, which seems to have increased support for the regular MongoClient (non-async).
Seems like something is very bad in the timing calculations.
Response time is the duration of a transaction from the perspective of the requester, and not necessarily the total sum of all time spent within a transaction.
It is expected that response time is less than the total time when Async is used in the transaction.