mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Merge pull request #184 from Microsoft/amitmsft-patch-3
Amitmsft patch 3
This commit is contained in:
+1
-1
@@ -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
|
||||
+1
-1
@@ -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
+2
-2
@@ -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.
|
||||
*/
|
||||
*/
|
||||
+1
-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
|
||||
*/
|
||||
*/
|
||||
+1
-1
@@ -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
|
||||
*/
|
||||
*/
|
||||
Binary file not shown.
Binary file not shown.
@@ -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.
|
||||
+2
-2
@@ -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.
|
||||
*/
|
||||
*/
|
||||
+1
-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
|
||||
+1
-1
@@ -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
|
||||
*/
|
||||
*/
|
||||
Reference in New Issue
Block a user