Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> materialized view for this?
Hello.
I'm trying to speed up some queries that just take too long to run in
our applications.
I have a big historical table of the form:
Table A:
day date,
amt1 number, amt2 number, amt3 number,
so I was wondering if I should create a materialized view like this: select trunc(day),sum(amt1),sum(amt2),sum(amt3),max(other1) from A
Would the query rewrite feature know how to rewrite a statement like
this:
select trunc(day)-4,sum(amt1) from A where other1='test'
?
Received on Mon Jan 10 2005 - 14:36:02 CST