Ok, I know you’re closing this down, but something just does not make any sense here. You went from 40K-100K records to 400K records for the import, a 4-10 x increase in the amount of data to import. Even with this, 400K records in a CSV file should be nothing (1K long records @ 400K records is 400K in RAM – a pittance in today’s standards). Also, unless
@keirS has a typo, an import of 4 Million (40x to 100x of original requirements) took only 55 seconds in DEBUG mode. Unless there is something strange about your CSV files or something off with your code, it makes no sense that you are so much slower and have so many issues with the import. To probably get some good help from this forum, you may want to post your complete code (unaltered) and either the same test file or a sanitized version (same size, same amount of data, just data you don’t have to worry about the public seeing) of the test file before anything can be determined as to what the issues are here. For now, everyone is just guessing with their code and their data (which may be totally different from yours) and everyone may just be talking past each other.