If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Massive View

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-10, 15:16
James123 James123 is offline
Registered User
 
Join Date: Nov 2010
Posts: 4
Massive View

Hi I am new to the forum, thanks for hosting!

I have been tasked with helping a developer get his view under control, I tuned the statement using indexes down from 4B timerons to 700M timerons. If I set the current optimization to 9 it's 39M timerons.

The issue is it takes a very long time to "populate" the view.

We can't create this as a MQT since the underlying tables will be getting updated throughtout the day and this view will be accessed several times a day as well.

My question is what options do I have to make this view more managable in terms of speeding up the time it takes to view the data?

If I split up the view into smaller views won't this take as much time as comining into 1 view.

James
Reply With Quote
  #2 (permalink)  
Old 11-18-10, 16:05
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Maybe?!? You could try posting the select statement for the view along with table/index info and we can take a stab at helping you to improve it. Otherwise you can always go to page 381 and your answer should be close to the bottom of the page.
Dave
Reply With Quote
  #3 (permalink)  
Old 11-18-10, 16:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by James123 View Post

The issue is it takes a very long time to "populate" the view.
What do you mean by "populating" a view? A view is just a query, which is executed whenever you select from that view.

A materialized view (MQT) can be populated, but for some reason you don't want to use this approach.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On