Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Transactions Usage in applications  RSS feed

 
Ranch Hand
Posts: 376
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an application where we just read the data from the database. So, does it need to have any kind of transactions?

I believe transactions would be helpful in case we add/update any data. Please help me in understand if transactions are required for reading the data only?
 
Bartender
Posts: 9545
188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you guarantee that nothing, not even another application, will ever write to the database? If so, you don't need transactions. But if there's even the slightest chance that something or somebody will write to the database while your application is running, you need transactions when you read something.
 
Vaibhav Gargs
Ranch Hand
Posts: 376
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Stephan, no other application is using that database and only our application is reading those tables in the schema no update/add statements.
 
Talk sense to a fool and he calls you foolish. -Euripides A foolish tiny ad:
ScroogeXHTML 8.0 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/704747/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!