Development #56439
améliorer les performances de la recherche par email dans le manager
Début:
27 août 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Thomas m'a fait utiliser un icontains
au lieu d'un iexact
, le souci est qu'on utilise plus l'index sur UPPER(email)
dans ce cas, mais on peut retrouver de bonne performance en utilisant l'index trigramme sur LOWER(email)
.
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Fichier 0001-misc-use-trigram-index-in-free_text_search-for-email.patch 0001-misc-use-trigram-index-in-free_text_search-for-email.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Valentin Deniaud il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit d67ff3b2fa4cbdaf03c4d4e59f0625d50a546a37 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Fri Aug 27 14:32:54 2021 +0200 misc: use trigram index in free_text_search() for emails (#56439) Trigram indexes can improve performance of the LIKE operator but the left hand side must match the index expression (here it's @LOWER(email)@).
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: use trigram index in free_text_search() for emails (#56439)
Trigram indexes can improve performance of the LIKE operator but the
left hand side must match the index expression (here it's
LOWER(email)
).