Re: Performance question: Commit or rollback?

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Performance question: Commit or rollback?
Дата
Msg-id CAKt_ZfvU3__L+Swu3uR_QVib82_HMomqwGNq1xWSH+fH88_W4Q@mail.gmail.com
обсуждение исходный текст
Ответ на Performance question: Commit or rollback?  (Chris Angelico <rosuav@gmail.com>)
Ответы Re: Performance question: Commit or rollback?
Список pgsql-general
On Sat, Dec 17, 2011 at 6:53 PM, Chris Angelico <rosuav@gmail.com> wrote:
> Some of my code involves transactions which will not have significant
> effect on the database. It might be a read-only transaction (possibly
> declared as one, but possibly not), or perhaps a completely empty
> transaction - I have a framework that will always open a transaction,
> then call on other code, and then complete the transaction at the
> bottom.
>
> In these instances, is it better to commit or to rollback? Are there
> performance penalties to either option?

I do not believe there are performance penalties for either.  All
commit or rollback does is determine visibility of changes made.

Best Wishes,
Chris Travers

В списке pgsql-general по дате отправления:

Предыдущее
От: Chris Angelico
Дата:
Сообщение: Performance question: Commit or rollback?
Следующее
От: Chris Angelico
Дата:
Сообщение: Re: Performance question: Commit or rollback?