dbTalk Databases Forums  

Could I benefit from a materialized view?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Could I benefit from a materialized view? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin
 
Posts: n/a

Default Could I benefit from a materialized view? - 02-24-2011 , 05:18 AM






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

Reply With Quote
  #2  
Old   
Tim X
 
Posts: n/a

Default Re: Could I benefit from a materialized view? - 02-25-2011 , 07:22 PM






Martin <martin.j.evans (AT) gmail (DOT) com> writes:

Quote:
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

Reply With Quote
  #3  
Old   
Martin
 
Posts: n/a

Default Re: Could I benefit from a materialized view? - 03-01-2011 , 03:01 AM



On Feb 26, 1:22*am, Tim X <t... (AT) nospam (DOT) dev.null> wrote:
Quote:
Martin <martin.j.ev... (AT) gmail (DOT) com> 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

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.