aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Index/PgBatch.pm
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2009-08-12 22:48:23 +0200
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2009-08-12 22:48:23 +0200
commit4df686a0aa8ef2f75be6cee2bfa2874f1bbb4437 (patch)
tree03833400baeb036eb0c87e3fa44a52574bfe07fd /lib/LXRng/Index/PgBatch.pm
parentedd2d08a9aef32f442f43fb960a80680389b1685 (diff)
parent40c6f593f54c8023d6ed74e695de6b3a56a74bad (diff)
Merge branch 'master' of /home/argggh/git/lxrng/v1.2
Diffstat (limited to 'lib/LXRng/Index/PgBatch.pm')
-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();
}