From add7a01fac568ab7e78220ef0659a1f6cbc6b44e Mon Sep 17 00:00:00 2001 From: Matej Baco Date: Thu, 23 Sep 2021 15:40:05 +0200 Subject: [PATCH] Added database key for performence --- app/config/collections2.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/config/collections2.php b/app/config/collections2.php index 866d1cb1b6..71dc7e9f69 100644 --- a/app/config/collections2.php +++ b/app/config/collections2.php @@ -715,6 +715,13 @@ $collections = [ 'lengths' => [1024], 'orders' => [Database::ORDER_ASC], ], + [ + '$id' => '_key_deleted_email', + 'type' => Database::INDEX_KEY, + 'attributes' => ['deleted', 'email'], + 'lengths' => [0, 1024], + 'orders' => [Database::ORDER_ASC, Database::ORDER_ASC], + ], ], ],