From 2e87b405fe9b9f8c1c14673d879d719b702153fb Mon Sep 17 00:00:00 2001 From: Pruthvi Patel Date: Thu, 12 Jan 2023 23:17:59 +1100 Subject: [PATCH] chore(docstring): fix docstring to match the value of `MAX_WRITES_PER_TRANSACTION` (#19572) --- frappe/database/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database/database.py b/frappe/database/database.py index 5b8be7d6e2..fb12ae693d 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -362,7 +362,7 @@ class Database: self.sql(query, debug=debug) def check_transaction_status(self, query): - """Raises exception if more than 20,000 `INSERT`, `UPDATE` queries are + """Raises exception if more than 200,000 `INSERT`, `UPDATE` queries are executed in one transaction. This is to ensure that writes are always flushed otherwise this could cause the system to hang.""" self.check_implicit_commit(query)