]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/OverIdx.pm
index: optimize after all SQLite DB commits
[public-inbox.git] / lib / PublicInbox / OverIdx.pm
index d6d706f7fed04363d409eb7aa34564f08ad7dc2e..9fdb26c0d5c2bef2417ce76cc5ee89a34bba8d20 100644 (file)
@@ -434,6 +434,7 @@ sub commit_lazy {
        my ($self) = @_;
        delete $self->{txn} or return;
        $self->{dbh}->commit;
+       eval { $self->{dbh}->do('PRAGMA optimize') };
 }
 
 sub begin_lazy {