0

According to the SQLite FAQ:

Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time...

What happens when 2 processes are creating / inserting / updating / deleting / dropping temp tables at the same time? Do those actions also lock the database?

I'm using the .NET port System.Data.SQLite if that makes a difference.

4

1 に答える 1

3

http://www.sqlite.org/lockingv3.htmlは、トランザクションに参加していないデータベースはジャーナルを取得しないと述べています。いずれにせよ、一時テーブルを変更すると、プロセスごとにプライベートな TEMP データベースにのみ書き込みロックが設定されます。

于 2012-09-01T22:49:36.197 に答える