diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-08-08 15:27:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-08 15:27:49 +0200 |
commit | 97c678a0b26d748f9829d732910d5c402c609dc2 (patch) | |
tree | e82f95e192cd54e1094227c3987ae2af5215d2b4 /src/Wallabag/CoreBundle/Entity/Tag.php | |
parent | 1a6980dbd16fd75f7be2420feeb9cc72b46884ef (diff) | |
parent | 00567d9ccde71eba1aabf8fa0d547897f6870b28 (diff) | |
download | wallabag-97c678a0b26d748f9829d732910d5c402c609dc2.tar.gz wallabag-97c678a0b26d748f9829d732910d5c402c609dc2.tar.zst wallabag-97c678a0b26d748f9829d732910d5c402c609dc2.zip |
Merge pull request #4081 from shtrom/fix-slow-queries
Fix slow/unindexed queries
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Tag.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Tag.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php index 95c47bbd..3ccb20a5 100644 --- a/src/Wallabag/CoreBundle/Entity/Tag.php +++ b/src/Wallabag/CoreBundle/Entity/Tag.php | |||
@@ -16,6 +16,9 @@ use JMS\Serializer\Annotation\XmlRoot; | |||
16 | * @ORM\Table( | 16 | * @ORM\Table( |
17 | * name="`tag`", | 17 | * name="`tag`", |
18 | * options={"collate"="utf8mb4_bin", "charset"="utf8mb4"}, | 18 | * options={"collate"="utf8mb4_bin", "charset"="utf8mb4"}, |
19 | * indexes={ | ||
20 | * @ORM\Index(name="tag_label", columns={"label"}, options={"lengths"={255}}), | ||
21 | * } | ||
19 | * ) | 22 | * ) |
20 | * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository") | 23 | * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository") |
21 | * @ExclusionPolicy("all") | 24 | * @ExclusionPolicy("all") |