.

Wednesday, January 22, 2014

Transaction

executions Slides content modified from Database Systems Concepts Outline Transaction Schedules Serializable Schedules Recoverable and Cascadeless Schedules 2 What is a Transaction? Transaction: a unit of architectural plan execution that accesses and mayhap updates data items E.g., achievement to send $50 from account A to account B: 1. pick up(A) 2. A := A 50 3. write(A) 4. read(B) 5. B := B + 50 6. write(B) Operations read (X), write (X) arithmetic operations commit or abort (our focus) (we dont cargon) (to be discussed later) 3 Transaction state of matter Active the initial state; the feat stays in this state while it is executing parti whollyy committed by and by the final statement has been executed Failed -- later on the discovery that frequent execution muckle no longstanding proceed E.g., non enough balance for money transfer Aborted after the exertion has been rolled back and the database restored to its state prior(prenomina l) to the start of the execution. Two options after it has been aborted: restart the transaction offer be done hardly if no internal lawful error kill the transaction Committed after made completion 4 co-occurrent Executions A simple way is to execute minutes in a serial way Run the abutting transaction only after the current one completes wherefore we need to run multiple minutes concurrently in the system? Increased processor and disk utilization, leading to give apart transaction throughput E.g., one transaction can be implement the CPU while another is reading from or while to the disk Reduced average response time for transactions: short transactions need not wait can buoy long ones 5 ACID Properties To preserve the justness of data, the database system essential ensure: Atomicity, Consistency, Isolation, Durability Atomicity. Either all operations or none operations of the transaction are reflected in the database If the system/transaction fails after cadence 3 and before step 6, m! oney pop outs lost and the database becomes...If you want to get a total essay, order it on our website: OrderEssay.net

If you want to get a full information about our service, visit our page: write my essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.