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

  Implement a relational database management system

Select a commercial or open source relational database management system of your choice and outline the locking mechanisms inherent in the system to maintain transaction-level consistency.

  Create an entity relationship diagram

Create an entity/relationship diagram (ERD) showing all your entities, attributes, and relationships. Sketch your ERD by hand or use a drawing program. Your diagram must beon a single page

  Create a relationship between the employees and sales tables

Create a relationship between the Employees and Sales tables. Save the relationship. A form and subform of sales by the salesperson. Name this form Employee Sales. Use the attached layout on page 5. (use the Zoom icon to make form readable)

  Draw context diagram data flow diagram for system described

Draw a context diagram data flow diagram for the system described above. The format should be similar to the context diagram in figure 5-13 of your textbook.

  Explain leaf of b tree which holds a sublist

Artificially small example of B+ tree is shown here (pdf). (Note only part of tree is shown in detail.) What nodes of example B+ tree are visited to find posting list for "dune"?

  Activity-based costing approach

Compute the predetermined overhead rate under the current method, and determine the unit product cost of each product for the current year.

  Explaining database security relate to data integrity

In talking about database security, some aspects to regard as are Data Integrity, Confidentiality, and Malicious Activity. Illustrate how does database security relate to data integrity?

  Create a function

Create a function that returns the day of the week for a specified date. Create a trigger that displays the message "Emp table updated" when an update to the employee table increases the employee's basic salary.

  Explain the need for key restructuring

Give at least three reasons why ETL functions are most challenging in a data warehouse environment.

  Verify your implementation by viewing the data dictionary

Implement the authorization table using any two suitable application models presented - Use the scripts provided to create a schema - Create three different profiles based on the criteria.

  Data mining

DATA MINING-Business and Management Scenario assignment-Data Warehouse Reports. This is Part Three of the three-part assignment. For this week, you will complete the following: Resource: Business and Management Scenario assignment, Document data ware..

  Determine the cartesian product of sets

Determine the Cartesian product (A X B) of the given pair of sets. A => Set of first letter of names of countries = A = { R, S, T } B => Set of numbers denoting Postal codes = B = { 0001, 1001}.

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