Skip to content

Instantly share code, notes, and snippets.

@tom-clickhouse
Created December 27, 2023 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tom-clickhouse/65e2fb5510c6b3f63221c79ba5f0d045 to your computer and use it in GitHub Desktop.
Save tom-clickhouse/65e2fb5510c6b3f63221c79ba5f0d045 to your computer and use it in GitHub Desktop.
Pending async insert buffer flushes
SELECT
DENSE_RANK() OVER(ORDER BY hostName()) AS n,
value as queries
FROM clusterAllReplicas(default, system.metrics)
WHERE metric = 'PendingAsyncInsert'
ORDER BY n;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment