Skip to content

Commit

Permalink
[indexer-alt] modify coin balance bucket index to sort object id in d…
Browse files Browse the repository at this point in the history
…escending order
  • Loading branch information
emmazzz committed Feb 12, 2025
1 parent 3ee9343 commit feea443
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DROP INDEX IF EXISTS coin_balances_buckets_object_id_desc;

CREATE INDEX IF NOT EXISTS coin_balances_buckets_owner_type
ON coin_balance_buckets (owner_kind, owner_id, coin_type, coin_balance_bucket DESC, cp_sequence_number DESC, object_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DROP INDEX IF EXISTS coin_balances_buckets_owner_type;

CREATE INDEX IF NOT EXISTS coin_balances_buckets_object_id_desc
ON coin_balance_buckets (owner_kind, owner_id, coin_type, coin_balance_bucket DESC, cp_sequence_number DESC, object_id DESC);

0 comments on commit feea443

Please sign in to comment.