From 82865bba6bf1bfb457d60c75510ef853f6f61258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9F=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=BD=D1=8F=D0=BA=D0=BE=D0=B2?= Date: Tue, 29 Nov 2022 14:27:06 +0300 Subject: [PATCH] Change indexes --- .../priv/repo/migrations/20221126103223_add_txs_indexes.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/explorer/priv/repo/migrations/20221126103223_add_txs_indexes.exs b/apps/explorer/priv/repo/migrations/20221126103223_add_txs_indexes.exs index eb439b16fb..ac0452c54e 100644 --- a/apps/explorer/priv/repo/migrations/20221126103223_add_txs_indexes.exs +++ b/apps/explorer/priv/repo/migrations/20221126103223_add_txs_indexes.exs @@ -12,7 +12,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", - "hash DESC" + "hash ASC" ], name: "transactions_from_address_hash_with_pending_index", concurrently: true @@ -22,7 +22,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do create_if_not_exists( index( :transactions, - [:to_address_hash, "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", "hash DESC"], + [:to_address_hash, "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", "hash ASC"], name: "transactions_to_address_hash_with_pending_index", concurrently: true ) @@ -36,7 +36,7 @@ defmodule Explorer.Repo.Migrations.AddTxsIndexes do "block_number DESC NULLS FIRST", "index DESC NULLS FIRST", "inserted_at DESC", - "hash DESC" + "hash ASC" ], name: "transactions_created_contract_address_hash_with_pending_index", concurrently: true