Skip to content

How do 'transactions' in Planetscale work? #634

Answered by mscoutermarsh
markski1 asked this question in Q&A
Discussion options

You must be logged in to vote

Heard back from some coworkers, we have seen this before with that library. Couple things to check.

  1. Is it possible any of your select queries are taking longer than 20s? Normally the query limit is 900s, but if a select is performed within a transaction, then it will be limited to 20s.
  2. We've had another developer say that setting autocommit to true, solved the problem for them. This will commit any open transaction after a query is run. The default for the python connector is false. https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@markski1
Comment options

@mscoutermarsh
Comment options

@mscoutermarsh
Comment options

Answer selected by markski1
@markski1
Comment options

@markski1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants