Re: Commit commands with SELECT

2012-04-13 Thread Stephen Tu
Wrapping even just selects around a transaction absolutely matters, depending if you care about isolation. Consider the following two clients running on the same mysql instance, w/ --transaction_isolation=serializable. Suppose we have the following innodb table: CREATE TABLE FOO (i INTEGER, j INTE

Re: Commit commands with SELECT

2012-04-13 Thread Luis Motta Campos
Hello COMMIT statements may or may not force the database to call fflush() to flush your double-write to disk. This may or may not affect your performance, depending on your scale, traffic, and how much you're trying to squeeze your hardware. If you're working on the borderline like I am, benc

Re: Commit commands with SELECT

2012-04-09 Thread Karen Abgarian
I vote 1) yes 2) no It could be result of the app developer's convenience to just wrap anything they submit to the database in a transaction. Selects are not transaction but autocommit/commit do no harm. That might be the thinking. On 09.04.2012, at 11:38, Rozeboom, Kay [DAS] wrote: > We