summaryrefslogtreecommitdiff
path: root/graphs/sql/vault_cataloging/req04.sql
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
commitc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch)
tree3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /graphs/sql/vault_cataloging/req04.sql
add: graphs et rushs
Diffstat (limited to 'graphs/sql/vault_cataloging/req04.sql')
-rw-r--r--graphs/sql/vault_cataloging/req04.sql32
1 files changed, 32 insertions, 0 deletions
diff --git a/graphs/sql/vault_cataloging/req04.sql b/graphs/sql/vault_cataloging/req04.sql
new file mode 100644
index 0000000..9276b1c
--- /dev/null
+++ b/graphs/sql/vault_cataloging/req04.sql
@@ -0,0 +1,32 @@
+WITH filtered_times AS (
+ SELECT
+ COALESCE(
+ NULLIF(rsa_time,0),
+ (SELECT MAX(rsa_time) FROM dtf.madelines_files_results)
+ ) AS rsa_time,
+ COALESCE(
+ NULLIF(hyper_pulse_time,0),
+ (SELECT MAX(hyper_pulse_time) FROM dtf.madelines_files_results)
+ ) AS hyper_pulse_time,
+ COALESCE(
+ NULLIF(quantum_x_time,0),
+ (SELECT MAX(quantum_x_time) FROM dtf.madelines_files_results)
+ ) AS quantum_x_time,
+ COALESCE(
+ NULLIF(aes_time,0),
+ (SELECT MAX(aes_time) FROM dtf.madelines_files_results)
+ ) AS aes_time,
+ COALESCE(
+ NULLIF(d_crypt_time,0),
+ (SELECT MAX(d_crypt_time) FROM dtf.madelines_files_results)
+ ) AS d_crypt_time
+ FROM dtf.madelines_files_results
+)
+
+SELECT
+ AVG(rsa_time)::numeric(10,2) AS avg_rsa_time,
+ AVG(hyper_pulse_time)::numeric(10,2) AS avg_hyper_pulse_time,
+ AVG(quantum_x_time)::numeric(10,2) AS avg_quantum_x_time,
+ AVG(aes_time)::numeric(10,2) AS avg_aes_time,
+ AVG(d_crypt_time)::numeric(10,2) AS avg_d_crypt_time
+FROM filtered_times