You are here: Re: Are embedded views (Views within views...) evil and if so why? « MsSQL Server « IT news, forums, messages
Re: Are embedded views (Views within views...) evil and if so why?

Posted by --CELKO-- on 04/04/06 06:04

>> Unfortunately, the optimizer won't push the highly selective predicate down the view's definition, so the query will run very slowly. However, if you rewrite the query without using the view, the optimizer will choose a better plan using the index on last_name. <<

Ingres usually gets the in-line code expansion right. DB2 is now just
about as good, with Oracle doing some things for sharing materialized
VIEWs among sessions. When you have "end of the month" VIEWs, it makes
a big difference.

>> One may hope that eventually SQL Server will ahve a better implementation of views, but for the time being in a SQL Server environment I would use views in moderation <<

When you see what Oracle and DB2 can do with VIEWs because they are
aiming at the enterprise level and not the departmental level, it is
really impressive.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация