Skip to content

Commit

Permalink
Update (commented out, reference only) latency tracking query. (#2104)
Browse files Browse the repository at this point in the history
jcferretti authored Mar 18, 2022

Unverified

This user has not yet uploaded their public signing key.
1 parent 9fd6979 commit 8312bd4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions debezium/scripts/demo.sql
Original file line number Diff line number Diff line change
@@ -146,10 +146,13 @@ CREATE MATERIALIZED VIEW pageviews_summary AS
FROM pageview_stg;

/*
--
-- Query to use in a shell via `watch -n1 "psql -c $QUERY"`
-- to monitor latency.
--
SELECT
total,
to_timestamp(max_received_at) max_received_ts,
mz_logical_timestamp()/1000.0 AS logical_ts_ms,
mz_logical_timestamp()/1000.0 - max_received_at AS dt_ms
FROM pageviews_summary;
mz_logical_timestamp() - 1000*max_received_at AS dt_ms
FROM pageviews_summary;
*/

0 comments on commit 8312bd4

Please sign in to comment.