Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Assignment: Query Optimisation This assignment aims to develop your skills optimizing query.

It involves identifying the suitable methods for structuring the data and writing the query.

First, you will need to create a query on some unstructured data. Unstructured data can be thought of in this context as a table which is NOT clustered or hashed. In addition the table should NOTcontain any indexes at all. The query can be an equi-join or a sub-query.

The time a query with unstructured data takes to execute (execution time) will be used as the baseline.

Plan how to set up indexes, clusters, and hashed clusters for the same query. Use different numbers of rows and graph these for each type of structure. You need to create enough rows to indicate a trend in the performance (Number of rows should be enough).

You should then run the query and note the execution times for EACH of these structures.

Record the results. When doing this you could alter the way you set up some of these structures by, for instance, altering the hashkey or what you cluster together and note any differences in execution time.

You should by now have determined the optimal data structure in terms of performance. To be confident that your data will make things difficult for Oracle, ensure that:

- the data is as unordered as possible
- you retrieve a number of rows

You now have some choices about how you might improve the SQL statement. Take the best optimisation and try to improve it by inserting hints and swapping the order of the tables in the 'from' clause of your query.

The best of these 'improved' statements then needs to be tried out using Oracle's Parallel Query Option.

Please note:

You need to write explanation (Brief explanation) on each event. Just handing in a list of a TRACE without saying what it all means will make you lose your mark. Your comment on each event is as important as the experiment itself.

In your report as the conclusion part, you need to write (max length: 300 words) that discusses the effectiveness of Oracle's query optimizer.

575_Figure.jpg

Points to note when designing the tests
- The baseline query must take a sufficiently long time to allow improvements to occur later when tuned.
- The query will need to involve a join (s) of tables so that all data structures can be used.
- You must rebuild the tables and reload the data between tests when altering the data structures.
- Tests can vary in their total time and it is safer to run each test 2-3 times to ensure the execution time is consistent.
- The data must stay the same for all the tests otherwise it will not be possible to make comparisons.
- You may need to make design changes to your tables before all the tests will work.
- If you leave the assignment to the last minute you will find the server responses slow because of all the other students also completing assignments at this time.

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91982779

Have any Question?


Related Questions in Statistics and Probability

The stat 200 course coordinator wants to estimate the

The STAT 200 course coordinator wants to estimate the proportion of all online STAT 200 students who attend Penn State Learning tutoring sessions. In a survey of 72 students during the Summer 2018 semester, 8 had attende ...

Describe in detail each of four risk factors of holding a

Describe in detail each of four risk factors of holding a domestic bond. Your summary should convince the reader that you fully understand each risk factor.

The meantime it takes a technician to resolve this software

The meantime it takes a technician to resolve this software issue is 18 minutes with a standard deviation of 4.2 minutes. This information was obtained from a random sample of 10 monitored calls. A sample of 15 monitored ...

The times that customers spend in a book store are normally

The times that customers spend in a book store are normally distributed with a mean of 39.5 minutes and a standard deviation of 15.9 minutes. A random sample of 25 customers has a mean of 36.1 minutes or less. Would this ...

Question in one law school class the entering students

Question: In one law school class the entering students averaged 700 on the LSAT test with a standard de-viation of 40. Assuming the distribution of test scores was normal, what fraction of the class scored above 750? Th ...

Robertson steel is forecasting the following

Robertson Steel is forecasting the following numbers: EBIT  $1,000,000 Interest Expense       300,000 ROE                          20% The company is in the 40 percent tax bracket. After putting together the forecast the ...

A foreign trader at the banks tx desk calls to inform you

A Foreign trader at the bank's TX desk calls to inform you that the company TD Bank is  quoting $1.20/€1, and Bank of America is offering $1.40/£1. The trader also noticed thatCredit Z is also making the market in pound ...

Research scenario a community psychologist is interested in

Research Scenario: A community psychologist is interested in whether people's self-reported degree of religious belief predicts their self-reported feelings of well-being. She administers two questionnaires to 17 individ ...

Monroe inc is evaluating a project the company uses 138

Monroe, Inc, is evaluating a project. The company uses 13.8 percent discount rate for this project. cost and cash flows are shown in the table. What is the NPV of the project? year. Project 0. ($11,368,000) 1. $2,187,590 ...

Interested in learning more about its fans the marketing

Interested in learning more about its fans, the marketing office of the Arena Football League (AFL) conducted a survey at one of its games. The survey had 952 respondents, 679 males and 273 females. Out of the 952 total ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As