Skip to content

Commit a32163e

Browse files
authored
Merge pull request #521 from utopia-php/chunk-document-ids
Internal ids chunks
2 parents 93114c6 + 8f13aef commit a32163e

File tree

7 files changed

+394
-374
lines changed

7 files changed

+394
-374
lines changed

composer.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Database/Adapter.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,12 @@ abstract public function createDocument(string $collection, Document $document):
604604
*
605605
* @param string $collection
606606
* @param array<Document> $documents
607-
* @param int $batchSize
608607
*
609608
* @return array<Document>
610609
*
611610
* @throws DatabaseException
612611
*/
613-
abstract public function createDocuments(string $collection, array $documents, int $batchSize): array;
612+
abstract public function createDocuments(string $collection, array $documents): array;
614613

615614
/**
616615
* Update Document
@@ -645,14 +644,12 @@ abstract public function updateDocuments(string $collection, Document $updates,
645644
* @param string $collection
646645
* @param string $attribute
647646
* @param array<Document> $documents
648-
* @param int $batchSize
649647
* @return array<Document>
650648
*/
651649
abstract public function createOrUpdateDocuments(
652650
string $collection,
653651
string $attribute,
654-
array $documents,
655-
int $batchSize
652+
array $documents
656653
): array;
657654

658655
/**

0 commit comments

Comments
 (0)