You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys_TimePadded table can be very big. I think if 6.12.2.b is moved from the UNION to a separate INSERT statement (plus extra join to exclude dates if they are already covered by existing ranges) will help us to exclude the unnesessary rows:
I.e. for the client C15480 the 2023-08-03 - 2024-01-16 period ( C15480,1,1,2023-08-03,2024-01-16 row) generated in the 6.12.2.a step already includes periods generated by ES NbN services (green rows), so green rows do not impact on the report logic but increase the sys_TimePadded table size:
What do you think?
If you like the idea, then the same approach can be applied to the sys_TimePadded_exit table.