Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 20 Oct 2006 @ 20:17:32 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Question about performance for Views Vs Tables.
 
From:   Anomy Anom

<-- Anonymously Posted: Friday, October 20, 2006 16:05 -->

Anomy.Anom wrote:

  My question is what will be the best way to build this new join view? Joining directly tables from TableDB or one to one views from ViewDB. Which way we will get best performance? Or it doesn't matter if we use Table or 1-1 views? What is the best practice?  


Response:

This discussion is almost like everything else depend on the preference of individual company (very subjective indeed).

Recognize that view has some overhead (very small). Understand why one-to-one views were created. Usually to place access lock on the table so user queries does not conflict with ETL process. (Read lock blocks write lock).

It is recommended that any application view be build on top of one-to-one view in order to avoid any mistake in view creation by forgotten the access lock portion of the syntax may have impact to the ETL process and the only time one find out about those the damage had already been done. Avoid any application build on top of another application can avoid a lot of performance pitfalls.

Also, this may allow table/column name change without having to change the application view layer if done smartly.

Hope this opinion help.



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023