| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Improve query performance
Thanks all for your input.
We are running Oracle 9i Database (Release 9.2.0.1.0). But I don't know the optimizer mode nor trying the execution plan as I am not the DBA and we have no DBA around.
I need to use substring in my query because the column contains nested value which requires to extract data identified by colon. Let's say I create another column on the big table, but still requires to use substring to fill in the new column?
Also, the small tables are used to speed up the query time of reporting as those tables are used for reporting purpose from JAVA applet. With the use of small tables, this will avoid the building time using substring and joining tables, that's why I need to pick a better time to build up those small tables.
If it is required to run the execution plan before any suggestion, I will try to do this.
BTW, Noel suggests to use this syntax instead, any ideas?
SELECT *
FROM TABLEA A
WHERE NOT EXISTS
(
SELECT 1
FROM TABLEB B
WHERE B.ID = A.ID
might be replaced with:
SELECT *
FROM TABLEA
WHERE ID IN
SELECT A.ID ID
FROM TABLEA
MINUS
SELECT B.ID
FROM TABLEB
);
Daniel Roy wrote:
> There's not much we can do with the (lack of) info you provide. Please > give us at least the Oracle version and OPTIMIZER_MODE, as well as the > execution plan. What I've seen so far is that NOT EXISTS performs much > better than NOT IN, but that depends on the volumes of data, of > course. > > Daniel > > >
![]() |
![]() |