I am trying to use Lambdas with RDS and what I am discovering right now that lambdas works too slow.
I have one function that use DynamoDB and runs around 500ms, but another function that uses RDS runs 12sec (cold start) and ~3sec on repeat...
First I was connecting without VPC, using Publicly AccessibleWhether the instance is publicly accessible and it shows the same results.
My lambda runs
SELECT * FROM users where table has around 10 rows in 3 seconds...
I want to know if I am doing smth wrong or it's expected behaviour?
Thanks in advance.