Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions Groups/Group Sync Information.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
ORDER BY dv.[TimeToRunDurationMilliseconds] DESC