SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016
New Features to be covered Stretch Database Query Store Live Query Stats Tempdb Enhancements AlwaysOn Availability Group Enhancements
Stretch Database The Problem – what I am going to solve using this feature? Reporting both on cold and real-time data
Stretch Database Cont’ Leverages Azure SQL Database to store and query archive data Cold data are online like other data on premises. No application tier change is required to access the archived data It reduces the time for database maintenance Archives data transparently and securely Can join across local and remote data
Source: Stretch Database Architecture
Demo:
COMPARE FOR STRETCHED ENABLED DATABASE REGULAR DATABASE ( STRETCHED NOT ENABLED) BACKUP TIME 07 sec 24 sec BACKUP FILE SIZE 131,146 KB 338,176 KB DBCC CHECKDB 19 sec 20 sec IDEX MAINTENANCE (INDEX REBUILD) 04 sec 37 sec /***This test is done on my local machine which has 8 GB RAM, dual core CPU and it is using my home Wi-Fi network****/ Comparison
Query Store Helps to troubleshoot query performance by capturing and storing historical query execution plans Store logs information about history of queries, plans, and runtime statistics, Automatically captures history of queries, plans, runtime stats
Architecture
Demo:
Demo Cont’:
Live Query Stats Ability to view live execution plan and displays overall query progress Shows run-time execution stats
Setup adds tempdb files equal to CPU count or 8 Trace Flags 1117 and 1118 are not required Gave default initial file size is 8MB and the default autogrowth is 64MB Multiple volumes for tempdb files. New GUI for configuring Tempdb during installation as shown below. Tempdb Enhancements
New GUI – configure tempdb during Installation
Optional setting to fail over based on database failure Distributed Transaction Coordinator support Load Balancing for Readable Secondaries Additional synchronous failover targets AlwaysOn Enhancements
To get big data set to simulate the real world data Azure SQL database and firewall setup Challenges
SQL Server 2016 has really cool new features, install it and get your hands dirty!!! Conclusion
Questions?
Stretch Database. (n.d.). Retrieved February 29, 2016, from Write an Inline Table-Valued Function to Select Rows to Migrate (Stretch Database). (n.d.). Retrieved February 29, 2016, from SQL Server Introduction to Stretch Database. (2015). Retrieved February 29, 2016, from stretch-database Monitoring Performance By Using the Query Store. (n.d.). Retrieved February 29, 2016, from Live Query Statistics. (n.d.). Retrieved February 29, 2016, from What's New in Database Engine. (n.d.). Retrieved February 29, 2016, from Enhanced Always On Availability Groups in SQL Server (n.d.). Retrieved February 29, 2016, from SQL Database options and performance: Understand what's available in each service tier. (n.d.). Retrieved February 29, 2016, from Pricing - SQL Database | Microsoft Azure. (n.d.). Retrieved February 29, 2016, from Correctly adding data files to tempdb - Paul S. Randal. (2014). Retrieved February 29, 2016, from data-files-tempdb/ References