Primary keys and indexes

Assignment Help Database Management System
Reference no: EM13852133

Description

This group assignment provides an opportunity to gain some practical experience with indexing. The "experiment of the week"   assignments are intended to be more open, with your group picking the specific topics to investigate. Basically, this gives you a chance  to be a bit more creative and follow directions of specific interest to you (and more relevant to your career). Besides creativity, you should try to pick experiments that are interesting and carry them out with good technical skill. That does not mean the results  have to be in line with your intuition, counter-intuitive yet interesting results are great. Besides the topic of the week, such asindexing,  ou are free to bring in any past topics to complement your experiments. For instance, you might develop some new queries that fit better with the current experiments. The deliverable is an "experiment of the week" write-up that includes an  explanation of each experiment, along with screenshots, figures, and/or tables that highlight key steps or results. Along with some   ideas below, there are "hall of fame" examples that show fragments of past student projects. These fragments and hints are selected because of interesting features, but are not guaranteed to be completely correct. So, use them for inspiration and develop your own  informed results (i.e., "trust but verify"). Together these hints and ideas should help you complete your assignments and learn along the way.Project Ideas

Idea 1: Investigating Selectivity

Look up selectivity in your database textbook. Essentially, the optimizer makes a decision regarding index use based on the fraction of results returned. Indexes are most useful when selecting a small fraction of the available records. You can conduct a simple experiment to find out where the cutoff percentage lies by developing a simple single table query and graduallyshrinking (or growing) the query range.

Idea 2: Start Simple and Show that Indexing Works
You can start with a simple experiment that builds on your query writing. Take a simple query and improve the performance by adding indexes (and/or using any subsequent techniques).The idea is to take a query scenario based approached to performance tuning.  hen expand to more complex queries.

Idea 3: Primary Keys and Indexes

Why index a primary key? Primary key constraints can be expensive to enforce, since any new values have to be unique (and compared with all existing values). So, a fast lookup based on the primary key value is very useful (based on an index). You could  explore this by creating a table with no primary key constraint, but with a unique constraint on the candidate keycolumn. Do an INSERT  nd look at the execution plan and cost. Now put a primary keyconstraint in place, which automatically creates an index. How  does the performance differ? I have not tried this, but it sounds interesting.

Idea 4: Indexing for Different Query Types There are many  types of queries. Some queries are highly focused and return a single row or small set (a "point queries"). Other queries return larger  sets based on ranges of specific attributes (range queries). Report-like queries typically scan large amounts of data and often form   aggregates for results (scan queries). You could explore the importance of index structures under these different scenarios.

Idea 5:  Function-Based Indexes Database systems often provide methods for improving performance for computed columns. It
is often good practice to derive data from several existing columns. However, these multicolumn computations can be expensive to  calculate at query time. Several techniques such asmaterialized views or function-based indexes can improve performance in these  ituations. In particular, function-based index structures store the calculated values for efficient retrieval. As  part of an experiment, you  an create a computed attribute and try queries with and without function-based indexes

Reference no: EM13852133

Questions Cloud

The progeny of a drosophila female : The progeny of a Drosophila female (heterozygous at three loci, y+y, ct+ct, w+w) crossed to a wild type male are listed as follows: Females        y+ ct+ w+     2000
Injections of human chorionic gonadotropin : It is possible that injections of human chorionic gonadotropin (hcg) might sustain Frank's sperm production.  However, if he continues the hcg injections for a long period of time, he could also increase the amount of what hormone?
A eukaryotic structural gene contains two introns : A eukaryotic structural gene contains two introns and three exons: exon 1-intron 1-exon 2-intron 2-exon 3. The 5? splice site at the boundary between exon 2 and intron 2 has been eliminated by a small deletion in the gene. Describe how the pre-mRNA e..
Ability to manage patient expectations : What implications does the concept of grudge purchase have on the patient experience and our ability to manage patient expectations
Primary keys and indexes : Primary Keys and Indexes
Calculate monthly payment and amortization schedule for loan : Write a C program that calculates the monthly payment and amortization schedule for the loan. The program should prompt the user to enter the loan amount, the annual interest rate, and the number of years the loan will run.
Chamber between parallel plates : 1. The ancient Greek Democritus and his teacher Leucippus reasoned that matter must have a smallest component that was indivisible. Suppose you take one kilogram of gold and begin the process of dividing the material into successive halves.
Find out the internal schema of the above database : Find out the internal schema of the above database
What are the four types of portfolios a pmo must focus on : What are the four types of portfolios a PMO must focus on?

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd