mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 16:59:03 +01:00
Do not use distinct on table queries.
This should speed up table loading a lot.
This commit is contained in:
@@ -226,7 +226,7 @@ final class AttachmentDataTable implements DataTableTypeInterface
|
||||
|
||||
private function getQuery(QueryBuilder $builder): void
|
||||
{
|
||||
$builder->distinct()->select('attachment')
|
||||
$builder->select('attachment')
|
||||
->addSelect('attachment_type')
|
||||
//->addSelect('element')
|
||||
->from(Attachment::class, 'attachment')
|
||||
|
||||
Reference in New Issue
Block a user