Skip to content

Commit

Permalink
[#254 state:resolved] Applied patch to improve SQLite use performance…
Browse files Browse the repository at this point in the history
…. (Thanks eoe)
  • Loading branch information
tima committed Dec 5, 2009
1 parent b6494e2 commit b3fc325
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MT/ObjectDriver/Driver/DBD/SQLite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ sub init_dbh {
my($dbh) = @_;
$dbd->SUPER::init_dbh($dbh);
$dbh->{sqlite_handle_binary_nulls} = 1;
$dbh->do('PRAGMA cache_size=4000');
$dbh->do('PRAGMA journal_mode=TRUNCATE');
$dbh->do('PRAGMA synchronous=OFF');
return $dbh;
}

Expand Down

0 comments on commit b3fc325

Please sign in to comment.