Optimized db with new indexes, added rawtx db

This commit is contained in:
kexkey
2021-10-07 12:43:53 -04:00
parent f1fe6df07d
commit 23caf87e30
10 changed files with 141 additions and 24 deletions

View File

@@ -3,8 +3,16 @@
. ./trace.sh
sql() {
trace "sqlite3 -cmd \".timeout 20000\" ${DB_FILE} \"${1}\""
sqlite3 -cmd ".timeout 20000" ${DB_FILE} "${1}"
trace "sqlite3 -cmd \".timeout 25000\" ${DB_FILE} \"${1}\""
sqlite3 -cmd ".timeout 25000" ${DB_FILE} "${1}"
# sqlite3 ${DB_FILE} "PRAGMA busy_timeout=20000; ${1}"
return $?
}
sql_rawtx() {
trace "sqlite3 -cmd \".timeout 25000\" ${DB_FILE}_rawtx \"${1}\""
sqlite3 -cmd ".timeout 25000" ${DB_FILE}_rawtx "${1}"
# sqlite3 ${DB_FILE} "PRAGMA busy_timeout=20000; ${1}"
return $?