Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 4 (Indexing, 4 pts) Count the costs of operations and find an optimal selection of indexes for the Movies table in Movie Database. Operations

Exercise 4 (Indexing, 4 pts)

Count the costs of operations and find an optimal selection of indexes for the Movies table in Movie Database.

Operations

Insertion I (70%): INSERT INTO Movies VALUES (A,B,C,D)

Update U (30%): UPDATE Movies SET Rating=X WHERE Title=Y

Assumption about data

Data for the Movies table is stored in 10 blocks.

The Title attribute is a key for the Movies table.

Any index for the Movies table is stored in 1 block.

Two cases to analyze

No indexes.

Index on Title.

Movies
Title Year Runtime Rating
Django Unchained 2012 165 8.5
Goodfellas 1990 146 8.8
Pulp Fiction 1994 154 9
The Departed 2006 151 8.5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions