Indexing for different query types

Assignment Help Basic Computer Science
Reference no: EM13853116

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 as indexing, you 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 gradually shrinking (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. Then 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 key column. Do an INSERT and look at the execution plan and cost. Now put a primary key constraint 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 as materialized views or function-based indexes can improve performance in these situations. In particular, function-based index structures store the calculated values for efficient retrieval. As part of an experiment, you can create a computed attribute and try queries with and without function-based indexes

Reference no: EM13853116

Questions Cloud

Market for ethanol in the united states : Consider the market for ethanol in the United States depicted in the figure to the right. Assume the world price of ethanol is $0.90 per gallon, and at that price the United States can buy as much ethanol as it wants without causing the world pric..
Defining health and identifying influences on healthcare : Defining Health and Identifying Influences on Healthcare Policy In a 500- to 800-word, opinion-based paper, discuss if the definition of health, as identified in 1948 by the World Health Organization (WHO), is still applicable today. Describe at leas..
Describe in great sensory detail : Describe, in great sensory detail, a place that you love or that you associate yourself with.  It might be the house in which you grew up, the dream house you hope someday to build, the car you "live in" including everything stuffed into it, a garden..
What information do you gather from data in this instrument : Read the Case Study for "Johnny" and review/score the DSM-5 Parent/Guardian-Rated Level 1 Cross-Cutting Symptom Measure-Child Age 6-17 form completed by the mother (attached). What information do you gather from the data in this instrument
Indexing for different query types : 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..
An example and diagram of higher order conditioning : An example and diagram of higher order conditioning. Be sure to label each component using the appropriate abbreviations.
Compare approaches of security cooperation in two regions : Regionalism in International Politics Research Essay. Compare and contrast the approaches of security Cooperation in two or more regions.
What are two conditions under which sensory preconditioning : What are two conditions under which sensory preconditioning works best and what is their significance
Describle what psychologists mean by temperament : Describle what psychologists mean by temperament, name the 3 types of temperaments, explain how to identify it using different scales, and bring an example of evidence that temperament has a hereditary component.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Transmit an uncompressed grayscale image

Determine the total time it takes to transmit an uncompressed grayscale image (with 8 bits/pixel) from a screen with a resolution of 1,280 × 840 pixels using each of the following media:

  The way to call two functions with the onclick event

add the image so when click on the image it will submit the amount. Also is this the way to call two funtions with the onclick event?

  8-bit two''s complement numbers

Give the 8-bit two's complement representations of the following integers: 55, 83, -79, -88.Give the integer (in standard base-10 notation) which is represented by each of the following 8-bit two's complement numbers: 10000000, 11110011, 11111111.

  Display the total annual compensation

A salesperson will continue to earn a fixed salary of $50,000. The current sales target for every salesperson is $80,000.

  Write a method called getgrade

Write a method called getGrade that accepts an integer representing a student's grade in a course and returns that student's numerical course grade

  Explain how a user can use two programs in combination

Explain how a user can use two programs in combination with symbolic links to access a file to which the user does not have permission to open. How you would access the file, for example, moving, printing, modifying, or sharing a file. Finally..

  Computer fraud and abuse act

Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism Act (US Patriot Act), 2001, renewed 2006

  Use a common data center of twenty

Analyze and explain how you would use DNS in your plan. Compose a two-paragraph executive summary highlighting the main points of your plan. Use at least three (3) quality resources in this assignment.

  Compare and contrast the us health care system with that

compare and contrast the u.s. health care system with that of another country. what are some of the major advantages

  Project 2 this assignment consists of two 2 sections a

this assignment consists of two 2 sections a business requirements document and a gantt chart or project plan. you must

  Assembly program to compute division of two integer numbers

Write a program in assembly with the necessary comments that computes division of two integer numbers (Y by X) by consecutively subtracting X from Y.

  Security policy framework

You will create an organizational security plan policy using your assigned readings (pay close attention to Chapter 3 in the Building an Effective Information Security Policy) as well as the Cybersecurity Framework  as a resource, creating a two ..

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