From 999d73db81512ced9ab24f33bf544e9dfc94eb9e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 10 Sep 2022 00:53:25 -0400 Subject: [PATCH] analytics queries --- analytics/tts_inference_jobs.sql | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/analytics/tts_inference_jobs.sql b/analytics/tts_inference_jobs.sql index 2f83f1a5f8..48b67b3940 100644 --- a/analytics/tts_inference_jobs.sql +++ b/analytics/tts_inference_jobs.sql @@ -44,19 +44,28 @@ set status = 'dead' where status IN ('pending', 'started', 'attempt_failed'); -- Sample the pending inference text -select creator_ip_address, maybe_creator_user_token, raw_inference_text +select creator_ip_address, + model_token, + maybe_creator_user_token, + raw_inference_text from tts_inference_jobs where status = 'pending'; -- Sample the pending inference text (truncated) select creator_ip_address, + model_token, maybe_creator_user_token, TRIM(REPLACE(SUBSTRING(raw_inference_text, 1, 50), '\n', '')) from tts_inference_jobs -where status = 'pending'; +where status = 'pending' +limit 100; -- Sample long pending texts -select creator_ip_address, maybe_creator_user_token, raw_inference_text +select creator_ip_address, + model_token, + maybe_creator_user_token, + raw_inference_text from tts_inference_jobs where status = 'pending' -and length(raw_inference_text) > 100; +and length(raw_inference_text) > 100 +limit 100;