aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/DB
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-20 10:47:00 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-03-17 21:41:58 +0100
commitc870bd1968841f3141ec29e42f37f4608955bc88 (patch)
tree011bda6e63adf003061be34ef1417867e082b947 /lib/public/DB
parent6b4ab04a4461ebfb3ee175d2f824a63e95ba021a (diff)
downloadnextcloud-server-c870bd1968841f3141ec29e42f37f4608955bc88.tar.gz
nextcloud-server-c870bd1968841f3141ec29e42f37f4608955bc88.zip
Do chuncked job deletion
This is helpful in cases where we are deleting tons jobs at the same time in a gallera cluster. This doesn't happen often but this can create issues. Test plan: 1. Use https://github.com/nextcloud/quota_warning/pull/88 2. Change max to 1 3. Enabled/Disable quota_warning app and see jobs getting sucessfully added and removed Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/public/DB')
-rw-r--r--lib/public/DB/QueryBuilder/IQueryBuilder.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php
index 669003246d9..76754f7bf41 100644
--- a/lib/public/DB/QueryBuilder/IQueryBuilder.php
+++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php
@@ -73,6 +73,11 @@ interface IQueryBuilder {
*/
public const PARAM_STR_ARRAY = Connection::PARAM_STR_ARRAY;
+ /**
+ * @since 24.0.0 Indicates how many rows can be deleted at once with MySQL
+ * database server.
+ */
+ public const MAX_ROW_DELETION = 100000;
/**
* Enable/disable automatic prefixing of table names with the oc_ prefix