Merge pull request #184 from Microsoft/amitmsft-patch-3

Amitmsft patch 3
This commit is contained in:
Amit Banerjee
2017-02-04 02:32:09 -08:00
committed by GitHub
23 changed files with 2099 additions and 12 deletions
@@ -59,4 +59,4 @@ GO
INNER JOIN Person.Person AS p ON h.CustomerID = p.BusinessEntityID
INNER JOIN Production.Product AS pr ON d.ProductID = pr.ProductID
) SELECT * FROM Prices;
GO
GO
@@ -58,4 +58,4 @@ GO
INNER JOIN Person.Person AS p ON h.CustomerID = p.BusinessEntityID
INNER JOIN Production.Product AS pr ON d.ProductID = pr.ProductID
) SELECT * FROM Prices;
GO
GO
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -30,7 +30,7 @@ GO
-- Get Actual Execution Plan
-- Execute the stored procedure first with parameter value WA which will select 1% of data.
-- Execute the stored procedure first with parameter value WA which will select 1% of data.
DBCC FREEPROCCACHE
GO
EXEC CustomersByState 'WA'
@@ -49,4 +49,4 @@ it is split into sub-partitions, which are also processed separately.
This splitting process continues until each partition fits into available memory
or until the maximum recursion level is reached.
In this case it stopped at level 1.
*/
*/
@@ -18,4 +18,4 @@ GO
In SELECT node properties:
MaxQueryMemory for maximum query memory grant under RG MAX_MEMORY_PERCENT hint
MaxCompileMemory for maximum query optimizer memory in KB during compile under RG
*/
*/
@@ -18,4 +18,4 @@ GO
/*
Observe the type of Spill = 1
Means one pass over the data was enough to complete the sort in the Worktable
*/
*/
-2
View File
@@ -1,2 +0,0 @@
<h1>MSSQLTIGER Demos</h1>
This is a repository of the scripts used during demos that are delivered by the SQL Server Tiger team.
@@ -42,7 +42,7 @@ ADD TARGET package0.event_file(SET filename=N'C:\IP\Tiger\TR23\Demos\Demo 1.1 -
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF)
GO
--Execute the stored procedure first with parameter value WA which will select 1% of data.
--Execute the stored procedure first with parameter value WA which will select 1% of data.
DBCC FREEPROCCACHE
GO
ALTER EVENT SESSION [HashSpills] ON SERVER STATE = START
@@ -65,4 +65,4 @@ it is split into sub-partitions, which are also processed separately.
This splitting process continues until each partition fits into available memory
or until the maximum recursion level is reached.
In this case it stopped at level 1.
*/
*/
@@ -39,4 +39,4 @@ GO
-- After running query, get new signed query or query plan hash and run below to see new columns in DMV
SELECT * FROM sys.dm_exec_query_stats
WHERE CAST(query_hash AS BIGINT) = -5396503127623128976;
--WHERE CAST(query_plan_hash AS BIGINT) = 3230654061787450360
--WHERE CAST(query_plan_hash AS BIGINT) = 3230654061787450360
@@ -30,4 +30,4 @@ GO
/*
Observe the type of Spill = 1
Means one pass over the data was enough to complete the sort in the Worktable
*/
*/