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

  • Home
  • SEARCH
  • 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 3243312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:25:04+00:00 2026-05-17T18:25:04+00:00

There’s lots that can be taught about transactions in databases (and I’m really talking

  • 0

There’s lots that can be taught about transactions in databases (and I’m really talking about relational databases here, since that’s what I’m currently teaching), but I believe it’s easy to teach the wrong things. Given that students are very likely going to forget most of what you say before they leave the lecture room, where should the focus go?

Some key topics that often feature in textbooks and lecture slides are (going by Ramakrishnan and Gehrke as a main guide) – but don’t feel restricted by them:

  • ACID properties
  • schedules and their serializability
  • conflict serializability and precedence graphs
  • SQL transaction statements (COMMIT, ROLLBACK, SAVEPOINT)
  • locking protocols (Strict 2PL and such)
  • isolation levels (READ COMMITTED, REPEATABLE READ, etc.)
  • logging and recovery (WAL, ARIES)
  • transaction support in APIs (JDBC, PHP)

I’m after an informed view of what topics are most worthwhile, and what’s not. I’m also interested in where you’re coming in from in answering. Have you found some nugget of insight invaluable in a job, or are you frustrated that newly graduated employees don’t know some basic detail?

Background: I’m teaching the topic in an introductory DBMS course to students of a 1-year IT Masters course. The students are computer-literate (mostly CS) graduates.

  • 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-17T18:25:05+00:00Added an answer on May 17, 2026 at 6:25 pm

    First of all: is your focus using transactions or implementing them? What is the background of the students – particularly, do they understand concurrency?

    My opinion as a non-DB expert who nevertheless needs to use them all the time:

    • I think the actual SQL statements are just a detail; they are worth including to make them less menacing in practice, but let em look up the syntax themselves. You could intentionally use a variety of syntaxes (eg. using APIs) simply to get across the point that it’s not the name that matters, but the idea and API contract a transaction represents.
    • Understanding isolation levels is required – at least up to a point; they should understand that life isn’t always SERIALIZABLE, why one would (almost always) chose that handicap, and what kind of problems to watch out for. Oh, and various SNAPSHOT varieties should be included (I’m mentioning this explicitly since these in particular don’t always show up in lectures yet are very widely used.)
    • Locking (or the lack thereof) is obviously related to the isolation levels and their advantages and disadvantages. In particular, minor seemingly irrelevant changes to a transaction can affect the order in which locks are acquired and thus the presence and absence of deadlocks. In that respect it may be important; but otherwise it’s an implementation detail (from my perspective) preferably ignored.
    • In terms of ACID, an understanding that it’s not an all or nothing affair and that it can be quite useful to give up parts in return for other (particularly performance) benefits.
    • Perhaps it’s neat to point out that lots of apps use databases, even desktop apps, partially because the simple, robust guarantees of a DB make it easier to do persistence (e.g. sqlite in firefox or adobe reader) with than raw I/O. Anybody doing programming is likely to occasially touch a DB; there’s almost no avoiding it: and you wouldn’t want to since the atomicity and consistency guarrantees are valuable even in a non-concurrent context (if your PC crashes, your lightroom DB isn’t corrupted).
    • Also, it should be clear that in a DB (in general) all statements are executed in an implicit transaction; you’re not avoiding transactions by avoiding the explicit transaction statements, merely using more, smaller transactions which can still deadlock and cause locking or fsync overhead. In otherwords: if the students want to work with a DB (which they almost inevitable will have to and will want to) they simply cannot avoid transactions.

    Background: I write webapps at work and other stuff for fun.

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

Sidebar

Related Questions

There are lots of posts on here about moving a folder out of one
There is a conversion process that is needed when migrating Visual Studio 2005 web
There is a field in my company's Contacts table. In that table, there is
There's http://www.amazon.com/gp/product/0321278542/ but it looks a bit dated. Specificaly, it talks about bits that
there's a CMS system and there's aspx page without backend file. I can add
There is a strange bug which I can't solve. The bug is reproducable by
There is no problem to get the src or alt separately,but how can get
There is one method in Lookup<,> that is not in ILookup<,> : public IEnumerable<TResult>
There is a statement in the foudations of Qt Development book that goes as
There's a lot of reading on self referencing problems, but I can't seem to

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.