mongoDB return response taking more time from AWS lambda

Sometimes it takes more than 10secs for the same query When I am fetching the data from MongoDB using AWS Lambda

1 Like

Hi Robot_Blue,

That is seriously bizarre: even for a net new connection, including TLS and authentication, you should never need more than 100ms. If the query takes multiple seconds to run that suggests it might be an unindexed query. Did you continue having this problem or work it out?


1 Like