使用SQLAlchemy查询MySQL数据库,我得到以下错误:
sqlalchemy.exc.OperationalError: (raised as a result of Query-invokedautoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (_mysql_exceptions.OperationalErrorexceeded; try restarting transac
我有一个包含2100万条记录的MySQL数据库,我试图对大约100万条记录进行更新,但是ERROR 1206 (HY000): The total number of locks exceeds thelock table size.的查询失败了编辑
--我已经批量尝试了5000次,工作了几次,但是我得到了相同的错误----我尝试过<e