Link Details

Your votes power DZone. Login and vote now.
Link 91153 thumbnail
User 111696 avatar

By bloid
via adam-bien.com
Published: Jun 30 2008 / 05:38

You know such an application? :-). I hear from time time statements like: "This is just a report - so I don't need transactions - I'm only reading the data". In this particular case you would access the database without a defined transaction and especially isolation - so you will basically see a snapshot of the database (especially uncommitted changes).
  • 6
  • 3
  • 943
  • 348

Comments

Add your comment
User 285418 avatar

Motion Control replied ago:

0 votes Vote down Vote up Reply

Highly misleading suggestions.

User 203084 avatar

abien replied ago:

0 votes Vote down Vote up Reply

You are right - but these are actually anti-suggestions :-).
,

User 283943 avatar

vpetreski replied ago:

-1 votes Vote down Vote up Reply
User 57526 avatar

jk49991 replied ago:

0 votes Vote down Vote up Reply

This is an awful article. He plunges off the deep end with "I hear from time time statements like: "This is just a report - so I don't need transactions - I'm only reading the data". In this particular case you would access the database without a defined transaction and especially isolation - so you will basically see a snapshot of the database (especially uncommitted changes).". Not sure what database he's talking about but in Oracle that would break any sort of consistency so it's not going to happen. In Oracle you'd only see committed transactions as it should be. So why do I need transactions for read-only reports again?

User 203084 avatar

abien replied ago:

0 votes Vote down Vote up Reply

If you don't have transactions configured in your application - you have to rely on the defaults in the database - especially on the configured isolation level.
This is not an article - just an excerpt from a short post :-).

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (3)