mysql - Python AWS Lambda spins new connection to RDS for each deployment -


i have python based lambda function, connects mysql(rds) database.

every time deploy lambda code , run function, new connection created.

how can reuse same connection or flush old connections before creating new one?

close connection inside lambda function. expected , normal behaviour of lambda.


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -