jeremydaly / data-api-client

A "DocumentClient" for the Amazon Aurora Serverless Data API
MIT License
440 stars 60 forks source link

Is connection takes long time #99

Closed rabigautam closed 3 years ago

rabigautam commented 3 years ago

when I do db.query it takes long time at first (don't know just predicted )and after that hit it gives result within short time and after some gap if again the db.query triggered then it takes some time as previous why?

ffxsam commented 3 years ago

Most likely nothing to do with this library. Are you using Aurora Serverless? It sounds like maybe you have auto-pause enabled, and the database is spun down. So your first query spins it up (can take 20 seconds or so), then the subsequent queries are faster.

rabigautam commented 3 years ago

Thank you for the information. Yeah I have used aurora Serverless .So, not to spun down I need to disable autoPase providing duration 0 yeah

rabigautam commented 3 years ago

not an issue