Search Postgresql Archives

Re: Performance question: Commit or rollback?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 18, 2011 at 2:02 PM, Chris Travers <chris.travers@xxxxxxxxx> wrote:
> I do not believe there are performance penalties for either.  All
> commit or rollback does is determine visibility of changes made.

Thanks. (And thanks for the incredibly quick response!)

My framework has a "read-only mode" (determined by user-level access),
in which it begins a read-only transaction. At the end of it, I
currently have it rolling the transaction back (to make absolutely
sure that no changes will be made), but was concerned that this might
place unnecessary load on the system. I'll stick with rolling back,
since it's not going to hurt!

Chris Angelico

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux