Обучающие видео » Компьютерные видеоуроки и обучающие интерактивные DVD » Программирование (видеоуроки)
SQL Server: Optimizing Ad Hoc Statement PerformanceГод выпуска: 2013
Производитель: Pluralsight
Сайт производителя:
http://pluralsight.com/Автор: Kimberly L. Tripp
Продолжительность: 7h 15m
Тип раздаваемого материала: Видеоклипы
Язык: Английский
Описание: This course is about how different ad hoc statement execution methods affect caching, plan reuse, memory and ultimately performance. Knowing when to use each method is important and understanding how SQL Server works will demystify certain behaviors you may have seen but previously have been unable to explain. SQL Server can support any workload, any design, and any data requests but knowing exactly which one is the most beneficial to use can give you better long-term scalability, availability, and performance. Using the wrong method can cause more memory to be wasted and even result in parameter sniffing problems (where subsequent statements perform poorly because of the plan that’s been cached). This course will show you how each statement execution method works, how it’s cached, whether or not it wastes cache, and finally how to test and rewrite the statement to take better advantage of caching. Along the way we will also cover a variety of other necessary features and tools: estimates, statistics, and heuristics; how to analyze query plans; some indexing strategies to improve performance; and plan guides. This course is an absolute must for everyone that works with SQL Server and it’s also an introduction to concepts that will be built upon in future courses. This course is applicable to all SQL Server versions from SQL Server 2005 onward, and for SQL Server developers as well as anyone responsible for writing data access statements to SQL Server tables. You can have any level of experience to gain from this course but those of you who have experienced what seemed odd behavior/performance with your ad hoc statements will probably benefit the most!
Этот курс о том, как разные специальные методы выполнения инструкции влияет кэширование , повторное использование плана , памяти и , в конечном итоге производительность. Зная , когда использовать каждый метод имеет важное значение и понимание того, как работает SQL Server помогут прояснить определенные типы поведения , вы видели , но ранее были не в состоянии объяснить . SQL Server может поддерживать любой объем работы , любой дизайн , а также любые запросы данных , но точно зная, какой из них является наиболее выгодно использовать может дать вам лучше долгосрочный масштабируемость , доступность и производительность. Использование неправильного метода может привести больше памяти , чтобы тратить ее и даже привести к проблемам параметров нюхают (где последующие заявления плохо работают из-за плана , который был в кэше ). Этот курс покажет вам, как каждый метод выполнения инструкции работает , как это кэшируются , тратит ли он кэш , и, наконец, как проверить и переписать заявление лучше использовать кэширование . По пути мы также рассмотрим ряд других необходимых функций и инструментов : оценки , статистики и эвристический ; как анализировать планы запросов , некоторые стратегии индексирования для повышения производительности , а также структуры планов . Этот курс является абсолютной необходимостью для всех , которая работает с SQL Server , и это также введение в концепциях , которые будут построены на в будущих курсов . Этот курс применим ко всем версиям SQL Server из SQL Server 2005 и далее, и для разработчиков SQL Server , а также лиц, ответственных за написание заявления доступа к данным в таблицах SQL Server. Вы можете иметь любой уровень опыта , чтобы получить от этого курса , но те из вас , кто испытал то, что казалось странным поведение / производительность с вашими специальных заявлений , вероятно, выиграют больше всего !
[spoiler="Содержание"]
Код: │ sqlserver-optimizing-adhoc-statement-performance.zip
│
├───01. Introduction
│ 01. Introduction and Background.wmv
│ 02. This Course.wmv
│ 03. What Does Optimizing Ad Hoc Statement Performance NOT Mean .wmv
│ 04. What Does Optimizing Ad Hoc Statement Performance Mean .wmv
│ 05. Why is This Course Relevant .wmv
│ 06. Course Focus and Structure (1).wmv
│ 07. Course Focus and Structure (2).wmv
│
├───02. Statement Execution Methods
│ 01. Introduction.wmv
│ 02. Different Ways to Execute SQL Statements.wmv
│ 03. Understanding Ad Hoc Statements.wmv
│ 04. Understanding sp_executesql.wmv
│ 05. Understanding Dynamic String Execution.wmv
│ 06. Dynamic String Execution and SQL Injection.wmv
│ 07. Demo Credit Sample Database Setup for This Course.wmv
│ 08. Demo Setting Up For Analyzing Cache.wmv
│ 09. Demo Part 1 - Ad Hoc Safe Statements.wmv
│ 10. Demo Part 2 - Ad Hoc Unsafe Statements.wmv
│ 11. Demo Part 3 - Ad Hoc Safe and Unsafe with Variables.wmv
│ 12. Demo Part 4 - sp_executesql with Safe Statement.wmv
│ 13. Demo Part 5 - sp_executesql with Unsafe Statement.wmv
│ 14. Demo Part 6 - Dynamic String Execution with Safe Statement.wmv
│ 15. Demo Part 7 - Dynamic String Execution with Unsafe Statement.wmv
│ 16. Summary Statement Execution Methods.wmv
│
├───03. Estimates and Selectivity
│ 01. Introduction.wmv
│ 02. Statement Execution Simplified.wmv
│ 03. Cost-Based Optimization.wmv
│ 04. Understanding Selectivity.wmv
│ 05. Demo Setup and First Look at Statistics.wmv
│ 06. Demo Updates and Estimates.wmv
│ 07. Demo Ad Hoc Statements and Variables.wmv
│ 08. Demo When No Statistics Exist then Heuristics are Used.wmv
│ 09. Demo Summary Estimates and Selectivity.wmv
│ 10. How Do You See Statistics .wmv
│ 11. What Do Statistics Tell Us About Our Data (1).wmv
│ 12. What Do Statistics Tell Us About Our Data (2).wmv
│ 13. What Do Statistics Tell Us About Our Data (3).wmv
│ 14. What Do Statistics Tell Us About Our Data (4).wmv
│ 15. Demo Reading the Histogram.wmv
│ 16. When and How Does SQL Server Use Statistics .wmv
│ 17. Summary Estimates and Selectivity.wmv
│
├───04. Statement Caching
│ 01. Introduction.wmv
│ 02. What Affects Ad Hoc Statement Behavior .wmv
│ 03. Default Ad Hoc Statement Behavior.wmv
│ 04. Ad Hoc Statement Textual Matching.wmv
│ 05. Ad Hoc Statements Safe vs. Unsafe.wmv
│ 06. Ad Hoc Statement Caching.wmv
│ 07. Demo Ad Hoc Statements and the Plan Cache.wmv
│ 08. Verifying Plans in Cache NOW.wmv
│ 09. Analyzing the Plan Cache.wmv
│ 10. Demo query_hash and query_plan_hash.wmv
│ 11. Changing Ad Hoc Statement Behavior (1).wmv
│ 12. Changing Ad Hoc Statement Behavior (2).wmv
│ 13. Multiple Plans (Tipping Covering).wmv
│ 14. Demo Part 1 - Making a Statement Safe with Covering.wmv
│ 15. Demo Part 2 - The Right Way to Force Statements.wmv
│ 16. Summary Statement Caching.wmv
│
├───05. Plan Cache Pollution
│ 01. Plan Cache Pollution.wmv
│ 02. Ad Hoc Plan Cache Pollution Defined.wmv
│ 03. Plan Cache Stores.wmv
│ 04. Verifying State of Plan Cache.wmv
│ 05. Demo Analyzing for Plan Cache Pollution - Setup.wmv
│ 06. Demo Analyzing for Plan Cache Pollution.wmv
│ 07. Balancing Plan Cache Pollution, CPU, and PSP (1).wmv
│ 08. Demo Part 1a - Optimize for Adhoc Workloads.wmv
│ 09. Demo Part 1b - Covering to Make a Query Safe.wmv
│ 10. Balancing Plan Cache Pollution, CPU, and PSP (2).wmv
│ 11. Balancing Plan Cache Pollution, CPU, and PSP (3).wmv
│ 12. Balancing Plan Cache Pollution, CPU, and PSP (4).wmv
│ 13. Demo Part 2a - Forcing a Stable Statement With sp_executesql.wmv
│ 14. Demo Part 2b - Forcing a Stable Statement with a Plan Guide.wmv
│ 15. Demo Part 2c - Optimizing an Expensive Statement.wmv
│ 16. Balancing Plan Cache Pollution, CPU, and PSP (5).wmv
│ 17. Demo Part 3 - Clearing Single-Use Plan Cache Pollution.wmv
│ 18. Alternatives to Ad Hoc Statements.wmv
│ 19. Demo Summary of All Script Executions.wmv
│ 20. Summary Plan Cache Pollution.wmv
│
└───06. Summary
01. Statement Execution Summary.wmv
02. Statement Execution, Estimates, and Caching (1).wmv
03. Statement Execution, Estimates, and Caching (2).wmv
04. Statement Execution Methods, Caching, and Concerns.wmv
05. Bringing It All Together.wmv
06. Statement Execution Solutions (1).wmv
07. Statement Execution Solutions (2).wmv
08. Statement Execution Solutions (3).wmv
09. Summary Statement Execution.wmv
10. Just the Tip of the Iceberg.wmv
11. Where to Go Next and Final Summary.wmv
[/spoiler]
Файлы примеров: присутствуют
Формат видео: WMV
[spoiler="audio\video"]
General
Complete name : C:\02. Different Ways to Execute SQL Statements.wmv
Format : Windows Media
File size : 5.38 MiB
Duration : 3mn 35s
Overall bit rate mode : Variable
Overall bit rate : 209 Kbps
Maximum Overall bit rate : 272 Kbps
Movie name : recording1
Performer :
Encoded date : UTC 2013-11-23 01:03:24.963
Video
ID : 2
Format : VC-1
Format profile : MP@HL
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video 9
Duration : 3mn 35s
Bit rate mode : Variable
Bit rate : 30.0 Kbps
Width : 1 024 pixels
Height : 768 pixels
Display aspect ratio : 4:3
Frame rate : 15.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.003
Stream size : 788 KiB (14%)
Language : English (US)
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9.2 - 128 kbps, 44 kHz, stereo (A/V) 1-pass CBR
Duration : 3mn 35s
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 3.29 MiB (61%)
Language : English (US)
[/spoiler]
[spoiler="Скриншоты"]

[/spoiler]