On your sheet of paper, copy the following statement and sig…
On your sheet of paper, copy the following statement and sign your name below it: I understand that this quiz will be marked “NOT Present” if the 10 exam procedures are not followed, and that my original scores on Q1, Q2, and Midterm 1 will not be restored.I understand that this Restore-Your-Score Quiz is only able to recover points on Exam 2 that resulted in a 0 due to failure to meet exam policies. X___________________________(signature)
Read DetailsConConsider a table Product(id, cost) where id is a key. The…
ConConsider a table Product(id, cost) where id is a key. The table initially contains two tuples: (1, 100) and (2, 150). Two transactions execute concurrently as follows: Transaction T1: BEGIN TRANSACTION; A1: INSERT INTO Product VALUES (3, 200);A2: UPDATE Product SET cost = cost + 50 WHERE id = 1; COMMIT; Transaction T2: BEGIN TRANSACTION; B1: SELECT SUM(cost) AS s1 FROM Product;B2: SELECT SUM(cost) AS s2 FROM Product; COMMIT; Assume all statements execute atomically. Transaction T1 always uses isolation level Serializable. If Transaction T2 also uses Serializable, what possible pairs of values (s1, s2) can it return?
Read DetailsCongratulations on reaching the end of this quiz! We will no…
Congratulations on reaching the end of this quiz! We will now take a few moments to walk through the steps to submit your required work. It is important you do these before submitting an answer to this final question (and during other assessments, before you close out of D2L) so they are completed during your Honorlock proctoring session. Skipping any of these steps can result in you being marked “NOT Present” and receiving a score of 0 on the quiz. Check off each item as you complete it. Again, Read each item carefully Ensure that you have done it Check off each box when completed
Read DetailsWe are a new travel website which offers exclusive discounts…
We are a new travel website which offers exclusive discounts from our partner resorts and tour groups to discerning clients that have a credit card with our parent corporation. The number of offerings is not huge because we target only high end properties and exclusive tour groups for out clients. We want to calculate the best index to make in our database to maximize performance for our customers who can assess the database through our website and view our travel offerings. Bookings are done in another systems once a customer is ready to book. We estimate that all of the database transaction for the table we are currently interested in can be placed into three query types. Q1: Queries that our clients execute that accesses information about travel destinations in a specific category (skiing, diving, adventure, luxury travel etc) Q2: Queries that our clients execute that access information about activities in a specific location which are broken down into either city or subcity sections depending on the city size (, Tokyo Ginza area, London Mayfair, Concord, Tampa etc) Q3: Queries that our sales team performs that add new resorts and tours organization to our partnership data base so the customers can discovery them. Because we are new the addition of new clients has been rapid Assumptions about the data. We have grown considerably and this table is currently 40 pages in length so if we have to access the entire database it required 40 pages reads. On average a location has 5 partner offerings and each category of offering is available in 20 different locations. Make the assumption that if we know the locations of each partner we still make 5 disk access for Q2 and if we know the locations of the offerings in each category 20 disk access are required for Q1. One disk access is required to read any index we use and if we modify the database we must also modify the index (requiring both a read and a write (2 disk access)). We will also assume that if we modify the database we can find a blank page and will only require one disk access to read the page and one to write back the modified page. Given these assumptions would it be better to use no index, one index on locations, one index on offerings, or two indexes (both offerings and locations)? Action Frequency No index Index on offerings Index on Location Both index Q1: Category .30 Q2: Location .60 Q3: Update .10 Average Calculate the average for each of the 4 options. What is the lowest average (report to 1 decimal place e.g. XX.x)?
Read Details