aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Index
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@taniquetil.(none)>2009-08-12 22:40:51 +0200
committerArne Georg Gleditsch <argggh@taniquetil.(none)>2009-08-12 22:40:51 +0200
commit40c6f593f54c8023d6ed74e695de6b3a56a74bad (patch)
treec2454efa13ed93499abe5e49924a828284e1ec50 /lib/LXRng/Index
parent65c53ad4bf0589c890f9c07383858f244c02c35a (diff)
Increase flush intervals somewhat.
Diffstat (limited to 'lib/LXRng/Index')
-rw-r--r--lib/LXRng/Index/PgBatch.pm2
1 files changed, 1 insertions, 1 deletions
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();
}