transaction takes too long
I have a problem with transactions. What might be the reason that db.transaction() adds more than 10ms latency?
+ postgresql
Below I will attach code that generated those results. Transaction overhead is present in every function call. What might be the reason for the more than 10ms spent on a transaction?
3 Replies
![No description](https://cdn.answeroverflow.com/1231845684617941005/image.png)
connection:
Don't know, but it's not caused by Kysely. Kysely does nothing but run begin and commit/rollback
If it reserves a new connection (no free cached connections in the pool) it takes a while.
Do you get the same result of you make sure there are connections in the pool?