A developer has pushed a Lambda function that pushes data into an RDS MySQL database with the
def handler(event, context): mysql = mysqlclient.connect() data = event['data'] mysql.execute(f"INSERT INTO foo (bar) VALUES (${data});") mysql.close() return
On the first execution, the Lambda functions takes 2 seconds to execute. On the second execution
What can be done to improve the execution time of the Lamdba function?