Python MariaDb 在请求多于几行(比如 20+)时挂起,查询在限制 10 的情况下工作正常

问题描述 投票:0回答:1

如标题中所述,尝试使用 pypi 中的最新 mariadb 以及 github 中的最新软件包(https://github.com/mariadb-corporation/mariadb-connector-python

查询在限制为 10 的脚本中运行良好,在该数字之后,当我运行 curr.execute() 时,它开始挂起。

在 phpmyadmin 中运行时,即使限制为 1000,查询(如下)也会以毫秒为单位运行。

我的 mariadb.connect 参数中的 connect_timeout 时间是 30。

SELECT terms.term_id, terms.name, tax.taxonomy
FROM wp_terms AS terms
INNER JOIN wp_term_taxonomy AS tax
ON terms.term_id = tax.term_id
LIMIT 1000;

是否有一些我找不到的超时配置?

python mariadb
1个回答
0
投票

我也遇到同样的问题了,有更新吗?

© www.soinside.com 2019 - 2024. All rights reserved.