I am DBD::SQLite to insert some data in SQlite3 db using perl.
I have noticed that it takes a lot of time to insert(inserting 35k rows).
Is there any way to make it faster.
Optimization is important for me rather than data sync.
How can i optimize it using perl?
Please help.
Try executing this statement before doing your inserts:
See the SQLite documentation for more information.
Also, as Ilion notes, try to
prepare()the statement just once and then re-execute()multiple times with different bind values. Turning offAutoCommitand then explicitly committing only every N rows inserted may also help, for some values of N.