mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
$deleteBatchSize
This commit is contained in:
parent
cc1129a7b9
commit
9cc61d89f0
1 changed files with 4 additions and 1 deletions
|
|
@ -1117,6 +1117,9 @@ class Deletes extends Action
|
||||||
): void {
|
): void {
|
||||||
$start = \microtime(true);
|
$start = \microtime(true);
|
||||||
|
|
||||||
|
$deleteBatchSize = Database::DELETE_BATCH_SIZE;
|
||||||
|
$deleteBatchSize = 300;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* deleteDocuments uses a cursor, we need to add a unique order by field or use default
|
* deleteDocuments uses a cursor, we need to add a unique order by field or use default
|
||||||
*/
|
*/
|
||||||
|
|
@ -1124,7 +1127,7 @@ class Deletes extends Action
|
||||||
$count = $database->deleteDocuments(
|
$count = $database->deleteDocuments(
|
||||||
$collection,
|
$collection,
|
||||||
$queries,
|
$queries,
|
||||||
Database::DELETE_BATCH_SIZE,
|
$deleteBatchSize,
|
||||||
$callback
|
$callback
|
||||||
);
|
);
|
||||||
} catch (Throwable $th) {
|
} catch (Throwable $th) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue