SQL Server 2008: What to do and What not to do Eladio Rincón Javier Loria Solid.

Slides:



Advertisements
Similar presentations
Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
Advertisements

Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Data Management and Index Options for SQL Server Data Warehouses Atlanta MDF.
– Optimizing Performance Paweł Hofman PLSSUG Wrocław 7 grudnia 2009.
Dos and don’ts of Columnstore indexes The basis of xVelocity in-memory technology What’s it all about The compression methods (RLE / Dictionary encoding)
Jeremy Boyd Director – Mindscape MSDN Regional Director
André Kamman Friday November 20 SQLBITS IV. About Me  André Kamman  > 20 years in IT  Main focus on complex SQL Server environments (or a whole.
Partitioning techniques in SQL Server Eladio Rincon Javier Loria Solid Quality.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Architecting a Large-Scale Data Warehouse with SQL Server 2005 Mark Morton Senior Technical Consultant IT Training Solutions DAT313.
Convergence /20/2017 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Performance and Scalability. Performance and Scalability Challenges Optimizing PerformanceScaling UpScaling Out.
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Loading Ola Ekdahl IT Mentors 9/12/08.
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Sofia, Bulgaria | 9-10 October The Query Governor Richard Campbell Stephen Forte Richard Campbell Stephen Forte.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
SQLintersection Putting the "Squeeze" on Large Tables Improve Performance and Save Space with Data Compression Justin Randall Tuesday,
Chapter 4 Indexes. Index Architecture  By default data is inserted on a first-come, first-serve basis  Indexes bring order to this chaos  Once you.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
7 Strategies for Extracting, Transforming, and Loading.
Your Data Any Place, Any Time Performance and Scalability.
IMS 4212: Database Implementation 1 Dr. Lawrence West, Management Dept., University of Central Florida Physical Database Implementation—Topics.
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
--A Gem of SQL Server 2012, particularly for Data Warehousing-- Present By Steven Wang.
Understanding the Data Page Structure Sathya Nekkanti Senior Manager/Database Architect.
How to kill SQL Server Performance Håkan Winther.
Doing fast! Optimizing Query performance with ColumnStore Indexes in SQL Server 2012 Margarita Naumova | SQL Master Academy.
A Lap Around Columstore Martin Catherall SQL Saturday #464, Melbourne 20 th February 2016.
Carlos Bossy Quanta Intelligence SQL Server MCTS, MCITP BI CBIP, Data Mining Real-time Data Warehouse and Reporting Solutions.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
Introducing Hekaton The next step in SQL Server OLTP performance Mladen Prajdić
With Temporal Tables and More
SQL Server Statistics and its relationship with Query Optimizer
Get the Most out of SQL Server Standard Edition
Standard/Express edition
Compression and Storage Optimization IDS xC4 Kevin Cherkauer
Temporal Databases Microsoft SQL Server 2016
Module 11: File Structure
Record Storage, File Organization, and Indexes
Stored Procedures – Facts and Myths
Temporal Databases Microsoft SQL Server 2016
Hitting the SQL Server “Go Faster” Button
6/12/2018 2:19 PM BRK3245 DirectQuery in Analysis Services: best practices, performance, and use cases Marco Russo SQLBI © Microsoft Corporation. All rights.
SQL Server 2000 and Access 2000 limits
Finding more space for your tight environment
Example of a page header
Windows Azure Migrating SQL Server Workloads
Blazing-Fast Performance:
Marcos Freccia Stop everything! Top T-SQL tricks to a developer
Hitting the SQL Server “Go Faster” Button
Azure SQL Data Warehouse Performance Tuning
Designing Business Intelligence Solutions with Microsoft SQL Server
Physical Database Design
SQL Azure Database – No CDC, No Problem!
Module 11: Data Storage Structure
Squeeze Into Some Free Gains
Azure SQL DWH: Optimization
Chapter 13: Data Storage Structures
Four Rules For Columnstore Query Performance
Andrew Fryer Microsoft UK
Your Data Any Place, Any Time
Change Tracking Live Data Warehouse
CS222/CS122C: Principles of Data Management UCI, Fall 2018 Notes #03 Row/Column Stores, Heap Files, Buffer Manager, Catalogs Instructor: Chen Li.
Presentation transcript:

SQL Server 2008: What to do and What not to do Eladio Rincón Javier Loria Solid Quality Mentors

Agenda

SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal SO SO SO SO SO SO SO SO SO SO SO SO SO SO SO Row Data Compression 3 © 2008 Solid Quality Mentors SO SO Fixed length data types are physically rearranged as variable data types

Page Data Compression: (1/3) SO SO SO SO SO SO SO SO SO SO SO SO SO SO SO SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal Page data compression begins with row data compression

Page Data Compression: (2/3) {1-3}595SO {5} {1} {5} {1} {5} {1} {5} {1}35 510{5} {1}45 397{5} {1}55 146{5} {1}65 511{5} {1}75 646{5} {1}85 514{5} {1}95 578{5} {2}05 504{5} {2}15 200{5} SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5} {2}4367{2}SO437 Compression header created to stored column prefix tokens. Token prefix replaced and suffix value calculated when necessary.

