Think about Loose Coupling | |
PerlMonks |
Re^2: DBI::SQLite slownessby erix (Prior) |
on Sep 22, 2013 at 06:42 UTC ( [id://1055169]=note: print w/replies, xml ) | Need Help?? |
Hi It looks from that page that DELETE is the default ("The DELETE journaling mode is the normal behavior."). Using WAL (Write Ahead Log) is another writing step (slow), so wouldn't it make more sense to switch journaling off:
That would make the transaction(s) less reliable in case of a crash, but in this particular case that seems unimportant (initial data load, ephemeral data). I would expect journal_mode = OFF to be faster than either the default DELETE, or writing WAL. (Then again, I don't use SQLite so I may be completely wrong. If anyone does the tests, I'd be interested to see the speed differences.)
In Section
Seekers of Perl Wisdom
|
|