473,396 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is "One view per table in DW" really a good practice?

Our company is now trying to make a "standard" of creating a base
view for each user table. This initiative is suggested as a good
practice by a data modeling consultant who is helping us to build DW
logical/physical model. He pointed out that the work and risk of
making a database change will be reduced by using the "base view".

Since this base view is just a selection of all user table's columns,
as DBA, I don't see any reasons for doing that, plus we are using the
same naming standard for both table and views, there is no need to use
the base view to deal with the different name conversion. On the other
hand, it brings us lots of work to maintain the heaps of views.

Lots of debates on this topic are showed on the internet several years
ago, most of them are against the "base view" implantation.

I'm not willing to create the "base view" before I get any
reasons for doing that.

Anyone's input will be much appreciated.

Apr 4 '06 #1
1 1905
This topic is a good way to start a flame war because most of us have
very strong feelings about the subject.

If you have a "standard" of a view that includes all of the columns,
then what happens when you add a column? If you change the view, then
you have the same effect as changing the table. If you suffix the view
with a version number, then your users always need to know what the
current version number is. Existing queries that need to use an added
column will need to be rewritten to use the new view to get to the data.

If your users have a great tendency to always do joins on a specific set
of tables, then it may be valuable to provide "default" views that
perform the joins.

Default views are also a great way to restrict user's access to the
entire underlying table. This could be necessary in an organization
where, for example, sales offices are only allowed to access their own
data or posssibly data for the sales region that includes the specific
office.

Phil Sherman

wx***@hotmail.com wrote:
Our company is now trying to make a "standard" of creating a base
view for each user table. This initiative is suggested as a good
practice by a data modeling consultant who is helping us to build DW
logical/physical model. He pointed out that the work and risk of
making a database change will be reduced by using the "base view".

Since this base view is just a selection of all user table's columns,
as DBA, I don't see any reasons for doing that, plus we are using the
same naming standard for both table and views, there is no need to use
the base view to deal with the different name conversion. On the other
hand, it brings us lots of work to maintain the heaps of views.

Lots of debates on this topic are showed on the internet several years
ago, most of them are against the "base view" implantation.

I'm not willing to create the "base view" before I get any
reasons for doing that.

Anyone's input will be much appreciated.

Apr 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Silas | last post by:
Hi, I use view to join difference table together for some function. However, when the "real" table fields changed (e.g. add/delete/change field). The view table still use the "old fields". ...
0
by: elvin | last post by:
Okay - apologize in advance for the length, but I want to make sure all you knowledgeable and helpful people have all the details you need to hopefully point my newbie rear in the right direction....
26
by: Michel Rouzic | last post by:
I have a binary file used to store the values of variables in order to use them again. I easily know whether the file exists or not, but the problem is, in case the program has been earlier...
1
by: Amil Hanish | last post by:
I use the VS 2005 option "View in browser" to often view my web site. If I have a link in there like: <img src="/graphics/myimage.jpg"> This doesn't work even though the image is really...
0
by: Amil Hanish | last post by:
Earlier I had inquired as to why a normal <a hreftag didn't work when using the VS hosted site using a random local port. The more I think about it, this seems very wrong. Using the random port...
7
by: alessandro menchini | last post by:
Hello, First of all: i apologize for my english...i'm still learning... If i create a view it seems that DB2 manage this view like an updateable view. But I need to create a view "read only",...
0
by: 2Barter.net | last post by:
" Given BACK what was freely GIVEN " More options 2 messages - Expand all 2Barter.net View profile More options Dec 12, 9:48 pm Blessing Are Country
6
by: jluo | last post by:
I found a problem with my application when using "innerhtml" to replace the content from the server after making an ajax call. The display is perfectly correct, but when I use "view source" on the...
1
by: tgphelps | last post by:
I've got this 20,000 row table. It had never given anyone trouble. I'm not a particularly good SQL Server admin, but I'm all we have. I was certified on MSSQL 7, some years ago, but it's just a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.