Assignment #4 Solution

$35.00 $29.05

You'll get a: . zip file solution, download link after Payment

Description

  1. [noSQL] (40) This set of questions get you to engage discussion related with noSQL systems.

    1. Explain the concept of noSQL

    1. Describe the 4 types of noSQ systems; for each category, give an example noSQL system (try to give different system from what we introduced in the class).

    1. Pick one type of noSQL system you give in b, give a real-world application that can make best use of the system, and an application that may not be well-suited for the system. Explain your reasons.

  1. [CAP and ACID] (20) This set of questions are related to data consistency

      1. What is CAP Theory? Consider a toy example of a cluster that contains two servers S1 and S2. Use the example cluster to explain the CAP theory. You can simply use the proof I explained in class.

      1. Consider the relation Accounts(acctNo, balance), and two SQL statements that conduct a request “transfer $200 from account 123 to 456”. In a DBMS, this usually includes two steps: i. Add $200 to account 456:

UPDATE Accounts SET balance=balance+200 WHERE acctNo = 456 ii. Subtract $200 from account 123:

UPDATE Accounts SET balance=balance200 WHERE acctNo=123

Use this example and necessary scenarios to show when Atomicity, Consistency, Isolation and Durability can be violated.

  1. [Column Store] (20) We take a closer look at Column Store

      1. Explain the major features of column stores in terms of data storage and storage key.

      1. We introduced three techniques to optimize column-oriented databases: compression, late materialization and block iteration. Please explain how they work.

  1. [newSQL] (20)

    1. Describe the definition of NewSQL systems and design principles.

    1. For in-memory DBMS, describe the set-associative cache for block placement and LRU block replacement policy.