Skip to content

Commit 5da9c7f

Browse files
committed
Skip documents without changes
1 parent cd55117 commit 5da9c7f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Database/Database.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,6 +4731,11 @@ public function createOrUpdateDocumentsWithIncrease(
47314731
)));
47324732
}
47334733

4734+
if ($old->getAttributes() === $document->getAttributes()) {
4735+
unset($documents[$key]);
4736+
continue;
4737+
}
4738+
47344739
// If old is empty, check if user has create permission on the collection
47354740
// If old is not empty, check if user has update permission on the collection
47364741
// If old is not empty AND documentSecurity is enabled, check if user has update permission on the collection or document

0 commit comments

Comments
 (0)