about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Msgmap.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm
index 5fe14383..a2ffe720 100644
--- a/lib/PublicInbox/Msgmap.pm
+++ b/lib/PublicInbox/Msgmap.pm
@@ -70,6 +70,7 @@ sub tmp_clone {
         $self->{dbh}->sqlite_backup_to_file($fn);
         my $tmp = ref($self)->new_file($fn, 1);
         $tmp->{dbh}->do('PRAGMA synchronous = OFF');
+        $tmp->{dbh}->do('PRAGMA journal_mode = MEMORY');
         $tmp->{tmp_name} = $fn; # SQLite won't work if unlinked, apparently
         $tmp->{pid} = $$;
         close $fh or die "failed to close $fn: $!";