Use MariaDB max limit for index/attribute subqueries
This commit is contained in:
parent
ae58a60065
commit
be47d16290
1 changed files with 2 additions and 2 deletions
|
@ -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, []);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue