INFS602 Physical Database Design Assignment

Assignment Help Database Management System
Reference no: EM133027887

INFS602 Physical Database Design - Auckland University of Technology

Assignment - Query Optimisation; Individual assignment

This assignment will develop your skills in the area of Query Optimisation. This will involve identification of the best access paths and methods for a query. You will work individually on this assignment.

You will need some large tables to query. You may use BigTablesForAssignment2.sql that will create data in a few tables. The tables will be unstructured and will not contain any indexes, and are not clustered or hashed.

1. Most important - You need to c reate a query to retrieve data from the 3 tables. The query can be an equi-join or a sub-query but a nested sub-query would work well. Your query should make it hard for the DBMS to run the query efficiently as the objective of this assignment is to optimize the query.
You should then run the query and note the execution time. The time a query with unstructured data takes to execute will be used as the baseline.

2. Plan on indexes you think you need to make the query run faster. Plan how to set up indexes and set them up.
Run the query and record the results; note whether time taken to execute has improved, or not.
Look at the explain plan and reason why this result occurred. Keep in mind the aim of this experiment which is to improve query execution time, so you may wish to alter the way you set up the structures by, for instance, adding more indexes or more appropriate indexes. Note any differenes in execution time.
Pick the experiment with the best result for your assignment report and include this along with a good explanation of the results.

3. Plan how to set up clusters for the same query, and set them up. Run the query and record the results; note whether time taken to execute has improved, or not. Look at the explain plan and reason why this result occurred. You may wish to alter the way you set up the structures by, for instance, altering the tables you clustered together. Note any differences in execution time.
Pick the experiment with the best result for your assignment report and include this along with a good explanation of the results.

4. Plan how to set up hash clusters for the same query, and set them up. Run the query and record the results; note whether time taken to execute has improved, or not. Look at the explain plan and reason why this result occurred. You may wish to alter the way you set up the structures by, for instance, altering the tables you hash clustered together. Note any differences in execution time.
Pick the experiment with the best result for your assignment report and include this along with a good explanation of the results.

You should by now have determined the optimal data structure in terms of performance. You now have some choices about how you might further improve the query.

5. Take the best optimisation so far and try to improve it by inserting hints and swapping the order of the tables in the 'from' clause of your query (See marking rubric).
Document your results along with a good explanation of the results.

Don't overlook explanations of what's happening at each stage of your experimentation. Just handing in a listing of a TRACE file without saying what it all means will leave the marker feeling ignored and incapable of awarding marks. An a ccurate brief c omment on each event is as important as the experiment itself.

6. The last section of your submission will consist of a short reflective report (max length: 300 words) that discusses your opinion on the effectiveness of Oracle's query optimizer, gathered from your experience.

Points to note when designing the experiments
• The baseline query must take a sufficiently long time to allow improvements to occur later when tuned.
• The query will need to involve 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.
• The data must stay the same for all the tests and the first run results are to be noted; the second run will use data already loaded in memory and therefore is not a good indicator of execution time.
• You will need to make design changes to tables before all the tests will work. For example, before Experiment 2 Indexes, you will need to Alter table to add constraints and indexes, or make changes to Create table statement.

Attachment:- Physical Database Design.rar

Reference no: EM133027887

Questions Cloud

Defining of acceptable risk : One of the most important management tasks related to workplace safety is the defining of acceptable risk.
MAN7078 International Strategic Management Assignment : MAN7078 International Strategic Management Assignment Help and Solution - Birmingham City University, UK - Assessment Writing Service
Build practical skills in data visualisation technologies : Evaluate appropriate data visualisation techniques to support a case or project in their context of big data and Develop visualisations for large
LFBM104 Legal Issues in Business Organizations Assignment : LFBM104 Legal Issues in Business Organizations Assignment Help and Solution - University of Sunderland, UK - Assessment Writing Service
INFS602 Physical Database Design Assignment : INFS602 Physical Database Design Assignment Help and Solution, Auckland University of Technology - Assessment Writing Service
ICT320 Database Programming Assignment : ICT320 Database Programming Assignment Help and Solution, University of the Sunshine Coast - Assessment Writing Service
Examine employee work performance and motivational theory : Examine employee work performance and motivational theory in the context of a real-world organization. How has that impacted your work performance
Marketing Plan For Pantai Medical Centre : Assignment - Marketing Plan - Company - PANTAI MEDICAL CENTRE and Product or service - GERIATRIC CARE. 1) Executive Summary (350 words), 5) Situation Analysis
BUS 363 Technology and Innovation In Entrepreneurship : BUS 363 Technology and Innovation In Entrepreneurship Assignment Help and Solution - Strayer University, USA - Homework Help - Strategic Innovation

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