Use a two step approach to retrieve part tables

This allows us to combine the fast filtering with the fetch joins, which should speed up the datatables a lot.
This commit is contained in:
Jan Böhmer 2023-07-23 21:48:38 +02:00
parent b8b9a416ac
commit 4c4501073c
3 changed files with 253 additions and 37 deletions

View file

@ -41,9 +41,9 @@ class LessThanDesiredConstraint extends BooleanConstraint
//If value is true, we want to filter for parts with stock < desired stock
if ($this->value) {
$queryBuilder->andHaving('amountSum < part.minamount');
$queryBuilder->andHaving('amountSum < minamount');
} else {
$queryBuilder->andHaving('amountSum >= part.minamount');
$queryBuilder->andHaving('amountSum >= minamount');
}
}
}