I have an scenario where i need to insert 1million entries using sql. Which is taking long time. I have Database structure with 9 tables, in every operation i need perform below tasks.
1. Open Connection
2. Insert tuples in 9 tables with maintaining Primary/foreign key relationship
3. Commit
4. close the connection
Repeat the operation for 1million time.
i am inserting 800 iterations/hour. Which i feel too slow, Do you have any better ways to improve on this?