diff --git a/Groups/Group Sync Information.sql b/Groups/Group Sync Information.sql index eaba466..199cd46 100644 --- a/Groups/Group Sync Information.sql +++ b/Groups/Group Sync Information.sql @@ -4,17 +4,27 @@ -- Description: Displays a list of the all the group syncs configured for the system and how long -- each data view takes to run. -- This requires Rock v11. --- Note: Time is in millseconds. +-- Note: Time is in milliseconds. -- -- Change History: --- +-- 9/17/2026 Yeşu Chum: Swapped [TimeToRunMS] for [TimeToRunDurationMilliseconds], the column shipped +-- under that name in v11.0 so the script never actually ran on a released version. Also +-- added the rest of the data view run stats and the sync's last refresh time. -- ===================================================================================================== SELECT - g.[Name] AS [Group Name], gtr.[Name] AS [Role], dv.[Name] AS [Data View], dv.[TimeToRunMS] + g.[Name] AS [Group Name] + , gtr.[Name] AS [Role] + , dv.[Name] AS [Data View] + , dv.[TimeToRunDurationMilliseconds] + , dv.[PersistedLastRunDurationMilliseconds] + , dv.[PersistedScheduleIntervalMinutes] + , dv.[LastRunDateTime] + , dv.[RunCount] + , gs.[LastRefreshDateTime] FROM [GroupSync] gs INNER JOIN [Group] g ON g.[Id] = gs.[GroupId] INNER JOIN [GroupTypeRole] gtr ON gtr.[Id] = gs.[GroupTypeRoleId] INNER JOIN [DataView] dv ON dv.[Id] = gs.[SyncDataViewId] -ORDER BY dv.[TimeToRunMS] DESC \ No newline at end of file +ORDER BY dv.[TimeToRunDurationMilliseconds] DESC