if ($db_row and ($db_row % $cnt_COMMIT_CHUNK_SIZE == 0)) { $dbh->commit; }