Docsity

CSEP 545 Assignment 2: Analyzing Transaction Histories, Exercises of Transaction Processing for E Commerce

Toggle sidebar
bg1
CSEP 545 Transaction Processing for E-Commerce 1/11/2012
Assignment 2 1
Assignment 2
Preliminaries
a. If you haven’t picked a project (C# or Java) and partner, please do it by tomorrow.
b. Visit www.tpc.org and spend 15 minutes browsing the site to get a feel for how the
Transaction Processing Council describes the TPC-C and TPC-E benchmarks and how it
presents benchmark results. For TPC-E, read Clause 0 (3 pages) of the specification and
the beginning of other sections to see what’s covered. Also, skim one of the full
disclosure reports to see the system configuration.
c. Read Section 6 of Chapter 2, on Scalability.
d. Read the description of the course project. Think about applying shadowing to the
course project. Read Section 6 of Chapter 7.
e. Since this week’s homework is not very time-consuming, this is a great time to start
working on your project.
Problems
For each of the following histories, answer the following:
a. List all serial histories that are equivalent to it
b. Is it recoverable? Does it avoid cascading aborts? Is it strict?
For each, if not, why?
1. w0[x,y,z] c0 r1[x] r2[y] w2[y] r3[z] w3[z] r2[z] w2[y] w1[z] w1[y] c1 c2 c3
2. w0[x,y,z] c0 r1[x] r2[y] w2[y] r3[z] r2[z] w2[y] w1[z] w1[y] c1 c2 c3
(same as (1), except delete w3[z])
3. w0[x,y,z] c0 r1[x] r2[y] w2[y] r3[z] w3[z] r2[z] w2[y] w1[z] w1[y] c1 c3 c2
(same as (1), except that c2 is moved after c3)
4. w0[x,y,z] c0 r1[x] r2[y] w2[x] r3[z] w3[z] r2[z] w2[y] w1[z] w1[y] c1 c2 c3
(same as (1), except the first w2[y] becomes w2[x])
5. w0[x,y,z] c0 r1[x] r2[y] w2[y] r3[z] w3[z] r2[z] w2[y] c2 c3 w1[z] w1[y] c1
(same as (1), except c2 and c3 are moved before w1[z])
docsity.com

Partial preview of the text

Download CSEP 545 Assignment 2: Analyzing Transaction Histories and more Exercises Transaction Processing for E Commerce in PDF only on Docsity!

CSEP 545 Transaction Processing for E-Commerce 1/11/

Assignment 2 1

Assignment 2

Preliminaries

a. If you haven’t picked a project (C# or Java) and partner, please do it by tomorrow.

b. Visit www.tpc.org and spend 15 minutes browsing the site to get a feel for how the Transaction Processing Council describes the TPC-C and TPC-E benchmarks and how it presents benchmark results. For TPC-E, read Clause 0 (3 pages) of the specification and the beginning of other sections to see what’s covered. Also, skim one of the full disclosure reports to see the system configuration.

c. Read Section 6 of Chapter 2, on Scalability.

d. Read the description of the course project. Think about applying shadowing to the course project. Read Section 6 of Chapter 7.

e. Since this week’s homework is not very time-consuming, this is a great time to start working on your project.

Problems

For each of the following histories, answer the following: a. List all serial histories that are equivalent to it b. Is it recoverable? Does it avoid cascading aborts? Is it strict? For each, if not, why?

  1. w 0 [x,y,z] c 0 r 1 [x] r 2 [y] w 2 [y] r 3 [z] w 3 [z] r 2 [z] w 2 [y] w 1 [z] w 1 [y] c 1 c 2 c 3
  2. w 0 [x,y,z] c 0 r 1 [x] r 2 [y] w 2 [y] r 3 [z] r 2 [z] w 2 [y] w 1 [z] w 1 [y] c 1 c 2 c 3 (same as (1), except delete w 3 [z])
  3. w 0 [x,y,z] c 0 r 1 [x] r 2 [y] w 2 [y] r 3 [z] w 3 [z] r 2 [z] w 2 [y] w 1 [z] w 1 [y] c 1 c 3 c 2 (same as (1), except that c 2 is moved after c 3 )
  4. w 0 [x,y,z] c 0 r 1 [x] r 2 [y] w 2 [x] r 3 [z] w 3 [z] r 2 [z] w 2 [y] w 1 [z] w 1 [y] c 1 c 2 c 3 (same as (1), except the first w 2 [y] becomes w 2 [x])
  5. w 0 [x,y,z] c 0 r 1 [x] r 2 [y] w 2 [y] r 3 [z] w 3 [z] r 2 [z] w 2 [y] c 2 c 3 w 1 [z] w 1 [y] c 1 (same as (1), except c 2 and c 3 are moved before w 1 [z])

docsity.com