1055 1 |--Table Insert(OBJECT:(@Equities), SET:([StatsAccountID] = #Ranges.[StatsAccountID] as [r].[StatsAccountID],[StartDate] = #Ranges.[StartDate] as [r].[StartDate],[EndDate] = #Ranges.[EndDate] as [r].[EndDate],[Profit] = [Expr1113],[RowNum] = [Expr1114])) 15 2 1 Table Insert Insert OBJECT:(@Equities), SET:([StatsAccountID] = #Ranges.[StatsAccountID] as [r].[StatsAccountID],[StartDate] = #Ranges.[StartDate] as [r].[StartDate],[EndDate] = #Ranges.[EndDate] as [r].[EndDate],[Profit] = [Expr1113],[RowNum] = [Expr1114]) NULL 410,4832 0,0167859 0,0004104832 9 789,3729 NULL NULL PLAN_ROW 0 1
0 0 |--Compute Scalar(DEFINE:([Expr1113]=CONVERT_IMPLICIT(decimal(18,5),[Expr1111],0), [Expr1114]=CONVERT_IMPLICIT(int,[Expr1112],0))) 15 3 2 Compute Scalar Compute Scalar DEFINE:([Expr1113]=CONVERT_IMPLICIT(decimal(18,5),[Expr1111],0), [Expr1114]=CONVERT_IMPLICIT(int,[Expr1112],0)) [Expr1113]=CONVERT_IMPLICIT(decimal(18,5),[Expr1111],0), [Expr1114]=CONVERT_IMPLICIT(int,[Expr1112],0) 410,4832 0 4,104833E-05 40 789,3557 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1113], [Expr1114] NULL PLAN_ROW 0 1
1055 1 |--Top(ROWCOUNT est 0) 15 4 3 Top Top TOP EXPRESSION:((0)) NULL 410,4832 0 4,104833E-05 52 789,3557 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1111], [Expr1112] NULL PLAN_ROW 0 1
1055 1 |--Sequence Project(DEFINE:([Expr1112]=row_number)) 15 5 4 Sequence Project Compute Scalar DEFINE:([Expr1112]=row_number) [Expr1112]=row_number 410,4832 0 3,283866E-05 52 789,3556 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1111], [Expr1112] NULL PLAN_ROW 0 1
1055 1 |--Segment 15 6 5 Segment Segment [r].[StatsAccountID] NULL 410,4832 0 8,209665E-06 52 789,3556 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1111], [Segment1126] NULL PLAN_ROW 0 1
1055 1 |--Sort(ORDER BY:([r].[StatsAccountID] ASC, [r].[StartDate] ASC, [r].[EndDate] ASC)) 15 7 6 Sort Sort ORDER BY:([r].[StatsAccountID] ASC, [r].[StartDate] ASC, [r].[EndDate] ASC) NULL 410,4832 0,01126126 0,005659071 44 789,3555 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1111] NULL PLAN_ROW 0 1
0 0 |--Compute Scalar(DEFINE:([Expr1111]=isnull([Expr1110],(0.000000)))) 15 8 7 Compute Scalar Compute Scalar DEFINE:([Expr1111]=isnull([Expr1110],(0.000000))) [Expr1111]=isnull([Expr1110],(0.000000)) 410,4832 0 4,104833E-05 44 789,3386 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1111] NULL PLAN_ROW 0 1
0 0 |--Compute Scalar(DEFINE:([Expr1110]=CASE WHEN [Expr1124]=(0) THEN NULL ELSE [Expr1125] END)) 15 9 8 Compute Scalar Compute Scalar DEFINE:([Expr1110]=CASE WHEN [Expr1124]=(0) THEN NULL ELSE [Expr1125] END) [Expr1110]=CASE WHEN [Expr1124]=(0) THEN NULL ELSE [Expr1125] END 410,4832 0 118,792 44 789,3386 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1110] NULL PLAN_ROW 0 1
1055 1 |--Hash Match(Aggregate, HASH:([r].[StartDate], [r].[EndDate], [r].[StatsAccountID]), RESIDUAL:(#Ranges.[StartDate] as [r].[StartDate] = #Ranges.[StartDate] as [r].[StartDate] AND #Ranges.[EndDate] as [r].[EndDate] = #Ranges.[EndDate] as [r].[EndDate] AND #Ranges.[StatsAccountID] as [r].[StatsAccountID] = #Ranges.[StatsAccountID] as [r].[StatsAccountID]) DEFINE:([Expr1124]=COUNT_BIG(isnull(CASE WHEN [Expr1115]=[@Today] THEN NULL ELSE CASE WHEN CASE WHEN [Expr1021] like N'sell%' THEN (1) ELSE (0) END=(1) THEN (([Expr1017]-([Expr1052]+[Expr1053])/(2.))*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1079]+[Expr1080])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1106]+[Expr1107])/(2.)),0)) END ELSE CASE WHEN CASE WHEN [Expr1021] like N'buy%' THEN (1) ELSE (0) END=(1) THEN ((([Expr1054]+[Expr1055])/(2.)-[Expr1017])*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1081]+[Expr1082])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1108]+[Expr1109])/(2.)),0)) END ELSE NULL END END END,CONVERT_IMPLICIT(decimal(38,6),[Expr1016],0))), [Expr1125]=SUM(isnull(CASE WHEN [Expr1115]=[@Today] THEN NULL ELSE CASE WHEN CASE WHEN [Expr1021] like N'sell%' THEN (1) ELSE (0) END=(1) THEN (([Expr1017]-([Expr1052]+[Expr1053])/(2.))*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1079]+[Expr1080])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1106]+[Expr1107])/(2.)),0)) END ELSE CASE WHEN CASE WHEN [Expr1021] like N'buy%' THEN (1) ELSE (0) END=(1) THEN ((([Expr1054]+[Expr1055])/(2.)-[Expr1017])*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1081]+[Expr1082])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1108]+[Expr1109])/(2.)),0)) END ELSE NULL END END END,CONVERT_IMPLICIT(decimal(38,6),[Expr1016],0))))) 15 10 9 Hash Match Aggregate HASH:([r].[StartDate], [r].[EndDate], [r].[StatsAccountID]), RESIDUAL:(#Ranges.[StartDate] as [r].[StartDate] = #Ranges.[StartDate] as [r].[StartDate] AND #Ranges.[EndDate] as [r].[EndDate] = #Ranges.[EndDate] as [r].[EndDate] AND #Ranges.[StatsAccountID] as [r].[StatsAccountID] = #Ranges.[StatsAccountID] as [r].[StatsAccountID]) [Expr1124]=COUNT_BIG(isnull(CASE WHEN [Expr1115]=[@Today] THEN NULL ELSE CASE WHEN CASE WHEN [Expr1021] like N'sell%' THEN (1) ELSE (0) END=(1) THEN (([Expr1017]-([Expr1052]+[Expr1053])/(2.))*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1079]+[Expr1080])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1106]+[Expr1107])/(2.)),0)) END ELSE CASE WHEN CASE WHEN [Expr1021] like N'buy%' THEN (1) ELSE (0) END=(1) THEN ((([Expr1054]+[Expr1055])/(2.)-[Expr1017])*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1081]+[Expr1082])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1108]+[Expr1109])/(2.)),0)) END ELSE NULL END END END,CONVERT_IMPLICIT(decimal(38,6),[Expr1016],0))), [Expr1125]=SUM(isnull(CASE WHEN [Expr1115]=[@Today] THEN NULL ELSE CASE WHEN CASE WHEN [Expr1021] like N'sell%' THEN (1) ELSE (0) END=(1) THEN (([Expr1017]-([Expr1052]+[Expr1053])/(2.))*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1079]+[Expr1080])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1106]+[Expr1107])/(2.)),0)) END ELSE CASE WHEN CASE WHEN [Expr1021] like N'buy%' THEN (1) ELSE (0) END=(1) THEN ((([Expr1054]+[Expr1055])/(2.)-[Expr1017])*[Expr1018])*CASE WHEN CASE WHEN right([Expr1015],(3))=[Expr1014] THEN (1) ELSE (0) END=(1) THEN (1.000000000) ELSE isnull(([Expr1081]+[Expr1082])/(2.),CONVERT_IMPLICIT(decimal(24,9),(1.)/(([Expr1108]+[Expr1109])/(2.)),0)) END ELSE NULL END END END,CONVERT_IMPLICIT(decimal(38,6),[Expr1016],0))) 410,4832 0 118,792 44 789,3386 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1124], [Expr1125] NULL PLAN_ROW 0 1
3333 1 |--Nested Loops(Left Outer Join, OUTER REFERENCES:([r].[EndDate], [Expr1014], [Expr1015])) 15 11 10 Nested Loops Left Outer Join OUTER REFERENCES:([r].[EndDate], [Expr1014], [Expr1015]) NULL 1,777014E+07 0 26,24616 333 670,5466 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021], [Expr1052], [Expr1053], [Expr1054], [Expr1055], [Expr1079], [Expr1080], [Expr1081], [Expr1082], [Expr1106], [Expr1107], [Expr1108], [Expr1109], [Expr1115] NULL PLAN_ROW 0 1
3333 1 |--Hash Match(Left Outer Join, HASH:([Expr1118], [r].[EndDate])=([p].[Symbol], [Union1069]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[Symbol] as [p].[Symbol]=[Expr1118] AND [Union1069]=#Ranges.[EndDate] as [r].[EndDate])) 15 12 11 Hash Match Left Outer Join HASH:([Expr1118], [r].[EndDate])=([p].[Symbol], [Union1069]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[Symbol] as [p].[Symbol]=[Expr1118] AND [Union1069]=#Ranges.[EndDate] as [r].[EndDate]) NULL 2285238 104,8297 119,9915 281 414,6266 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021], [Expr1052], [Expr1053], [Expr1054], [Expr1055], [Expr1079], [Expr1080], [Expr1081], [Expr1082], [Expr1115] NULL PLAN_ROW 0 1
0 0 | |--Compute Scalar(DEFINE:([Expr1118]=right([Expr1015],(3))+[Expr1014])) 15 13 12 Compute Scalar Compute Scalar DEFINE:([Expr1118]=right([Expr1015],(3))+[Expr1014]) [Expr1118]=right([Expr1015],(3))+[Expr1014] 582982,6 0 0,05829826 243 139,3798 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021], [Expr1052], [Expr1053], [Expr1054], [Expr1055], [Expr1115], [Expr1118] NULL PLAN_ROW 0 1
3333 1 | | |--Hash Match(Left Outer Join, HASH:([Expr1015], [r].[EndDate])=([p].[Symbol], [Union1042]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[Symbol] as [p].[Symbol]=[Expr1015] AND [Union1042]=#Ranges.[EndDate] as [r].[EndDate])) 15 14 13 Hash Match Left Outer Join HASH:([Expr1015], [r].[EndDate])=([p].[Symbol], [Union1042]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[Symbol] as [p].[Symbol]=[Expr1015] AND [Union1042]=#Ranges.[EndDate] as [r].[EndDate]) NULL 582982,6 0 85,11973 228 139,3215 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021], [Expr1052], [Expr1053], [Expr1054], [Expr1055], [Expr1115] NULL PLAN_ROW 0 1
3333 1 | | |--Hash Match(Left Outer Join, HASH:([r].[StatsAccountID])=([t].[StatsAccountID]), RESIDUAL:((#TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]>=#Ranges.[StartDate] as [r].[StartDate] AND #TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]<=#Ranges.[EndDate] as [r].[EndDate] OR #TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]<#Ranges.[StartDate] as [r].[StartDate]) AND #Ranges.[StatsAccountID] as [r].[StatsAccountID]=#TicketsTWR.[StatsAccountID] as [t].[StatsAccountID] AND (#TicketsTWR.[CloseTimeUtc] as [t].[CloseTimeUtc]>#Ranges.[EndDate] as [r].[EndDate] OR #TicketsTWR.[CloseTimeUtc] as [t].[CloseTimeUtc] IS NULL))) 15 15 14 Hash Match Left Outer Join HASH:([r].[StatsAccountID])=([t].[StatsAccountID]), RESIDUAL:((#TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]>=#Ranges.[StartDate] as [r].[StartDate] AND #TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]<=#Ranges.[EndDate] as [r].[EndDate] OR #TicketsTWR.[OpenTimeUtc] as [t].[OpenTimeUtc]<#Ranges.[StartDate] as [r].[StartDate]) AND #Ranges.[StatsAccountID] as [r].[StatsAccountID]=#TicketsTWR.[StatsAccountID] as [t].[StatsAccountID] AND (#TicketsTWR.[CloseTimeUtc] as [t].[CloseTimeUtc]>#Ranges.[EndDate] as [r].[EndDate] OR #TicketsTWR.[CloseTimeUtc] as [t].[CloseTimeUtc] IS NULL)) NULL 538305,1 0 1,293701 176 3,776124 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021], [Expr1115] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1115]=CONVERT(date,#Ranges.[EndDate] as [r].[EndDate],0))) 15 16 15 Compute Scalar Compute Scalar DEFINE:([Expr1115]=CONVERT(date,#Ranges.[EndDate] as [r].[EndDate],0)) [Expr1115]=CONVERT(date,#Ranges.[EndDate] as [r].[EndDate],0) 1055 0 0,0001055 30 0,006770222 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate], [Expr1115] NULL PLAN_ROW 0 1
1055 1 | | | | |--Clustered Index Scan(OBJECT:([tempdb].[dbo].[#Ranges] AS [r])) 15 17 16 Clustered Index Scan Clustered Index Scan OBJECT:([tempdb].[dbo].[#Ranges] AS [r]) [r].[StatsAccountID], [r].[StartDate], [r].[EndDate] 1055 0,005347222 0,0013175 27 0,006664722 [r].[StatsAccountID], [r].[StartDate], [r].[EndDate] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1016]=isnull([razor_feeds].[dbo].[STS_StatsTicketsEquity].[Equity] as [e].[Equity],#TicketsTWR.[Profit] as [t].[Profit]))) 15 21 15 Compute Scalar Compute Scalar DEFINE:([Expr1016]=isnull([razor_feeds].[dbo].[STS_StatsTicketsEquity].[Equity] as [e].[Equity],#TicketsTWR.[Profit] as [t].[Profit])) [Expr1016]=isnull([razor_feeds].[dbo].[STS_StatsTicketsEquity].[Equity] as [e].[Equity],#TicketsTWR.[Profit] as [t].[Profit]) 83272,02 0 0,008327202 173 2,475631 [t].[StatsAccountID], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [Expr1014], [Expr1015], [Expr1016], [Expr1017], [Expr1018], [Expr1021] NULL PLAN_ROW 0 1
95259 1 | | | |--Hash Match(Right Outer Join, HASH:([e].[StatsTicketsId], [Expr1116])=([t].[StatsTicketsId], [Expr1117]), RESIDUAL:(#TicketsTWR.[StatsTicketsId] as [t].[StatsTicketsId]=[razor_feeds].[dbo].[STS_StatsTicketsEquity].[StatsTicketsId] as [e].[StatsTicketsId] AND [Expr1116]=[Expr1117])) 15 22 21 Hash Match Right Outer Join HASH:([e].[StatsTicketsId], [Expr1116])=([t].[StatsTicketsId], [Expr1117]), RESIDUAL:(#TicketsTWR.[StatsTicketsId] as [t].[StatsTicketsId]=[razor_feeds].[dbo].[STS_StatsTicketsEquity].[StatsTicketsId] as [e].[StatsTicketsId] AND [Expr1116]=[Expr1117]) NULL 83272,02 0 0,6531398 182 2,467304 [t].[StatsAccountID], [t].[Profit], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [e].[Equity], [Expr1014], [Expr1015], [Expr1017], [Expr1018], [Expr1021] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1116]=CONVERT(date,dateadd(second,(-1),[razor_feeds].[dbo].[STS_StatsTicketsEquity].[TicketTime] as [e].[TicketTime]),0))) 15 23 22 Compute Scalar Compute Scalar DEFINE:([Expr1116]=CONVERT(date,dateadd(second,(-1),[razor_feeds].[dbo].[STS_StatsTicketsEquity].[TicketTime] as [e].[TicketTime]),0)) [Expr1116]=CONVERT(date,dateadd(second,(-1),[razor_feeds].[dbo].[STS_StatsTicketsEquity].[TicketTime] as [e].[TicketTime]),0) 1 0 1E-07 23 0,0032832 [e].[StatsTicketsId], [e].[Equity], [Expr1116] NULL PLAN_ROW 0 1
0 1 | | | | |--Index Scan(OBJECT:([razor_feeds].[dbo].[STS_StatsTicketsEquity].[idx_StatsTicketsEquity_TicketId] AS [e])) 15 24 23 Index Scan Index Scan OBJECT:([razor_feeds].[dbo].[STS_StatsTicketsEquity].[idx_StatsTicketsEquity_TicketId] AS [e]) [e].[StatsTicketsId], [e].[TicketTime], [e].[Equity] 1 0,003125 0,0001581 28 0,0032831 [e].[StatsTicketsId], [e].[TicketTime], [e].[Equity] NULL PLAN_ROW 0 1
95259 1 | | | |--Hash Match(Inner Join, HASH:([a].[StatsAccountID])=([t].[StatsAccountID]), RESIDUAL:(#TicketsTWR.[StatsAccountID] as [t].[StatsAccountID]=#Account.[StatsAccountID] as [a].[StatsAccountID])) 15 28 22 Hash Match Inner Join HASH:([a].[StatsAccountID])=([t].[StatsAccountID]), RESIDUAL:(#TicketsTWR.[StatsAccountID] as [t].[StatsAccountID]=#Account.[StatsAccountID] as [a].[StatsAccountID]) NULL 83272,02 0 0,734146 180 1,810874 [t].[StatsAccountID], [t].[Profit], [t].[StatsTicketsId], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [Expr1014], [Expr1015], [Expr1017], [Expr1018], [Expr1021], [Expr1117] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1117]=CONVERT(date,#Account.[DateEnd] as [a].[DateEnd],0))) 15 29 28 Compute Scalar Compute Scalar DEFINE:([Expr1117]=CONVERT(date,#Account.[DateEnd] as [a].[DateEnd],0)) [Expr1117]=CONVERT(date,#Account.[DateEnd] as [a].[DateEnd],0) 165 0 1,65E-05 14 0,004961481 [a].[StatsAccountID], [Expr1117] NULL PLAN_ROW 0 1
165 1 | | | | |--Table Scan(OBJECT:([tempdb].[dbo].[#Account] AS [a])) 15 30 29 Table Scan Table Scan OBJECT:([tempdb].[dbo].[#Account] AS [a]) [a].[StatsAccountID], [a].[DateEnd] 165 0,004606482 0,0003385 19 0,004944982 [a].[StatsAccountID], [a].[DateEnd] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1014]=#TicketsTWR.[Currency] as [t].[Currency], [Expr1015]=#TicketsTWR.[Item] as [t].[Item], [Expr1017]=#TicketsTWR.[OpenPrice] as [t].[OpenPrice], [Expr1018]=#TicketsTWR.[Units] as [t].[Units], [Expr1021]=#TicketsTWR.[Type] as [t].[Type])) 15 34 28 Compute Scalar Compute Scalar DEFINE:([Expr1014]=#TicketsTWR.[Currency] as [t].[Currency], [Expr1015]=#TicketsTWR.[Item] as [t].[Item], [Expr1017]=#TicketsTWR.[OpenPrice] as [t].[OpenPrice], [Expr1018]=#TicketsTWR.[Units] as [t].[Units], [Expr1021]=#TicketsTWR.[Type] as [t].[Type]) [Expr1014]=#TicketsTWR.[Currency] as [t].[Currency], [Expr1015]=#TicketsTWR.[Item] as [t].[Item], [Expr1017]=#TicketsTWR.[OpenPrice] as [t].[OpenPrice], [Expr1018]=#TicketsTWR.[Units] as [t].[Units], [Expr1021]=#TicketsTWR.[Type] as [t].[Type] 95250,68 0 0,0096314 186 0,987007 [t].[StatsAccountID], [t].[Profit], [t].[StatsTicketsId], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [Expr1014], [Expr1015], [Expr1017], [Expr1018], [Expr1021] NULL PLAN_ROW 0 1
95259 1 | | | |--Table Scan(OBJECT:([tempdb].[dbo].[#TicketsTWR] AS [t]), WHERE:(#TicketsTWR.[Type] as [t].[Type]<>N'balance' AND #TicketsTWR.[Type] as [t].[Type]<>N'credit')) 15 35 34 Table Scan Table Scan OBJECT:([tempdb].[dbo].[#TicketsTWR] AS [t]), WHERE:(#TicketsTWR.[Type] as [t].[Type]<>N'balance' AND #TicketsTWR.[Type] as [t].[Type]<>N'credit') [t].[StatsAccountID], [t].[Profit], [t].[StatsTicketsId], [t].[Type], [t].[Currency], [t].[OpenPrice], [t].[Units], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [t].[Item] 95250,68 0,8712732 0,1061024 91 0,9773756 [t].[StatsAccountID], [t].[Profit], [t].[StatsTicketsId], [t].[Type], [t].[Currency], [t].[OpenPrice], [t].[Units], [t].[OpenTimeUtc], [t].[CloseTimeUtc], [t].[Item] NULL PLAN_ROW 0 1
0 0 | | |--Compute Scalar(DEFINE:([Expr1052]=[Union1044], [Expr1053]=[Union1045], [Expr1054]=[Union1046], [Expr1055]=[Union1047])) 15 53 14 Compute Scalar Compute Scalar DEFINE:([Expr1052]=[Union1044], [Expr1053]=[Union1045], [Expr1054]=[Union1046], [Expr1055]=[Union1047]) [Expr1052]=[Union1044], [Expr1053]=[Union1045], [Expr1054]=[Union1046], [Expr1055]=[Union1047] 2728424 0 0,2728423 83 50,42562 [Union1042], [p].[Symbol], [Expr1052], [Expr1053], [Expr1054], [Expr1055] NULL PLAN_ROW 0 1
3704272 1 | | |--Concatenation 15 54 53 Concatenation Concatenation NULL [Union1042] = ([a].[CandleDateTime], [af].[CandleDateTime]), [Union1044] = ([Expr1031], [Expr1038]), [Union1045] = ([Expr1032], [Expr1039]), [Union1046] = ([Expr1033], [Expr1040]), [Union1047] = ([Expr1034], [Expr1041]), [p].[Symbol] = ([p].[Symbol], [p].[Symbol]) 2728424 0 0,2728423 83 50,15278 [Union1042], [Union1044], [Union1045], [Union1046], [Union1047], [p].[Symbol] NULL PLAN_ROW 0 1
3542836 1 | | |--Merge Join(Inner Join, MERGE:([p].[PairID])=([a].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConCandles1M].[PairID] as [a].[PairID])) 15 55 54 Merge Join Inner Join MERGE:([p].[PairID])=([a].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConCandles1M].[PairID] as [a].[PairID]) NULL 2609241 0 7,706589 83 47,49276 [a].[CandleDateTime], [Expr1031], [Expr1032], [Expr1033], [Expr1034], [p].[Symbol] NULL PLAN_ROW 0 1
52 1 | | | |--Clustered Index Scan(OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD) 15 56 55 Clustered Index Scan Clustered Index Scan OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD [p].[PairID], [p].[Symbol] 52 0,003125 0,0002142 27 0,0033392 [p].[PairID], [p].[Symbol] NULL PLAN_ROW 0 1
0 0 | | | |--Compute Scalar(DEFINE:([Expr1031]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1032]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1033]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1034]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END)) 15 57 55 Compute Scalar Compute Scalar DEFINE:([Expr1031]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1032]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1033]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1034]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END) [Expr1031]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1032]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1033]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1034]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END 3542836 0 0,3542836 71 39,78283 [a].[PairID], [a].[CandleDateTime], [Expr1031], [Expr1032], [Expr1033], [Expr1034] NULL PLAN_ROW 0 1
3542836 1 | | | |--Index Scan(OBJECT:([razor_feeds].[dbo].[eConCandles1M].[UK_eConCandles1M_CandleDateTime_PairID] AS [a]), ORDERED FORWARD) 15 58 57 Index Scan Index Scan OBJECT:([razor_feeds].[dbo].[eConCandles1M].[UK_eConCandles1M_CandleDateTime_PairID] AS [a]), ORDERED FORWARD [a].[PairID], [a].[BrokerServerID], [a].[CandleDateTime], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] 3542836 35,53127 3,897277 78 39,42855 [a].[PairID], [a].[BrokerServerID], [a].[CandleDateTime], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] NULL PLAN_ROW 0 1
161436 1 | | |--Merge Join(Inner Join, MERGE:([p].[PairID])=([af].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConQuotesFlat1M].[PairID] as [af].[PairID])) 15 69 54 Merge Join Inner Join MERGE:([p].[PairID])=([af].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConQuotesFlat1M].[PairID] as [af].[PairID]) NULL 119182,5 0 0,3904636 83 2,387174 [af].[CandleDateTime], [Expr1038], [Expr1039], [Expr1040], [Expr1041], [p].[Symbol] NULL PLAN_ROW 0 1
52 1 | | |--Clustered Index Scan(OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD) 15 70 69 Clustered Index Scan Clustered Index Scan OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD [p].[PairID], [p].[Symbol] 52 0,003125 0,0002142 27 0,0033392 [p].[PairID], [p].[Symbol] NULL PLAN_ROW 0 1
0 0 | | |--Compute Scalar(DEFINE:([Expr1038]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1039]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1040]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1041]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END)) 15 71 69 Compute Scalar Compute Scalar DEFINE:([Expr1038]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1039]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1040]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1041]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END) [Expr1038]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1039]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1040]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1041]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END 177541 0 0,0177541 71 1,993368 [af].[PairID], [af].[CandleDateTime], [Expr1038], [Expr1039], [Expr1040], [Expr1041] NULL PLAN_ROW 0 1
161437 1 | | |--Index Scan(OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlatAsk1M_PairdID_CandleDateTime] AS [af]), ORDERED FORWARD) 15 72 71 Index Scan Index Scan OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlatAsk1M_PairdID_CandleDateTime] AS [af]), ORDERED FORWARD [af].[PairID], [af].[BrokerServerID], [af].[CandleDateTime], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] 177541 1,780162 0,1954521 78 1,975614 [af].[PairID], [af].[BrokerServerID], [af].[CandleDateTime], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] NULL PLAN_ROW 0 1
0 0 | |--Compute Scalar(DEFINE:([Expr1079]=[Union1071], [Expr1080]=[Union1072], [Expr1081]=[Union1073], [Expr1082]=[Union1074])) 15 96 12 Compute Scalar Compute Scalar DEFINE:([Expr1079]=[Union1071], [Expr1080]=[Union1072], [Expr1081]=[Union1073], [Expr1082]=[Union1074]) [Expr1079]=[Union1071], [Expr1080]=[Union1072], [Expr1081]=[Union1073], [Expr1082]=[Union1074] 2728424 0 0,2728423 83 50,42562 [Union1069], [p].[Symbol], [Expr1079], [Expr1080], [Expr1081], [Expr1082] NULL PLAN_ROW 0 1
3704272 1 | |--Concatenation 15 97 96 Concatenation Concatenation NULL [Union1069] = ([a].[CandleDateTime], [af].[CandleDateTime]), [Union1071] = ([Expr1058], [Expr1065]), [Union1072] = ([Expr1059], [Expr1066]), [Union1073] = ([Expr1060], [Expr1067]), [Union1074] = ([Expr1061], [Expr1068]), [p].[Symbol] = ([p].[Symbol], [p].[Symbol]) 2728424 0 0,2728423 83 50,15278 [Union1069], [Union1071], [Union1072], [Union1073], [Union1074], [p].[Symbol] NULL PLAN_ROW 0 1
3542836 1 | |--Merge Join(Inner Join, MERGE:([p].[PairID])=([a].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConCandles1M].[PairID] as [a].[PairID])) 15 98 97 Merge Join Inner Join MERGE:([p].[PairID])=([a].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConCandles1M].[PairID] as [a].[PairID]) NULL 2609241 0 7,706589 83 47,49276 [a].[CandleDateTime], [Expr1058], [Expr1059], [Expr1060], [Expr1061], [p].[Symbol] NULL PLAN_ROW 0 1
52 1 | | |--Clustered Index Scan(OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD) 15 99 98 Clustered Index Scan Clustered Index Scan OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD [p].[PairID], [p].[Symbol] 52 0,003125 0,0002142 27 0,0033392 [p].[PairID], [p].[Symbol] NULL PLAN_ROW 0 1
0 0 | | |--Compute Scalar(DEFINE:([Expr1058]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1059]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1060]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1061]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END)) 15 100 98 Compute Scalar Compute Scalar DEFINE:([Expr1058]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1059]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1060]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1061]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END) [Expr1058]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1059]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1060]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1061]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END 3542836 0 0,3542836 71 39,78283 [a].[PairID], [a].[CandleDateTime], [Expr1058], [Expr1059], [Expr1060], [Expr1061] NULL PLAN_ROW 0 1
3542836 1 | | |--Index Scan(OBJECT:([razor_feeds].[dbo].[eConCandles1M].[UK_eConCandles1M_CandleDateTime_PairID] AS [a]), ORDERED FORWARD) 15 101 100 Index Scan Index Scan OBJECT:([razor_feeds].[dbo].[eConCandles1M].[UK_eConCandles1M_CandleDateTime_PairID] AS [a]), ORDERED FORWARD [a].[PairID], [a].[BrokerServerID], [a].[CandleDateTime], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] 3542836 35,53127 3,897277 78 39,42855 [a].[PairID], [a].[BrokerServerID], [a].[CandleDateTime], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] NULL PLAN_ROW 0 1
161436 1 | |--Merge Join(Inner Join, MERGE:([p].[PairID])=([af].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConQuotesFlat1M].[PairID] as [af].[PairID])) 15 112 97 Merge Join Inner Join MERGE:([p].[PairID])=([af].[PairID]), RESIDUAL:([razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]=[razor_feeds].[dbo].[eConQuotesFlat1M].[PairID] as [af].[PairID]) NULL 119182,5 0 0,3904636 83 2,387174 [af].[CandleDateTime], [Expr1065], [Expr1066], [Expr1067], [Expr1068], [p].[Symbol] NULL PLAN_ROW 0 1
52 1 | |--Clustered Index Scan(OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD) 15 113 112 Clustered Index Scan Clustered Index Scan OBJECT:([razor_feeds].[dbo].[eConPairs].[PK_eConPairs] AS [p]), ORDERED FORWARD [p].[PairID], [p].[Symbol] 52 0,003125 0,0002142 27 0,0033392 [p].[PairID], [p].[Symbol] NULL PLAN_ROW 0 1
0 0 | |--Compute Scalar(DEFINE:([Expr1065]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1066]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1067]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1068]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END)) 15 114 112 Compute Scalar Compute Scalar DEFINE:([Expr1065]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1066]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1067]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1068]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END) [Expr1065]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1066]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1067]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1068]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END 177541 0 0,0177541 71 1,993368 [af].[PairID], [af].[CandleDateTime], [Expr1065], [Expr1066], [Expr1067], [Expr1068] NULL PLAN_ROW 0 1
161437 1 | |--Index Scan(OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlatAsk1M_PairdID_CandleDateTime] AS [af]), ORDERED FORWARD) 15 115 114 Index Scan Index Scan OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlatAsk1M_PairdID_CandleDateTime] AS [af]), ORDERED FORWARD [af].[PairID], [af].[BrokerServerID], [af].[CandleDateTime], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] 177541 1,780162 0,1954521 78 1,975614 [af].[PairID], [af].[BrokerServerID], [af].[CandleDateTime], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] NULL PLAN_ROW 0 1
482 3333 |--Table Spool 15 136 11 Table Spool Lazy Spool NULL NULL 2,747629 0,01 0,0001008946 59 229,6738 [Expr1106], [Expr1107], [Expr1108], [Expr1109] NULL PLAN_ROW 0 2285238
0 0 |--Compute Scalar(DEFINE:([Expr1106]=[Union1098], [Expr1107]=[Union1099], [Expr1108]=[Union1100], [Expr1109]=[Union1101])) 15 137 136 Compute Scalar Compute Scalar DEFINE:([Expr1106]=[Union1098], [Expr1107]=[Union1099], [Expr1108]=[Union1100], [Expr1109]=[Union1101]) [Expr1106]=[Union1098], [Expr1107]=[Union1099], [Expr1108]=[Union1100], [Expr1109]=[Union1101] 2,747629 0 1E-07 59 0,009859461 [Expr1106], [Expr1107], [Expr1108], [Expr1109] NULL PLAN_ROW 0 1
157 1803 |--Nested Loops(Inner Join, OUTER REFERENCES:([p].[PairID])) 15 138 137 Nested Loops Inner Join OUTER REFERENCES:([p].[PairID]) NULL 1 0 8,36E-06 59 0,009859361 [Union1098], [Union1099], [Union1100], [Union1101] NULL PLAN_ROW 0 1
974 1803 |--Index Seek(OBJECT:([razor_feeds].[dbo].[eConPairs].[idx_eConPairs_Symbol] AS [p]), SEEK:([p].[Symbol]=[Expr1014]+right([Expr1015],(3))) ORDERED FORWARD) 15 139 138 Index Seek Index Seek OBJECT:([razor_feeds].[dbo].[eConPairs].[idx_eConPairs_Symbol] AS [p]), SEEK:([p].[Symbol]=[Expr1014]+right([Expr1015],(3))) ORDERED FORWARD [p].[PairID] 1 0,003125 0,0001581 11 0,0032831 [p].[PairID] NULL PLAN_ROW 0 1
157 974 |--Concatenation 15 140 138 Concatenation Concatenation NULL [Union1098] = ([Expr1085], [Expr1092]), [Union1099] = ([Expr1086], [Expr1093]), [Union1100] = ([Expr1087], [Expr1094]), [Union1101] = ([Expr1088], [Expr1095]) 2 0 2E-07 59 0,006567901 [Union1098], [Union1099], [Union1100], [Union1101] NULL PLAN_ROW 0 1
0 0 |--Compute Scalar(DEFINE:([Expr1085]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1086]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1087]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1088]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END)) 15 141 140 Compute Scalar Compute Scalar DEFINE:([Expr1085]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1086]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1087]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1088]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END) [Expr1085]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskHigh] as [a].[AskHigh],0) END, [Expr1086]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[AskLow] as [a].[AskLow],0) END, [Expr1087]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidHigh] as [a].[BidHigh],0) END, [Expr1088]=CASE WHEN [razor_feeds].[dbo].[eConCandles1M].[BrokerServerID] as [a].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConCandles1M].[AskClose] as [a].[AskClose]+[razor_feeds].[dbo].[eConCandles1M].[BidClose] as [a].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConCandles1M].[BidLow] as [a].[BidLow],0) END 1 0 1E-07 59 0,0032832 [Expr1085], [Expr1086], [Expr1087], [Expr1088] NULL PLAN_ROW 0 1
157 974 | |--Clustered Index Seek(OBJECT:([razor_feeds].[dbo].[eConCandles1M].[idx_eConCandles1M_CandleDateTime_PairID] AS [a]), SEEK:([a].[PairID]=[razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID] AND [a].[CandleDateTime]=#Ranges.[EndDate] as [r].[EndDate]) ORDERED FORWARD) 15 142 141 Clustered Index Seek Clustered Index Seek OBJECT:([razor_feeds].[dbo].[eConCandles1M].[idx_eConCandles1M_CandleDateTime_PairID] AS [a]), SEEK:([a].[PairID]=[razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID] AND [a].[CandleDateTime]=#Ranges.[EndDate] as [r].[EndDate]) ORDERED FORWARD [a].[BrokerServerID], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] 1 0,003125 0,0001581 65 0,0032831 [a].[BrokerServerID], [a].[AskHigh], [a].[AskLow], [a].[AskClose], [a].[BidHigh], [a].[BidLow], [a].[BidClose] NULL PLAN_ROW 0 1
0 0 |--Compute Scalar(DEFINE:([Expr1092]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1093]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1094]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1095]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END)) 15 152 140 Compute Scalar Compute Scalar DEFINE:([Expr1092]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1093]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1094]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1095]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END) [Expr1092]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskHigh] as [af].[AskHigh],0) END, [Expr1093]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[AskLow] as [af].[AskLow],0) END, [Expr1094]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidHigh] as [af].[BidHigh],0) END, [Expr1095]=CASE WHEN [razor_feeds].[dbo].[eConQuotesFlat1M].[BrokerServerID] as [af].[BrokerServerID] IS NULL THEN ([razor_feeds].[dbo].[eConQuotesFlat1M].[AskClose] as [af].[AskClose]+[razor_feeds].[dbo].[eConQuotesFlat1M].[BidClose] as [af].[BidClose])/(2.) ELSE CONVERT_IMPLICIT(decimal(21,7),[razor_feeds].[dbo].[eConQuotesFlat1M].[BidLow] as [af].[BidLow],0) END 1 0 2,084084E-07 59 0,003284501 [Expr1092], [Expr1093], [Expr1094], [Expr1095] NULL PLAN_ROW 0 1
0 974 |--Index Seek(OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlat1M_CandleDateTime] AS [af]), SEEK:([af].[CandleDateTime]=#Ranges.[EndDate] as [r].[EndDate] AND [af].[PairID]=[razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]) ORDERED FORWARD) 15 153 152 Index Seek Index Seek OBJECT:([razor_feeds].[dbo].[eConQuotesFlat1M].[idx_eConQuotesFlat1M_CandleDateTime] AS [af]), SEEK:([af].[CandleDateTime]=#Ranges.[EndDate] as [r].[EndDate] AND [af].[PairID]=[razor_feeds].[dbo].[eConPairs].[PairID] as [p].[PairID]) ORDERED FORWARD [af].[BrokerServerID], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] 2,084084 0,003125 0,0001592925 65 0,003284293 [af].[BrokerServerID], [af].[AskHigh], [af].[AskLow], [af].[AskClose], [af].[BidHigh], [af].[BidLow], [af].[BidClose] NULL PLAN_ROW 0 1
|