Results from How to Think in Sets – SQL Saturday Baton Rouge 2017

Test #Test NameRun time, ms
11Cursor15,809
12Cursor ROFF10,186
13While Loop9,163
14Set-based161
20Subquery in SELECT3,621
21Rewrite as APPLY3,144
22Rewrite using #temp994
23Rewrite as RowNum500
24Subquery in WHERE2,903
25Rewrite as APPLY2,932
26Rewrite using #temp1,547
27Rewrite as RowNum224
30Scalar UDF Data Access183,561
31Scalar UDF Constant104
32Multi-statement TVF194,591
33CLR184,538
34APPLY1,752
35Inline TVF1,729
36RowNum265
40Running Total - Cursor4,980
41Running Total - Triangle Join~ 100,000,000
42Running Total -
Windowing
536
50SSIS - Command Component3,830
51SSIS - Staging271
60C# Singleton Insert5,061
61C# SqlBulkCopy122