mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-18 01:45:07 +02:00
Add database indices to improve performance (SQLITE)
This commit is contained in:
parent
ed91ffc60a
commit
ccc99eba0c
10 changed files with 380 additions and 19 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue