Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: prefixed index - high clustering factor & high cpu
jonathan,
thanks for the reply, here I paste a piece of trace 10053 (SELECT *
WHERE PG_TRANSC_ID=:B1).
the table now partitioned with hash(PG_TRANSC_ID,EAI_TRANSC_ID)
the interesting part is resc_io: 9.00 resc_cpu: 68233
now the index is on PG_TRANSC_ID and EAI_TRANSC_ID
which is on local partiton.
even when do SELECT * WHERE PG_TRANSC_ID=:B1 and EAI_TRANSC_ID=:A1 the cpu cost still high it is around 27k (with table partitoned) and 30k (without table partition).
is there any clue why the cpu resource was taken so much??
regards
ujang
jakarta - indonesia
Cost_io: 17516.00 Cost_cpu: 1052599934 Resp_io: 17516.00 Resp_cpu: 1052599934 Access Path: index (skip-scan)
Cost: 9.03 Degree: 1 Resp: 9.03 Card: 5.72 Bytes: 0
----------------------------------------------------------------------+-----------------------------------+---------------+
| Id | Operation | Name
| Rows | Bytes | Cost | Time | Pstart| Pstop |
----------------------------------------------------------------------+-----------------------------------+---------------+
| 0 | SELECT STATEMENT |
| | | 9 | | | |
| 1 | PARTITION HASH ALL |
| 6 | 906 | 9 | 00:00:01 | 1 | 5 |
| 2 | TABLE ACCESS BY LOCAL INDEX ROWID | C_PGI_TRANSACTION
| 6 | 906 | 9 | 00:00:01 | 1 | 5 |
| 3 | INDEX RANGE SCAN |
C_PGI_TRANSACTION_06_IDX| 6 | | 3 | 00:00:01 | 1 | 5 | ----------------------------------------------------------------------+-----------------------------------+---------------+
Content of other_xml column
On 10/27/07, Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk> wrote:
> > Please supply the tkprof output you are using to get these figures. > > Is your "cost about 30k" from the Rowsource Operation output, > showing "time = 30000 microseconds" ? Or is it actually from > a plan_table. > > If the latter, then a CPU cost of around 30,000 (Oracle operations) > is perfectly reasonable for 4 buffer visits to acquire a single row by > unique index. > > > Regards > > Jonathan Lewis > http://jonathanlewis.wordpress.com > > Author: Cost Based Oracle: Fundamentals > http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html > > The Co-operative Oracle Users' FAQ > http://www.jlcomp.demon.co.uk/faq/ind_faq.html > > > ----- Original Message ----- > > Subject: RE: prefixed index - high clustering factor & high cpu > > >at the tkprof the cpu cost is very high , its about 30k, rows returned > > is 1 , io cost is 4 , the cost itself only 4. > > -- > http://www.freelists.org/webpage/oracle-l > > >
-- regards ujang -- http://www.freelists.org/webpage/oracle-lReceived on Sun Oct 28 2007 - 01:29:39 CDT
![]() |
![]() |