gpt4 book ai didi

mysql - MySQL 可以处理多少个 GET_LOCK?

转载 作者:行者123 更新时间:2023-11-29 06:37:23 24 4
gpt4 key购买 nike

一个 mysql 服务器可以处理多少 GET_LOCKS - 整个服务器。我无法找到有关其局限性的任何信息。

最佳答案

根据 MySQL 文档 GET_LOCK()每个连接不能持有多个锁。

如上所说

If you have a lock obtained with GET_LOCK(), it is released when you execute RELEASE_LOCK(), execute a new GET_LOCK(), or your connection terminates (either normally or abnormally).

所以本质上,它取决于 No.Of 连接。我会说等式会

No.of GET_LOCK handled = NO.Of Connections handled

我看到记录了一个错误,人们建议在每个连接上设置并发锁。看这里http://bugs.mysql.com/bug.php?id=1118

关于mysql - MySQL 可以处理多少个 GET_LOCK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23678162/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com