Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Differemce between tMysqlConnection's Auto Commit and tMysqlCommit ?

Is there any difference between using a tMysqlConnection with 'Auto Commit' on and using the tMysqlCommit component?

Thanks!
Labels (2)
3 Replies
Anonymous
Not applicable
Author

yes. auto commit will commit after every insert statement (and is slower because of this). using a tMysqlConnection/tMysqlCommit set of components will allow you to control when data is commited.
Anonymous
Not applicable
Author

So basically if I've a table from which I'm moving data to another table, and I've about 10,000 rows, it's the difference between a single commit and 10,000 commits?
Anonymous
Not applicable
Author

auto commit can be changed according to the advanced section of the output (Number of rows per insert)
tMySQLCommit is used if you need to commit on a condition and rollback when the condition is not met either that or there is a problem when outputing the data
for instance tMySQLOutput -on Component ok-> tMySQLcommit
-on Component error -> tMySQLrollback
Regards
Brandon