From 40c6f593f54c8023d6ed74e695de6b3a56a74bad Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Wed, 12 Aug 2009 22:40:51 +0200 Subject: Increase flush intervals somewhat. --- lib/LXRng/Index/PgBatch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LXRng/Index/PgBatch.pm') diff --git a/lib/LXRng/Index/PgBatch.pm b/lib/LXRng/Index/PgBatch.pm index c1b30eb..7bd67e6 100644 --- a/lib/LXRng/Index/PgBatch.pm +++ b/lib/LXRng/Index/PgBatch.pm @@ -52,7 +52,7 @@ sub transaction { # Only occasional synchronization if we're inside another # transaction. # TODO: Check fill grade of caches and flush based on that. - if ($self->{'writes'}++ % 491 == 0) { + if ($self->{'writes'}++ % 3259 == 0) { $self->flush(); $self->dbh->commit(); } -- cgit v1.2.3