dbTalk Databases Forums  

Views a bad idea in OLAP?

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Views a bad idea in OLAP? in the microsoft.public.sqlserver.olap forum.



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

Default Views a bad idea in OLAP? - 10-17-2005 , 12:17 PM






OK, I'm in a new job, working on a new application that uses Analysis
services. I suggested a change to the database to use a View in SQL Server
rather than having an almost duplicate table stored in the database. One of
my colleages stated 'Views are a bad idea in OLAP'. Could anyone shed light
on their experiences with views in OLAP applications to help me figure this
statement out.

Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Views a bad idea in OLAP? - 10-17-2005 , 01:13 PM






Absolutely totally incorrect. In many cases the only way to do something is
to use a view. To Analysis Services, a view is as good as a table. We don't
differentiate at all.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI Systems Team
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Joe" <Joe (AT) discussions (DOT) microsoft.com> wrote

Quote:
OK, I'm in a new job, working on a new application that uses Analysis
services. I suggested a change to the database to use a View in SQL Server
rather than having an almost duplicate table stored in the database. One
of
my colleages stated 'Views are a bad idea in OLAP'. Could anyone shed
light
on their experiences with views in OLAP applications to help me figure
this
statement out.



Reply With Quote
  #3  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Views a bad idea in OLAP? - 10-17-2005 , 01:20 PM



The use of relational views provides a layer of abstraction and is
recommended with AS 2000. Data Source Views (DSV's) in AS 2005 provide
an additional abstraction layer:

http://msdn.microsoft.com/library/de.../en-us/dnsql2k
/html/sql_analservbp.asp
Quote:
Best Practices for Business Intelligence Using the Microsoft Data
Warehousing Framework

Microsoft Corporation

July 2002
...
Directing User Access Through Views

If you must give users direct access to the relational data store
(instead of access only through cubes), do not grant direct access to
any of the tables in your relational data store. Instead, create views
on each base table and grant SELECT privileges on the views, directing
all user access through those views. Make sure the object names (views
and columns) make sense to the business users; these can be the same
names you will use in the Analysis Services cubes.

Using views is good system design for a number of reasons:

Using views improves flexibility by providing a buffer between the
physical database and downstream systems, like user access and cube
population.

It increases the likelihood that you can make significant physical
changes to the system while minimizing disruption to other applications.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #4  
Old   
Dean Adam
 
Posts: n/a

Default RE: Views a bad idea in OLAP? - 10-17-2005 , 01:41 PM



(In answering this I'm assuming you are talking about MOLAP. The
considerations are a little different with ROLAP.)

Short answer: No, views are not a bad idea in OLAP.

Long answer: There's nothing wrong with using views with OLAP and they're
often very desirable, but sometimes the alternatives are better. For
example, creating views against your transactional DB to make it look better
for loading data into dimensions and cubes might work OK, but it is generally
better to ETL your data into a separate DB, reshaped how you want it, and use
that as the datasource for your OLAP DB. So views are great as long as
you're not using them to avoid doing the "right" thing. Data Set Views are a
new feature of AS2005 and they are essentially views (in-line rather than
named), so views are certainly not discouraged. I couldn't live without them.

Dean.

"Joe" wrote:

Quote:
OK, I'm in a new job, working on a new application that uses Analysis
services. I suggested a change to the database to use a View in SQL Server
rather than having an almost duplicate table stored in the database. One of
my colleages stated 'Views are a bad idea in OLAP'. Could anyone shed light
on their experiences with views in OLAP applications to help me figure this
statement out.

Reply With Quote
  #5  
Old   
Jesse Aufiero
 
Posts: n/a

Default Re: Views a bad idea in OLAP? - 10-17-2005 , 02:30 PM



I am having a very real problem with a cube built on top of a view. You may
want to see my post w/ subject 'cube refresh is causing inconsistent results
in sql views that are run during the refresh'


"Joe" <Joe (AT) discussions (DOT) microsoft.com> wrote

Quote:
OK, I'm in a new job, working on a new application that uses Analysis
services. I suggested a change to the database to use a View in SQL Server
rather than having an almost duplicate table stored in the database. One
of
my colleages stated 'Views are a bad idea in OLAP'. Could anyone shed
light
on their experiences with views in OLAP applications to help me figure
this
statement out.



Reply With Quote
  #6  
Old   
Les Russell
 
Posts: n/a

Default RE: Views a bad idea in OLAP? - 10-18-2005 , 11:30 PM



I too have used views a lot and generally have no problems. Just
occasionally, when I have had performance problems (slow processing) I have
found it simpler just to create a new table and INSERT into that rather than
play around with the indexes of a whole bunch of feed tables. This seems to
be especially the case when I am using complex UNION views.

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.