Commit edc63c0f authored by Julien Muchembled's avatar Julien Muchembled

mysql: set rocksdb_max_row_locks to the maximum allowed value

The default value is quickly exceeded when truncating a DB.
Obviously, you may need a lot of RAM.
parent a8b9ec0c
......@@ -156,6 +156,9 @@ class MySQLDatabaseManager(DatabaseManager):
conn.autocommit(False)
conn.query("SET SESSION group_concat_max_len = %u" % (2**32-1))
conn.set_sql_mode("TRADITIONAL,NO_ENGINE_SUBSTITUTION")
if self._engine == 'RocksDB':
# Maximum value for _deleteRange.
conn.query("SET SESSION rocksdb_max_row_locks = %u" % 2**30)
def query(sql):
conn.query(sql)
r = conn.store_result()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment