Develop your skills optimizing query

Assignment Help Database Management System
Reference no: EM131223143

Physical Database Design 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 NOT contain 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.

1323_Figure.png

Reference no: EM131223143

Questions Cloud

Show the impact on the federal reserves balance sheet : Show the impact on the Federal Reserve's balance sheet of a foreign exchange market intervention where the Fed sells $1,000 worth of foreign exchange reserves.
Explain how the given event influence the bank : Write a 2-page, double space 12 font essay. Introduce a current event and explain how this event influence the bank. Open topic.
Prepare new contribution format income statement : Miller Company’s most recent contribution format income statement is shown below: Prepare a new contribution format income statement under each of the following conditions (consider each case independently):
Combinations of monetary and exchange rate policies : Assuming the country is open to international capital flows, which of the given combinations of monetary and exchange-rate policies are viable?
Develop your skills optimizing query : 406706 - Physical Database Design 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
Do you think happiness is connected to being a good person : Aristotle seems to argue that happiness is only possible if you are a virtuous person. Aquinas, on the other hand, leaves happiness out of the universal human goods. Do you think happiness is connected to being a good person? If so, how? If not, w..
How it interprets the firms financial strength : Review Ford Motor Company's Form 10-K for 2012. Explain the purpose of a company's 10-K and how it interprets the firm's financial strength.
Construct a program flowchart and corresponding pseudcode : Construct a program flowchart and corresponding pseudcode that will compute and output the first number greater than 100 in the preceding series. No input is required.
Generate annually for purchase to be economically viable : MARTA is considering purchasing a fleet of 20 solar powered mini buses. The anticipated purchase price of the fleet is $1,500,000 or $75,000 per bus. Each mini bus is expected to have a useful life of four years when it can be sold for $5000. Assumin..

Reviews

len1223143

9/28/2016 2:56:03 AM

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. 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.

Write a Review

Database Management System Questions & Answers

  Develop an e-r diagram for the library database

Develop an E-R diagram for the library database. The relation schemas for the library database.

  Create a form for the product table

Create a form for the Product table. Create a report for the Product table. grade will be based on the quality of your design and presentation

  Recognize level within a database system

Recognize level within a database system (user, programmer of application software, and designer of the DBMS software) at which each of the following concerns or activities occur.

  Display the number of seats that were in the cinema

Display the number of seats that were in the cinema and the name of the movie. A list of all screenings of PG movies during the month of January, 2015.

  Write a join query that for every order placed on september

Write a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order

  When does oracle stop processing the query

How does Oracle process this query? That is, what does Explain Plan tell you about how the query is processed - how would you recognize that the results were not correct?

  Add a new customer to our list of customers

List the rental identification number, make, model, year, classification, and rental duration for each of our locations for the month of October, 2015.

  Prepare the first-stage allocation of overhead costs

Prepare the first-stage allocation of overhead costs to the activity cost pools and prepare an action analysis report in good form

  Suppose that we have a ternary relationship r between entity

Suppose that we have a ternary relationship R between entity sets A, B, and C such that A has a key constraint and total participation andB has a key constraint

  Implement a transaction-level consistency

Implement a transaction-level consistency in relational database management system

  Creates and populates the local db2 database

Populating Local DB2. Run the script that creates and populates the local DB2 database.  It has been posted on Bb, under Homework Assignments. Download it, study the relational schema and run it on your Oracle account

  Develop conceptual data model diagram

To develop a conceptual data model diagram and to perform logical design and Development Plan applications (here after called as application) that have been received during the previous month from the developers/ owners of the plots under the counc..

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