From the course: SQL Server Performance for Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Views and vested views

Views and vested views - SQL Server Tutorial

From the course: SQL Server Performance for Developers

Start my 1-month free trial

Views and vested views

- [Instructor] Views and nested views. This topic always brings me back to this one story I have from working with a particular customer who had a business intelligence system that generated a number of reports on things like sales, and sales activity, and CRM data for all of their customers, and they had kind of a bunch of developers that had come in over time and nobody had really stayed for a long time, and they had built on top of code that other folks had built, and we were tasked with helping them trying to get the performance of the system under control, and one of the things we ran into, and probably this customer is what inspired this slide deck, was a massive case of nested views, and if you're not familiar with nested views, this is where a view references a view. This is not inherently a bad thing, but in reality it can make troubleshooting performance problems incredibly problematic. I came upon a view that was nested eight times. So we had views that were calling each…

Contents