From d128fad88ec2360f107f4cd192a6d85811a61832 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Thu, 24 Oct 2024 17:09:58 +0300 Subject: [PATCH] fix(WC)_: Create indexes for WC queries --- .../sql/1729762770_create_wallet_connect_index.up.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 walletdatabase/migrations/sql/1729762770_create_wallet_connect_index.up.sql diff --git a/walletdatabase/migrations/sql/1729762770_create_wallet_connect_index.up.sql b/walletdatabase/migrations/sql/1729762770_create_wallet_connect_index.up.sql new file mode 100644 index 000000000..adf7591b4 --- /dev/null +++ b/walletdatabase/migrations/sql/1729762770_create_wallet_connect_index.up.sql @@ -0,0 +1,5 @@ +CREATE INDEX wallet_connect_sessions_idx_644f3e58 ON wallet_connect_sessions(disconnected, expiry); +CREATE INDEX wallet_connect_sessions_idx_b4647399 ON wallet_connect_sessions(disconnected, test_chains, expiry); +CREATE INDEX wallet_connect_sessions_idx_c4f5be6a ON wallet_connect_sessions(created_timestamp DESC); +CREATE INDEX wallet_connect_sessions_idx_5dcb13c8 ON wallet_connect_sessions(pairing_topic); +CREATE INDEX wallet_connect_sessions_idx_200629ef ON wallet_connect_sessions(dapp_url);