Performance

Building Your T-SQL Tool Kit: Window Function Fundamentals

Sergio Govoni

Sul canale SQLPASS TV è stata pubblicata la sessione Building Your T-SQL Tool Kit: Window Function Fundamentals tenuta da Christina E. Leo (@christinaleo) durante lo scorso PASS Summit 2013.

Abstract

Have you pulled a script to identify duplicates from a blog post but couldn’t quite get it to work because you weren’t sure what that ROW_NUMBER() function was doing? Maybe you heard talk about creating running totals without using subqueries, but you got frustrated when the groups weren’t totaling correctly. Or maybe, you’ve never even heard of window functions. All are good reasons to attend this all-demo session, which demystifies this versatile T-SQL tool. First, we’ll break apart the OVER clause, the key to understanding how window functions work. Then we’ll expand on each group of functions that can use the OVER clause: ranking, aggregate, and analytic functions. Finally, we’ll look at real scenarios where this tool works and talk about performance considerations. When you leave, you’ll have the fundamentals you need to fully develop your mastery of window functions.

How to Use DMVs to Diagnose Performance Issues

Sergio Govoni

Sul canale PASStv è stata pubblicata la sessione How to Use DMVs to Diagnose Performance Issues tenuta da Glenn Berry durante lo scorso PASS Summit.

Le DMVs (DMV + DMF) forniscono informazioni sullo stato di salute dell’istanza SQL Server. Permettono di diagnosticare problemi di performance e rappresentano uno strumento utilissimo sia per i DBA che per gli sviluppatori; aumentano ad ogni versione di SQL Server e dopo averle toccate con mano non potrete più farne a meno vi consiglio quindi di non perdervi questa sessione!

RML Utilities CU 2

Davide Mauri

E’ stato rilasciato il Cumulative Update 2 per le RML Utilities

RML Utilities for Microsoft SQL Server CU2

Le RML Utilities sono una serie di tool utilissimi per analizzare le performance di SQL Server. Sono supportate tutte le versioni di SQL Server

  • SQL Server 2005
  • SQL Server 2008
  • SQL Server 2008 R2
  • SQL Server 2012
  • SQL Server 2014 CTP2

questi sono i tool inclusi:

  • SQL Azure - Connectivity and ReadTrace/Reporter database storage support
  • SQL Server 2012/2014 Client and Server Versions supported
  • SQL 2005 thru SQL 2012/2014 Engine TRC support
  • Limited SQL Server 2012/2014 XEL ReadTrace support, including limited XEL to TRC conversion
  • Improved compressed file handling (types and performance - See Expander documentation for complete details)
  • Includes ReadTrace and Reporter support for MARS connections  (OStress and Replay do not support MARS connections)
  • Reduced memory footprint across all utilities
  • .NET 4.0 Framework
  • Performance enhancements (> 64 CPU support, processor group awareness, NUMA awareness)
  • Parallel worker pools used internally to boost performance and reduce system impact
  • Rollup of RML hotfixes
  • Logging enhancements and additions

Query Tuning Mastery

Sergio Govoni

Sul canale SQLPASS TV, continua la pubblicazione delle sessioni erogate al PASS Summit 2011. Questa settimana è stata pubblicata la sessione “Query Tuning Mastery: Zen and the Art of Workspace Memory” tenuta da Adam Machanic.

Abstract

As SQL Server professionals, we often think of memory in vague, instance-level terms: buffer pool, procedure cache, Virtual Address Space, and so on. But certain tasks require a more in-depth focus, and query tuning is one of them. Large, complex queries need memory in which to work –workspace memory– and understanding the how’s, when’s, and why’s of this memory can help you create queries that run in seconds rather than minutes. This session will teach you how to guide the query processor to grant enough memory for top performance, while also keeping things balanced for the sake of concurrency. You will learn advanced monitoring techniques, expert-level application of specialized query hints, and the memory internals needed to put it all together. If you work with large queries and are serious about achieving scalability and consistently great performance, you owe it to yourself to attend this session.