Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You are implementing a NoSQL database to record the grievances of customers of a

ID: 3822529 • Letter: Y

Question

You are implementing a NoSQL database to record the grievances of customers of an automobile company. You have freedom of recommending a Key-Value type database or a Document Database. Each of the grievance record is keyed on Customer ID, and contains certain other information like the Automobile model (examples: Camry, Civic, Corolla, Escort….), grievance category (Example: Mileage/Fuel consumption, Maintenance costs, pickup time…), and some description of the grievance. The system needs an ability to index and query the grievance records based on values for Automobile model and grievance category. As the Database Designer, would you recommend a Key-value type of database or a Document database? Please provide explanation(s) for your recommendation.

Explanation / Answer

The best choice for this requirement is Document database. Because Key-value type of database store data in a simple JSON structure which lacks search and indexing capability. If we use document type database then all data regarding a single grievance record can be found in one document. Those document can be queried for data if we use document type database, but in key-value database data is referenced using keys and it doesn't support any query.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote