Transactions Flashcards
A critera for DMBS?
• DBMS must allow concurrent access to
databases.
– Imagine a bank where account information is
stored in a database not allowing concurrent
access. Then only one person could do a
withdrawal in an ATM machine at the time –
anywhere!
• Uncontrolled concurrent access may lead
to problems.
Explain running in Parallell
Explain Interleaving.
Explain Serializability.
Explain Atomicity.
Which are ACID transactions?
Explain Transactions in SQL.
How do we controll transactions?
Explain Read-only vs Read-write
Explain SET TRANSACTIONS.
Explain drawbacks with serializability and atomicity.
Drawbacks
• Serializability and atomicity are necessary,
but don’t come without a cost.
– We must retain old data until the transaction
commits.
– Other transactions may need to wait for one
to complete.
• In some cases some interference may be
acceptable, and could speed up the
system greatly.
What is the worst that could happen?