From aa23d8658dac2bde767093cc8c625498518554e6 Mon Sep 17 00:00:00 2001 From: Ethan Sung Date: Mon, 22 Mar 2021 14:32:04 +0900 Subject: [PATCH] Update postgres index in multi-wallet to use md5 Signed-off-by: Ethan Sung --- experimental/plugins/postgres_storage/src/postgres_storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experimental/plugins/postgres_storage/src/postgres_storage.rs b/experimental/plugins/postgres_storage/src/postgres_storage.rs index 8b693d5b97..14e9b18ff4 100644 --- a/experimental/plugins/postgres_storage/src/postgres_storage.rs +++ b/experimental/plugins/postgres_storage/src/postgres_storage.rs @@ -196,7 +196,7 @@ const _CREATE_SCHEMA_MULTI: [&str; 14] = [ ON UPDATE CASCADE )", "CREATE INDEX IF NOT EXISTS ix_tags_encrypted_name ON tags_encrypted(wallet_id, name)", - "CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(wallet_id, value)", + "CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(wallet_id, md5(value))", "CREATE INDEX IF NOT EXISTS ix_tags_encrypted_wallet_id_item_id ON tags_encrypted(wallet_id, item_id)", "CREATE TABLE IF NOT EXISTS tags_plaintext( wallet_id VARCHAR(64) NOT NULL,