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
4 changes: 3 additions & 1 deletion parts/22-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,7 @@ query_tool-memory-per-inputs() { ##? <tool_id> [--like]: See memory usage and in
count(jtid.id) AS input_count,
sum(d.total_size) AS total_input_size,
avg(d.total_size) AS mean_input_size,
string_agg(DISTINCT hda.extension, ',' ORDER BY hda.extension) AS extensions,
percentile_cont(0.5) WITHIN GROUP (ORDER BY d.total_size) AS median_input_size
FROM
job_cte j
Expand All @@ -1643,7 +1644,8 @@ query_tool-memory-per-inputs() { ##? <tool_id> [--like]: See memory usage and in
(m.memory_used/1024/1024)::bigint AS memory_used_mb,
(m.memory_used/NULLIF(d.total_input_size,0))::bigint AS memory_used_per_input_mb,
(m.memory_used/NULLIF(d.mean_input_size,0))::bigint AS memory_mean_input_ratio,
(m.memory_used/NULLIF(d.median_input_size,0))::bigint AS memory_median_input_ratio
(m.memory_used/NULLIF(d.median_input_size,0))::bigint AS memory_median_input_ratio,
d.extensions
FROM
job_cte j
JOIN
Expand Down