Page Data Compression (3/3) Dictionary data compression searches and replaces repeated values at page level. {1-3}595SO {5} {1} {5} {1}15 {B}{5} {1} {5} {1}35 510{5} {1}45 397{5} {1}55 146{5} {1}65 511{5} {B} {1}75 676{5} {1}85 514{5} SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5} {2}4367{2}SO437

Page Data Compression (3/3) Dictionary data compression searches and replaces repeated values at page level. {1-3}595SO {5}{A} {A} {1} {5} {1} {5} {1} {5} {1}35 510{5} {1}45 397{5} {1}55 146{5} {1}65 511{5} {1}75 {A}{5} {1}85 514{5} SalesOrderIDStatusSalesOrderNumberCustomerIDAccountNumberSubTotal {1}4366{1}SO436{5} {2}4367{2}SO437 {A} 676{B}4420

Data Compression: Performance Implications

Memory Consumption Best Practices for using Microsoft SQL Server 2008 data compression with HP ProLiant and Integrity servers and HP StorageWorks EVA8x00

CPU Consumption Best Practices for using Microsoft SQL Server 2008 data compression with HP ProLiant and Integrity servers and HP StorageWorks EVA8x00

What to do?, and What not to do? 11 © 2008 Solid Quality Mentors Fact Tables Historic Information DeNormalized tables Transactional Tables Frequently Updated Tables CPU stressed Servers

Agenda

Filtered Indexes © 2008 Solid Quality Mentors 13 Clustered IndexNon-clustered Index

Filtered Indexes: Faster and better searches

What to do?, and What not to do? 15 © 2008 Solid Quality Mentors Nullable/Sparse Columns Last Period Index Active/Inactive Non-selective columns Frequently updated columns “Partition” by Filtered Index

Agenda

Resource Governor 17 © 2008 Solid Quality Mentors

Resource Governor Handling SLAs

Mixing Workloads (1/2) 19 Evaluation and recommendations for using Microsoft SQL Server 2008, HP

Mixing Workloads (2/2) Evaluation and recommendations for using Microsoft SQL Server 2008, HP

What to do?, and What not to do? 21 © 2008 Solid Quality Mentors Batch Processes (ETL, …) Limit Ad-hoc Reports Allocate based on budget Not “performance” tool Create too many group/pools Security

Agenda

Change Data Capture 23 © 2008 Solid Quality Mentors SalesOrderIDStatusCustomerIDSubTotal Transaction Log MetadataSalesOrderIDStatusCustomerIDSubTotal No triggers, based on service broker technology

Change Data Capture Building a Faster and Better ETL

What to do?, and What not to do? 25 © 2008 Solid Quality Mentors Use to Populate DW Use to create audit trails Consider I/O Impact ` Every Table/Every Column Turn Off SQL Server Agent Insert/Update

Agenda

Questions 27 © 2008 Solid Quality Mentors

Please remember to fill out evaluations