mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 05:38:54 +01:00
Do not use distinct on table queries.
This should speed up table loading a lot.
This commit is contained in:
@@ -297,7 +297,7 @@ class LogDataTable implements DataTableTypeInterface
|
||||
|
||||
protected function getQuery(QueryBuilder $builder, array $options): void
|
||||
{
|
||||
$builder->distinct()->select('log')
|
||||
$builder->select('log')
|
||||
->addSelect('user')
|
||||
->from(AbstractLogEntry::class, 'log')
|
||||
->leftJoin('log.user', 'user');
|
||||
|
||||
Reference in New Issue
Block a user