]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Msgmap.pm
over+msgmap: respect WAL journal_mode if set
[public-inbox.git] / lib / PublicInbox / Msgmap.pm
index 5b4cebc105bd21c659b1182721323cbf881d381a..d28e96c8588b002e62a09b64dc6eaaad51346309 100644 (file)
@@ -31,9 +31,6 @@ sub new_file {
        my $self = bless { filename => $f }, $class;
        my $dbh = $self->{dbh} = PublicInbox::Over::dbh_new($self, $rw);
        if ($rw) {
-               # TRUNCATE reduces I/O compared to the default (DELETE)
-               $dbh->do('PRAGMA journal_mode = TRUNCATE');
-
                $dbh->begin_work;
                create_tables($dbh);
                $self->created_at(time) unless $self->created_at;