Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:52:34+00:00 2026-05-29T10:52:34+00:00

If you have a database transaction that should be read only, do you commit

  • 0

If you have a database transaction that should be read only, do you commit or rollback? Is there any reason to do one or the other? Does one of the approachs improve database performance?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:52:34+00:00Added an answer on May 29, 2026 at 10:52 am

    Some RDMS (at least Oracle ) have READ ONLY isolation level. Otherwise, I prefer ROLLBACK since it doesn’t create an entry in transaction log (a bit better from performance point of view).

    Update
    Some explanations.
    Most RDMS log all committed transactions and changes associated with transaction. Even if no changes are made, server logs a transaction. I don’t see any points in wasting server resources by storing useless data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a SQL Server (Express 2005) database to hold some transaction/metadata that
I have an NHibernate Transaction that does some work and makes a call to
I have a 5GB database and a 20GB transaction log (SQL Server 2005). Not
I have a WCF service that uses ODP.NET to read data from an Oracle
Hallo, I am writing a database application that does a lot of inserts and
I have four DB tables in an Oracle database that need to be rewritten/refreshed
We have a database that contains several Trees. These trees are build using the
I'm writing a PHP-based web application that should work with multiple database systems. The
I have a file mmap'd read-only/shared, with multiple threads/processes reading the data concurrently. A
Background We have worker processes that read jobs from a table in SqlServer then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.