From 10439c5868ddd4d33a9466e9dffc93f4520816a4 Mon Sep 17 00:00:00 2001 From: Bogdan Crisan Date: Tue, 2 Jul 2024 23:58:52 +0200 Subject: [PATCH] fix swap index (#42) --- sql_extensions/migrations/00005_indexes_2.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sql_extensions/migrations/00005_indexes_2.sql diff --git a/sql_extensions/migrations/00005_indexes_2.sql b/sql_extensions/migrations/00005_indexes_2.sql new file mode 100644 index 0000000..cabe071 --- /dev/null +++ b/sql_extensions/migrations/00005_indexes_2.sql @@ -0,0 +1,6 @@ +CREATE INDEX inbox_events_swap_2 +ON inbox_events ( + (data ->> 'market_id'), + transaction_version DESC +) +WHERE event_name = 'emojicoin_dot_fun::Swap';