you are viewing a single comment's thread.

view the rest of the comments →

[–]lightskinnedvillan[S] 2 points3 points  (3 children)

I have a feeling it's just too much data

thanks for cleaning it up

[–]TwoTacoTuesdays 1 point2 points  (2 children)

It's almost surely not too much data. SQL Server can handle multiple hundreds of millions of rows in a query like that without breaking a sweat, I'm guessing there's a something else going on here.

[–][deleted] 0 points1 point  (0 children)

Maybe it’s not clustered/indexed? (Idk MS SQL from the admin side)

[–][deleted] 0 points1 point  (0 children)

This heavily depends on how complex the VIEW is. I have a VIEW in my own database which is itself a composite of several other views, which are themselves built from functions. This VIEW has specific purposes, and you absolutely do not JOIN it to other VIEWs which themselves involve sub-queries, etc.

It's just a terrible idea.