Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle Performance Issue
Robert Klemme schrieb:
>> >>SELECT user_group_id >> FROM user_group_ou >>GROUP BY user_group_id >> HAVING COUNT (*) = :b1 - 1
Yes; Oracle performs a full table scan.
>
> What's that? A boolean value stored in a VARCHAR?
>
It's a VARCHAR2(1) field containing the same value for all rows.
>
> An index on user_group_id might help - depending on the record size. In
> that case Oracle can do an index scan instead of a table scan (which I
> assume it's doing right now).
>
We'll try that. Seems reasonable.
> The of course you have all the other options that improve IO performance
> such as distributing data on several disks, adjusting cache sizes etc.
> Difficult to tell with the info provided so far.
IO is not a big deal - as we should have lots of that (an EMC Symmetrix is direct attached). We do not have performance issues with other SQL - that is well written. Querieng our biggest table - which contains over 1.000.000.000 records - are really fast - when those queries use proper indices.
Thanks Roland Received on Wed Sep 07 2005 - 06:10:19 CDT
![]() |
![]() |