Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: DBI::SQLite slowness

by erix (Parson)
on Sep 22, 2013 at 06:42 UTC ( #1055169=note: print w/replies, xml ) Need Help??

in reply to Re: DBI::SQLite slowness
in thread DBI::SQLite slowness


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:

$dbHandle->do("PRAGMA journal_mode = 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.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055169]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2018-05-28 09:04 GMT
Find Nodes?
    Voting Booth?