⚡ Improve blocktree storage performance
This commit is contained in:
parent
d6fba4d279
commit
498cb1ba85
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ func initDBTables() {
|
|||
if nil != err {
|
||||
logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create table [blocktrees] failed: %s", err)
|
||||
}
|
||||
|
||||
_, err = db.Exec("CREATE INDEX idx_blocktrees_id ON blocktrees(id)")
|
||||
if nil != err {
|
||||
logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create index [idx_blocktrees_id] failed: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func initDBConnection() {
|
||||
|
|
Loading…
Add table
Reference in a new issue