Question: Design a Cassandra database to support a Spotify-like media cataloguing application. The application should catalogue music, including artists, their albums, songs in each album, playlists,

Design a Cassandra database to support a Spotify-like media cataloguing application. The application should catalogue music, including artists, their albums, songs in each album, playlists, users that created/shared/played various playlists, etc. The conceptual model describing the applications data is shown below. Your database must store data described by every entity, relationship, and attribute type shown in the conceptual data model. Your database schema must be in the 3NF. Your answer should consist of the CREATE TABLE statements that represent your database schema. Assume the following about the application: every album was released by some artist. Every song belongs to some album, every album was released by an artist, and every playlist was created by some user. In other words, for each 1:n relationship type, assume mandatory participation for the entity type on the n side.

Design a Cassandra database to support a Spotify-like media cataloguing application. The

b. Write the following queries in Cassandra:

Q1. Find albums by a given performer. Order results by year (DESC).

Q2. Find albums by genre released after a given year. Order results by year (DESC).

Q3. Find albums of a given genre released in a given country after a given year. Order results by year (DESC).

Q4. Find playlists by a given album.

Q5. Find a user who created a given playlist.

Q6. Find users who shared a given playlist.

First, based on the above access patterns, design a logical data model. Then, for every table, assign datatypes to each column to obtain a physical data model. For this exercise, you do not need to perform other physical optimizations. Your answer should include CREATE table statements in the CQL language that represent your Cassandra database schema

key2: ema creates n keyl: username User m plays n- Playlist Kname tags m shares n country age features year style country name Artist 1 releases Album 1. has Song title genre format duration

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!