I am inserting using this code

Qt Code:
  1. QTime timex;
  2. timex.start();
  3.  
  4. // static int i = 0;
  5. QString query = TableQueries::insertDataQuery();
  6. qDebug() << ++i;
  7.  
  8. qDebug() << "::> " << timex.elapsed();
  9. db_query.prepare(query);
  10. qDebug() << ":::> " << timex.elapsed();
  11.  
  12. int pos = 0;
  13. db_query.bindValue(pos++, Id);
  14. db_query.bindValue(pos++, date);
  15. db_query.bindValue(pos++, time);
  16. db_query.bindValue(pos++, value);
  17.  
  18. qDebug() << "::::> " << timex.elapsed();
  19. bool exec = db_query.exec();
  20. qDebug() << ":::::> " << timex.elapsed();
To copy to clipboard, switch view to plain text mode 

And the frequency of my data is around 12000 records/Second.
Then how can transaction be achieved?