DEV2DEV Performance tips for faster SQL queries

Slides:



Advertisements
Similar presentations
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
Advertisements

DB Audit Expert v1.1 for Oracle Copyright © SoftTree Technologies, Inc. This presentation is for DB Audit Expert for Oracle version 1.1 which.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
Databases in Visual Studio. Database in VisualStudio An MS SQL database are built in Visual studio The Name can be something like ”(localdb)\Projects”
Windows Azure Tour Benjamin Day Benjamin Day Consulting, Inc.
System Center Reporting Zero to Hero 15 minutes x 4 MMS Minnesota 2014 Samuel Erskine (Sam) Dieter Gasser (Didi) IT Driving Fellow Principal Consultant.
Database A database is a collection of data organized to meet users’ needs. In this section: Database Structure Database Tools Industrial Databases Concepts.
Pradeep S Pushpendra Singh Consultants, Neudesic Technologies, Hyderabad, India.
17-20 OCTOBER 2011 DURBAN ICC. What code-database gap? Introducing Project Codename “Juneau” William
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson.
The X-Factor of the Extended Events Amit Khandelwal.
Technology Drill Down: Windows Azure Platform Eric Nelson | ISV Application Architect | Microsoft UK |
TSQL Worst Practices Jacob Sebastian, SQL Server MVP
Database Overview What is a database? What types of databases are there? How are databases more powerful than spreadsheets?
DevTeach Presentation Template Use of this template is mandatory (no exceptions) Please note the orientation of this presentation is landscape (16:10);
OM. Platinum Level Sponsors Gold Level Sponsors Pre Conference Sponsor Venue Sponsor Key Note Sponsor.
SERIALIZED DATA STORAGE Within a Database James Devens (devensj)
Dive into NoSQL with Azure Niels Naglé Hylke Peek.
Peter Lu Copyright 2016 Developing SQL Database in Azure Peter Lu.Net Practices Director Principle Architect Nexient April 29th 2016.
Others Talk, We Listen. Managing Database Projects in Visual Studio 2013.
Introduction to SSDT Daniel Maxic Important note: in order to make this presentation I have used some of the content.
#sqlsatPordenone #sqlsat495 February 27, 2016 Elastic Database, going to the infinity * Emanuele thinkit.it –
Polyglot persistence with Azure data storage services. SQL Database, Azure Table Storage and Document DB June 18, 2016.
SQL Server Performance Tuning
Top 10 Entity Framework Features Every Developer Should Know
Analysis Services in times of Continuous Integration
How to tune your applications before moving your database to Microsoft Azure SQL Database (MASD) OK, you've jumped into your Azure journey by creating.
Microsoft’s shiny dashboard-tool
Visual Studio Database Tools (aka SQL Server Data Tools)
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
SQL Server deployments
Solving the Hard Problems
Building a Performance Monitoring System using XEvents and DMVs
Tech·Ed North America /31/2018 4:35 PM
Reading execution plans successfully
Did your feature got in, out or planned?
SQL Server Integration Services
Reading Execution Plans Successfully
Elastic Database, going to the infinity *
SQL Server Data Tools Gert Drapers
Power BI Performance …Tips and Techniques.
Tips for SQL Server Performance and Resiliency
Third Party Tools for SQL Server
1 Demand of your DB is changing Presented By: Ashwani Kumar
{. “speaker”:. “Emanuele Zanchettin”,. “session” :
11/18/2018 2:14 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Query Optimization Techniques
Visual Studio Database Tools (aka SQL Server Data Tools)
Moving advanced analytics to your SQL Server databases
Explore the Azure Cosmos DB with .NET Core 2.0
Tiers vs. Layers.
Entity Framework from a database perspective
Please thank our sponsors!
SQL Server Performance Tuning Nowadays
Sharon Weaver Smarter Consulting – CEO JCCC/SLU – Adjunct MS SharePoint, MS Office, BA, Six Sigma 20+ years designing, developing, and managing software.
Transact SQL Performance Tips
Tech Ed North America /1/ :36 AM Required Slide
Welcome to SQL Saturday Denmark
Designing Complex Tabular Models
Your code is not just…your code
Moving from SQL Profiler to xEvents
Azure SQL DWH: Tips and Tricks for developers
Summit Nashville /3/2019 1:48 AM
SQL Server 2016 Security Features
Why should I care about SQL, if I have ORM?
How To Load A Fact Table Really, Really Fast
42 TSQL Functions =tg= Thomas Grohser SQL Saturday
PNW SQL Users Group August 10th, 2011
Your code is not just…your code
Presentation transcript:

DEV2DEV Performance tips for faster SQL queries Emanuele Zanchettin DreamWorks copyright DEV2DEV Performance tips for faster SQL queries

Thanks to Our Sponsors Platinum Sponsors Gold Sponsors Silver Sponsors

Agenda

Agenda Agenda The SQL can wait This is the SQL’s time The SQL wrote from «others» Conclusions

You In the middle of the day, can you resist .. ?? Are you awake?  Try to raise your hand, just one Try to smile Who is using … (raise at least one hand) SQL Server? SS Management Studio? SS Profiler? MS Visual Studio?

me - Emanuele Zanchettin 15+ years experience about IT Data architect and consultant about SQLServer and Azure SQL Database Lead Software Development @ Sci-Tech Labs Daresbury (UK) Co-founder thinkIT (IT) Community Lead Official Microsoft Community Speaker at national and international conferences about SQLServer e Azure SQL Database ezanchettin@thinkit.it – http://www.thinkit.it/

“Take the bread crumbs here and eat the sandwich at home” Disclaimer In this session we are looking at some real cases. These are used to show something about performance isseues. Real cases are not connected to each other. Concepts of database, index, query, table, view, function, stored produre, execution plan and others are used to introduce you to the beatiful world of the perfomance tuning and they are not explainded in detail. The major focus of this session is to create curiosity and interest in you, to investigate on your projects. “Take the bread crumbs here and eat the sandwich at home”

«it works» vs. «it works fast» The SQL can wait Why it happens? To have the same result you can made different sulutions .. «it works» vs. «it works fast» What’s Debug? «Debugging is the process of finding and resolving of defects that prevent correct operation of computer software» https://en.wikipedia.org/wiki/Debugging Why doing Debug .. on database?? Portion of software is inside the database (sp, view, fn, trigger, etc) The database is a portion of “software” (schema, tables, fields, etc) Handling errors of extraction and/or manipulation of data Improving performance

The SQL can wait Hardware Istance Database Schema Tables Fields SQL Axiom The number of problems is proportional to the possibility and freedom to put inside our hands [Zanchettin E. SQLTuning Saturday 2016] Interesting elements Hardware Istance Database Schema Tables Fields SQL

DEMO tables and fields demo1 and demo2

This is the SQL’s time

who are you?

Are you using fantasy or complicating your life?

DEMO TSQL demo3, demo4*, demo5 demo6*, demo7, demo8* * bonus demo

The SQL wrote from “others”

The SQL wrote from “others” LINQ to SQL EF

The SQL wrote from “others” Sometimes things can happen when the db is only a storage

The SQL wrote from “others” var something = from item in MyEntities.Collection where groupId == null or item.groupId == groupId select item; 200MB/s

DEMO Entity Framework filtering client/server side extracting data, debugging

Conclusions test .. test .. everytime Analisys Approach Stingy Now you can use and mantaining indexes Analize consistency between tables and fields Make friends with analysis tools (profiler, query plan, ..) Have a Row-Set approach Supervise the work of «others» To be «stingy» when you are extracting data List of ideas for improvement Analisys Approach Stingy Supervise Make friends Indexes test .. test .. everytime

Q&A Questions? ezanchettin@thinkit.it @_thinkIT_ Here, there, around the world

Feedback Please return feedback on thank you!