FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
DURABILITY
NewsMachine Learning

DURABILITY

via Dev.to TutorialAbinaya Dhanraj2h ago

For this task, I am trying to understand durability. That means once a transaction is committed, the data should not be lost even if the system crashes. First I check the current data in the table. Query select * from accounts; Here I can see Alice has 1000 and Bob has 500. Now I perform a money transfer from Alice to Bob. Query begin; update accounts set balance = balance - 200 where name = 'Alice'; update accounts set balance = balance + 200 where name = 'Bob'; commit; Here I started a transaction, deducted 200 from Alice and added 200 to Bob, and then committed it. After commit, the changes are saved permanently. Now I check the data again. Query select * from accounts; Now I can see Alice has 800 and Bob has 700. This confirms that the transaction is successful. Next step is to simulate a system crash or restart. In real scenario, this means database stops and starts again. After reconnecting, I again run the same select query. Query select * from accounts; I can still see Alice ha

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

Ultrahuman Is Back: Can the Ring Pro Beat Oura in the U.S. Market?
News

Ultrahuman Is Back: Can the Ring Pro Beat Oura in the U.S. Market?

Wired • 14m ago

Best early Amazon Big Spring Sale headphone deals 2026
News

Best early Amazon Big Spring Sale headphone deals 2026

ZDNet • 23m ago

20 free & open-source tools to completely destroy your SaaS bills
News

20 free & open-source tools to completely destroy your SaaS bills

Medium Programming • 39m ago

Best Costco deals to compete with Amazon's Big Spring Sale 2026
News

Best Costco deals to compete with Amazon's Big Spring Sale 2026

ZDNet • 44m ago

Best Walmart deals to compete with Amazon's Big Spring Sale 2026
News

Best Walmart deals to compete with Amazon's Big Spring Sale 2026

ZDNet • 54m ago

Discover More Articles