Open charmfocus opened 11 months ago
因为源库有最大执行时间限制30s,超30秒后SELECT会停止,所以如何才能配置限制SELECT语句的splitPk的单条查询大小,因为源表行数很大,单条SQL查询量都超40W行,查询时间太长会导致Query execution was interrupted, maximum statement execution time exceeded错误
Query execution was interrupted, maximum statement execution time exceeded
把channel调的特别大试试,比如1000.
为什么不通过某个条件,限制下行数,分多个job来执行呢
因为源库有最大执行时间限制30s,超30秒后SELECT会停止,所以如何才能配置限制SELECT语句的splitPk的单条查询大小,因为源表行数很大,单条SQL查询量都超40W行,查询时间太长会导致
Query execution was interrupted, maximum statement execution time exceeded
错误