GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 112 of 166    Print  
What is the systematic way of tuning a query?

  
Total Answers and Comments: 1 Last Update: December 21, 2007     Asked by: Muhammad Fayyaz 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 21, 2007 02:51:39   #1  
dinu78 Member Since: November 2007   Contribution: 1    

RE: What is the systematic way of tuning a query?
1) First identify the current excecution plan by using showplan.

In most cases creating and then forcing usage of the indexes result in drastic improvement.

1) Ensure that indexes(single or composite) exist for columns referred to in the where clause.

2) Avoid select(*) instead use tablename.columnname.

3) Avoid using in clause instead use where col value1 and col value2 etc.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : tkproof is a oracle utility. it gives information  about following parameters.********************************************************************************count    = number of times OCI procedure was executedcpu      ...
Read Answers (3) | Asked by : suneel

How to query to know, that dbms_rowid package contains ROWID_OBJECT, rowid_block_number ,etc procedures or functions in it.

Hello,I need some info, that is it possible to find or make query ,that if we know the data stored in a table but don't know the field name in which the required data is stored.ExampleTable having fields like columnA, columnB, columnC, columnD,..........columnN and all have the same dataType. and you dont know in which field your data exists.suppose some data like e.g. "BackMan" exists in any Field of the table but we don't know in which Field this information is store.Is it

How to return multiple records from procedure?e. g. I fired a select query and I want to retun a result to ?

Latest Answer : Pre-query trigger fires only ones while post-query trigger fires each time.the Post-Query trigger fires each time Form Builder fetches a record into a block.RegardsPawan Ahuja ...
Read Answers (1) | Asked by : Ramachandra

I have to replace a particular value say "_" with a space in particular column of a table, kindly provide me the query how to achieve this.
Read Answers (2) | Asked by : Pattabiraman

How to write a query or procedure or function to retrieve all the tables from database where the table dont have any data (no rows).
Database has 100 tables and some of the tables dont have any data. I want to pullout those table names from database in Oracle. 
Read Answers (3) | Asked by : Robert

Latest Answer : 1) First identify the current excecution plan by using showplan.In most cases, creating and then forcing usage of the indexes result in drastic improvement.1) Ensure that indexes(single or composite) exist for columns referred to in the where clause.2) ...
Read Answers (1) | Asked by : Muhammad Fayyaz

How to query the customer details from a Table who have purchased No. of items greater than 5? 
Latest Answer : select column 1,...column n from table namewhere purchaseno 5 order by purchaseno;try this one .....ThanksRAJIV GUPTA YOGIK TECHNOLOGIES PVT LTD.JAMSHEDPUR ...

How can i choose which query is best?i.e On which factors i can choose the best query? 
Latest Answer : By forcing the SQL engine to use indexes.If query is too much nested then break it into two or three queries using temp tables and then write one query by joining these temp table to perform the task. ...


 Sponsored Links

 
Related Articles

What is an Ad Hoc Query

An Ad-Hoc Query is a query that cannot be determined prior to the moment the query is issued. It is created in order to get information when need arises and it consists of dynamically constructed SQL which is usually constructed by desktop-resident query tools. This is in contrast to any query which
 

Structured Query Language (SQL) - Basic Concepts

Structured Query Language SQL Basic Concepts Having query about what a SQL is It is Structured Query language It is a non procedural language and it is a database language mosgoogle Categories in SQL commands There are 3 broad categories in SQL commands They are namely Data Definition language DDL
 

SQL Server 2005 - Using the Database Tuning Advisor

SQL Server 2005 Using the Database Tuning Advisor In this tutorial you will learn about Using the Database Tuning Advisor in SQL Server 2005 Using the DTA Open the Database Engine Tuning Advisor GUI Set the tool options Hide and unhide the Session Monitor Tune a workload Transact SQL script file Vie
 

SQL Server 2005 - Tuning a Database

SQL Server 2005 Tuning a Database In this tutorial you will learn about Database Tuning Advisor overview Database Engine Tuning Advisor Features Improved Workload Parsing Enhanced Scalability Integrated Tuning Multiple Database Tuning Offload of Tuning Overhead to Test Server Drop Only Tuningm XML S
 

Performance Tuning of Java Applications

Performance Tuning of Java Applications Ever since the first version of Java Technology hit the streets performance has been an important issue for Java developers Java has improved dramatically and continually but performance tuning is very essential to get the best results especially when we think
 

Tutorial 47: MSAS: Optimization Tuning Part 2

The SQL Server Query Analyzer is a feature rich Query Analyzer The tool can provide a graphical representation of a query and helps the user mould queries into more efficient shapes It also helps identify faulty queries To Tune the index created the user will have to open the SQL query analyzer and
 

Tutorial 46: MSAS: Optimization Tuning Part 1

SQL Server 2000 Analysis services comes with certain features that optimize performance without the intervention of the Administrator The Storage Engine is optimized by incorporating the following features; Record size and Data types should be kept as short as possible in the Fact tables and should
 

Systematic Networking for a Better Job Position

There are networking groups that you can join today for a very small fee. Usually they will require you to pay a monthly or annual fee to be part of the group. Most unfortunately failed to see the benefits of being with a networking group because being in a networking group doesn’ t instan
 

Setting Up a Systematic Job Search

Finding a right job now is more than just going online and randomly visit job posting sites. That might work but you might be spending a lot of time browsing through websites without even thinking of a particular company or even a specific position. Without any specific goals except to land a job yo
 

Be Prepared for Tech Job Cuts

Even one of the most flourishing and possibly the strongest industries of the future are not experiencing the economic crunch. The tech industry is now experiencing massive job losses in different categories. Although you will still see innovations almost every day from the tech industry through th
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape