diff options
author | Eric Wong <e@yhbt.net> | 2020-07-24 05:56:02 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-25 20:48:18 +0000 |
commit | 0e68dbad3dc5e3fbc44e8ba8be576b81455d3359 (patch) | |
tree | dfe57fccc97fdf43ce68f3ae6f5cc804a00520df /lib/PublicInbox/Over.pm | |
parent | de8e1586d732ae6c09a92588a8e4d442aedbff37 (diff) | |
download | public-inbox-0e68dbad3dc5e3fbc44e8ba8be576b81455d3359.tar.gz |
This allows us to speed up indexing operations to SQLite and Xapian. Unfortunately, it doesn't affect operations using `xapian-compact' and the compactor API, since that doesn't seem to support Xapian::DB_NO_SYNC, yet.
Diffstat (limited to 'lib/PublicInbox/Over.pm')
-rw-r--r-- | lib/PublicInbox/Over.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm index e3f26456..f32743c0 100644 --- a/lib/PublicInbox/Over.pm +++ b/lib/PublicInbox/Over.pm @@ -40,6 +40,7 @@ sub dbh_new { $st = pack('dd', $st[0], $st[1]); } while ($st ne $self->{st} && $tries++ < 3); warn "W: $f: .st_dev, .st_ino unstable\n" if $st ne $self->{st}; + $dbh->do('PRAGMA synchronous = OFF') if ($rw // 0) > 1; $dbh; } |