Skip to content

Commit

Permalink
Feat/partition block main (#648)
Browse files Browse the repository at this point in the history
* feat: partition for block table

* fix: fix unit test for block partition

* fix: fix unit test for block partition

* fix: update hasura

* fix: fix migration

* fix: fix tx_count

* fix: fix tx_count
  • Loading branch information
matthew-nguyen-20032023 authored Feb 1, 2024
1 parent dcccbdf commit 9f3081b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export async function up(knex: Knex): Promise<void> {
time TIMESTAMP WITH TIME ZONE NOT NULL,
proposer_address VARCHAR(255) NOT NULL,
data jsonb NOT NULL,
tx_count integer,
CONSTRAINT block_partition_hash_unique UNIQUE (height, hash)
) PARTITION BY RANGE(height);
Expand Down

0 comments on commit 9f3081b

Please sign in to comment.