Less sensitive db progress handler
This commit is contained in:
parent
7d6ef195fd
commit
84c39f3baa
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Db(object):
|
||||||
self.log.debug("Db file not exist yet: %s" % self.db_path)
|
self.log.debug("Db file not exist yet: %s" % self.db_path)
|
||||||
self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED")
|
self.conn = sqlite3.connect(self.db_path, isolation_level="DEFERRED")
|
||||||
self.conn.row_factory = sqlite3.Row
|
self.conn.row_factory = sqlite3.Row
|
||||||
self.conn.set_progress_handler(self.progress, 100000)
|
self.conn.set_progress_handler(self.progress, 5000000)
|
||||||
self.cur = self.getCursor()
|
self.cur = self.getCursor()
|
||||||
self.log.debug(
|
self.log.debug(
|
||||||
"Connected to %s in %.3fs (opened: %s, sqlite version: %s)..." %
|
"Connected to %s in %.3fs (opened: %s, sqlite version: %s)..." %
|
||||||
|
|
Loading…
Reference in a new issue