1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00

Use MariaDB max limit for index/attribute subqueries

This commit is contained in:
kodumbeats 2021-09-01 10:08:59 -04:00
parent ae58a60065
commit be47d16290

View file

@ -184,7 +184,7 @@ Database::addFilter('subQueryAttributes',
return $database return $database
->find('attributes', [ ->find('attributes', [
new Query('collectionId', Query::TYPE_EQUAL, [$document->getId()]) new Query('collectionId', Query::TYPE_EQUAL, [$document->getId()])
], 100, 0, []); ], 1017, 0, []);
} }
); );
@ -196,7 +196,7 @@ Database::addFilter('subQueryIndexes',
return $database return $database
->find('indexes', [ ->find('indexes', [
new Query('collectionId', Query::TYPE_EQUAL, [$document->getId()]) new Query('collectionId', Query::TYPE_EQUAL, [$document->getId()])
], 100, 0, []); ], 64, 0, []);
} }
); );