I have to regularly put 40k records into my database which is done in a big loop. This creates a single transaction for every SQL statement and can be quite slow.
In other languages like PHP, I can do transactions and commit all the data to the database in one shot. It speeds things up tremendously.
But I recently had to write a processing engine for my data in C, and I have not found a way to do transactions in this language. I tried turning off autocommit, then executing each query in the loop, and finally committing the data when the loop is complete. But the write is still taking almost 4 minutes. WAAAAYYYYY too long!
I don't find any information in the MySQL Connector/C documentation for transactions, but since they exist for other MySQL interfaces, surely there is something for C. Any ideas???