Save
Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

DATABASE - 4

Transaction and Concurrency Control

QuestionAnswer
Is a group of one or more database operations that are treated as one single unit. transaction
Either ALL operations succeed COMMIT
Or ALL operations fail ROLLBACK
save changes COMMIT
undo everything ROLLBACK
Is a file used by the DBMS to record all changes made to the database. Transaction log
What is A.C.I.D? Atomicity Consistency Isolation Durability
All operations succeed or fail together Atomicity
Data remains correct and valid Consistency
Transactions don’t interfere with each other Isolation
Data is saved permanently after commit Durability
ACID Properties ACID Properties
A transaction must fully complete or not happen at all Atomicity (All or Nothing)
he database must always follow rules and constraints. Consistency (Always Valid Data)
Transactions should not affect each other while running. Isolation (No Interference)
Once a transaction is committed, it is permanent Durability (Permanent Save)
control how transactions interact with each other when running at the same time. Isolation Levels & Concurrency
Isolation Levels Determine What data a transaction can see • Whether changes from other transactions are visible
Common Problems in Concurrency: Common Problems in Concurrency:
Reading data that another transaction has changed but not yet saved (committed). Dirty Read
Reading the same row twice but getting different values because another transaction modified it in between. Non-Repeatable Read
Re-running a query returns new or missing rows because another transaction inserted or deleted data. Phantom Read
more accurate but slower Higher isolation
faster but risky Lower isolation
Isolation Levels: Isolation Levels:
Lowest isolation level. Allows reading uncommitted (temporary) data, Can cause dirty reads. READ UNCOMMITTED
Only reads committed data. Prevents dirty reads, allows nonrepeatable reads. READ COMMITTED (Default)
Ensures same data is returned when re-read. Prevents: dirty reads & nonrepeatable reads, still allows phantom reads. REPEATABLE READ
Highest isolation level (strictest). Prevents dirty reads, non-repeatable reads & phantom reads. SERIALIZABLE
Two transactions are waiting for each other’s resources, and neither can continue. Deadlock
Causes of Deadlocks: • Transactions use same data at the same time • They access data in different order • Transactions takes too long • Too many locks on tables/rows
Created by: user-1782765
 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards