about summary refs log tree commit homepage
path: root/lib/PublicInbox/OverIdx.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-05 21:45:27 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-06 21:18:37 +0000
commit9d6468d9560b8cd26ba2529d7a09a93ec5ad8c00 (patch)
tree3397a3eec38a05faab1ea05b50baf71a65439504 /lib/PublicInbox/OverIdx.pm
parent42b780f1d728b702c01181d6adbee34c8f395788 (diff)
downloadpublic-inbox-9d6468d9560b8cd26ba2529d7a09a93ec5ad8c00.tar.gz
Some of this jankiness was from early performance problems
and they turned out to be unnecessary measures.
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r--lib/PublicInbox/OverIdx.pm9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm
index 0e43aabc..5c20f1f0 100644
--- a/lib/PublicInbox/OverIdx.pm
+++ b/lib/PublicInbox/OverIdx.pm
@@ -14,21 +14,12 @@ use DBI qw(:sql_types); # SQL_BLOB
 sub dbh_new {
         my ($self) = @_;
         my $dbh = $self->SUPER::dbh_new;
-        $dbh->do('PRAGMA synchronous = OFF'); # commit_fsync instead
         $dbh->do('PRAGMA journal_mode = TRUNCATE');
         $dbh->do('PRAGMA cache_size = 80000');
         create_tables($dbh);
         $dbh;
 }
 
-sub commit_fsync {
-        my $fn = $_[0]->{filename};
-        if (open my $fh, '+<', $fn) {
-                $fh->sync;
-                close $fh;
-        }
-}
-
 sub get_counter ($$) {
         my ($dbh, $key) = @_;
         my $sth = $dbh->prepare_cached(<<'', undef, 1);