Do not use distinct on table queries.

This should speed up table loading a lot.
This commit is contained in:
Jan Böhmer 2022-09-25 14:43:15 +02:00
parent 9179ea4559
commit c5d7f0a5b1
3 changed files with 4 additions and 4 deletions

View file

@ -292,8 +292,8 @@ final class PartsDataTable implements DataTableTypeInterface
private function getQuery(QueryBuilder $builder): void
{
$builder->distinct()->select('part')
//Distinct is very slow here, do not add this here (also I think this is not needed here, as the id column is always distinct)
$builder->select('part')
->addSelect('category')
->addSelect('footprint')
->addSelect('manufacturer')