I'm trying to insert 800+ rows of data from a .csv file into my plugin's table, which has 43 columns, but only the first 50 rows are being inserted.
$file = fopen($new_roster_file, "r");
$all_rows = array();
$header = null;
while ($row = fgetcsv($file, $delimiter = ",")) {
if ($header === null) {
$header = $row;
continue;
}
$all_rows[] = array_combine($header, $row);
}
print("All rows: <p><p>");
print_r($all_rows); <---------THIS CORRECTLY PRINTS ALL 800+ OBJECTS
$DB->insert_records('auth_sko_db_import_students', $all_rows); <-------THIS ONLY INSERTS THE FIRST 50 OBJECTS
Is there a maximum number of objects that can be inserted via $DB->insert_records? Or is there something else I need to change?