Change indexes

pull/6511/head
Никита Поздняков 2 years ago
parent 8a52fe6654
commit 82865bba6b
No known key found for this signature in database
GPG Key ID: F344106F9804FE5F
  1. 6
      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

Loading…
Cancel
Save