in reply to DBIx::Class and Parallel SQLite Transactions
My visceral reaction to this approach is that, since there is one resource being accessed here (and, it is being accessed “as a regular file” by software that is executing in the context of each process, then there is not likely to be any performance advantage in asking multiple threads to do the work. The process is fundamentally I/O-bound, and the database file is a shared resource. Realistically speaking, the operations will be serialized. Thus, the advantages of multi-threading are voided.
Now, when you do use SQLite, remember that it is imperative to do things within transactions, even in a single thread. Otherwise, SQLite will (quite by design...) verify each and every write, each and every time.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBIx::Class and Parallel SQLite Transactions
by learnedbyerror (Monk) on Jul 18, 2011 at 11:42 UTC |