From 39590cc22931eb521aecc46d4cf5b59eca7720fc Mon Sep 17 00:00:00 2001 From: niladic Date: Mon, 25 Sep 2023 10:32:27 +0200 Subject: [PATCH] Ajoute un index pour la recherche dans la table event --- conf/evolutions/default/67.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 conf/evolutions/default/67.sql diff --git a/conf/evolutions/default/67.sql b/conf/evolutions/default/67.sql new file mode 100644 index 000000000..6f6b9cf8c --- /dev/null +++ b/conf/evolutions/default/67.sql @@ -0,0 +1,9 @@ +-- !Ups + +CREATE INDEX event_to_user_id_creation_date_idx ON "event" (to_user_id, creation_date DESC); + + + +-- !Downs + +DROP INDEX event_to_user_id_creation_date_idx;