How to improve the performance of a pl/sq stored procedures
or functions or triggers and packages ?

Answer Posted / rajnish chauhan

Follow the steps for performance SQL Tunning.
1) First of all tables structure should be in normalization form.
2) Then Index and tables Statistics should be upto date.
3) make it different tables table space for tables and index.
4) Avoid unnecessary joins from the query.
5) Avoid Full Table Scan and Index Skip scan.if query fetching less then 15% records from the table then index scan faster then FTS.and FTS is better then index scan if tables consist larg no of data because Index scan read multiple time on each row where as FTS read single time for each row.
6)monitor Plan through Explain plan or TKPROFF.
7)Table ordering also improve the performance of the query like.Master table should take first place then after Transaction table.
8) Check index path used or not in explain plan .if not then check weather index enable or not.then use Index Hint to forcefully used.
9)Avoid function on index column.
10) other small things you can apply like use Having instead of Where clause , use Exists then IN , use Substring instead of <> caluse.

Thanks

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pl/sql table? Why it is used?

573


What is the main difference between sql and pl/sql?

575


what is a relationship and what are they? : Sql dba

561


What is trigger in sql and its types?

545


how to write date and time literals? : Sql dba

538






What is exception? What are the types of exceptions?

565


How do I write a sql query in pgadmin 4?

564


How do I run a sql trace?

534


What is the plv (pl/vision) package offers?

625


Will truncate release space?

525


what is meant by nl2br()? : Sql dba

574


What is the difference between partitioning and sharding?

540


Is it important to partition hard disk?

541


What is a join?

637


How many types of indexes are there in sql?

546