Distributed Database Concepts and Transactions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering the fundamentals of database transactions, concurrency issues, ACID properties, CAP Theorem, and indexing.

Last updated 8:32 PM on 5/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Transaction

A logical unit of work that completes successfully in its entirety, or not at all.

2
New cards

COMMIT

A command that commits all changes made during a transaction and ends it.

3
New cards

ROLLBACK

An action taken when an error occurs, causing all changes from that transaction to be undone.

4
New cards

Atomicity

The ACID property ensuring a transaction completes in its entirety or not at all.

5
New cards

Consistency (ACID)

The ACID property ensuring the database is in a consistent state, which is handled by developers.

6
New cards

Isolation

The ACID property where each transaction executes independently from others.

7
New cards

Durability

The ACID property ensuring changes made by a transaction persist, which is managed by the recovery system.

8
New cards

Lost update problem

Occurs when two transactions (T1, T2) read the same data and both update it, then T1 overwrites T2 without incorporating T2’s changes, causing data inconsistency.

9
New cards

Dirty read problem

Occurs when T1 reads data modified by T2 that hasn't been committed; if T2 rolls back due to an error, T1 will be reading invalid data, leading to data inconsistency

10
New cards

Inconsistent analysis problem

Occurs when T1 reads data while T2 updates the database, leading to incorrect summaries, calculations, and analysis. Can be fixed by making T1 and T2 run in series.

11
New cards

Shared lock

A type of lock used for read-only operations.

12
New cards

Exclusive lock

A type of lock used for both read and write operations.

13
New cards

Two phase locking (2PL)

A protocol that only unlocks operations after all locks have been acquired.

14
New cards

Deadlock

A situation where two transactions are each waiting for the other to release a lock.

15
New cards

Timeouts

A deadlock resolution method where a transaction rolls back after a set period of time.

16
New cards

Deadlock detection

A deadlock resolution method that rolls back whichever transaction would cost the least to stop.

17
New cards

Deadlock prevention

A method of looking for potential deadlock problems in advance; it is not very common because it is tricky.

18
New cards

CAP Theorem / Brewer’s Theorem

States that a distributed database can only have two of the following at one time: Consistency, Availability, and Partition tolerance.

19
New cards

Consistency (CAP)

The database remains in a consistent state, which is ensured via rolling back if errors occur whenever the database is in an inconsistent state

20
New cards

Availability (CAP)

Every query request is guaranteed to get a response

21
New cards

Partition tolerance (CAP)

The ability of distributed databases to cope with network failures; this is considered non-negotiable in the CAP Theorem.

22
New cards

Checkpoints

Notes in a log file that specify which transactions are running or committed while putting the transaction in suspension.

23
New cards

B-Tree

The specific data structure used by MYSQL to store indexes.

24
New cards

Cluster index

An index relating to how data is stored on disk; there can only be one per database table.

25
New cards

Non-clustered index

An index that contains a pointer to the data row called the row locator.

26
New cards

Query optimisation

The process where the DBMS makes decisions that will impact the overall performance of query processing.