Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Could I benefit from a materialized view?

 
   Database Help (Home) -> Oracle RSS
Next:  make money online  
Author Message
Martin

External


Since: Jan 29, 2008
Posts: 6



(Msg. 1) Posted: Thu Feb 24, 2011 3:18 am
Post subject: Could I benefit from a materialized view?
Archived from groups: comp>databases>oracle>misc (more info?)

Hi,

I have Oracle 11g r1 and applications running on remote machines using
InstantClient. These applications read the same table repeatedly as
part of a function which performs a calculation. The table in question
is small with a primary key and is unlikely to get any more than 175
rows (it is 8 columns 3 numbers, 3 timestamps and 2 varchar(128)). I
would want a refresh on commit but believe if I create the log table
properly I'll get that.

Could I benefit from a materialized view?

Thanks

 >> Stay informed about: Could I benefit from a materialized view? 
Back to top
Login to vote
Tim X

External


Since: Jul 17, 2008
Posts: 39



(Msg. 2) Posted: Fri Feb 25, 2011 9:25 pm
Post subject: Re: Could I benefit from a materialized view? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Martin writes:

> Hi,
>
> I have Oracle 11g r1 and applications running on remote machines using
> InstantClient. These applications read the same table repeatedly as
> part of a function which performs a calculation. The table in question
> is small with a primary key and is unlikely to get any more than 175
> rows (it is 8 columns 3 numbers, 3 timestamps and 2 varchar(128)). I
> would want a refresh on commit but believe if I create the log table
> properly I'll get that.
>
> Could I benefit from a materialized view?
>

Given the table is small with few columns and only a couple of hundred
records, I doubt a materialised view would give you any real performance
gain. I tend to use such techniques where you are doing a similar query
involving multiple tables or queries from a table with many columns, but
most of your queries only involve a smaller subset of the full list of
columns.

Assuming your queries are using bind variables and are getting cached
efficiently and if your queries are reasonably similar and tnings are
ocnfigured correctly, I would not be surprised if most of the data is
coming out of cached memory already (the table and number of rows is
very small). If you have a performance problem, more than likely it is
something like network overhead rather than db query processing. If this
is the case, optimisations at the db engine level will not buy you
anything.

Tim

--
tcross (at) rapttech dot com dot au

 >> Stay informed about: Could I benefit from a materialized view? 
Back to top
Login to vote
Martin

External


Since: Jan 29, 2008
Posts: 6



(Msg. 3) Posted: Tue Mar 01, 2011 1:01 am
Post subject: Re: Could I benefit from a materialized view? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 26, 1:22 am, Tim X wrote:
> Martin writes:
> > Hi,
>
> > I have Oracle 11g r1 and applications running on remote machines using
> > InstantClient. These applications read the same table repeatedly as
> > part of a function which performs a calculation. The table in question
> > is small with a primary key and is unlikely to get any more than 175
> > rows (it is 8 columns 3 numbers, 3 timestamps and 2 varchar(128)). I
> > would want a refresh on commit but believe if I create the log table
> > properly I'll get that.
>
> > Could I benefit from a materialized view?
>
> Given the table is small with few columns and only a couple of hundred
> records, I doubt a materialised view would give you any real performance
> gain. I tend to use such techniques where you are doing a similar query
> involving multiple tables or queries from a table with many columns, but
> most of your queries only involve a smaller subset of the full list of
> columns.
>
> Assuming your queries are using bind variables and are getting cached
> efficiently and if your queries are reasonably similar and tnings are
> ocnfigured correctly, I would not be surprised if most of the data is
> coming out of cached memory already (the table and number of rows is
> very small). If you have a performance problem, more than likely it is
> something like network overhead rather than db query processing. If this
> is the case, optimisations at the db engine level will not buy you
> anything.
>
> Tim
>
> --
> tcross (at) rapttech dot com dot au

Thanks Tim. I've not used materialized views before and read an
article which suggested they might be worth looking at. I am still
experimenting and appreciate your response.

Martin
 >> Stay informed about: Could I benefit from a materialized view? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Alter any view? -

doing hints on view - Hello, I have created a view, that most of its column are functions. I know what exactly are the tables inside that function, but when I put all together, there is a problem : I don't know how to put hints on the query, so I shall use a specific index....

create materialized view - Hi all Oracle users ! I'm trying to build a materialized view in order to import daily data from another DB CREATE MATERIALIZED VIEW VW_LINKS_155 BUILD IMMEDIATE REFRESH FAST NEXT sysdate + 1 AS SELECT * FROM VW_LINKS_155@snap_dblink The matte...

view clob data? - hi, our dba is out for sometime and we're a little stuck. We currently use Oracle 9i, there is a table with a field which is of type CLOB, is there any way to see it's content when quering it? We're using the enterprise manager console's Sql Scratchpad...

View that contains information on account lock status? - Hi there, I have a profile configured to lock users' accounts after 3 unsuccessful login attempts. Is there a view that can tell me how many unsuccessful attempts they have had so far? TIA, Steve.
   Database Help (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]