increased increment to 100000 files (37Mb of working memory on my system)
[BackupPC.git] / bin / BackupPC_updatedb
index 405d5cc..33ef0f5 100755 (executable)
@@ -13,7 +13,7 @@ use File::Pid;
 use POSIX qw/strftime/;
 
 use constant BPC_FTYPE_DIR => 5;
-use constant EST_CHUNK => 10000;
+use constant EST_CHUNK => 100000;
 
 my $debug = 0;
 $|=1;
@@ -117,6 +117,8 @@ sub hest_update {
        $hest_db = HyperEstraier::Database->new();
        $hest_db->open($index_path, $HyperEstraier::Database::DBWRITER | $HyperEstraier::Database::DBCREAT);
 
+       print " increment is " . EST_CHUNK . " files";
+
        my $results = 0;
 
        do {