#!/usr/bin/perl -w
-# $Id: reindex.pl,v 1.2 2007-03-02 16:12:39 mike Exp $
+# $Id: reindex.pl,v 1.3 2007-03-07 11:35:38 mike Exp $
use strict;
use warnings;
print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0;
my $rec = $rs->record($i-1);
my $xml = $rec->render();
- open F, ">$i.xml" or die "can't open\n";
- print F $xml;
- close F;
- #update($conn, $xml);
+ update($conn, $xml);
}
print " $n/$n (100%)\n" if $n % 50 != 0;
commit($conn);