MySQL: Transactions across multiple threads

后端 未结 3 655
我寻月下人不归
我寻月下人不归 2021-01-12 07:39

Preliminary:

I have an application which maintains a thread pool of about 100 threads. Each thread can last about 1-30 seconds before a new task re

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 08:11

    1) No, a transaction is limited to a single DB connection.

    2) Yes, a connection (and transaction) can be shared across multiple threads.

提交回复
热议问题