Question: We are designing a document database for the online booking system of our beauty salon. Our database must support queries for the following access patterns:
We are designing a document database for the online booking system of our beauty salon. Our database must support queries for the following access patterns:
Retrieve customer information by a customer identifier.
Retrieve reservation history of a customer.
Retrieve reservation details by reservation code.
Retrieve all reservations by date. All bookings made in May th
Retrieve all reservations by their status egconfirmedpending approval
Retrieve all reservations by their status and date eg All confirmed bookings made in
September or in or on April th
Insert data into your model for three users who each has made three reservations.
You need to submit two files:
A JSON file including your data model please see below how to export your data model
A document including your answers to the following questions.
A What attribute did you choose as your partition key? Explain your logic.
B Do you think a sorting key is required for your data model? Why? If yes, please explain which attribute are you choosing as your SK
C Are you using any GSI? If yes explain for each GSI what PK or SK you are using.
D Explain for each access pattern, how do you run a query? Demonstrate your answer by giving an example from your data model. For instance:
to support access pattern number we can use a query with PK and SK less than Insert the screenshot of the result of your queries in the report. In total, you need to run queries per access pattern
Can you please show me your answer of screenshots by working on NoSQL Workbench
for Amazon DynamoDB for all steps to see how you work on NoSQL Workbench
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
