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 937359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:27:57+00:00 2026-05-15T21:27:57+00:00

Evidently I was really wrong in this thread Should I always use transactions in

  • 0

Evidently I was really wrong in this thread

Should I always use transactions in nhibernate (even for simple reads and writes)?

how is it that you can get an inconsistent result from a read without a transaction?

edit — the original question was in the context of nhibernate. Is this nhibernate specific?

  • 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-15T21:27:57+00:00Added an answer on May 15, 2026 at 9:27 pm

    No, it is not hibernate specific.

    Short answer: Transactions are “atomic units of work” with a consistent view of the world. Once the transaction is left the protected “view” needs to be rectified with the view of the world (COMMITTTED) — or, in the case of a read-only transaction, the consistent view can simply be absolved (it only needed to be consistent during the transaction).

    Longer answer: There are many different types of transactions (READ UNCOMMITTED, READ COMMITTED, SERIALIZABLE, REPEATABLE READ, etc.) that affect the fine details.

    See Wiki: Database Transaction and Isolation (DBMS) — the latter takes a few link clicks to find 🙂

    Imagine this quickly contrived sequence, A and B represent different actors using the DB and each action runs in it’s own one-off implicit transaction (and nothing else):

    1. A reads in the list of users
    2. B deletes a user (and all associated data)
    3. A gets the information for each user (using the previous fetched info). However, there is at least one user who no longer exists. Better deal with it somehow.

    See the “Example Queries” section of the Isolation wiki article.

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

Sidebar

Related Questions

This should be really simple, and I thought I was doing it correctly...evidently not.
This one may seem like a simple question, but it's really got me scratching
This is really several questions, but anyway... I'm working with a big project in
I found plenty of info on this for Safari 3, but things have evidently
This little OpenLayers.Control.EditingToolbar from is inserted by default: It's not really evident what these
I'm trying to set a breakpoint in user32!RegisterClipboardFormat Evidently, this function is exported (link
I'd like to do something really simple with boost::python. I can find documentation for
Evidently jQuery has made me dumb. I've got a local url that serves up
Rewrote the entire question because evidently it was too vague I have HTML, this
I am working on this app on the Chrome App Store. Evidently the File

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.