-#!/usr/bin/perl
+#!/usr/bin/env perl
# BEGIN BPS TAGGED BLOCK {{{
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
RT::Init();
use RT::Transactions;
-my $txns = RT::Transactions->new( $RT::SystemUser );
+my $txns = RT::Transactions->new( RT->SystemUser );
$txns->Limit(
FIELD => 'ObjectType',
OPERATOR => '=',
$RT::Handle->Commit;
}
-use constant PAGE_SIZE => 1000;
+use constant PAGE_SIZE => 10000;
sub FetchNext {
my ($objs, $init) = @_;
if ( $init ) {