Skip to content

Commit e693496

Browse files
authored
Merge pull request #3 from weaveVM/dev
perf: DB indexing
2 parents a403e04 + 833adf5 commit e693496

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

db.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ CREATE TABLE IF NOT EXISTS Blobscan (
66
WeaveVMArchiveTxid VARCHAR(66) UNIQUE,
77
VersionedHash TINYTEXT,
88
BlobData LONGTEXT
9-
);
9+
);
10+
11+
CREATE INDEX idx_versioned_hash ON Blobscan(VersionedHash(16));

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@ async fn main(
6565
}
6666
});
6767

68-
// tokio::join!(eth_block_updater, blobscan_insertion);
6968
Ok(router.into())
7069
}

src/utils/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ pub struct PsGetBlockByVersionedHash {
1313
#[derive(Debug, Serialize, Deserialize, Database)]
1414
pub struct PsGetLatestArchivedBlock {
1515
pub last_archived_eth_block: u64,
16-
pub blob_versioned_hash: String,
17-
pub wvm_archive_txid: String,
16+
pub wvm_archive_txid: String,
17+
pub blob_versioned_hash : String,
1818
}
1919

2020
#[derive(Debug, Serialize, Deserialize)]

0 commit comments

Comments
 (0)