Database file is inexplicably locked during SQLite commit

后端 未结 9 741
深忆病人
深忆病人 2020-12-31 12:17

I\'m performing a large number of INSERTS to a SQLite database. I\'m using just one thread. I batch the writes to improve performance and have a bit of security in case of

9条回答
  •  無奈伤痛
    2020-12-31 13:20

    These guys were having similiar problems (mostly, it appears, with the journaling file being locked, maybe TortoiseSVN interactions ... check the referenced articles).

    They came up with a set of recommendations (correct directories, changing journaling types from delete to persist, etc). http://sqlite.phxsoftware.com/forums/p/689/5445.aspx#5445


    The journal mode options are discussed here: http://www.sqlite.org/pragma.html . You could try TRUNCATE.

    Is there a stack trace during the exception into SQL Lite?

    You indicate you "batch my commits at a reasonable interval". What is the interval?

提交回复
热议问题