mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
(perf): Select only IDs in TransactionState count query
This commit is contained in:
@@ -172,7 +172,7 @@ class TransactionState
|
||||
return $baseCount;
|
||||
}
|
||||
|
||||
$committedDocs = $this->dbForProject->find($collectionId, $queries);
|
||||
$committedDocs = $this->dbForProject->find($collectionId, \array_merge($queries, [Query::select(['$id'])]));
|
||||
$committedDocIds = [];
|
||||
foreach ($committedDocs as $doc) {
|
||||
$committedDocIds[$doc->getId()] = true;
|
||||
|
||||
Reference in New Issue
Block a user