mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-14 16:54:27 +01:00
Optimized db with new indexes, added rawtx db
This commit is contained in:
@@ -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 $?
|
||||
|
||||
Reference in New Issue
Block a user