Solved

Maintaining large views

Posted on 2008-11-03
5
193 Views
Last Modified: 2013-11-16
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
0
Comment
Question by:nutnut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22866609
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
 

Author Comment

by:nutnut
ID: 22866647
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
 
LVL 22

Expert Comment

by:PedroCGD
ID: 22866669
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
 

Author Comment

by:nutnut
ID: 22868662
What would I do in an SSIS package.   I understand SSIS but what would the steps be please
0
 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 total points
ID: 22868847
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

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question