Needing Material and Tuning Tips

Tuning de Banco, Tuning de SQL, Ferramentas de tuning
Post Reply
rodcapella
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 19
Joined: Tue, 07 Jul 2009 10:26 am
Location: Rio de Janeiro - RJ

Personal,

I needed a tuning stuff to improve the performance of a few hundred query in Oracle here in my work. Does anyone have some interesting material about it, or else, some tips to give me?

I have heard that the position in which the tables are declared in the FROM clause can influence Query's performance (at least in Oracle).


vlw,
toferraz
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 2
Joined: Fri, 24 Apr 2009 11:35 am
Location: Uberaba - MG

Good morning,

First a very good tip is to use the Oracle 10G and 9i features of graphics and tuning solutions that he owns to assist you in creating indices.
Second tip is to observe if SQLs are bringing only what you need in the Select clause.
About SQLS, although not Oracle's standard, I use a lot of Inner Join to relate the tables because it facilitates in the viewing of the relationships performed (this tip would be more for the "layout" of your SQL and it is easier to understand a future maintenance what SQL does).
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

RODCAPELLA wrote: I'vê heard that the position in which the tables are declared in the From Clause can influence Query's performance (at least in Oracle).
This applies only when you are using rule-based optimizer. Hence the order influences. But normal is that the optimizer is cost, based on statistics and histograms collected from the tables. Hence no matter the order.
rodcapella
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 19
Joined: Tue, 07 Jul 2009 10:26 am
Location: Rio de Janeiro - RJ
_________________
Rodrigo Póvoa
Analista de Sistemas Júnior
Oracle Developer

Dr_gori,

When you say rule-based optimizer, you are indicating something like:

Select all

SELECT /* +RULE */ CODPROD 
FROM PRODUCTO
You force the Oracle to use rule-based optimizer and not cost. That's it ?
User avatar
dr_gori
Moderador
Moderador
Posts: 5024
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

That's right. When force with + rule, it hurts the order influences.
rodcapella
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 19
Joined: Tue, 07 Jul 2009 10:26 am
Location: Rio de Janeiro - RJ
_________________
Rodrigo Póvoa
Analista de Sistemas Júnior
Oracle Developer

Dr_gori,

and the choice of making a query per rule or cost will just depend on the environment? You may have any more efficient with the use of / * + rule * / relative to cost, is not it?

Do you happen to have any material on this subject? Do you recommend any reading?

vlw,
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests