Maintaining large views

Hi,

I need to maintain 1 million rows that contain calculations (Data in TableA x Data in TableB) .  If it was a smaller amount of rows I would most probably just use a view so if the data in TableA changed the view would automatically be maintained.

As the amount of rows in the view would be around a million I would guess this is not the most efficient way of doing things?

Question is what is the best way to maintain this amount of calculations.  The data in TableA and/or TableB will change frequently and the view (or what ever someone proposes??) will need to be updated to reflect the changes to TableA & B.

Thanks

nutnut

Andrew
nutnutAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
PedroCGDConnect With a Mentor Commented:
depend on the calculations you do in your view... but the goal to minimize the calculations...
Try to use a temp table...
but with one million rows in the view are you having problems?!
regards
0
 
PedroCGDCommented:
Processing the OLAP Cube from a view could take more time but will automatizate more...
If you have too many rows and the process is taking to mutch time, create a temp table with all the calculation made on it...

Fo example you can create a SSIS package to create some calculations and increment the results into the temp table and process the cube based on this temp table. all done inside a SSIS package.

Helped?
regards!
Pedro

www.pedrocgd.blogspot.com
0
 
nutnutAuthor Commented:
Hi Pedro,

Is there a better way than using a view.  The view will have 1,000,000+ rows.  If one row calculation changes the whole view will need to be refreshed which doesn't seem very efficient to me?
0
 
PedroCGDCommented:
The only problem is the process time of the cube, after that the performance is not affected... you take time to process data, but to visualize it is fast.. depend in your requirements.
On million rows for your view take mutch time?

In spite of creating a view you can do that using a SSIS package...
Regards
0
 
nutnutAuthor Commented:
What would I do in an SSIS package.   I understand SSIS but what would the steps be please
0
All Courses

From novice to tech pro — start learning today.