I have the functionality to import a very large amount of records around 5 million.
I have to make entries for related tables also simultaneously in the import process.
I have to make bunch insert queries for new entries and taking care of all queries and also making processes in chunks.
What are the other ways to speed up the process?