Upload
trinhthuy
View
224
Download
2
Embed Size (px)
Citation preview
SQL Server 2012 Performance tuning
Michelle Gutzait [email protected]
Blog: http://michelle-gutzait.spaces.live.com/default.aspx
- Database Tuning advisor (DTA) Enhancements
- Column store indexes
- Online index operations
New in SQL 2012
Windows Performance Monitor
SQL Server Profiler &
SQL Traces
ReadTrace
SQL Server Management Studio
Windows Management Instrumentation
(WMI)
Database Engine Tuning Advisor
DMVs and statistics
SQL Server 2008 Activity Monitor
SQL Server 2008 and R2 Ent tools…
Disk Contention
Memory constraints
Large indexes and tables
Network contention
Blocks/locks/deadlocks
Data Compression Compress and store data in memory with Vertipaq™
technology
High compression for repetitive values
Batch Execution Mode
Batch vs. Row Mode
Batch = around 1000 rows
Vector-based structure in-memory
Processed all at once
Up to 40 times CPU reduction
Optimized with large memory and multicores
DOP >= 2
Clustering
Database
mirroring
Log
Shipping
Disk mirroring
Replication Database
Snapshots
3-rd party
solutions
Always ON
Integrity checks
Update Stats
Backups
Index
maintenance Clean History
Data archive
Patching
Upgrades/move
Large Value Type column *VAR*(MAX)
PRINT @@VERSION
go
-- Create a Table
CREATE TABLE Items
(
ItemID INT IDENTITY,
ItemName VARCHAR(100),
VarcharData VARCHAR(max)
)
go
-- Create an Index
CREATE NONCLUSTERED INDEX
[IDX_ItemIdxTest]
ON [dbo].[Items] ( [ItemID] ASC,
[ItemName] ASC )
include ( [VarcharData] )
WITH ( ONLINE = ON )
go
SQL < 2012
Always On
Increased number of partitions (15,000 vs. 1000)
Indirect checkpoints for database recovery time
Geographically dispersed Clustering
New in SQL 2012
Michelle Gutzait [email protected]
Blog: http://michelle-gutzait.spaces.live.com/default.aspx