Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> cbo/rbo: full blob-table scan..

cbo/rbo: full blob-table scan..

From: Jan Rosinowski <spamfilter_at_rosinowski.de>
Date: Fri, 30 Jul 1999 06:49:52 GMT
Message-ID: <37a142b4.97783345@160.45.4.4>


hi,

we've got a table like

create table templates(
  name varchar(50),
  releasedate date,
  data long raw,
  primary key(name,releasedate));

and are interested in obtaining

select name,max(realeasedate)
  from templates
  group by name;

usually this select will retrieve about 1/3 of the records in templates and could be satisfied by use of the pk.

cbo and rbo decide to make a full table scan which under normal circumstances might be quite a good idea, but as templates.data holds blobs of about 4k-40k we encounter severe thrashing due to the table scans..

what can we do? we use ora 7.3.4

is createing a templateswithoutdata-table, maintained by triggers, the only way to go?

ciao, jan

dokumentenmanagement und mehr: http://www.rsp.de/ vertriebspartner gesucht! Received on Fri Jul 30 1999 - 01:49:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US