Add database indices to improve performance (SQLITE)

This commit is contained in:
Jan Böhmer 2022-09-25 18:48:16 +02:00
parent ed91ffc60a
commit ccc99eba0c
10 changed files with 380 additions and 19 deletions

View file

@ -34,7 +34,10 @@ use Symfony\Component\Validator\Constraints as Assert;
* Class AttachmentType.
*
* @ORM\Entity(repositoryClass="App\Repository\StructuralDBElementRepository")
* @ORM\Table(name="`attachment_types`")
* @ORM\Table(name="`attachment_types`", indexes={
* @ORM\Index(name="attachment_types_idx_name", columns={"name"}),
* @ORM\Index(name="attachment_types_idx_parent_name", columns={"parent_id", "name"}),
* })
*/
class AttachmentType extends AbstractStructuralDBElement
{