DBIx-BatchChunker
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
PRIVATE METHODS
_process_block
Runs the DB work and passes it to the coderef. Its return value
determines whether the block should be processed or not.
_process_past_max_checker
Checks to make sure the current endpoint is actually the end, by
checking the database. Its return value determines whether the block
should be processed or not.
See "process_past_max".
_chunk_count_checker
Checks the chunk count to make sure it's properly sized. If not, it
will try to shrink or expand the current chunk (in chunk_size
increments) as necessary. Its return value determines whether the block
lib/DBIx/BatchChunker.pm view on Meta::CPAN
### Something a bit more free-form
$self->$coderef($ls->start, $ls->end);
}
return 1;
}
#pod =head2 _process_past_max_checker
#pod
#pod Checks to make sure the current endpoint is actually the end, by checking the database.
#pod Its return value determines whether the block should be processed or not.
#pod
#pod See L</process_past_max>.
#pod
#pod =cut
sub _process_past_max_checker {
my ($self) = @_;
my $ls = $self->loop_state;
my $progress = $ls->progress_bar;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.174 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )