-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
node: store streams in local db and start from delta's instead of fet…
…ching all streams on boot
- Loading branch information
Showing
6 changed files
with
395 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
core/node/storage/migrations/000007_create_streams_metadata_table.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS streams_metadata; |
10 changes: 10 additions & 0 deletions
10
core/node/storage/migrations/000007_create_streams_metadata_table.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS streams_metadata ( | ||
stream_id CHAR(64) NOT NULL, | ||
riverblock_num BIGINT NOT NULL, | ||
riverblock_log_index BIGINT NOT NULL, | ||
nodes CHAR(20)[] NOT NULL, | ||
miniblock_hash CHAR(64) NOT NULL, | ||
miniblock_num BIGINT NOT NULL, | ||
is_sealed BOOL NOT NULL, | ||
PRIMARY KEY (stream_id) | ||
); |
Oops, something went wrong.