Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
cplusplus
Aged Yak Warrior
567 Posts |
Posted - 2013-04-26 : 16:07:32
|
I have a view which is created off of another view in same database, when i run the query on the first view the result is fast.But when i run the query off of second view, It is taking huge amt of time.Any reason why the second view is taking a lot of time, i am only doing top 100 rows.Thanks a lot for the helpful info. |
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2013-04-26 : 16:21:02
|
Without the definition of either view, plus the underlying tables, and the kinds of queries you're writing against them, there's no way to know. Generally speaking however, nesting view references is not a good idea for performance. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-04-29 : 00:58:47
|
why do you need a separate view for just taking top 100?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|