-
Global information
- Generated on Thu Oct 2 04:15:05 2025
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20251001
- Parsed 36,354 log entries in 3s
- Log start from 2025-10-01 03:10:07 to 2025-10-01 23:59:20
-
Overview
Global Stats
- 45 Number of unique normalized queries
- 86 Number of queries
- 5h58m1s Total query duration
- 2025-10-01 03:43:12 First query
- 2025-10-01 21:49:04 Last query
- 1 queries/s at 2025-10-01 10:34:34 Query peak
- 5h58m1s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 5h58m1s Execute total duration
- 3,658 Number of events
- 16 Number of unique normalized events
- 2,084 Max number of times the same event was reported
- 0 Number of cancellation
- 11 Total number of automatic vacuums
- 27 Total number of automatic analyzes
- 1,345 Number temporary file
- 43.84 GiB Max size of temporary file
- 175.48 MiB Average size of temporary file
- 1,728 Total number of sessions
- 102 sessions at 2025-10-01 14:49:11 Session peak
- 35d17h4m40s Total duration of sessions
- 29m45s Average duration of sessions
- 0 Average queries per session
- 12s431ms Average queries duration per session
- 29m33s Average idle time per session
- 1,778 Total number of connections
- 9 connections/s at 2025-10-01 16:02:27 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2025-10-01 10:34:34 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2025-10-01 16:04:36 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2025-10-01 09:42:39 Date
Queries duration
Key values
- 5h58m1s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 01 03 11 0ms 1h40s 6m3s 35s436ms 1m5s 1h52s 04 0 0ms 0ms 0ms 0ms 0ms 0ms 05 7 0ms 33s758ms 15s47ms 0ms 29s184ms 40s31ms 06 0 0ms 0ms 0ms 0ms 0ms 0ms 07 2 0ms 6s548ms 6s503ms 0ms 0ms 13s7ms 08 3 0ms 5s839ms 5s362ms 0ms 16s86ms 16s86ms 09 13 0ms 7m21s 1m5s 50s336ms 3m5s 7m40s 10 4 0ms 49m4s 12m21s 0ms 0ms 49m26s 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 4 0ms 2h8m48s 34m45s 0ms 9m4s 2h9m9s 13 8 0ms 37m9s 4m47s 8s597ms 35s33ms 37m9s 14 13 0ms 1m22s 26s269ms 23s257ms 1m8s 1m28s 15 9 0ms 35m44s 4m3s 6s238ms 10s387ms 35m44s 16 11 0ms 2m20s 32s330ms 15s112ms 2m18s 2m37s 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 1 0ms 6s572ms 6s572ms 0ms 0ms 6s572ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 01 03 2 0 31m38s 0ms 0ms 1h40s 04 0 0 0ms 0ms 0ms 0ms 05 7 0 15s47ms 0ms 0ms 31s18ms 06 0 0 0ms 0ms 0ms 0ms 07 2 0 6s503ms 0ms 0ms 0ms 08 3 0 5s362ms 0ms 0ms 16s86ms 09 3 0 3m30s 0ms 0ms 7m21s 10 0 0 0ms 0ms 0ms 0ms 11 0 0 0ms 0ms 0ms 0ms 12 4 0 34m45s 0ms 0ms 2h9m9s 13 8 0 4m47s 0ms 8s597ms 37m9s 14 13 0 26s269ms 6s226ms 23s257ms 1m28s 15 9 0 4m3s 5s129ms 6s238ms 35m44s 16 11 0 32s330ms 5s207ms 15s112ms 2m37s 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 1 0 6s572ms 0ms 0ms 6s572ms 22 0 0 0ms 0ms 0ms 0ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 01 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 01 03 0 11 11.00 0.00% 04 0 0 0.00 0.00% 05 0 6 6.00 0.00% 06 0 0 0.00 0.00% 07 0 2 2.00 0.00% 08 0 3 3.00 0.00% 09 0 13 13.00 0.00% 10 0 4 4.00 0.00% 11 0 0 0.00 0.00% 12 0 4 4.00 0.00% 13 0 1 1.00 0.00% 14 0 12 12.00 0.00% 15 0 9 9.00 0.00% 16 0 11 11.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 1 1.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Oct 01 03 73 0.02/s 04 79 0.02/s 05 122 0.03/s 06 79 0.02/s 07 123 0.03/s 08 78 0.02/s 09 76 0.02/s 10 67 0.02/s 11 76 0.02/s 12 75 0.02/s 13 83 0.02/s 14 118 0.03/s 15 78 0.02/s 16 102 0.03/s 17 81 0.02/s 18 79 0.02/s 19 78 0.02/s 20 77 0.02/s 21 80 0.02/s 22 78 0.02/s 23 76 0.02/s Day Hour Count Average Duration Average idle time Oct 01 03 63 30m18s 29m14s 04 47 29m48s 29m48s 05 122 19m47s 19m46s 06 79 30m33s 30m33s 07 115 26m43s 26m43s 08 78 29m45s 29m45s 09 75 31m2s 30m50s 10 66 28m36s 27m52s 11 76 31m6s 31m6s 12 75 32m25s 30m34s 13 81 32m23s 31m55s 14 116 22m22s 22m19s 15 78 28m 27m32s 16 103 24m3s 23m59s 17 81 31m7s 31m7s 18 79 30m55s 30m55s 19 81 44m37s 44m37s 20 79 39m38s 39m38s 21 80 30m39s 30m39s 22 78 31m20s 31m20s 23 76 31m26s 31m26s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2025-10-01 16:02:27 Date
Connections per database
Key values
- ctdprd51 Main Database
- 1,778 connections Total
Connections per user
Key values
- qaeu Main User
- 1,778 connections Total
-
Sessions
Simultaneous sessions
Key values
- 102 sessions Session Peak
- 2025-10-01 14:49:11 Date
Histogram of session times
Key values
- 1,491 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 1,728 sessions Total
Sessions per user
Key values
- qaeu Main User
- 1,728 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 1,728 sessions Total
Host Count Total Duration Average Duration 10.12.5.122 4 1h30m30s 22m37s 10.12.5.45 358 6d15h46m4s 26m46s 10.12.5.46 339 6d18h8m34s 28m41s 10.12.5.52 25 2h8m43s 5m8s 10.12.5.53 359 6d20h3m53s 27m25s 10.12.5.54 319 6d17h53m26s 30m26s 10.12.5.55 312 6d17h32m15s 31m3s 10.12.5.56 5 4h2m16s 48m27s 192.168.201.6 5 1d8h11m26s 6h26m17s ::1 2 7h47m29s 3h53m44s -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 1,678,001 buffers Checkpoint Peak
- 2025-10-01 03:55:24 Date
- 1619.928 seconds Highest write time
- 6.432 seconds Sync time
Checkpoints Wal files
Key values
- 839 files Wal files usage Peak
- 2025-10-01 10:28:49 Date
Checkpoints distance
Key values
- 24,960.01 Mo Distance Peak
- 2025-10-01 03:55:24 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Oct 01 03 2,627,717 3,544.788s 7.885s 3,561s 04 109 10.989s 0.002s 16.289s 05 144 14.622s 0.002s 20.045s 06 56 5.798s 0.002s 11.129s 07 31 1.992s 0.002s 16.845s 08 180 18.131s 0.002s 68.565s 09 1,068,872 857.649s 2.412s 932.512s 10 137,300 1,823.736s 2.977s 1,944.013s 11 440,402 1,619.391s 0.002s 1,625.134s 12 166,865 3,936.747s 0.062s 3,938.174s 13 1,136,130 3,238.838s 0.004s 3,249.921s 14 26,755 1,674.838s 0.004s 1,675.122s 15 23,083 1,639.466s 0.002s 1,639.661s 16 477 47.951s 0.002s 47.981s 17 20 2.087s 0.001s 2.103s 18 222 22.406s 0.002s 22.438s 19 235 23.719s 0.002s 23.75s 20 193 19.491s 0.002s 19.522s 21 117 11.778s 0.002s 11.809s 22 48 4.974s 0.002s 5.005s 23 158 16.009s 0.002s 16.038s Day Hour Added Removed Recycled Synced files Longest sync Average sync Oct 01 03 1 0 0 427 2.536s 0.093s 04 0 0 0 26 0.001s 0.002s 05 0 0 0 24 0.001s 0.002s 06 0 0 0 18 0.001s 0.002s 07 0 1,192 255 15 0.001s 0.002s 08 0 16,660 0 33 0.001s 0.002s 09 0 31 5,106 826 0.833s 0.173s 10 0 70 8,279 931 0.812s 0.162s 11 0 0 471 138 0.001s 0.001s 12 0 49 65 233 0.033s 0.003s 13 0 0 913 161 0.001s 0.002s 14 0 0 9 149 0.001s 0.002s 15 0 11 0 172 0.001s 0.002s 16 0 0 0 111 0.001s 0.002s 17 0 0 0 18 0.001s 0.001s 18 0 0 0 31 0.001s 0.002s 19 0 0 0 23 0.001s 0.002s 20 0 0 0 22 0.001s 0.002s 21 0 0 0 23 0.001s 0.002s 22 0 0 0 17 0.001s 0.002s 23 0 0 0 27 0.001s 0.002s Day Hour Count Avg time (sec) Oct 01 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Oct 01 03 7,386,260.40 kB 9,182,864.80 kB 04 174.00 kB 174.00 kB 05 306.00 kB 395.50 kB 06 49.00 kB 498.50 kB 07 7,661.00 kB 7,844.00 kB 08 478.00 kB 598.50 kB 09 8,014,669.18 kB 8,020,908.55 kB 10 8,817,867.13 kB 8,826,947.13 kB 11 7,979,448.00 kB 8,745,820.00 kB 12 539,340.00 kB 7,234,430.00 kB 13 7,734,673.00 kB 8,702,427.00 kB 14 76,347.50 kB 7,363,027.50 kB 15 88,817.50 kB 5,980,990.00 kB 16 741.00 kB 4,844,772.50 kB 17 67.00 kB 4,130,839.00 kB 18 604.00 kB 3,531,979.50 kB 19 896.00 kB 2,860,997.50 kB 20 711.50 kB 2,317,620.50 kB 21 315.50 kB 1,877,308.00 kB 22 88.50 kB 1,520,657.00 kB 23 343.00 kB 1,231,792.50 kB -
Temporary Files
Size of temporary files
Key values
- 15.00 GiB Temp Files size Peak
- 2025-10-01 16:26:06 Date
Number of temporary files
Key values
- 24 per second Temp Files Peak
- 2025-10-01 09:48:43 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Oct 01 03 280 12.45 GiB 45.55 MiB 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 451 28.99 GiB 65.82 MiB 10 561 136.62 GiB 249.37 MiB 11 0 0 0 12 0 0 0 13 9 8.60 GiB 978.15 MiB 14 0 0 0 15 0 0 0 16 44 43.84 GiB 1020.23 MiB 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 1,130 173.83 GiB 136.00 KiB 1.00 GiB 157.52 MiB vacuum full analyze;-
VACUUM FULL ANALYZE;
Date: 2025-10-01 10:34:11 Duration: 49m4s
-
VACUUM FULL ANALYZE;
Date: 2025-10-01 03:49:14 Duration: 0ms
2 122 2.76 GiB 7.29 MiB 1.00 GiB 23.19 MiB cluster pub1.term;-
CLUSTER pub1.TERM;
Date: 2025-10-01 03:48:32 Duration: 1m5s
-
CLUSTER pub1.TERM;
Date: 2025-10-01 09:44:27 Duration: 1m
-
CLUSTER pub1.TERM;
Date: 2025-10-01 03:47:38 Duration: 0ms
3 40 1.47 GiB 21.59 MiB 65.19 MiB 37.69 MiB cluster pub1.term_label;-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:49:11 Duration: 39s527ms
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 09:45:05 Duration: 38s115ms
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:48:39 Duration: 0ms
4 9 8.60 GiB 611.31 MiB 1.00 GiB 978.15 MiB select pub1.maint_cached_value_refresh_data_metrics ();-
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:30:46 Duration: 37m9s
-
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:26:11 Duration: 0ms
Queries generating the largest temporary files
Rank Size Query 1 1.00 GiB CLUSTER pub1.TERM;[ Date: 2025-10-01 03:47:38 ]
2 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 09:58:52 ]
3 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 09:58:52 ]
4 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 09:58:52 ]
5 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 09:58:52 ]
6 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 09:58:52 ]
7 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
8 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
9 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
10 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
11 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
12 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
13 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
14 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:25 ]
15 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:26 ]
16 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:02:26 ]
17 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:03:16 ]
18 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:03:16 ]
19 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:03:16 ]
20 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:03:16 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 101.23 sec Highest CPU-cost vacuum
Table pub1.term
Database ctdprd51 - 2025-10-01 12:56:31 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 101.23 sec Highest CPU-cost vacuum
Table pub1.term
Database ctdprd51 - 2025-10-01 12:56:31 Date
Analyzes per table
Key values
- pubc.log_query (14) Main table analyzed (database ctdprd51)
- 27 analyzes Total
Table Number of analyzes ctdprd51.pubc.log_query 14 ctdprd51.pub1.term_set_enrichment_agent 2 ctdprd51.pg_catalog.pg_class 2 ctdprd51.pub1.term_set_enrichment 2 ctdprd51.pub1.term_comp_agent 1 ctdprd51.pub1.reference 1 ctdprd51.pub1.term_comp 1 ctdprd51.pg_catalog.pg_type 1 ctdprd51.pg_catalog.pg_attribute 1 ctdprd51.pub1.term 1 ctdprd51.pub1.phenotype_term 1 Total 27 Vacuums per table
Key values
- pg_toast.pg_toast_2619 (2) Main table vacuumed on database ctdprd51
- 11 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pg_toast.pg_toast_2619 2 2 9,065 0 3,102 0 20,082 6,945 1,778 1,046,962 ctdprd51.pub1.phenotype_term 1 1 787,251 0 101,559 0 0 639,024 51,612 178,486,671 ctdprd51.pub1.term_set_enrichment 1 0 598 0 4 0 0 248 2 27,571 ctdprd51.pub1.term 1 1 1,047,879 0 289,422 0 66 509,024 282,189 1,295,936,118 ctdprd51.pg_catalog.pg_attribute 1 1 583 0 94 0 37 249 104 520,127 ctdprd51.pubc.log_query 1 1 342 0 140 0 0 214 69 329,393 ctdprd51.pg_catalog.pg_class 1 1 287 0 55 0 28 172 59 297,319 ctdprd51.pub1.term_set_enrichment_agent 1 0 11,516 0 3 0 0 5,741 1 347,138 ctdprd51.pub1.reference 1 1 365,234 0 6 0 0 212,637 52,484 218,336,137 ctdprd51.pub1.term_comp_agent 1 0 143 0 3 0 0 45 1 11,074 Total 11 8 2,222,898 28,258 394,388 0 20,213 1,374,299 388,299 1,695,338,510 Tuples removed per table
Key values
- pub1.phenotype_term (17585345) Main table with removed tuples on database ctdprd51
- 17593531 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctdprd51.pub1.phenotype_term 1 1 17,585,345 3,512,947 0 0 197,181 ctdprd51.pg_toast.pg_toast_2619 2 2 7,579 43,388 42 0 25,184 ctdprd51.pg_catalog.pg_attribute 1 1 394 8,743 0 0 230 ctdprd51.pubc.log_query 1 1 119 1,465 0 0 92 ctdprd51.pg_catalog.pg_class 1 1 94 2,419 0 0 94 ctdprd51.pub1.term_set_enrichment 1 0 0 14,891 0 0 247 ctdprd51.pub1.term 1 1 0 2,126,109 0 0 237,591 ctdprd51.pub1.term_set_enrichment_agent 1 0 0 505,087 0 0 5,740 ctdprd51.pub1.reference 1 1 0 200,977 0 0 87,644 ctdprd51.pub1.term_comp_agent 1 0 0 4,510 0 0 44 Total 11 8 17,593,531 6,420,536 42 0 554,047 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed ctdprd51.pg_toast.pg_toast_2619 2 2 7579 0 ctdprd51.pub1.phenotype_term 1 1 17585345 0 ctdprd51.pub1.term_set_enrichment 1 0 0 0 ctdprd51.pub1.term 1 1 0 0 ctdprd51.pg_catalog.pg_attribute 1 1 394 0 ctdprd51.pubc.log_query 1 1 119 0 ctdprd51.pg_catalog.pg_class 1 1 94 0 ctdprd51.pub1.term_set_enrichment_agent 1 0 0 0 ctdprd51.pub1.reference 1 1 0 0 ctdprd51.pub1.term_comp_agent 1 0 0 0 Total 11 8 17,593,531 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Oct 01 03 1 2 04 0 1 05 0 4 06 0 0 07 0 1 08 0 2 09 0 0 10 3 4 11 0 0 12 3 3 13 0 1 14 4 7 15 0 0 16 0 1 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 1 - 101.23 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 63 Total read queries
- 6 Total write queries
Queries by database
Key values
- unknown Main database
- 48 Requests
- 5h8m11s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 48 Requests
User Request type Count Duration load Total 1 8s597ms select 1 8s597ms pub1 Total 3 25s291ms others 1 12s367ms select 2 12s924ms pub2 Total 1 21s26ms select 1 21s26ms pubc Total 1 10s678ms select 1 10s678ms pubeu Total 7 1m11s select 7 1m11s qaeu Total 25 47m32s select 25 47m32s unknown Total 48 5h8m11s ddl 6 2m3s others 16 54m8s select 26 4h12m Duration by user
Key values
- 5h8m11s (unknown) Main time consuming user
User Request type Count Duration load Total 1 8s597ms select 1 8s597ms pub1 Total 3 25s291ms others 1 12s367ms select 2 12s924ms pub2 Total 1 21s26ms select 1 21s26ms pubc Total 1 10s678ms select 1 10s678ms pubeu Total 7 1m11s select 7 1m11s qaeu Total 25 47m32s select 25 47m32s unknown Total 48 5h8m11s ddl 6 2m3s others 16 54m8s select 26 4h12m Queries by host
Key values
- unknown Main host
- 86 Requests
- 5h58m1s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 81 Requests
- 5h57m8s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-10-01 17:33:27 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 46 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 2h8m48s select pub1.maint_term_derive_data ();[ Date: 2025-10-01 12:43:23 - Bind query: yes ]
2 1h40s SELECT maint_term_derive_nm_fts ();[ Date: 2025-10-01 03:43:12 - Bind query: yes ]
3 49m4s VACUUM FULL ANALYZE;[ Date: 2025-10-01 10:34:11 - Bind query: yes ]
4 37m9s select pub1.maint_cached_value_refresh_data_metrics ();[ Date: 2025-10-01 13:30:46 - Bind query: yes ]
5 35m44s SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;[ Date: 2025-10-01 15:20:38 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
6 9m4s select pub1.maint_phenotype_term_derive_data ();[ Date: 2025-10-01 12:53:37 - Bind query: yes ]
7 7m21s SELECT maint_term_derive_nm_fts ();[ Date: 2025-10-01 09:38:32 - Bind query: yes ]
8 3m5s SELECT maint_term_label_derive_nm_fts ();[ Date: 2025-10-01 09:41:57 - Bind query: yes ]
9 2m36s SELECT maint_term_label_derive_nm_fts ();[ Date: 2025-10-01 03:46:00 - Bind query: yes ]
10 2m20s SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;[ Date: 2025-10-01 16:32:04 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
11 2m18s SELECT /* AllCuratedChemPhenoIxnsDAO */ chemTerm.nm ChemicalName, chemTerm.acc_txt ChemicalID, chemTerm.secondary_nm CasRN, phenoTerm.nm PhenotypeName, phenoTerm.acc_txt PhenotypeID, ( SELECT STRING_AGG(distinct coMentionTerm.nm || '^' || coMentionTerm.acc_txt || '^' || coMentionTerm.acc_db_cd, '|')) as coMentionedTerms, taxonTerm.nm Organism, taxonTerm.acc_txt OrganismID, i.ixn_prose_txt Interaction, i.actions_txt InteractionActions, ( SELECT STRING_AGG(distinct ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt, '|' ORDER BY ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt)) as anatomyTerms, STRING_AGG(distinct inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd, '|' ORDER BY inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd) InferenceGeneSymbols, STRING_AGG(distinct r.acc_txt, '|' ORDER BY r.acc_txt) PubMedIDs, ptr.ixn_id ignorecolumnIxnId FROM phenotype_term_reference ptr LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN term phenoTerm ON ptr.phenotype_id = phenoTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN term chemTerm ON ptr.term_id = chemTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id LEFT OUTER JOIN phenotype_term_reference ptr2 ON ptr.ixn_id = ptr2.ixn_id and (ptr.term_id <> ptr2.term_id or ptr.phenotype_id <> ptr2.phenotype_id) LEFT OUTER JOIN phenotype_term_reference ptr3 ON ptr.term_id = ptr3.term_id and (ptr.phenotype_id = ptr3.phenotype_id and ptr3.source_cd = 'I') LEFT OUTER JOIN term coMentionTerm ON coMentionTerm.id = ptr2.term_id LEFT OUTER JOIN term inferredTerm ON inferredTerm.id = ptr3.via_term_id WHERE ptr.source_cd = 'C' AND ptr.term_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') GROUP BY chemTerm.nm, chemTerm.acc_txt, chemTerm.secondary_nm, phenoTerm.nm, phenoTerm.acc_txt, taxonTerm.nm, taxonTerm.acc_txt, i.ixn_prose_txt, i.actions_txt, ptr.ixn_id ORDER BY chemTerm.nm, phenoTerm.nm;[ Date: 2025-10-01 16:29:02 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
12 1m22s SELECT /* AllCDRelationsDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", a.action_type_nm "DirectEvidence", g.nm "InferenceGeneSymbol", cdr.network_score "InferenceScore", STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-10-01 14:37:44 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
13 1m5s CLUSTER pub1.TERM;[ Date: 2025-10-01 03:48:32 - Bind query: yes ]
14 1m CLUSTER pub1.TERM;[ Date: 2025-10-01 09:44:27 - Bind query: yes ]
15 49s265ms SELECT /* NCBILinkOutDAO */ CAST(XMLELEMENT(name "Link", XMLELEMENT(name "LinkId", g.acc_txt), XMLELEMENT(name "ProviderId", '7845'), XMLELEMENT(name "ObjectSelector", XMLELEMENT(name "Database", 'Gene'), XMLELEMENT(name "ObjectList", ( SELECT XMLAGG(XMLFOREST(l.acc_txt AS "ObjId")) FROM db_link l WHERE l.object_type_id = g.object_type_id AND l.object_id = g.id AND l.type_cd = 'A'))), XMLELEMENT(name "ObjectUrl", XMLELEMENT(name "Base", 'http://ctdbase.org/detail.go?'), XMLELEMENT(name "Rule", 'type=gene&acc=' || g.acc_txt), XMLELEMENT(name "UrlName", 'CTD: Comparative Toxicogenomics Database - ' || g.nm))) AS TEXT) linkxml FROM term g WHERE g.object_type_id = get_object_type_id ('gene') ORDER BY g.acc_txt::int;[ Date: 2025-10-01 14:26:10 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
16 48s710ms select pub1.maint_reference_derive_flags ();[ Date: 2025-10-01 12:44:32 - Bind query: yes ]
17 44s81ms SELECT /* AllChemGOEnrichedDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "Ontology", gt.nm "GOTermName", gt.acc_txt "GOTermID", gt.level_min_no "HighestGOLevel", LTRIM(TO_CHAR(te.raw_p_val, '9.99EEEE')) "PValue", LTRIM(TO_CHAR(te.corrected_p_val, '9.99EEEE')) "CorrectedPValue", te.target_match_qty "TargetMatchQty", te.target_total_qty "TargetTotalQty", te.background_match_qty "BackgroundMatchQty", te.background_total_qty "BackgroundTotalQty" FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id INNER JOIN term c ON te.term_id = c.id WHERE te.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') AND te.enriched_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'go') ORDER BY c.nm_sort, d.nm, gt.nm_sort;[ Date: 2025-10-01 14:30:47 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
18 40s186ms SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;[ Date: 2025-10-01 14:28:11 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
19 39s527ms CLUSTER pub1.TERM_LABEL;[ Date: 2025-10-01 03:49:11 - Bind query: yes ]
20 38s115ms CLUSTER pub1.TERM_LABEL;[ Date: 2025-10-01 09:45:05 - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2h8m48s 1 2h8m48s 2h8m48s 2h8m48s select pub1.maint_term_derive_data ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 01 12 1 2h8m48s 2h8m48s -
select pub1.maint_term_derive_data ();
Date: 2025-10-01 12:43:23 Duration: 2h8m48s Bind query: yes
2 1h8m1s 2 7m21s 1h40s 34m select maint_term_derive_nm_fts ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 01 03 1 1h40s 1h40s 09 1 7m21s 7m21s -
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 03:43:12 Duration: 1h40s Bind query: yes
-
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 09:38:32 Duration: 7m21s Bind query: yes
3 49m4s 1 49m4s 49m4s 49m4s vacuum full analyze;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 01 10 1 49m4s 49m4s -
VACUUM FULL ANALYZE;
Date: 2025-10-01 10:34:11 Duration: 49m4s Bind query: yes
-
VACUUM FULL ANALYZE;
Date: 2025-10-01 03:49:14 Duration: 0ms
4 37m9s 1 37m9s 37m9s 37m9s select pub1.maint_cached_value_refresh_data_metrics ();Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 01 13 1 37m9s 37m9s -
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:30:46 Duration: 37m9s Bind query: yes
-
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:26:11 Duration: 0ms
5 36m21s 8 5s101ms 35m44s 4m32s select g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(r.acc_txt, ? order by r.acc_txt) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id group by g.nm, g.acc_txt, d.nm, d.acc_db_cd || ? || d.acc_txt, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by g.nm, d.nm;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 01 15 8 36m21s 4m32s [ User: qaeu - Total duration: 35m44s - Times executed: 1 ]
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:20:38 Duration: 35m44s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:41:05 Duration: 5s451ms Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:34:17 Duration: 5s285ms Bind query: yes
6 9m4s 1 9m4s 9m4s 9m4s select pub1.maint_phenotype_term_derive_data ();Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 01 12 1 9m4s 9m4s -
select pub1.maint_phenotype_term_derive_data ();
Date: 2025-10-01 12:53:37 Duration: 9m4s Bind query: yes
7 5m42s 2 2m36s 3m5s 2m51s select maint_term_label_derive_nm_fts ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 01 03 1 2m36s 2m36s 09 1 3m5s 3m5s -
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 09:41:57 Duration: 3m5s Bind query: yes
-
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 03:46:00 Duration: 2m36s Bind query: yes
8 2m50s 5 5s95ms 2m20s 34s161ms select phenotypeterm.nm "GOName", phenotypeterm.acc_txt "GOID", diseaseterm.nm "DiseaseName", diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( select string_agg(distinct chemtermnetwork.nm, ?)) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( select string_agg(distinct genetermnetwork.nm, ?)) "InferenceGeneSymbols" from phenotype_term_reference ptr inner join phenotype_term pt on ptr.phenotype_id = pt.phenotype_id and ptr.term_id = pt.term_id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join term diseaseterm on ptr.term_id = diseaseterm.id and diseaseterm.object_type_id = ( select id from object_type where cd = ?) left outer join term genetermnetwork on ptr.via_term_id = genetermnetwork.id and genetermnetwork.object_type_id = ( select id from object_type where cd = ?) left outer join term chemtermnetwork on ptr.via_term_id = chemtermnetwork.id and chemtermnetwork.object_type_id = ( select id from object_type where cd = ?) where phenotypeterm.id in ( select dp.descendant_dag_node_id from dag_path dp where dp.ancestor_object_id = ( select id from term where nm = ?)) and ptr.source_cd = ? and ptr.phenotype_id = phenotypeterm.id and ptr.term_id = diseaseterm.id group by phenotypeterm.nm, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 01 16 5 2m50s 34s161ms [ User: qaeu - Total duration: 2m32s - Times executed: 2 ]
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:04 Duration: 2m20s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'molecular_function')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:34:01 Duration: 12s935ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:17 Duration: 6s581ms Bind query: yes
9 2m18s 1 2m18s 2m18s 2m18s select chemterm.nm chemicalname, chemterm.acc_txt chemicalid, chemterm.secondary_nm casrn, phenoterm.nm phenotypename, phenoterm.acc_txt phenotypeid, ( select string_agg(distinct comentionterm.nm || ? || comentionterm.acc_txt || ? || comentionterm.acc_db_cd, ?)) as comentionedterms, taxonterm.nm organism, taxonterm.acc_txt organismid, i.ixn_prose_txt interaction, i.actions_txt interactionactions, ( select string_agg(distinct ia.level_seq + ? || ? || anatomyterm.nm || ? || anatomyterm.acc_txt, ? order by ia.level_seq + ? || ? || anatomyterm.nm || ? || anatomyterm.acc_txt)) as anatomyterms, string_agg(distinct inferredterm.nm || ? || inferredterm.acc_txt || ? || inferredterm.acc_db_cd, ? order by inferredterm.nm || ? || inferredterm.acc_txt || ? || inferredterm.acc_db_cd) inferencegenesymbols, string_agg(distinct r.acc_txt, ? order by r.acc_txt) pubmedids, ptr.ixn_id ignorecolumnixnid from phenotype_term_reference ptr left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join ixn i on ptr.ixn_id = i.id inner join term phenoterm on ptr.phenotype_id = phenoterm.id inner join reference r on ptr.reference_id = r.id inner join term chemterm on ptr.term_id = chemterm.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id left outer join phenotype_term_reference ptr2 on ptr.ixn_id = ptr2.ixn_id and (ptr.term_id <> ptr2.term_id or ptr.phenotype_id <> ptr2.phenotype_id) left outer join phenotype_term_reference ptr3 on ptr.term_id = ptr3.term_id and (ptr.phenotype_id = ptr3.phenotype_id and ptr3.source_cd = ?) left outer join term comentionterm on comentionterm.id = ptr2.term_id left outer join term inferredterm on inferredterm.id = ptr3.via_term_id where ptr.source_cd = ? and ptr.term_object_type_id = ( select ot.id from object_type ot where ot.cd = ?) group by chemterm.nm, chemterm.acc_txt, chemterm.secondary_nm, phenoterm.nm, phenoterm.acc_txt, taxonterm.nm, taxonterm.acc_txt, i.ixn_prose_txt, i.actions_txt, ptr.ixn_id order by chemterm.nm, phenoterm.nm;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 01 16 1 2m18s 2m18s [ User: qaeu - Total duration: 2m18s - Times executed: 1 ]
-
SELECT /* AllCuratedChemPhenoIxnsDAO */ chemTerm.nm ChemicalName, chemTerm.acc_txt ChemicalID, chemTerm.secondary_nm CasRN, phenoTerm.nm PhenotypeName, phenoTerm.acc_txt PhenotypeID, ( SELECT STRING_AGG(distinct coMentionTerm.nm || '^' || coMentionTerm.acc_txt || '^' || coMentionTerm.acc_db_cd, '|')) as coMentionedTerms, taxonTerm.nm Organism, taxonTerm.acc_txt OrganismID, i.ixn_prose_txt Interaction, i.actions_txt InteractionActions, ( SELECT STRING_AGG(distinct ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt, '|' ORDER BY ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt)) as anatomyTerms, STRING_AGG(distinct inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd, '|' ORDER BY inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd) InferenceGeneSymbols, STRING_AGG(distinct r.acc_txt, '|' ORDER BY r.acc_txt) PubMedIDs, ptr.ixn_id ignorecolumnIxnId FROM phenotype_term_reference ptr LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN term phenoTerm ON ptr.phenotype_id = phenoTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN term chemTerm ON ptr.term_id = chemTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id LEFT OUTER JOIN phenotype_term_reference ptr2 ON ptr.ixn_id = ptr2.ixn_id and (ptr.term_id <> ptr2.term_id or ptr.phenotype_id <> ptr2.phenotype_id) LEFT OUTER JOIN phenotype_term_reference ptr3 ON ptr.term_id = ptr3.term_id and (ptr.phenotype_id = ptr3.phenotype_id and ptr3.source_cd = 'I') LEFT OUTER JOIN term coMentionTerm ON coMentionTerm.id = ptr2.term_id LEFT OUTER JOIN term inferredTerm ON inferredTerm.id = ptr3.via_term_id WHERE ptr.source_cd = 'C' AND ptr.term_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') GROUP BY chemTerm.nm, chemTerm.acc_txt, chemTerm.secondary_nm, phenoTerm.nm, phenoTerm.acc_txt, taxonTerm.nm, taxonTerm.acc_txt, i.ixn_prose_txt, i.actions_txt, ptr.ixn_id ORDER BY chemTerm.nm, phenoTerm.nm;
Date: 2025-10-01 16:29:02 Duration: 2m18s Database: ctdprd51 User: qaeu Bind query: yes
10 2m5s 2 1m 1m5s 1m2s cluster pub1.term;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 01 03 1 1m5s 1m5s 09 1 1m 1m -
CLUSTER pub1.TERM;
Date: 2025-10-01 03:48:32 Duration: 1m5s Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 09:44:27 Duration: 1m Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 03:47:38 Duration: 0ms
11 1m22s 1 1m22s 1m22s 1m22s select c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", a.action_type_nm "DirectEvidence", g.nm "InferenceGeneSymbol", cdr.network_score "InferenceScore", string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) "OmimIDs", string_agg(r.acc_txt, ? order by r.acc_txt) "PubMedIDs" from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score order by c.nm_sort, d.nm;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 01 14 1 1m22s 1m22s [ User: qaeu - Total duration: 1m22s - Times executed: 1 ]
-
SELECT /* AllCDRelationsDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", a.action_type_nm "DirectEvidence", g.nm "InferenceGeneSymbol", cdr.network_score "InferenceScore", STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-10-01 14:37:44 Duration: 1m22s Database: ctdprd51 User: qaeu Bind query: yes
12 1m17s 2 38s115ms 39s527ms 38s821ms cluster pub1.term_label;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 01 03 1 39s527ms 39s527ms 09 1 38s115ms 38s115ms -
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:49:11 Duration: 39s527ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 09:45:05 Duration: 38s115ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:48:39 Duration: 0ms
13 1m7s 2 32s913ms 34s157ms 33s535ms create index ftsix_term_nm on pub1.term using gin (nm_fts);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 01 03 1 34s157ms 34s157ms 09 1 32s913ms 32s913ms -
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 03:46:40 Duration: 34s157ms Bind query: yes
-
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 09:42:39 Duration: 32s913ms Bind query: yes
14 55s414ms 5 8s6ms 19s605ms 11s82ms vacuum analyze pub1.term;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 01 03 2 19s391ms 9s695ms 09 2 27s687ms 13s843ms 10 1 8s336ms 8s336ms -
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 09:38:51 Duration: 19s605ms Bind query: yes
-
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 03:43:23 Duration: 11s384ms Bind query: yes
-
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 10:34:19 Duration: 8s336ms Bind query: yes
15 51s381ms 2 11s195ms 40s186ms 25s690ms select t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( select string_agg(distinct l.acc_txt, ? order by l.acc_txt) from db_link l where l.object_type_id = t.object_type_id and l.object_id = t.id and l.type_cd = ? and l.is_primary = false) "AltGeneIDs", ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = t.id and tlt.nm = ?) "Synonyms", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "BioGRIDIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "PharmGKBIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "UniProtIDs" from term t where t.object_type_id = ( select ot.id from object_type ot where ot.cd = ?) order by t.nm_sort;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 01 14 2 51s381ms 25s690ms [ User: qaeu - Total duration: 40s186ms - Times executed: 1 ]
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:11 Duration: 40s186ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:34 Duration: 11s195ms Bind query: yes
16 49s265ms 1 49s265ms 49s265ms 49s265ms select cast(xmlelement(name "Link", xmlelement(name "LinkId", g.acc_txt), xmlelement(name "ProviderId", ?), xmlelement(name "ObjectSelector", xmlelement(name "Database", ?), xmlelement(name "ObjectList", ( select xmlagg(xmlforest(l.acc_txt AS "ObjId")) from db_link l where l.object_type_id = g.object_type_id and l.object_id = g.id and l.type_cd = ?))), xmlelement(name "ObjectUrl", xmlelement(name "Base", ?), xmlelement(name "Rule", ? || g.acc_txt), xmlelement(name "UrlName", ? || g.nm))) as text) linkxml from term g where g.object_type_id = get_object_type_id (?) order by g.acc_txt::int;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 01 14 1 49s265ms 49s265ms [ User: qaeu - Total duration: 49s265ms - Times executed: 1 ]
-
SELECT /* NCBILinkOutDAO */ CAST(XMLELEMENT(name "Link", XMLELEMENT(name "LinkId", g.acc_txt), XMLELEMENT(name "ProviderId", '7845'), XMLELEMENT(name "ObjectSelector", XMLELEMENT(name "Database", 'Gene'), XMLELEMENT(name "ObjectList", ( SELECT XMLAGG(XMLFOREST(l.acc_txt AS "ObjId")) FROM db_link l WHERE l.object_type_id = g.object_type_id AND l.object_id = g.id AND l.type_cd = 'A'))), XMLELEMENT(name "ObjectUrl", XMLELEMENT(name "Base", 'http://ctdbase.org/detail.go?'), XMLELEMENT(name "Rule", 'type=gene&acc=' || g.acc_txt), XMLELEMENT(name "UrlName", 'CTD: Comparative Toxicogenomics Database - ' || g.nm))) AS TEXT) linkxml FROM term g WHERE g.object_type_id = get_object_type_id ('gene') ORDER BY g.acc_txt::int;
Date: 2025-10-01 14:26:10 Duration: 49s265ms Database: ctdprd51 User: qaeu Bind query: yes
17 48s710ms 1 48s710ms 48s710ms 48s710ms select pub1.maint_reference_derive_flags ();Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 01 12 1 48s710ms 48s710ms -
select pub1.maint_reference_derive_flags ();
Date: 2025-10-01 12:44:32 Duration: 48s710ms Bind query: yes
18 44s81ms 1 44s81ms 44s81ms 44s81ms select c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "Ontology", gt.nm "GOTermName", gt.acc_txt "GOTermID", gt.level_min_no "HighestGOLevel", ltrim(to_char(te.raw_p_val, ?)) "PValue", ltrim(to_char(te.corrected_p_val, ?)) "CorrectedPValue", te.target_match_qty "TargetMatchQty", te.target_total_qty "TargetTotalQty", te.background_match_qty "BackgroundMatchQty", te.background_total_qty "BackgroundTotalQty" from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id inner join term c on te.term_id = c.id where te.object_type_id = ( select ot.id from object_type ot where ot.cd = ?) and te.enriched_object_type_id = ( select ot.id from object_type ot where ot.cd = ?) order by c.nm_sort, d.nm, gt.nm_sort;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 01 14 1 44s81ms 44s81ms [ User: qaeu - Total duration: 44s81ms - Times executed: 1 ]
-
SELECT /* AllChemGOEnrichedDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "Ontology", gt.nm "GOTermName", gt.acc_txt "GOTermID", gt.level_min_no "HighestGOLevel", LTRIM(TO_CHAR(te.raw_p_val, '9.99EEEE')) "PValue", LTRIM(TO_CHAR(te.corrected_p_val, '9.99EEEE')) "CorrectedPValue", te.target_match_qty "TargetMatchQty", te.target_total_qty "TargetTotalQty", te.background_match_qty "BackgroundMatchQty", te.background_total_qty "BackgroundTotalQty" FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id INNER JOIN term c ON te.term_id = c.id WHERE te.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') AND te.enriched_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'go') ORDER BY c.nm_sort, d.nm, gt.nm_sort;
Date: 2025-10-01 14:30:47 Duration: 44s81ms Database: ctdprd51 User: qaeu Bind query: yes
19 37s312ms 2 18s266ms 19s45ms 18s656ms create index ftsix_term_label_nm on pub1.term_label using gin (nm_fts);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 01 03 1 18s266ms 18s266ms 09 1 19s45ms 19s45ms -
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 09:43:06 Duration: 19s45ms Bind query: yes
-
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 03:47:07 Duration: 18s266ms Bind query: yes
20 37s176ms 1 37s176ms 37s176ms 37s176ms select ? || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( select to_char(cv.value_tm, ?) from cached_value cv where cv.type_nm = ? and cv.key_nm = ?) "lastmod", trim(to_char(i.priority, ?)) "priority" from ( select ? || ot.cd loc, ? changefreq, ?.? priority from object_type ot where ot.cd in (...) union all select ? || ot.cd, ?, ?.? from object_type ot where ot.cd in (...) union all select url, changefreq, priority from sitemap_url union all select ? || ot.cd || ? || t.acc_db_cd || ? || t.acc_txt "loc", ?, case when (t.has_chems or t.has_diseases or t.has_genes or t.has_go or t.has_ixns or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd in (...) and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_chems or t.has_ixns or t.has_genes or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_genes or t.has_ixns or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_phenotypes or t.has_references or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_references or t.has_phenotypes or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || r.acc_txt, ?, case when (r.has_diseases or r.has_ixns or r.has_phenotypes or r.has_exposures or r.has_gene_gene_ixns) then ?.? else ?.? end from reference r) i order by ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 01 14 1 37s176ms 37s176ms [ User: pubeu - Total duration: 37s176ms - Times executed: 1 ]
-
SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;
Date: 2025-10-01 14:28:18 Duration: 37s176ms Database: ctdprd51 User: pubeu
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 8 36m21s 5s101ms 35m44s 4m32s select g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(r.acc_txt, ? order by r.acc_txt) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id group by g.nm, g.acc_txt, d.nm, d.acc_db_cd || ? || d.acc_txt, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by g.nm, d.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 01 15 8 36m21s 4m32s [ User: qaeu - Total duration: 35m44s - Times executed: 1 ]
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:20:38 Duration: 35m44s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:41:05 Duration: 5s451ms Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:34:17 Duration: 5s285ms Bind query: yes
2 5 2m50s 5s95ms 2m20s 34s161ms select phenotypeterm.nm "GOName", phenotypeterm.acc_txt "GOID", diseaseterm.nm "DiseaseName", diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( select string_agg(distinct chemtermnetwork.nm, ?)) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( select string_agg(distinct genetermnetwork.nm, ?)) "InferenceGeneSymbols" from phenotype_term_reference ptr inner join phenotype_term pt on ptr.phenotype_id = pt.phenotype_id and ptr.term_id = pt.term_id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join term diseaseterm on ptr.term_id = diseaseterm.id and diseaseterm.object_type_id = ( select id from object_type where cd = ?) left outer join term genetermnetwork on ptr.via_term_id = genetermnetwork.id and genetermnetwork.object_type_id = ( select id from object_type where cd = ?) left outer join term chemtermnetwork on ptr.via_term_id = chemtermnetwork.id and chemtermnetwork.object_type_id = ( select id from object_type where cd = ?) where phenotypeterm.id in ( select dp.descendant_dag_node_id from dag_path dp where dp.ancestor_object_id = ( select id from term where nm = ?)) and ptr.source_cd = ? and ptr.phenotype_id = phenotypeterm.id and ptr.term_id = diseaseterm.id group by phenotypeterm.nm, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 01 16 5 2m50s 34s161ms [ User: qaeu - Total duration: 2m32s - Times executed: 2 ]
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:04 Duration: 2m20s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'molecular_function')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:34:01 Duration: 12s935ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:17 Duration: 6s581ms Bind query: yes
3 5 55s414ms 8s6ms 19s605ms 11s82ms vacuum analyze pub1.term;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 01 03 2 19s391ms 9s695ms 09 2 27s687ms 13s843ms 10 1 8s336ms 8s336ms -
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 09:38:51 Duration: 19s605ms Bind query: yes
-
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 03:43:23 Duration: 11s384ms Bind query: yes
-
VACUUM ANALYZE pub1.TERM;
Date: 2025-10-01 10:34:19 Duration: 8s336ms Bind query: yes
4 5 32s88ms 6s238ms 6s548ms 6s417ms select p.ancestor_object_id, p.descendant_object_id from dag_path p where p.descendant_object_id in ( select go_term_id from gene_go_annot gga where gga.taxon_id = ( select id from term where acc_txt = ? and object_type_id = ( select id from object_type where cd = ?)) and gga.is_not = ?) and p.ancestor_object_id not in ( select c.id from term c where c.acc_txt in (...) and c.object_type_id = ( select id from object_type where cd = ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 01 07 2 13s7ms 6s503ms 14 1 6s542ms 6s542ms 15 1 6s238ms 6s238ms 16 1 6s298ms 6s298ms [ User: qaeu - Total duration: 25s539ms - Times executed: 4 ]
[ User: pubeu - Total duration: 6s548ms - Times executed: 1 ]
-
select p.ancestor_object_id, p.descendant_object_id from DAG_PATH p where p.descendant_object_id in ( select go_term_id from GENE_GO_ANNOT gga where gga.taxon_id = ( select id from TERM where acc_txt = '9606' and object_type_id = ( select id from OBJECT_TYPE where cd = 'taxon')) AND gga.is_not = 'f') and p.ancestor_object_id NOT in ( SELECT c.id FROM TERM c WHERE c.acc_txt in ('ALL') AND c.object_type_id = ( select id from OBJECT_TYPE where cd = 'go'));
Date: 2025-10-01 07:57:14 Duration: 6s548ms Database: ctdprd51 User: pubeu Bind query: yes
-
select p.ancestor_object_id, p.descendant_object_id from DAG_PATH p where p.descendant_object_id in ( select go_term_id from GENE_GO_ANNOT gga where gga.taxon_id = ( select id from TERM where acc_txt = '9606' and object_type_id = ( select id from OBJECT_TYPE where cd = 'taxon')) AND gga.is_not = 'f') and p.ancestor_object_id NOT in ( SELECT c.id FROM TERM c WHERE c.acc_txt in ('ALL') AND c.object_type_id = ( select id from OBJECT_TYPE where cd = 'go'));
Date: 2025-10-01 14:12:55 Duration: 6s542ms Database: ctdprd51 User: qaeu Bind query: yes
-
select p.ancestor_object_id, p.descendant_object_id from DAG_PATH p where p.descendant_object_id in ( select go_term_id from GENE_GO_ANNOT gga where gga.taxon_id = ( select id from TERM where acc_txt = '9606' and object_type_id = ( select id from OBJECT_TYPE where cd = 'taxon')) AND gga.is_not = 'f') and p.ancestor_object_id NOT in ( SELECT c.id FROM TERM c WHERE c.acc_txt in ('ALL') AND c.object_type_id = ( select id from OBJECT_TYPE where cd = 'go'));
Date: 2025-10-01 07:57:35 Duration: 6s459ms Database: ctdprd51 User: qaeu Bind query: yes
5 5 25s641ms 5s29ms 5s217ms 5s128ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 01 05 2 10s187ms 5s93ms 08 2 10s246ms 5s123ms 16 1 5s207ms 5s207ms [ User: qaeu - Total duration: 15s329ms - Times executed: 3 ]
[ User: pubeu - Total duration: 10s312ms - Times executed: 2 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1322208)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-01 08:00:11 Duration: 5s217ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-01 16:04:36 Duration: 5s207ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1322208)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-01 05:48:43 Duration: 5s95ms Database: ctdprd51 User: pubeu Bind query: yes
6 4 36s327ms 5s839ms 15s246ms 9s81ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 01 05 1 15s246ms 15s246ms 08 1 5s839ms 5s839ms 14 1 7s576ms 7s576ms 16 1 7s664ms 7s664ms [ User: qaeu - Total duration: 15s241ms - Times executed: 2 ]
[ User: pubeu - Total duration: 5s839ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-01 05:45:41 Duration: 15s246ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-01 16:05:07 Duration: 7s664ms Database: ctdprd51 User: qaeu Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-01 14:18:37 Duration: 7s576ms Database: ctdprd51 User: qaeu Bind query: yes
7 4 35s633ms 7s708ms 12s367ms 8s908ms vacuum analyze pub1.reference;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 01 03 1 7s754ms 7s754ms 09 2 20s171ms 10s85ms 10 1 7s708ms 7s708ms [ User: pub1 - Total duration: 12s367ms - Times executed: 1 ]
-
VACUUM ANALYZE pub1.REFERENCE;
Date: 2025-10-01 09:31:10 Duration: 12s367ms Database: ctdprd51 User: pub1 Bind query: yes
-
VACUUM ANALYZE pub1.REFERENCE;
Date: 2025-10-01 09:43:26 Duration: 7s804ms Bind query: yes
-
VACUUM ANALYZE pub1.REFERENCE;
Date: 2025-10-01 03:47:26 Duration: 7s754ms Bind query: yes
8 2 1h8m1s 7m21s 1h40s 34m select maint_term_derive_nm_fts ();Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 01 03 1 1h40s 1h40s 09 1 7m21s 7m21s -
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 03:43:12 Duration: 1h40s Bind query: yes
-
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 09:38:32 Duration: 7m21s Bind query: yes
9 2 5m42s 2m36s 3m5s 2m51s select maint_term_label_derive_nm_fts ();Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 01 03 1 2m36s 2m36s 09 1 3m5s 3m5s -
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 09:41:57 Duration: 3m5s Bind query: yes
-
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 03:46:00 Duration: 2m36s Bind query: yes
10 2 2m5s 1m 1m5s 1m2s cluster pub1.term;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 01 03 1 1m5s 1m5s 09 1 1m 1m -
CLUSTER pub1.TERM;
Date: 2025-10-01 03:48:32 Duration: 1m5s Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 09:44:27 Duration: 1m Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 03:47:38 Duration: 0ms
11 2 1m17s 38s115ms 39s527ms 38s821ms cluster pub1.term_label;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 01 03 1 39s527ms 39s527ms 09 1 38s115ms 38s115ms -
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:49:11 Duration: 39s527ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 09:45:05 Duration: 38s115ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:48:39 Duration: 0ms
12 2 1m7s 32s913ms 34s157ms 33s535ms create index ftsix_term_nm on pub1.term using gin (nm_fts);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 01 03 1 34s157ms 34s157ms 09 1 32s913ms 32s913ms -
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 03:46:40 Duration: 34s157ms Bind query: yes
-
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 09:42:39 Duration: 32s913ms Bind query: yes
13 2 51s381ms 11s195ms 40s186ms 25s690ms select t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( select string_agg(distinct l.acc_txt, ? order by l.acc_txt) from db_link l where l.object_type_id = t.object_type_id and l.object_id = t.id and l.type_cd = ? and l.is_primary = false) "AltGeneIDs", ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = t.id and tlt.nm = ?) "Synonyms", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "BioGRIDIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "PharmGKBIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "UniProtIDs" from term t where t.object_type_id = ( select ot.id from object_type ot where ot.cd = ?) order by t.nm_sort;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 01 14 2 51s381ms 25s690ms [ User: qaeu - Total duration: 40s186ms - Times executed: 1 ]
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:11 Duration: 40s186ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:34 Duration: 11s195ms Bind query: yes
14 2 37s312ms 18s266ms 19s45ms 18s656ms create index ftsix_term_label_nm on pub1.term_label using gin (nm_fts);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 01 03 1 18s266ms 18s266ms 09 1 19s45ms 19s45ms -
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 09:43:06 Duration: 19s45ms Bind query: yes
-
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 03:47:07 Duration: 18s266ms Bind query: yes
15 2 26s908ms 5s881ms 21s26ms 13s454ms select ?, count(*) from term_enrichment_agent;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 01 13 2 26s908ms 13s454ms [ User: pub2 - Total duration: 21s26ms - Times executed: 1 ]
[ User: pub1 - Total duration: 5s881ms - Times executed: 1 ]
[ Application: psql - Total duration: 26s908ms - Times executed: 2 ]
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2025-10-01 13:56:11 Duration: 21s26ms Database: ctdprd51 User: pub2 Application: psql
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2025-10-01 13:55:28 Duration: 5s881ms Database: ctdprd51 User: pub1 Application: psql
16 2 18s801ms 9s386ms 9s415ms 9s400ms create index ftsix_reference_title_abstract on pub1.reference using gin (title_abstract_fts);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 01 03 1 9s415ms 9s415ms 09 1 9s386ms 9s386ms -
CREATE INDEX ftsix_reference_title_abstract ON pub1.REFERENCE USING gin (title_abstract_fts);
Date: 2025-10-01 03:47:19 Duration: 9s415ms Bind query: yes
-
CREATE INDEX ftsix_reference_title_abstract ON pub1.REFERENCE USING gin (title_abstract_fts);
Date: 2025-10-01 09:43:18 Duration: 9s386ms Bind query: yes
17 2 15s720ms 6s378ms 9s341ms 7s860ms vacuum analyze pub1.term_label;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 01 03 1 6s378ms 6s378ms 09 1 9s341ms 9s341ms -
VACUUM ANALYZE pub1.TERM_LABEL;
Date: 2025-10-01 09:42:06 Duration: 9s341ms Bind query: yes
-
VACUUM ANALYZE pub1.TERM_LABEL;
Date: 2025-10-01 03:46:06 Duration: 6s378ms Bind query: yes
18 2 14s862ms 7s414ms 7s448ms 7s431ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 01 14 1 7s414ms 7s414ms 16 1 7s448ms 7s448ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-01 16:05:15 Duration: 7s448ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-01 14:18:45 Duration: 7s414ms Bind query: yes
19 2 11s580ms 5s7ms 6s572ms 5s790ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 01 09 1 5s7ms 5s7ms 21 1 6s572ms 6s572ms [ User: pubeu - Total duration: 11s580ms - Times executed: 2 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1295161' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2025-10-01 21:49:04 Duration: 6s572ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1333799' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2025-10-01 09:06:49 Duration: 5s7ms Database: ctdprd51 User: pubeu Bind query: yes
20 1 2h8m48s 2h8m48s 2h8m48s 2h8m48s select pub1.maint_term_derive_data ();Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 01 12 1 2h8m48s 2h8m48s -
select pub1.maint_term_derive_data ();
Date: 2025-10-01 12:43:23 Duration: 2h8m48s Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2h8m48s 2h8m48s 2h8m48s 1 2h8m48s select pub1.maint_term_derive_data ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 01 12 1 2h8m48s 2h8m48s -
select pub1.maint_term_derive_data ();
Date: 2025-10-01 12:43:23 Duration: 2h8m48s Bind query: yes
2 49m4s 49m4s 49m4s 1 49m4s vacuum full analyze;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 01 10 1 49m4s 49m4s -
VACUUM FULL ANALYZE;
Date: 2025-10-01 10:34:11 Duration: 49m4s Bind query: yes
-
VACUUM FULL ANALYZE;
Date: 2025-10-01 03:49:14 Duration: 0ms
3 37m9s 37m9s 37m9s 1 37m9s select pub1.maint_cached_value_refresh_data_metrics ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 01 13 1 37m9s 37m9s -
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:30:46 Duration: 37m9s Bind query: yes
-
select pub1.maint_cached_value_refresh_data_metrics ();
Date: 2025-10-01 13:26:11 Duration: 0ms
4 7m21s 1h40s 34m 2 1h8m1s select maint_term_derive_nm_fts ();Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 01 03 1 1h40s 1h40s 09 1 7m21s 7m21s -
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 03:43:12 Duration: 1h40s Bind query: yes
-
SELECT maint_term_derive_nm_fts ();
Date: 2025-10-01 09:38:32 Duration: 7m21s Bind query: yes
5 9m4s 9m4s 9m4s 1 9m4s select pub1.maint_phenotype_term_derive_data ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 01 12 1 9m4s 9m4s -
select pub1.maint_phenotype_term_derive_data ();
Date: 2025-10-01 12:53:37 Duration: 9m4s Bind query: yes
6 5s101ms 35m44s 4m32s 8 36m21s select g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(r.acc_txt, ? order by r.acc_txt) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id group by g.nm, g.acc_txt, d.nm, d.acc_db_cd || ? || d.acc_txt, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ? order by a.action_type_nm) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by g.nm, d.nm;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 01 15 8 36m21s 4m32s [ User: qaeu - Total duration: 35m44s - Times executed: 1 ]
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:20:38 Duration: 35m44s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:41:05 Duration: 5s451ms Bind query: yes
-
SELECT /* AllGDRelationsDAO */ g.nm "GeneSymbol", g.acc_txt "GeneID", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id GROUP BY g.nm, g.acc_txt, d.nm, d.acc_db_cd || ':' || d.acc_txt, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|' ORDER BY a.action_type_nm) FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY g.nm, d.nm;
Date: 2025-10-01 15:34:17 Duration: 5s285ms Bind query: yes
7 2m36s 3m5s 2m51s 2 5m42s select maint_term_label_derive_nm_fts ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 01 03 1 2m36s 2m36s 09 1 3m5s 3m5s -
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 09:41:57 Duration: 3m5s Bind query: yes
-
SELECT maint_term_label_derive_nm_fts ();
Date: 2025-10-01 03:46:00 Duration: 2m36s Bind query: yes
8 2m18s 2m18s 2m18s 1 2m18s select chemterm.nm chemicalname, chemterm.acc_txt chemicalid, chemterm.secondary_nm casrn, phenoterm.nm phenotypename, phenoterm.acc_txt phenotypeid, ( select string_agg(distinct comentionterm.nm || ? || comentionterm.acc_txt || ? || comentionterm.acc_db_cd, ?)) as comentionedterms, taxonterm.nm organism, taxonterm.acc_txt organismid, i.ixn_prose_txt interaction, i.actions_txt interactionactions, ( select string_agg(distinct ia.level_seq + ? || ? || anatomyterm.nm || ? || anatomyterm.acc_txt, ? order by ia.level_seq + ? || ? || anatomyterm.nm || ? || anatomyterm.acc_txt)) as anatomyterms, string_agg(distinct inferredterm.nm || ? || inferredterm.acc_txt || ? || inferredterm.acc_db_cd, ? order by inferredterm.nm || ? || inferredterm.acc_txt || ? || inferredterm.acc_db_cd) inferencegenesymbols, string_agg(distinct r.acc_txt, ? order by r.acc_txt) pubmedids, ptr.ixn_id ignorecolumnixnid from phenotype_term_reference ptr left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join ixn i on ptr.ixn_id = i.id inner join term phenoterm on ptr.phenotype_id = phenoterm.id inner join reference r on ptr.reference_id = r.id inner join term chemterm on ptr.term_id = chemterm.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id left outer join phenotype_term_reference ptr2 on ptr.ixn_id = ptr2.ixn_id and (ptr.term_id <> ptr2.term_id or ptr.phenotype_id <> ptr2.phenotype_id) left outer join phenotype_term_reference ptr3 on ptr.term_id = ptr3.term_id and (ptr.phenotype_id = ptr3.phenotype_id and ptr3.source_cd = ?) left outer join term comentionterm on comentionterm.id = ptr2.term_id left outer join term inferredterm on inferredterm.id = ptr3.via_term_id where ptr.source_cd = ? and ptr.term_object_type_id = ( select ot.id from object_type ot where ot.cd = ?) group by chemterm.nm, chemterm.acc_txt, chemterm.secondary_nm, phenoterm.nm, phenoterm.acc_txt, taxonterm.nm, taxonterm.acc_txt, i.ixn_prose_txt, i.actions_txt, ptr.ixn_id order by chemterm.nm, phenoterm.nm;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 01 16 1 2m18s 2m18s [ User: qaeu - Total duration: 2m18s - Times executed: 1 ]
-
SELECT /* AllCuratedChemPhenoIxnsDAO */ chemTerm.nm ChemicalName, chemTerm.acc_txt ChemicalID, chemTerm.secondary_nm CasRN, phenoTerm.nm PhenotypeName, phenoTerm.acc_txt PhenotypeID, ( SELECT STRING_AGG(distinct coMentionTerm.nm || '^' || coMentionTerm.acc_txt || '^' || coMentionTerm.acc_db_cd, '|')) as coMentionedTerms, taxonTerm.nm Organism, taxonTerm.acc_txt OrganismID, i.ixn_prose_txt Interaction, i.actions_txt InteractionActions, ( SELECT STRING_AGG(distinct ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt, '|' ORDER BY ia.level_seq + 1 || '^' || anatomyTerm.nm || '^' || anatomyTerm.acc_txt)) as anatomyTerms, STRING_AGG(distinct inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd, '|' ORDER BY inferredTerm.nm || '^' || inferredTerm.acc_txt || '^' || inferredTerm.acc_db_cd) InferenceGeneSymbols, STRING_AGG(distinct r.acc_txt, '|' ORDER BY r.acc_txt) PubMedIDs, ptr.ixn_id ignorecolumnIxnId FROM phenotype_term_reference ptr LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN term phenoTerm ON ptr.phenotype_id = phenoTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN term chemTerm ON ptr.term_id = chemTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id LEFT OUTER JOIN phenotype_term_reference ptr2 ON ptr.ixn_id = ptr2.ixn_id and (ptr.term_id <> ptr2.term_id or ptr.phenotype_id <> ptr2.phenotype_id) LEFT OUTER JOIN phenotype_term_reference ptr3 ON ptr.term_id = ptr3.term_id and (ptr.phenotype_id = ptr3.phenotype_id and ptr3.source_cd = 'I') LEFT OUTER JOIN term coMentionTerm ON coMentionTerm.id = ptr2.term_id LEFT OUTER JOIN term inferredTerm ON inferredTerm.id = ptr3.via_term_id WHERE ptr.source_cd = 'C' AND ptr.term_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') GROUP BY chemTerm.nm, chemTerm.acc_txt, chemTerm.secondary_nm, phenoTerm.nm, phenoTerm.acc_txt, taxonTerm.nm, taxonTerm.acc_txt, i.ixn_prose_txt, i.actions_txt, ptr.ixn_id ORDER BY chemTerm.nm, phenoTerm.nm;
Date: 2025-10-01 16:29:02 Duration: 2m18s Database: ctdprd51 User: qaeu Bind query: yes
9 1m22s 1m22s 1m22s 1 1m22s select c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", a.action_type_nm "DirectEvidence", g.nm "InferenceGeneSymbol", cdr.network_score "InferenceScore", string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) "OmimIDs", string_agg(r.acc_txt, ? order by r.acc_txt) "PubMedIDs" from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score order by c.nm_sort, d.nm;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 01 14 1 1m22s 1m22s [ User: qaeu - Total duration: 1m22s - Times executed: 1 ]
-
SELECT /* AllCDRelationsDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", a.action_type_nm "DirectEvidence", g.nm "InferenceGeneSymbol", cdr.network_score "InferenceScore", STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) "OmimIDs", STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) "PubMedIDs" FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-10-01 14:37:44 Duration: 1m22s Database: ctdprd51 User: qaeu Bind query: yes
10 1m 1m5s 1m2s 2 2m5s cluster pub1.term;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 01 03 1 1m5s 1m5s 09 1 1m 1m -
CLUSTER pub1.TERM;
Date: 2025-10-01 03:48:32 Duration: 1m5s Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 09:44:27 Duration: 1m Bind query: yes
-
CLUSTER pub1.TERM;
Date: 2025-10-01 03:47:38 Duration: 0ms
11 49s265ms 49s265ms 49s265ms 1 49s265ms select cast(xmlelement(name "Link", xmlelement(name "LinkId", g.acc_txt), xmlelement(name "ProviderId", ?), xmlelement(name "ObjectSelector", xmlelement(name "Database", ?), xmlelement(name "ObjectList", ( select xmlagg(xmlforest(l.acc_txt AS "ObjId")) from db_link l where l.object_type_id = g.object_type_id and l.object_id = g.id and l.type_cd = ?))), xmlelement(name "ObjectUrl", xmlelement(name "Base", ?), xmlelement(name "Rule", ? || g.acc_txt), xmlelement(name "UrlName", ? || g.nm))) as text) linkxml from term g where g.object_type_id = get_object_type_id (?) order by g.acc_txt::int;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 01 14 1 49s265ms 49s265ms [ User: qaeu - Total duration: 49s265ms - Times executed: 1 ]
-
SELECT /* NCBILinkOutDAO */ CAST(XMLELEMENT(name "Link", XMLELEMENT(name "LinkId", g.acc_txt), XMLELEMENT(name "ProviderId", '7845'), XMLELEMENT(name "ObjectSelector", XMLELEMENT(name "Database", 'Gene'), XMLELEMENT(name "ObjectList", ( SELECT XMLAGG(XMLFOREST(l.acc_txt AS "ObjId")) FROM db_link l WHERE l.object_type_id = g.object_type_id AND l.object_id = g.id AND l.type_cd = 'A'))), XMLELEMENT(name "ObjectUrl", XMLELEMENT(name "Base", 'http://ctdbase.org/detail.go?'), XMLELEMENT(name "Rule", 'type=gene&acc=' || g.acc_txt), XMLELEMENT(name "UrlName", 'CTD: Comparative Toxicogenomics Database - ' || g.nm))) AS TEXT) linkxml FROM term g WHERE g.object_type_id = get_object_type_id ('gene') ORDER BY g.acc_txt::int;
Date: 2025-10-01 14:26:10 Duration: 49s265ms Database: ctdprd51 User: qaeu Bind query: yes
12 48s710ms 48s710ms 48s710ms 1 48s710ms select pub1.maint_reference_derive_flags ();Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 01 12 1 48s710ms 48s710ms -
select pub1.maint_reference_derive_flags ();
Date: 2025-10-01 12:44:32 Duration: 48s710ms Bind query: yes
13 44s81ms 44s81ms 44s81ms 1 44s81ms select c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "Ontology", gt.nm "GOTermName", gt.acc_txt "GOTermID", gt.level_min_no "HighestGOLevel", ltrim(to_char(te.raw_p_val, ?)) "PValue", ltrim(to_char(te.corrected_p_val, ?)) "CorrectedPValue", te.target_match_qty "TargetMatchQty", te.target_total_qty "TargetTotalQty", te.background_match_qty "BackgroundMatchQty", te.background_total_qty "BackgroundTotalQty" from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id inner join term c on te.term_id = c.id where te.object_type_id = ( select ot.id from object_type ot where ot.cd = ?) and te.enriched_object_type_id = ( select ot.id from object_type ot where ot.cd = ?) order by c.nm_sort, d.nm, gt.nm_sort;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 01 14 1 44s81ms 44s81ms [ User: qaeu - Total duration: 44s81ms - Times executed: 1 ]
-
SELECT /* AllChemGOEnrichedDAO */ c.nm "ChemicalName", c.acc_txt "ChemicalID", c.secondary_nm "CasRN", d.nm "Ontology", gt.nm "GOTermName", gt.acc_txt "GOTermID", gt.level_min_no "HighestGOLevel", LTRIM(TO_CHAR(te.raw_p_val, '9.99EEEE')) "PValue", LTRIM(TO_CHAR(te.corrected_p_val, '9.99EEEE')) "CorrectedPValue", te.target_match_qty "TargetMatchQty", te.target_total_qty "TargetTotalQty", te.background_match_qty "BackgroundMatchQty", te.background_total_qty "BackgroundTotalQty" FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id INNER JOIN term c ON te.term_id = c.id WHERE te.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'chem') AND te.enriched_object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'go') ORDER BY c.nm_sort, d.nm, gt.nm_sort;
Date: 2025-10-01 14:30:47 Duration: 44s81ms Database: ctdprd51 User: qaeu Bind query: yes
14 38s115ms 39s527ms 38s821ms 2 1m17s cluster pub1.term_label;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 01 03 1 39s527ms 39s527ms 09 1 38s115ms 38s115ms -
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:49:11 Duration: 39s527ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 09:45:05 Duration: 38s115ms Bind query: yes
-
CLUSTER pub1.TERM_LABEL;
Date: 2025-10-01 03:48:39 Duration: 0ms
15 37s176ms 37s176ms 37s176ms 1 37s176ms select ? || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( select to_char(cv.value_tm, ?) from cached_value cv where cv.type_nm = ? and cv.key_nm = ?) "lastmod", trim(to_char(i.priority, ?)) "priority" from ( select ? || ot.cd loc, ? changefreq, ?.? priority from object_type ot where ot.cd in (...) union all select ? || ot.cd, ?, ?.? from object_type ot where ot.cd in (...) union all select url, changefreq, priority from sitemap_url union all select ? || ot.cd || ? || t.acc_db_cd || ? || t.acc_txt "loc", ?, case when (t.has_chems or t.has_diseases or t.has_genes or t.has_go or t.has_ixns or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd in (...) and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_chems or t.has_ixns or t.has_genes or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_genes or t.has_ixns or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_phenotypes or t.has_references or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_references or t.has_phenotypes or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || r.acc_txt, ?, case when (r.has_diseases or r.has_ixns or r.has_phenotypes or r.has_exposures or r.has_gene_gene_ixns) then ?.? else ?.? end from reference r) i order by ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 01 14 1 37s176ms 37s176ms [ User: pubeu - Total duration: 37s176ms - Times executed: 1 ]
-
SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;
Date: 2025-10-01 14:28:18 Duration: 37s176ms Database: ctdprd51 User: pubeu
16 5s95ms 2m20s 34s161ms 5 2m50s select phenotypeterm.nm "GOName", phenotypeterm.acc_txt "GOID", diseaseterm.nm "DiseaseName", diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( select string_agg(distinct chemtermnetwork.nm, ?)) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( select string_agg(distinct genetermnetwork.nm, ?)) "InferenceGeneSymbols" from phenotype_term_reference ptr inner join phenotype_term pt on ptr.phenotype_id = pt.phenotype_id and ptr.term_id = pt.term_id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join term diseaseterm on ptr.term_id = diseaseterm.id and diseaseterm.object_type_id = ( select id from object_type where cd = ?) left outer join term genetermnetwork on ptr.via_term_id = genetermnetwork.id and genetermnetwork.object_type_id = ( select id from object_type where cd = ?) left outer join term chemtermnetwork on ptr.via_term_id = chemtermnetwork.id and chemtermnetwork.object_type_id = ( select id from object_type where cd = ?) where phenotypeterm.id in ( select dp.descendant_dag_node_id from dag_path dp where dp.ancestor_object_id = ( select id from term where nm = ?)) and ptr.source_cd = ? and ptr.phenotype_id = phenotypeterm.id and ptr.term_id = diseaseterm.id group by phenotypeterm.nm, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.acc_db_cd || ? || diseaseterm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 01 16 5 2m50s 34s161ms [ User: qaeu - Total duration: 2m32s - Times executed: 2 ]
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:04 Duration: 2m20s Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'molecular_function')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:34:01 Duration: 12s935ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* PhenotypeDiseasesDAO */ phenotypeTerm.nm "GOName", phenotypeTerm.acc_txt "GOID", diseaseTerm.nm "DiseaseName", diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt "DiseaseID", pt.via_chem_qty "InferenceChemicalQty", ( SELECT STRING_AGG(DISTINCT chemTermNetwork.nm, '|')) "InferenceChemicalNames", pt.via_gene_qty "InferenceGeneQty", ( SELECT STRING_AGG(DISTINCT geneTermNetwork.nm, '|')) "InferenceGeneSymbols" FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt on ptr.phenotype_id = pt.phenotype_id AND ptr.term_id = pt.term_id INNER JOIN term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id INNER JOIN term diseaseTerm on ptr.term_id = diseaseTerm.id AND diseaseTerm.object_type_id = ( select id from object_type where cd = 'disease') LEFT OUTER JOIN term geneTermNetwork on ptr.via_term_id = geneTermNetwork.id AND geneTermNetwork.object_type_id = ( select id from object_type where cd = 'gene') LEFT OUTER JOIN term chemTermNetwork on ptr.via_term_id = chemTermNetwork.id AND chemTermNetwork.object_type_id = ( select id from object_type where cd = 'chem') WHERE phenotypeTerm.id IN ( SELECT dp.descendant_dag_node_id FROM dag_path dp WHERE dp.ancestor_object_id = ( select id from term where nm = 'biological_process')) AND ptr.source_cd = 'I' AND ptr.phenotype_id = phenotypeTerm.id AND ptr.term_id = diseaseTerm.id GROUP BY phenotypeTerm.nm, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.acc_db_cd || ':' || diseaseTerm.acc_txt, pt.via_chem_qty, pt.via_gene_qty;
Date: 2025-10-01 16:32:17 Duration: 6s581ms Bind query: yes
17 32s913ms 34s157ms 33s535ms 2 1m7s create index ftsix_term_nm on pub1.term using gin (nm_fts);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 01 03 1 34s157ms 34s157ms 09 1 32s913ms 32s913ms -
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 03:46:40 Duration: 34s157ms Bind query: yes
-
CREATE INDEX ftsix_term_nm ON pub1.TERM USING gin (nm_fts);
Date: 2025-10-01 09:42:39 Duration: 32s913ms Bind query: yes
18 11s195ms 40s186ms 25s690ms 2 51s381ms select t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( select string_agg(distinct l.acc_txt, ? order by l.acc_txt) from db_link l where l.object_type_id = t.object_type_id and l.object_id = t.id and l.type_cd = ? and l.is_primary = false) "AltGeneIDs", ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = t.id and tlt.nm = ?) "Synonyms", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "BioGRIDIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "PharmGKBIDs", ( select string_agg(l.acc_txt, ? order by l.acc_txt) from db_link l inner join db d on l.db_id = d.id where l.object_id = t.id and d.cd = ? and l.type_cd = ?) "UniProtIDs" from term t where t.object_type_id = ( select ot.id from object_type ot where ot.cd = ?) order by t.nm_sort;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 01 14 2 51s381ms 25s690ms [ User: qaeu - Total duration: 40s186ms - Times executed: 1 ]
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:11 Duration: 40s186ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* AllGenesDAO */ t.nm "GeneSymbol", t.secondary_nm "GeneName", t.acc_txt "GeneID", ( SELECT STRING_AGG(DISTINCT l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l WHERE l.object_type_id = t.object_type_id AND l.object_id = t.id AND l.type_cd = 'A' AND l.is_primary = false) "AltGeneIDs", ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = t.id AND tlt.nm = 'SYNONYM') "Synonyms", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'BIOGRID' AND l.type_cd = 'X') "BioGRIDIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'PGKB' AND l.type_cd = 'X') "PharmGKBIDs", ( SELECT STRING_AGG(l.acc_txt, '|' ORDER BY l.acc_txt) FROM db_link l INNER JOIN db d on l.db_id = d.id WHERE l.object_id = t.id AND d.cd = 'SPTREM' AND l.type_cd = 'X') "UniProtIDs" FROM term t WHERE t.object_type_id = ( SELECT ot.id FROM object_type ot WHERE ot.cd = 'gene') ORDER BY t.nm_sort;
Date: 2025-10-01 14:28:34 Duration: 11s195ms Bind query: yes
19 18s266ms 19s45ms 18s656ms 2 37s312ms create index ftsix_term_label_nm on pub1.term_label using gin (nm_fts);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 01 03 1 18s266ms 18s266ms 09 1 19s45ms 19s45ms -
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 09:43:06 Duration: 19s45ms Bind query: yes
-
CREATE INDEX ftsix_term_label_nm ON pub1.TERM_LABEL USING gin (nm_fts);
Date: 2025-10-01 03:47:07 Duration: 18s266ms Bind query: yes
20 5s881ms 21s26ms 13s454ms 2 26s908ms select ?, count(*) from term_enrichment_agent;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 01 13 2 26s908ms 13s454ms [ User: pub2 - Total duration: 21s26ms - Times executed: 1 ]
[ User: pub1 - Total duration: 5s881ms - Times executed: 1 ]
[ Application: psql - Total duration: 26s908ms - Times executed: 2 ]
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2025-10-01 13:56:11 Duration: 21s26ms Database: ctdprd51 User: pub2 Application: psql
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2025-10-01 13:55:28 Duration: 5s881ms Database: ctdprd51 User: pub1 Application: psql
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 17,827 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 1 PANIC entries
- 357 FATAL entries
- 1 ERROR entries
- 3265 WARNING entries
- 34 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 2,084 Max number of times the same event was reported
- 3,658 Total events found
Rank Times reported Error 1 2,084 WARNING: skipping "..." --- only table or database owner can vacuum it
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 01 03 1,042 09 1,042 2 639 WARNING: archiving write-ahead log file "..." failed too many times, will try again later
Times Reported Most Frequent Error / Event #2
Day Hour Count Oct 01 03 422 04 58 05 58 06 58 07 43 3 448 WARNING: skipping "..." --- only superuser or database owner can vacuum it
Times Reported Most Frequent Error / Event #3
Day Hour Count Oct 01 03 224 09 224 4 263 FATAL: the database system is shutting down
Times Reported Most Frequent Error / Event #4
Day Hour Count Oct 01 07 263 5 86 WARNING: skipping "..." --- only superuser can vacuum it
Times Reported Most Frequent Error / Event #5
Day Hour Count Oct 01 03 43 09 43 6 52 FATAL: the database system is in recovery mode
Times Reported Most Frequent Error / Event #6
Day Hour Count Oct 01 03 52 7 42 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #7
Day Hour Count Oct 01 07 42 8 25 ERROR: unexpected EOF on client connection with an open transaction
Times Reported Most Frequent Error / Event #8
Day Hour Count Oct 01 14 17 16 8 9 8 WARNING: there is no transaction in progress
Times Reported Most Frequent Error / Event #9
Day Hour Count Oct 01 03 2 09 2 12 4 10 5 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #10
Day Hour Count Oct 01 19 3 20 2 11 1 LOG: database system was interrupted; last known up at ...
Times Reported Most Frequent Error / Event #11
Day Hour Count Oct 01 03 1 12 1 LOG: server process (...) was terminated by signal 6: Aborted
Times Reported Most Frequent Error / Event #12
Day Hour Count Oct 01 03 1 - LOG: server process (PID 3502027) was terminated by signal 6: Aborted
Detail: Failed process was running: VACUUM FULL ANALYZE
Date: 2025-10-01 03:54:26
13 1 LOG: database system was not properly shut down; automatic recovery in progress
Times Reported Most Frequent Error / Event #13
Day Hour Count Oct 01 03 1 14 1 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #14
Day Hour Count Oct 01 07 1 15 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #15
Day Hour Count Oct 01 13 1 - ERROR: relation "pubx.db_link" does not exist at character 220
Statement: select min( to_char ( create_tm, 'yyyymmdd' ) ), max(to_char ( create_tm, 'yyyymmdd' ))--reference_acc_txt, create_by, create_tm, sent_tm from reference_contact where reference_acc_txt in ( select acc_txt from pubX.db_link l where object_type_id = ( select id from object_type where cd = 'reference' ) AND l.type_cd = 'A' AND l.is_primary = true AND (SELECT r.has_ixns OR r.has_diseases or r.has_exposures -- !! CHANGE PUB SCHEMA QUALIFIER TO LIVE/QA SCHEMA !! FROM pubX.reference r WHERE r.id = l.object_id) ) and sent_tm is null
Date: 2025-10-01 13:43:29 Database: ctdprd51 Application: pgAdmin 4 - CONN:2092772 User: edit Remote:
16 1 PANIC: could not fsync file "...": No space left on device
Times Reported Most Frequent Error / Event #16
Day Hour Count Oct 01 03 1 - PANIC: could not fsync file "pg_wal/xlogtemp.3502027": No space left on device
Statement: VACUUM FULL ANALYZE
Date: 2025-10-01 03:54:25