-
Global information
- Generated on Wed Jan 7 04:15:04 2026
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20260106
- Parsed 46,221 log entries in 2s
- Log start from 2026-01-06 00:00:01 to 2026-01-06 23:59:10
-
Overview
Global Stats
- 117 Number of unique normalized queries
- 182 Number of queries
- 10h13m59s Total query duration
- 2026-01-06 00:09:29 First query
- 2026-01-06 23:28:16 Last query
- 1 queries/s at 2026-01-06 18:07:16 Query peak
- 10h13m59s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 10h13m59s Execute total duration
- 1,348 Number of events
- 6 Number of unique normalized events
- 1,041 Max number of times the same event was reported
- 0 Number of cancellation
- 27 Total number of automatic vacuums
- 39 Total number of automatic analyzes
- 1,068 Number temporary file
- 44.44 GiB Max size of temporary file
- 212.67 MiB Average size of temporary file
- 4,798 Total number of sessions
- 177 sessions at 2026-01-06 00:26:29 Session peak
- 49d14h9m15s Total duration of sessions
- 14m52s Average duration of sessions
- 0 Average queries per session
- 7s678ms Average queries duration per session
- 14m45s Average idle time per session
- 4,791 Total number of connections
- 99 connections/s at 2026-01-06 09:27:12 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-01-06 18:07:16 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-01-06 13:17:47 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-01-06 18:07:16 Date
Queries duration
Key values
- 10h13m59s 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) Jan 06 00 11 0ms 26m1s 3m46s 1m12s 2m23s 26m1s 01 3 0ms 24s31ms 17s281ms 0ms 5s51ms 24s31ms 02 5 0ms 1h50m58s 22m49s 0ms 8s212ms 1h50m58s 03 12 0ms 1h1m6s 5m35s 6s448ms 1m39s 1h1m17s 04 5 0ms 49m33s 10m 0ms 7s707ms 49m53s 05 9 0ms 36s388ms 15s232ms 15s23ms 33s129ms 58s58ms 06 14 0ms 2h10m54s 10m20s 46s294ms 1m50s 2h10m54s 07 1 0ms 36m40s 36m40s 0ms 0ms 36m40s 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 1 0ms 6s776ms 6s776ms 0ms 0ms 6s776ms 10 18 0ms 1m50s 16s31ms 20s762ms 39s312ms 1m50s 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 2 0ms 6s475ms 5s818ms 0ms 0ms 6s475ms 13 9 0ms 1m22s 31s640ms 23s983ms 51s318ms 1m22s 14 18 0ms 37m37s 2m19s 20s851ms 45s927ms 37m37s 15 7 0ms 2m24s 48s17ms 12s691ms 2m20s 2m36s 16 1 0ms 38s14ms 38s14ms 0ms 0ms 38s14ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 41 0ms 26m12s 1m16s 1m51s 2m10s 26m12s 19 24 0ms 26m18s 1m55s 1m22s 2m11s 26m18s 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 1 0ms 5s857ms 5s857ms 0ms 0ms 5s857ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jan 06 00 3 0 3m15s 0ms 0ms 9m28s 01 3 0 17s281ms 0ms 0ms 24s31ms 02 3 0 37m4s 0ms 0ms 1h50m58s 03 3 0 21m15s 0ms 0ms 2m34s 04 1 0 7s707ms 0ms 0ms 7s707ms 05 9 0 15s232ms 0ms 15s23ms 58s58ms 06 5 9 10m20s 0ms 46s294ms 2h10m54s 07 1 0 36m40s 0ms 0ms 36m40s 08 0 0 0ms 0ms 0ms 0ms 09 1 0 6s776ms 0ms 0ms 6s776ms 10 9 9 16s31ms 0ms 20s762ms 1m50s 11 0 0 0ms 0ms 0ms 0ms 12 2 0 5s818ms 0ms 0ms 6s475ms 13 9 0 31s640ms 0ms 23s983ms 1m22s 14 9 9 2m19s 5s836ms 20s851ms 37m37s 15 7 0 48s17ms 0ms 12s691ms 2m36s 16 1 0 38s14ms 0ms 0ms 38s14ms 17 0 0 0ms 0ms 0ms 0ms 18 0 41 1m16s 1m2s 1m51s 26m12s 19 3 21 1m55s 44s594ms 1m22s 26m18s 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 1 0 5s857ms 0ms 0ms 5s857ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jan 06 00 4 3 0 0 4m30s 0ms 0ms 2m23s 01 0 0 0 0 0ms 0ms 0ms 0ms 02 1 0 0 0 2m44s 0ms 0ms 0ms 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 Jan 06 00 0 9 9.00 0.00% 01 0 3 3.00 0.00% 02 0 5 5.00 0.00% 03 0 12 12.00 0.00% 04 0 5 5.00 0.00% 05 0 9 9.00 0.00% 06 0 5 5.00 0.00% 07 0 1 1.00 0.00% 08 0 0 0.00 0.00% 09 0 1 1.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 2 2.00 0.00% 13 0 9 9.00 0.00% 14 0 9 9.00 0.00% 15 0 7 7.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 3 3.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 1 1.00 0.00% Day Hour Count Average / Second Jan 06 00 335 0.09/s 01 172 0.05/s 02 115 0.03/s 03 99 0.03/s 04 84 0.02/s 05 91 0.03/s 06 164 0.05/s 07 102 0.03/s 08 78 0.02/s 09 2,406 0.67/s 10 83 0.02/s 11 77 0.02/s 12 97 0.03/s 13 96 0.03/s 14 79 0.02/s 15 86 0.02/s 16 79 0.02/s 17 75 0.02/s 18 71 0.02/s 19 84 0.02/s 20 77 0.02/s 21 82 0.02/s 22 79 0.02/s 23 80 0.02/s Day Hour Count Average Duration Average idle time Jan 06 00 335 7m22s 7m15s 01 172 13m34s 13m33s 02 115 19m17s 18m18s 03 99 25m3s 24m23s 04 84 27m53s 27m17s 05 91 25m58s 25m56s 06 164 15m3s 14m10s 07 103 27m25s 27m3s 08 78 30m14s 30m14s 09 2,406 1m1s 1m1s 10 83 29m59s 29m55s 11 77 31m53s 31m53s 12 97 25m51s 25m50s 13 95 25m55s 25m52s 14 79 30m35s 30m3s 15 87 29m46s 29m42s 16 76 30m36s 30m36s 17 75 31m8s 31m8s 18 70 29m32s 28m48s 19 85 29m26s 28m54s 20 86 3h1m17s 3h1m17s 21 82 29m54s 29m54s 22 79 31m1s 31m1s 23 80 30m30s 30m30s -
Connections
Established Connections
Key values
- 99 connections Connection Peak
- 2026-01-06 09:27:12 Date
Connections per database
Key values
- ctdprd51 Main Database
- 4,791 connections Total
Connections per user
Key values
- pubeu Main User
- 4,791 connections Total
-
Sessions
Simultaneous sessions
Key values
- 177 sessions Session Peak
- 2026-01-06 00:26:29 Date
Histogram of session times
Key values
- 1,758 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 4,798 sessions Total
Sessions per user
Key values
- pubeu Main User
- 4,798 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 4,798 sessions Total
Host Count Total Duration Average Duration 10.12.5.45 405 8d1h56s 28m35s 10.12.5.46 377 7d21h20m45s 30m8s 10.12.5.52 25 2h11m53s 5m16s 10.12.5.53 3,227 8d2h16m38s 3m36s 10.12.5.54 372 7d23h3m55s 30m49s 10.12.5.55 368 7d23h57m52s 31m17s 10.12.5.56 4 7h27m32s 1h51m53s 192.168.201.10 9 9d2h57m55s 1d19m46s ::1 11 1h51m44s 10m9s -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 1,081,857 buffers Checkpoint Peak
- 2026-01-06 00:44:17 Date
- 1620.058 seconds Highest write time
- 0.818 seconds Sync time
Checkpoints Wal files
Key values
- 761 files Wal files usage Peak
- 2026-01-06 03:30:54 Date
Checkpoints distance
Key values
- 18,143.44 Mo Distance Peak
- 2026-01-06 03:53:26 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jan 06 00 1,967,065 2,730.073s 0.218s 2,751.091s 01 591,220 1,689.943s 0.004s 1,693.306s 02 239,278 1,619.781s 0.007s 1,621.499s 03 798,832 2,213.907s 4.908s 2,380.067s 04 176,252 342.136s 0.483s 373.872s 05 548,237 3,239.698s 0.005s 3,245.627s 06 649,948 4,051.055s 0.022s 4,057.904s 07 654,060 1,818.226s 0.005s 1,823.19s 08 447 44.954s 0.002s 44.985s 09 339 34.159s 0.002s 34.29s 10 25,228 1,627.271s 0.003s 1,627.407s 11 2,222 222.611s 0.003s 222.708s 12 2,607 261.252s 0.003s 261.283s 13 20,771 1,624.665s 0.002s 1,624.769s 14 43 4.482s 0.002s 4.511s 15 56 5.778s 0.002s 5.809s 16 2,044 204.903s 0.003s 204.974s 17 11 1.196s 0.001s 1.211s 18 237 23.91s 0.002s 23.94s 19 12,158 1,651.478s 0.003s 1,651.506s 20 41 4.268s 0.002s 4.297s 21 69 7.088s 0.002s 7.118s 22 1,646 164.998s 0.002s 165.029s 23 42 4.379s 0.002s 4.409s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jan 06 00 0 0 1,614 237 0.123s 0.004s 01 0 1 255 82 0.001s 0.003s 02 0 149 100 69 0.004s 0.001s 03 0 266 10,574 843 0.817s 0.246s 04 0 35 2,233 287 0.463s 0.01s 05 0 0 472 109 0.001s 0.002s 06 0 49 538 193 0.008s 0.003s 07 0 0 402 136 0.002s 0.003s 08 0 0 0 127 0.001s 0.002s 09 0 1 0 126 0.001s 0.002s 10 0 9 0 137 0.001s 0.002s 11 0 2 0 151 0.001s 0.002s 12 0 0 0 121 0.001s 0.002s 13 0 10 0 60 0.001s 0.002s 14 0 0 0 19 0.001s 0.002s 15 0 0 0 17 0.001s 0.002s 16 0 1 0 53 0.001s 0.002s 17 0 0 0 8 0.001s 0.001s 18 0 0 0 110 0.001s 0.002s 19 0 0 0 21 0.001s 0.002s 20 0 0 0 15 0.001s 0.002s 21 0 0 0 19 0.001s 0.002s 22 0 0 0 38 0.001s 0.002s 23 0 0 0 16 0.001s 0.002s Day Hour Count Avg time (sec) Jan 06 00 0 0s 01 0 0s 02 0 0s 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 Jan 06 00 8,818,507.33 kB 9,417,480.67 kB 01 1,567,965.33 kB 8,031,367.00 kB 02 3,565,285.00 kB 6,838,053.00 kB 03 8,539,484.95 kB 8,796,177.29 kB 04 8,858,073.75 kB 9,061,619.00 kB 05 4,003,212.50 kB 8,437,029.00 kB 06 3,111,605.33 kB 7,551,963.00 kB 07 2,374,690.67 kB 7,805,102.67 kB 08 1,104.00 kB 5,984,776.00 kB 09 1,086.50 kB 4,847,888.00 kB 10 76,496.00 kB 3,941,365.00 kB 11 6,967.00 kB 3,193,280.50 kB 12 9,416.00 kB 2,588,884.50 kB 13 81,095.50 kB 2,112,417.50 kB 14 71.00 kB 1,711,082.50 kB 15 69.00 kB 1,385,990.00 kB 16 6,095.00 kB 1,123,284.50 kB 17 27.00 kB 958,306.00 kB 18 661.50 kB 819,448.50 kB 19 626.00 kB 663,847.50 kB 20 78.50 kB 537,780.50 kB 21 129.00 kB 435,625.50 kB 22 4,886.00 kB 353,783.50 kB 23 94.00 kB 286,585.50 kB -
Temporary Files
Size of temporary files
Key values
- 13.00 GiB Temp Files size Peak
- 2026-01-06 15:09:10 Date
Number of temporary files
Key values
- 24 per second Temp Files Peak
- 2026-01-06 03:23:08 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jan 06 00 0 0 0 01 0 0 0 02 0 0 0 03 760 142.78 GiB 192.38 MiB 04 254 25.87 GiB 104.30 MiB 05 0 0 0 06 0 0 0 07 9 8.72 GiB 991.74 MiB 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 45 44.44 GiB 1011.32 MiB 16 0 0 0 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 932 165.87 GiB 136.00 KiB 1.00 GiB 182.25 MiB vacuum full analyze;-
VACUUM FULL ANALYZE;
Date: 2026-01-06 04:08:28 Duration: 49m33s
-
VACUUM FULL ANALYZE;
Date: 2026-01-06 03:18:56 Duration: 0ms
2 62 2.04 GiB 7.01 MiB 1.00 GiB 33.72 MiB cluster pub2.term;-
CLUSTER pub2.TERM;
Date: 2026-01-06 03:18:16 Duration: 1m1s
-
CLUSTER pub2.TERM;
Date: 2026-01-06 03:17:23 Duration: 0ms
3 20 755.72 MiB 23.09 MiB 64.95 MiB 37.79 MiB cluster pub2.term_label;-
CLUSTER pub2.TERM_LABEL;
Date: 2026-01-06 03:18:54 Duration: 37s476ms
-
CLUSTER pub2.TERM_LABEL;
Date: 2026-01-06 03:18:22 Duration: 0ms
4 9 8.72 GiB 733.68 MiB 1.00 GiB 991.74 MiB select pub2.maint_cached_value_refresh_data_metrics ();-
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:06:39 Duration: 36m40s
-
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:02:05 Duration: 0ms
Queries generating the largest temporary files
Rank Size Query 1 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:29:02 ]
2 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:29:02 ]
3 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:29:02 ]
4 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:29:02 ]
5 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:29:02 ]
6 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:47 ]
7 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
8 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
9 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
10 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
11 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
12 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
13 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
14 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
15 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:32:48 ]
16 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:33:38 ]
17 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:33:38 ]
18 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:33:38 ]
19 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:33:38 ]
20 1.00 GiB VACUUM FULL ANALYZE;[ Date: 2026-01-06 03:33:39 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 219.79 sec Highest CPU-cost vacuum
Table pub2.gene_disease
Database ctdprd51 - 2026-01-06 00:16:23 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 219.79 sec Highest CPU-cost vacuum
Table pub2.gene_disease
Database ctdprd51 - 2026-01-06 00:16:23 Date
Analyzes per table
Key values
- pubc.log_query (16) Main table analyzed (database ctdprd51)
- 39 analyzes Total
Table Number of analyzes ctdprd51.pubc.log_query 16 ctdprd51.pub2.term_comp_agent 2 ctdprd51.pub2.phenotype_term 2 ctdprd51.pub2.term_set_enrichment_agent 2 ctdprd51.pub2.term_set_enrichment 2 ctdprd51.pub2.reference 1 ctdprd51.pub2.gene_gene 1 ctdprd51.pg_catalog.pg_class 1 ctdprd51.pg_catalog.pg_depend 1 ctdprd51.pub2.gene_gene_ref_throughput 1 ctdprd51.pg_catalog.pg_type 1 ctdprd51.pub2.gene_gene_reference 1 ctdprd51.pub2.gene_chem_ref_gene_form 1 ctdprd51.pub2.ixn 1 ctdprd51.pub2.gene_disease 1 ctdprd51.pub2.slim_term_mapping 1 ctdprd51.pub2.term 1 ctdprd51.pg_catalog.pg_attribute 1 ctdprd51.pub2.term_comp 1 ctdprd51.pub2.term_reference 1 Total 39 Vacuums per table
Key values
- pubc.log_query (5) Main table vacuumed on database ctdprd51
- 27 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pubc.log_query 5 2 2,235 0 316 0 0 729 243 589,341 ctdprd51.pub2.term_comp_agent 2 0 209 0 4 0 0 47 2 17,698 ctdprd51.pub2.phenotype_term 2 2 1,007,059 0 100,005 0 0 807,127 45,275 223,352,899 ctdprd51.pub2.gene_disease 1 1 2,963,399 0 617,534 0 0 1,683,937 563,997 2,109,259,445 ctdprd51.pub2.ixn 1 1 1,598,728 0 111 0 0 1,063,705 20 73,058,980 ctdprd51.pub2.gene_chem_ref_gene_form 1 0 35,165 0 5 0 0 17,532 2 1,046,839 ctdprd51.pub2.slim_term_mapping 1 0 640 0 4 0 0 265 2 27,994 ctdprd51.pg_catalog.pg_attribute 1 1 570 0 159 0 37 278 98 439,161 ctdprd51.pub2.term 1 1 837,521 0 218,959 0 0 461,495 272,642 1,230,534,272 ctdprd51.pub2.term_set_enrichment 1 0 570 0 3 0 0 247 1 22,992 ctdprd51.pub2.term_reference 1 0 39,598 0 4 0 0 19,744 1 1,173,315 ctdprd51.pub2.reference 1 1 361,415 0 54,716 0 0 211,864 52,367 216,543,510 ctdprd51.pg_catalog.pg_class 1 1 361 0 63 0 0 190 61 271,803 ctdprd51.pub2.gene_gene 1 0 12,729 0 5 0 0 6,313 2 384,846 ctdprd51.pg_toast.pg_toast_2619 1 1 4,894 0 2,620 0 9,639 4,742 1,326 711,076 ctdprd51.pg_catalog.pg_statistic 1 1 631 0 189 0 128 459 143 603,412 ctdprd51.pub2.gene_gene_ref_throughput 1 0 15,339 0 4 0 0 7,647 2 463,352 ctdprd51.pg_toast.pg_toast_10104060 1 1 90 0 6 0 0 48 1 11,492 ctdprd51.pub2.gene_gene_reference 1 0 32,032 0 3 0 0 15,940 1 948,879 ctdprd51.pub2.term_set_enrichment_agent 1 0 11,432 0 4 0 0 5,685 2 347,298 ctdprd51.pg_catalog.pg_type 1 1 82 0 38 0 0 61 30 133,640 Total 27 14 6,924,699 182,984 994,752 0 9,804 4,308,055 936,218 3,859,942,244 Tuples removed per table
Key values
- pub2.gene_disease (34837180) Main table with removed tuples on database ctdprd51
- 56001922 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctdprd51.pub2.gene_disease 1 1 34,837,180 34,837,180 0 0 512,312 ctdprd51.pub2.phenotype_term 2 2 21,096,365 7,026,302 0 0 262,830 ctdprd51.pub2.ixn 1 1 57,120 2,470,568 0 0 585,901 ctdprd51.pg_toast.pg_toast_2619 1 1 5,347 22,352 54 0 12,592 ctdprd51.pubc.log_query 5 2 4,461 14,367 12,942 0 590 ctdprd51.pg_catalog.pg_attribute 1 1 641 8,741 0 0 230 ctdprd51.pg_catalog.pg_statistic 1 1 466 3,318 0 0 410 ctdprd51.pg_catalog.pg_class 1 1 178 1,799 0 0 94 ctdprd51.pg_catalog.pg_type 1 1 104 1,153 0 0 34 ctdprd51.pg_toast.pg_toast_10104060 1 1 60 71 0 0 21 ctdprd51.pub2.gene_chem_ref_gene_form 1 0 0 3,236,102 0 0 17,531 ctdprd51.pub2.slim_term_mapping 1 0 0 33,503 0 0 264 ctdprd51.pub2.term 1 1 0 2,133,881 0 0 238,414 ctdprd51.pub2.term_set_enrichment 1 0 0 14,850 0 0 246 ctdprd51.pub2.term_reference 1 0 0 3,652,320 0 0 19,743 ctdprd51.pub2.term_comp_agent 2 0 0 8,096 0 0 80 ctdprd51.pub2.reference 1 1 0 201,720 0 0 87,983 ctdprd51.pub2.gene_gene 1 0 0 1,167,641 0 0 6,312 ctdprd51.pub2.gene_gene_ref_throughput 1 0 0 1,469,382 0 0 7,646 ctdprd51.pub2.gene_gene_reference 1 0 0 1,461,764 0 0 15,939 ctdprd51.pub2.term_set_enrichment_agent 1 0 0 500,152 0 0 5,684 Total 27 14 56,001,922 58,265,262 12,996 0 1,774,856 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.pub2.gene_disease 1 1 34837180 0 ctdprd51.pub2.ixn 1 1 57120 0 ctdprd51.pub2.gene_chem_ref_gene_form 1 0 0 0 ctdprd51.pub2.slim_term_mapping 1 0 0 0 ctdprd51.pg_catalog.pg_attribute 1 1 641 0 ctdprd51.pub2.term 1 1 0 0 ctdprd51.pub2.term_set_enrichment 1 0 0 0 ctdprd51.pub2.term_reference 1 0 0 0 ctdprd51.pubc.log_query 5 2 4461 0 ctdprd51.pub2.term_comp_agent 2 0 0 0 ctdprd51.pub2.reference 1 1 0 0 ctdprd51.pub2.phenotype_term 2 2 21096365 0 ctdprd51.pg_catalog.pg_class 1 1 178 0 ctdprd51.pub2.gene_gene 1 0 0 0 ctdprd51.pg_toast.pg_toast_2619 1 1 5347 0 ctdprd51.pg_catalog.pg_statistic 1 1 466 0 ctdprd51.pub2.gene_gene_ref_throughput 1 0 0 0 ctdprd51.pg_toast.pg_toast_10104060 1 1 60 0 ctdprd51.pub2.gene_gene_reference 1 0 0 0 ctdprd51.pub2.term_set_enrichment_agent 1 0 0 0 ctdprd51.pg_catalog.pg_type 1 1 104 0 Total 27 14 56,001,922 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jan 06 00 12 8 01 0 2 02 2 4 03 0 1 04 5 5 05 0 3 06 3 3 07 0 1 08 0 1 09 0 0 10 1 0 11 0 1 12 4 6 13 0 2 14 0 0 15 0 0 16 0 1 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 1 23 0 0 - 219.79 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
- 70 Total read queries
- 100 Total write queries
Queries by database
Key values
- unknown Main database
- 129 Requests
- 9h2m30s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 318 Requests
User Request type Count Duration load Total 24 1h2m54s select 24 1h2m54s postgres Total 18 17m46s copy to 18 17m46s pub1 Total 1 7s663ms select 1 7s663ms pub2 Total 6 15m36s insert 3 15m17s select 3 18s864ms pubc Total 1 9m28s select 1 9m28s pubeu Total 27 14m34s select 27 14m34s qaeu Total 25 50m2s select 25 50m2s unknown Total 318 14h3m36s copy to 148 2h38m54s ddl 35 41m6s insert 17 45m12s others 18 55m32s select 92 8h27m42s update 8 35m7s Duration by user
Key values
- 14h3m36s (unknown) Main time consuming user
User Request type Count Duration load Total 24 1h2m54s select 24 1h2m54s postgres Total 18 17m46s copy to 18 17m46s pub1 Total 1 7s663ms select 1 7s663ms pub2 Total 6 15m36s insert 3 15m17s select 3 18s864ms pubc Total 1 9m28s select 1 9m28s pubeu Total 27 14m34s select 27 14m34s qaeu Total 25 50m2s select 25 50m2s unknown Total 318 14h3m36s copy to 148 2h38m54s ddl 35 41m6s insert 17 45m12s others 18 55m32s select 92 8h27m42s update 8 35m7s Queries by host
Key values
- unknown Main host
- 420 Requests
- 16h54m6s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 168 Requests
- 9h55m11s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-01-06 15:15:09 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 111 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 2h10m54s select pub2.maint_term_derive_data ();[ Date: 2026-01-06 06:19:45 - Bind query: yes ]
2 1h50m58s select pub2.maint_gene_chem_ref_gene_form_refresh ();[ Date: 2026-01-06 02:09:03 - Bind query: yes ]
3 1h1m6s SELECT maint_term_derive_nm_fts ();[ Date: 2026-01-06 03:13:03 - Bind query: yes ]
4 49m33s VACUUM FULL ANALYZE;[ Date: 2026-01-06 04:08:28 - Bind query: yes ]
5 37m37s 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: 2026-01-06 14:02:33 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
6 36m40s select pub2.maint_cached_value_refresh_data_metrics ();[ Date: 2026-01-06 07:06:39 - Bind query: yes ]
7 26m18s COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;[ Date: 2026-01-06 19:29:54 ]
8 26m12s COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;[ Date: 2026-01-06 18:43:37 ]
9 26m1s update pub2.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub2.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));[ Date: 2026-01-06 00:12:27 - Bind query: yes ]
10 9m28s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2026-01-06 00:09:29 - Database: ctdprd51 - User: pubc - Application: psql ]
11 9m2s select pub2.maint_phenotype_term_derive_data ();[ Date: 2026-01-06 06:29:59 - Bind query: yes ]
12 7m35s COPY pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;[ Date: 2026-01-06 19:42:55 ]
13 7m27s COPY pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;[ Date: 2026-01-06 18:56:33 ]
14 2m44s INSERT INTO pub2.TERM_REFERENCE (term_id, object_type_id, reference_id, ixn_type_id) SELECT DISTINCT term_id, object_type_id, reference_id, ixn_type_id FROM ( SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE WHERE taxon_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT ee.exp_marker_term_id as term_id, ( SELECT object_type_id FROM term WHERE id = exp_marker_term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_EVENT ee WHERE e.exp_event_id = ee.id AND exp_marker_term_id IS NOT NULL UNION SELECT er.term_id, ( SELECT object_type_id FROM term WHERE id = er.term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_RECEPTOR er WHERE e.exp_receptor_id = er.id AND er.term_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM term WHERE id = chem_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_STRESSOR es WHERE e.exp_stressor_id = es.id AND chem_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM term WHERE id = phenotype_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND phenotype_id IS NOT NULL UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM term WHERE id = disease_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND disease_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = phenotype_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = term_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' AND taxon_id IS NOT NULL UNION SELECT from_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT from_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT DISTINCT t.id as taxon_id, t.object_type_id as taxon_object_id, r.id as reference_id, i.ixn_type_id as ixn_type_id FROM edit.REFERENCE_IXN ri, pub2.TERM t, edit.IXN i, pub2.REFERENCE r WHERE ri.taxon_acc_txt = t.acc_txt AND t.object_type_id = ( SELECT id FROM pub2.OBJECT_TYPE WHERE cd = 'taxon') AND ri.ixn_id = i.root_id AND i.ixn_type_id in ( SELECT id FROM edit.IXN_TYPE WHERE nm in ('CHEMICAL-DISEASE', 'GENE-DISEASE')) AND ri.reference_acc_txt = r.acc_txt AND ri.taxon_acc_txt IS NOT NULL AND ri.taxon_acc_txt <> '') as test UNION select ea.anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_ANATOMY ea, pub2.EXP_OUTCOME eo, pub2.EXPOSURE e, pub2.REFERENCE r where ea.exp_outcome_id = eo.id and eo.id = e.exp_outcome_id and e.reference_acc_txt = r.acc_txt UNION select anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'PHENOTYPE') as ixn_type_id from pub2.IXN i, pub2.IXN_ANATOMY ia, edit.REFERENCE_IXN ri, pub2.REFERENCE r where i.id = ri.ixn_id and ri.reference_acc_txt = r.acc_txt and i.id = ia.ixn_id UNION select medium_term_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_EVENT ee, pub2.EXPOSURE e, pub2.REFERENCE r where ee.id = e.exp_event_id and e.reference_acc_txt = r.acc_txt and medium_term_id is not null;[ Date: 2026-01-06 02:11:48 - Bind query: yes ]
15 2m34s SELECT maint_term_label_derive_nm_fts ();[ Date: 2026-01-06 03:15:47 - Bind query: yes ]
16 2m24s 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: 2026-01-06 15:15:18 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
17 2m23s update pub2.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub2.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));[ Date: 2026-01-06 00:14:51 - Bind query: yes ]
18 2m20s 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: 2026-01-06 15:12:10 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
19 1m51s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-01-06 14:06:52 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
20 1m51s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-01-06 18:06:52 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2h10m54s 1 2h10m54s 2h10m54s 2h10m54s select pub2.maint_term_derive_data ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jan 06 06 1 2h10m54s 2h10m54s -
select pub2.maint_term_derive_data ();
Date: 2026-01-06 06:19:45 Duration: 2h10m54s Bind query: yes
2 1h50m58s 1 1h50m58s 1h50m58s 1h50m58s select pub2.maint_gene_chem_ref_gene_form_refresh ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 06 02 1 1h50m58s 1h50m58s -
select pub2.maint_gene_chem_ref_gene_form_refresh ();
Date: 2026-01-06 02:09:03 Duration: 1h50m58s Bind query: yes
3 1h1m6s 1 1h1m6s 1h1m6s 1h1m6s select maint_term_derive_nm_fts ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jan 06 03 1 1h1m6s 1h1m6s -
SELECT maint_term_derive_nm_fts ();
Date: 2026-01-06 03:13:03 Duration: 1h1m6s Bind query: yes
4 49m33s 1 0ms 49m33s 49m33s vacuum full analyze;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 06 04 1 49m33s 49m33s -
VACUUM FULL ANALYZE;
Date: 2026-01-06 04:08:28 Duration: 49m33s Bind query: yes
-
VACUUM FULL ANALYZE;
Date: 2026-01-06 03:18:56 Duration: 0ms
5 38m20s 9 5s53ms 37m37s 4m15s 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 Jan 06 14 9 38m20s 4m15s [ User: qaeu - Total duration: 37m37s - 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: 2026-01-06 14:02:33 Duration: 37m37s 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: 2026-01-06 14:09:25 Duration: 5s836ms 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: 2026-01-06 14:23:07 Duration: 5s565ms Bind query: yes
6 36m40s 1 36m40s 36m40s 36m40s select pub2.maint_cached_value_refresh_data_metrics ();Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 06 07 1 36m40s 36m40s -
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:06:39 Duration: 36m40s Bind query: yes
-
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:02:05 Duration: 0ms
7 26m18s 1 26m18s 26m18s 26m18s copy pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 06 19 1 26m18s 26m18s -
COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2026-01-06 19:29:54 Duration: 26m18s
8 26m12s 1 26m12s 26m12s 26m12s copy pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 06 18 1 26m12s 26m12s -
COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2026-01-06 18:43:37 Duration: 26m12s
9 26m1s 1 26m1s 26m1s 26m1s update pub2.gene_disease gd set exposure_reference_qty = ( select count(distinct reference_id) from pub2.gene_disease_reference gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub2.reference r where has_exposures = true));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 06 00 1 26m1s 26m1s -
update pub2.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub2.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));
Date: 2026-01-06 00:12:27 Duration: 26m1s Bind query: yes
10 9m28s 1 9m28s 9m28s 9m28s select maint_query_logs_archive ();Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 06 00 1 9m28s 9m28s [ User: pubc - Total duration: 9m28s - Times executed: 1 ]
[ Application: psql - Total duration: 9m28s - Times executed: 1 ]
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2026-01-06 00:09:29 Duration: 9m28s Database: ctdprd51 User: pubc Application: psql
11 9m13s 5 1m50s 1m51s 1m50s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jan 06 06 1 1m50s 1m50s 10 1 1m50s 1m50s 14 1 1m51s 1m51s 18 1 1m51s 1m51s 19 1 1m50s 1m50s [ User: postgres - Total duration: 7m23s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m23s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 14:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 18:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 10:06:52 Duration: 1m50s Database: ctdprd51 User: postgres Application: pg_dump
12 9m2s 1 9m2s 9m2s 9m2s select pub2.maint_phenotype_term_derive_data ();Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 06 06 1 9m2s 9m2s -
select pub2.maint_phenotype_term_derive_data ();
Date: 2026-01-06 06:29:59 Duration: 9m2s Bind query: yes
13 7m35s 1 7m35s 7m35s 7m35s copy pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jan 06 19 1 7m35s 7m35s -
COPY pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;
Date: 2026-01-06 19:42:55 Duration: 7m35s
14 7m27s 1 7m27s 7m27s 7m27s copy pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 06 18 1 7m27s 7m27s -
COPY pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;
Date: 2026-01-06 18:56:33 Duration: 7m27s
15 2m55s 5 5s182ms 2m24s 35s179ms 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 #15
Day Hour Count Duration Avg duration Jan 06 15 5 2m55s 35s179ms [ User: qaeu - Total duration: 2m37s - 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: 2026-01-06 15:15:18 Duration: 2m24s 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: 2026-01-06 15:17:15 Duration: 12s691ms 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: 2026-01-06 15:15:31 Duration: 6s774ms Bind query: yes
16 2m44s 1 2m44s 2m44s 2m44s insert into pub2.term_reference (term_id, object_type_id, reference_id, ixn_type_id) select distinct term_id, object_type_id, reference_id, ixn_type_id from ( select gene_id as term_id, ( select object_type_id from pub2.term where id = gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference union select chem_id as term_id, ( select object_type_id from pub2.term where id = chem_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference union select taxon_id as term_id, ( select object_type_id from pub2.term where id = taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference where taxon_id is not null union select chem_id as term_id, ( select object_type_id from pub2.term where id = chem_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.chem_disease_reference where source_cd = ? union select disease_id as term_id, ( select object_type_id from pub2.term where id = disease_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.chem_disease_reference where source_cd = ? union select gene_id as term_id, ( select object_type_id from pub2.term where id = gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_disease_reference where source_cd = ? union select disease_id as term_id, ( select object_type_id from pub2.term where id = disease_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_disease_reference where source_cd = ? union select ee.exp_marker_term_id as term_id, ( select object_type_id from term where id = exp_marker_term_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_event ee where e.exp_event_id = ee.id and exp_marker_term_id is not null union select er.term_id, ( select object_type_id from term where id = er.term_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_receptor er where e.exp_receptor_id = er.id and er.term_id is not null union select chem_id as term_id, ( select object_type_id from term where id = chem_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_stressor es where e.exp_stressor_id = es.id and chem_id is not null union select phenotype_id as term_id, ( select object_type_id from term where id = phenotype_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_outcome eo where e.exp_outcome_id = eo.id and phenotype_id is not null union select disease_id as term_id, ( select object_type_id from term where id = disease_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_outcome eo where e.exp_outcome_id = eo.id and disease_id is not null union select phenotype_id as term_id, ( select object_type_id from pub2.term where id = phenotype_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? union select term_id, ( select object_type_id from pub2.term where id = term_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? union select taxon_id as term_id, ( select object_type_id from pub2.term where id = taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? and taxon_id is not null union select from_gene_id as term_id, ( select object_type_id from pub2.term where id = from_gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select to_gene_id as term_id, ( select object_type_id from pub2.term where id = to_gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select from_taxon_id as term_id, ( select object_type_id from pub2.term where id = from_taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select to_taxon_id as term_id, ( select object_type_id from pub2.term where id = to_taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select distinct t.id as taxon_id, t.object_type_id as taxon_object_id, r.id as reference_id, i.ixn_type_id as ixn_type_id from edit.reference_ixn ri, pub2.term t, edit.ixn i, pub2.reference r where ri.taxon_acc_txt = t.acc_txt and t.object_type_id = ( select id from pub2.object_type where cd = ?) and ri.ixn_id = i.root_id and i.ixn_type_id in ( select id from edit.ixn_type where nm in (...)) and ri.reference_acc_txt = r.acc_txt and ri.taxon_acc_txt is not null and ri.taxon_acc_txt <> ?) as test union select ea.anatomy_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.exp_anatomy ea, pub2.exp_outcome eo, pub2.exposure e, pub2.reference r where ea.exp_outcome_id = eo.id and eo.id = e.exp_outcome_id and e.reference_acc_txt = r.acc_txt union select anatomy_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.ixn i, pub2.ixn_anatomy ia, edit.reference_ixn ri, pub2.reference r where i.id = ri.ixn_id and ri.reference_acc_txt = r.acc_txt and i.id = ia.ixn_id union select medium_term_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.exp_event ee, pub2.exposure e, pub2.reference r where ee.id = e.exp_event_id and e.reference_acc_txt = r.acc_txt and medium_term_id is not null;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jan 06 02 1 2m44s 2m44s -
INSERT INTO pub2.TERM_REFERENCE (term_id, object_type_id, reference_id, ixn_type_id) SELECT DISTINCT term_id, object_type_id, reference_id, ixn_type_id FROM ( SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE WHERE taxon_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT ee.exp_marker_term_id as term_id, ( SELECT object_type_id FROM term WHERE id = exp_marker_term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_EVENT ee WHERE e.exp_event_id = ee.id AND exp_marker_term_id IS NOT NULL UNION SELECT er.term_id, ( SELECT object_type_id FROM term WHERE id = er.term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_RECEPTOR er WHERE e.exp_receptor_id = er.id AND er.term_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM term WHERE id = chem_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_STRESSOR es WHERE e.exp_stressor_id = es.id AND chem_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM term WHERE id = phenotype_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND phenotype_id IS NOT NULL UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM term WHERE id = disease_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND disease_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = phenotype_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = term_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' AND taxon_id IS NOT NULL UNION SELECT from_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT from_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT DISTINCT t.id as taxon_id, t.object_type_id as taxon_object_id, r.id as reference_id, i.ixn_type_id as ixn_type_id FROM edit.REFERENCE_IXN ri, pub2.TERM t, edit.IXN i, pub2.REFERENCE r WHERE ri.taxon_acc_txt = t.acc_txt AND t.object_type_id = ( SELECT id FROM pub2.OBJECT_TYPE WHERE cd = 'taxon') AND ri.ixn_id = i.root_id AND i.ixn_type_id in ( SELECT id FROM edit.IXN_TYPE WHERE nm in ('CHEMICAL-DISEASE', 'GENE-DISEASE')) AND ri.reference_acc_txt = r.acc_txt AND ri.taxon_acc_txt IS NOT NULL AND ri.taxon_acc_txt <> '') as test UNION select ea.anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_ANATOMY ea, pub2.EXP_OUTCOME eo, pub2.EXPOSURE e, pub2.REFERENCE r where ea.exp_outcome_id = eo.id and eo.id = e.exp_outcome_id and e.reference_acc_txt = r.acc_txt UNION select anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'PHENOTYPE') as ixn_type_id from pub2.IXN i, pub2.IXN_ANATOMY ia, edit.REFERENCE_IXN ri, pub2.REFERENCE r where i.id = ri.ixn_id and ri.reference_acc_txt = r.acc_txt and i.id = ia.ixn_id UNION select medium_term_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_EVENT ee, pub2.EXPOSURE e, pub2.REFERENCE r where ee.id = e.exp_event_id and e.reference_acc_txt = r.acc_txt and medium_term_id is not null;
Date: 2026-01-06 02:11:48 Duration: 2m44s Bind query: yes
17 2m34s 1 2m34s 2m34s 2m34s select maint_term_label_derive_nm_fts ();Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jan 06 03 1 2m34s 2m34s -
SELECT maint_term_label_derive_nm_fts ();
Date: 2026-01-06 03:15:47 Duration: 2m34s Bind query: yes
18 2m23s 1 2m23s 2m23s 2m23s update pub2.phenotype_term pt set exposure_reference_qty = ( select count(distinct reference_id) from pub2.phenotype_term_reference ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub2.reference r where has_exposures = true));Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 06 00 1 2m23s 2m23s -
update pub2.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub2.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));
Date: 2026-01-06 00:14:51 Duration: 2m23s Bind query: yes
19 2m20s 1 2m20s 2m20s 2m20s 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 #19
Day Hour Count Duration Avg duration Jan 06 15 1 2m20s 2m20s [ User: qaeu - Total duration: 2m20s - 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: 2026-01-06 15:12:10 Duration: 2m20s Database: ctdprd51 User: qaeu Bind query: yes
20 1m59s 5 23s728ms 23s955ms 23s872ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jan 06 06 1 23s892ms 23s892ms 10 1 23s891ms 23s891ms 14 1 23s894ms 23s894ms 18 1 23s955ms 23s955ms 19 1 23s728ms 23s728ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 18:07:16 Duration: 23s955ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 14:07:16 Duration: 23s894ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 06:07:16 Duration: 23s892ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 9 38m20s 5s53ms 37m37s 4m15s 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 Jan 06 14 9 38m20s 4m15s [ User: qaeu - Total duration: 37m37s - 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: 2026-01-06 14:02:33 Duration: 37m37s 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: 2026-01-06 14:09:25 Duration: 5s836ms 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: 2026-01-06 14:23:07 Duration: 5s565ms Bind query: yes
2 5 9m13s 1m50s 1m51s 1m50s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 06 06 1 1m50s 1m50s 10 1 1m50s 1m50s 14 1 1m51s 1m51s 18 1 1m51s 1m51s 19 1 1m50s 1m50s [ User: postgres - Total duration: 7m23s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m23s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 14:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 18:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 10:06:52 Duration: 1m50s Database: ctdprd51 User: postgres Application: pg_dump
3 5 2m55s 5s182ms 2m24s 35s179ms 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 #3
Day Hour Count Duration Avg duration Jan 06 15 5 2m55s 35s179ms [ User: qaeu - Total duration: 2m37s - 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: 2026-01-06 15:15:18 Duration: 2m24s 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: 2026-01-06 15:17:15 Duration: 12s691ms 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: 2026-01-06 15:15:31 Duration: 6s774ms Bind query: yes
4 5 1m59s 23s728ms 23s955ms 23s872ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 06 06 1 23s892ms 23s892ms 10 1 23s891ms 23s891ms 14 1 23s894ms 23s894ms 18 1 23s955ms 23s955ms 19 1 23s728ms 23s728ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 18:07:16 Duration: 23s955ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 14:07:16 Duration: 23s894ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 06:07:16 Duration: 23s892ms
5 5 1m30s 17s939ms 18s405ms 18s64ms copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jan 06 06 1 18s405ms 18s405ms 10 1 17s944ms 17s944ms 14 1 17s994ms 17s994ms 18 2 35s975ms 17s987ms [ User: postgres - Total duration: 1m30s - Times executed: 5 ]
[ Application: pg_dump - Total duration: 1m30s - Times executed: 5 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:00:20 Duration: 18s405ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 18:10:20 Duration: 18s35ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:00:20 Duration: 17s994ms Database: ctdprd51 User: postgres Application: pg_dump
6 5 1m17s 15s420ms 15s602ms 15s501ms copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 06 06 1 15s557ms 15s557ms 10 1 15s420ms 15s420ms 14 1 15s602ms 15s602ms 18 1 15s481ms 15s481ms 19 1 15s444ms 15s444ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-01-06 14:07:32 Duration: 15s602ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-01-06 06:07:31 Duration: 15s557ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-01-06 18:07:32 Duration: 15s481ms
7 5 1m12s 14s430ms 14s586ms 14s498ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 06 06 1 14s586ms 14s586ms 10 1 14s430ms 14s430ms 14 1 14s517ms 14s517ms 18 2 28s957ms 14s478ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:00:50 Duration: 14s586ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:00:50 Duration: 14s517ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 18:00:50 Duration: 14s511ms
8 5 1m12s 14s354ms 14s628ms 14s442ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 06 06 1 14s628ms 14s628ms 10 1 14s406ms 14s406ms 14 1 14s445ms 14s445ms 18 2 28s731ms 14s365ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:01:05 Duration: 14s628ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:01:05 Duration: 14s445ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 10:01:04 Duration: 14s406ms
9 5 36s256ms 7s193ms 7s377ms 7s251ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 06 06 1 7s239ms 7s239ms 10 1 7s193ms 7s193ms 14 1 7s377ms 7s377ms 18 2 14s446ms 7s223ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:00:29 Duration: 7s377ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:00:30 Duration: 7s239ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 18:00:29 Duration: 7s235ms
10 5 31s809ms 6s317ms 6s405ms 6s361ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 06 06 1 6s375ms 6s375ms 10 1 6s355ms 6s355ms 14 1 6s405ms 6s405ms 18 2 12s672ms 6s336ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:01:13 Duration: 6s405ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:01:13 Duration: 6s375ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 10:01:12 Duration: 6s355ms
11 5 30s280ms 5s573ms 7s86ms 6s56ms 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 #11
Day Hour Count Duration Avg duration Jan 06 02 1 7s86ms 7s86ms 06 1 5s573ms 5s573ms 19 2 11s763ms 5s881ms 23 1 5s857ms 5s857ms [ User: pubeu - Total duration: 18s516ms - Times executed: 3 ]
[ User: qaeu - Total duration: 11s763ms - 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 = '1292466' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-01-06 02:31:35 Duration: 7s86ms 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 = '1445819' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-01-06 19:42:05 Duration: 5s908ms Database: ctdprd51 User: qaeu 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 = '1377259' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-01-06 23:28:16 Duration: 5s857ms Database: ctdprd51 User: pubeu Bind query: yes
12 5 30s82ms 5s967ms 6s61ms 6s16ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 06 06 1 6s61ms 6s61ms 10 1 5s967ms 5s967ms 14 1 6s37ms 6s37ms 18 2 12s15ms 6s7ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 06:00:36 Duration: 6s61ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 14:00:35 Duration: 6s37ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-01-06 18:00:35 Duration: 6s17ms
13 3 26s192ms 7s860ms 10s151ms 8s730ms vacuum analyze pub2.term;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jan 06 03 2 18s331ms 9s165ms 04 1 7s860ms 7s860ms -
VACUUM ANALYZE pub2.TERM;
Date: 2026-01-06 03:13:13 Duration: 10s151ms Bind query: yes
-
VACUUM ANALYZE pub2.TERM;
Date: 2026-01-06 03:16:36 Duration: 8s179ms Bind query: yes
-
VACUUM ANALYZE pub2.TERM;
Date: 2026-01-06 04:08:36 Duration: 7s860ms Bind query: yes
14 3 22s971ms 7s547ms 7s832ms 7s657ms vacuum analyze pub2.reference;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 06 02 1 7s832ms 7s832ms 03 1 7s590ms 7s590ms 04 1 7s547ms 7s547ms -
VACUUM ANALYZE pub2.REFERENCE;
Date: 2026-01-06 02:11:56 Duration: 7s832ms Bind query: yes
-
VACUUM ANALYZE pub2.REFERENCE;
Date: 2026-01-06 03:17:15 Duration: 7s590ms Bind query: yes
-
VACUUM ANALYZE pub2.REFERENCE;
Date: 2026-01-06 04:08:51 Duration: 7s547ms Bind query: yes
15 3 19s845ms 5s75ms 7s993ms 6s615ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jan 06 00 1 5s75ms 5s75ms 09 1 6s776ms 6s776ms 19 1 7s993ms 7s993ms [ User: pubeu - Total duration: 11s851ms - Times executed: 2 ]
[ User: qaeu - Total duration: 7s993ms - Times executed: 1 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2126604') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-01-06 19:38:09 Duration: 7s993ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2121628') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-01-06 09:28:52 Duration: 6s776ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2121534') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-01-06 00:24:57 Duration: 5s75ms Database: ctdprd51 User: pubeu Bind query: yes
16 2 51s318ms 10s792ms 40s525ms 25s659ms 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 #16
Day Hour Count Duration Avg duration Jan 06 13 2 51s318ms 25s659ms [ User: qaeu - Total duration: 40s525ms - 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: 2026-01-06 13:08:17 Duration: 40s525ms 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: 2026-01-06 13:08:40 Duration: 10s792ms Bind query: yes
17 2 25s966ms 7s573ms 18s392ms 12s983ms 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 asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jan 06 05 2 25s966ms 12s983ms [ User: qaeu - Total duration: 18s392ms - 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 asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-01-06 05:45:55 Duration: 18s392ms 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 asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-01-06 05:49:11 Duration: 7s573ms Bind query: yes
18 2 20s189ms 7s707ms 12s482ms 10s94ms select g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, i.id ixnid, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where gcr.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 06 00 1 12s482ms 12s482ms 04 1 7s707ms 7s707ms [ User: pubeu - Total duration: 20s189ms - Times executed: 2 ]
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1292466') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-01-06 00:54:23 Duration: 12s482ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1355045') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-01-06 04:00:43 Duration: 7s707ms Database: ctdprd51 User: pubeu Bind query: yes
19 2 16s445ms 5s261ms 11s184ms 8s222ms select ?, count(*) from term_enrichment_agent;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jan 06 10 2 16s445ms 8s222ms [ User: pub2 - Total duration: 5s261ms - Times executed: 1 ]
[ Application: psql - Total duration: 5s261ms - Times executed: 1 ]
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2026-01-06 10:19:07 Duration: 11s184ms
-
select 'TERM_ENRICHMENT_AGENT', count(*) from TERM_ENRICHMENT_AGENT;
Date: 2026-01-06 10:19:26 Duration: 5s261ms Database: ctdprd51 User: pub2 Application: psql
20 2 14s903ms 7s449ms 7s453ms 7s451ms 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 asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jan 06 05 2 14s903ms 7s451ms [ User: qaeu - Total duration: 7s453ms - Times executed: 1 ]
[ User: pubeu - Total duration: 7s449ms - 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 '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 asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-01-06 05:46:02 Duration: 7s453ms 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 '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 asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-01-06 05:49:19 Duration: 7s449ms Database: ctdprd51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2h10m54s 2h10m54s 2h10m54s 1 2h10m54s select pub2.maint_term_derive_data ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jan 06 06 1 2h10m54s 2h10m54s -
select pub2.maint_term_derive_data ();
Date: 2026-01-06 06:19:45 Duration: 2h10m54s Bind query: yes
2 1h50m58s 1h50m58s 1h50m58s 1 1h50m58s select pub2.maint_gene_chem_ref_gene_form_refresh ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 06 02 1 1h50m58s 1h50m58s -
select pub2.maint_gene_chem_ref_gene_form_refresh ();
Date: 2026-01-06 02:09:03 Duration: 1h50m58s Bind query: yes
3 1h1m6s 1h1m6s 1h1m6s 1 1h1m6s select maint_term_derive_nm_fts ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jan 06 03 1 1h1m6s 1h1m6s -
SELECT maint_term_derive_nm_fts ();
Date: 2026-01-06 03:13:03 Duration: 1h1m6s Bind query: yes
4 0ms 49m33s 49m33s 1 49m33s vacuum full analyze;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 06 04 1 49m33s 49m33s -
VACUUM FULL ANALYZE;
Date: 2026-01-06 04:08:28 Duration: 49m33s Bind query: yes
-
VACUUM FULL ANALYZE;
Date: 2026-01-06 03:18:56 Duration: 0ms
5 36m40s 36m40s 36m40s 1 36m40s select pub2.maint_cached_value_refresh_data_metrics ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jan 06 07 1 36m40s 36m40s -
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:06:39 Duration: 36m40s Bind query: yes
-
select pub2.maint_cached_value_refresh_data_metrics ();
Date: 2026-01-06 07:02:05 Duration: 0ms
6 26m18s 26m18s 26m18s 1 26m18s copy pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 06 19 1 26m18s 26m18s -
COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2026-01-06 19:29:54 Duration: 26m18s
7 26m12s 26m12s 26m12s 1 26m12s copy pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 06 18 1 26m12s 26m12s -
COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2026-01-06 18:43:37 Duration: 26m12s
8 26m1s 26m1s 26m1s 1 26m1s update pub2.gene_disease gd set exposure_reference_qty = ( select count(distinct reference_id) from pub2.gene_disease_reference gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub2.reference r where has_exposures = true));Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 06 00 1 26m1s 26m1s -
update pub2.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub2.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));
Date: 2026-01-06 00:12:27 Duration: 26m1s Bind query: yes
9 9m28s 9m28s 9m28s 1 9m28s select maint_query_logs_archive ();Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 06 00 1 9m28s 9m28s [ User: pubc - Total duration: 9m28s - Times executed: 1 ]
[ Application: psql - Total duration: 9m28s - Times executed: 1 ]
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2026-01-06 00:09:29 Duration: 9m28s Database: ctdprd51 User: pubc Application: psql
10 9m2s 9m2s 9m2s 1 9m2s select pub2.maint_phenotype_term_derive_data ();Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 06 06 1 9m2s 9m2s -
select pub2.maint_phenotype_term_derive_data ();
Date: 2026-01-06 06:29:59 Duration: 9m2s Bind query: yes
11 7m35s 7m35s 7m35s 1 7m35s copy pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jan 06 19 1 7m35s 7m35s -
COPY pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;
Date: 2026-01-06 19:42:55 Duration: 7m35s
12 7m27s 7m27s 7m27s 1 7m27s copy pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 06 18 1 7m27s 7m27s -
COPY pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;
Date: 2026-01-06 18:56:33 Duration: 7m27s
13 5s53ms 37m37s 4m15s 9 38m20s 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 #13
Day Hour Count Duration Avg duration Jan 06 14 9 38m20s 4m15s [ User: qaeu - Total duration: 37m37s - 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: 2026-01-06 14:02:33 Duration: 37m37s 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: 2026-01-06 14:09:25 Duration: 5s836ms 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: 2026-01-06 14:23:07 Duration: 5s565ms Bind query: yes
14 2m44s 2m44s 2m44s 1 2m44s insert into pub2.term_reference (term_id, object_type_id, reference_id, ixn_type_id) select distinct term_id, object_type_id, reference_id, ixn_type_id from ( select gene_id as term_id, ( select object_type_id from pub2.term where id = gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference union select chem_id as term_id, ( select object_type_id from pub2.term where id = chem_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference union select taxon_id as term_id, ( select object_type_id from pub2.term where id = taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_chem_reference where taxon_id is not null union select chem_id as term_id, ( select object_type_id from pub2.term where id = chem_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.chem_disease_reference where source_cd = ? union select disease_id as term_id, ( select object_type_id from pub2.term where id = disease_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.chem_disease_reference where source_cd = ? union select gene_id as term_id, ( select object_type_id from pub2.term where id = gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_disease_reference where source_cd = ? union select disease_id as term_id, ( select object_type_id from pub2.term where id = disease_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_disease_reference where source_cd = ? union select ee.exp_marker_term_id as term_id, ( select object_type_id from term where id = exp_marker_term_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_event ee where e.exp_event_id = ee.id and exp_marker_term_id is not null union select er.term_id, ( select object_type_id from term where id = er.term_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_receptor er where e.exp_receptor_id = er.id and er.term_id is not null union select chem_id as term_id, ( select object_type_id from term where id = chem_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_stressor es where e.exp_stressor_id = es.id and chem_id is not null union select phenotype_id as term_id, ( select object_type_id from term where id = phenotype_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_outcome eo where e.exp_outcome_id = eo.id and phenotype_id is not null union select disease_id as term_id, ( select object_type_id from term where id = disease_id), e.reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.exposure e, pub2.exp_outcome eo where e.exp_outcome_id = eo.id and disease_id is not null union select phenotype_id as term_id, ( select object_type_id from pub2.term where id = phenotype_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? union select term_id, ( select object_type_id from pub2.term where id = term_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? union select taxon_id as term_id, ( select object_type_id from pub2.term where id = taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.phenotype_term_reference where source_cd = ? and taxon_id is not null union select from_gene_id as term_id, ( select object_type_id from pub2.term where id = from_gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select to_gene_id as term_id, ( select object_type_id from pub2.term where id = to_gene_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select from_taxon_id as term_id, ( select object_type_id from pub2.term where id = from_taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select to_taxon_id as term_id, ( select object_type_id from pub2.term where id = to_taxon_id), reference_id, ( select id from edit.ixn_type where nm = ?) as ixn_type_id from pub2.gene_gene_reference union select distinct t.id as taxon_id, t.object_type_id as taxon_object_id, r.id as reference_id, i.ixn_type_id as ixn_type_id from edit.reference_ixn ri, pub2.term t, edit.ixn i, pub2.reference r where ri.taxon_acc_txt = t.acc_txt and t.object_type_id = ( select id from pub2.object_type where cd = ?) and ri.ixn_id = i.root_id and i.ixn_type_id in ( select id from edit.ixn_type where nm in (...)) and ri.reference_acc_txt = r.acc_txt and ri.taxon_acc_txt is not null and ri.taxon_acc_txt <> ?) as test union select ea.anatomy_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.exp_anatomy ea, pub2.exp_outcome eo, pub2.exposure e, pub2.reference r where ea.exp_outcome_id = eo.id and eo.id = e.exp_outcome_id and e.reference_acc_txt = r.acc_txt union select anatomy_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.ixn i, pub2.ixn_anatomy ia, edit.reference_ixn ri, pub2.reference r where i.id = ri.ixn_id and ri.reference_acc_txt = r.acc_txt and i.id = ia.ixn_id union select medium_term_id as term_id, ( select id from object_type where cd = ?) as object_type_id, r.id, ( select id from ixn_type where nm = ?) as ixn_type_id from pub2.exp_event ee, pub2.exposure e, pub2.reference r where ee.id = e.exp_event_id and e.reference_acc_txt = r.acc_txt and medium_term_id is not null;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 06 02 1 2m44s 2m44s -
INSERT INTO pub2.TERM_REFERENCE (term_id, object_type_id, reference_id, ixn_type_id) SELECT DISTINCT term_id, object_type_id, reference_id, ixn_type_id FROM ( SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-GENE') as ixn_type_id FROM pub2.GENE_CHEM_REFERENCE WHERE taxon_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = chem_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'CHEMICAL-DISEASE') as ixn_type_id FROM pub2.CHEM_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = disease_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-DISEASE') as ixn_type_id FROM pub2.GENE_DISEASE_REFERENCE WHERE source_cd = 'C' UNION SELECT ee.exp_marker_term_id as term_id, ( SELECT object_type_id FROM term WHERE id = exp_marker_term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_EVENT ee WHERE e.exp_event_id = ee.id AND exp_marker_term_id IS NOT NULL UNION SELECT er.term_id, ( SELECT object_type_id FROM term WHERE id = er.term_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_RECEPTOR er WHERE e.exp_receptor_id = er.id AND er.term_id IS NOT NULL UNION SELECT chem_id as term_id, ( SELECT object_type_id FROM term WHERE id = chem_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_STRESSOR es WHERE e.exp_stressor_id = es.id AND chem_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM term WHERE id = phenotype_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND phenotype_id IS NOT NULL UNION SELECT disease_id as term_id, ( SELECT object_type_id FROM term WHERE id = disease_id), e.reference_id, ( SELECT id FROM edit.ixn_type WHERE nm = 'EXPOSURE') as ixn_type_id FROM pub2.EXPOSURE e, pub2.EXP_OUTCOME eo WHERE e.exp_outcome_id = eo.id AND disease_id IS NOT NULL UNION SELECT phenotype_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = phenotype_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = term_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' UNION SELECT taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'PHENOTYPE') as ixn_type_id FROM pub2.PHENOTYPE_TERM_REFERENCE WHERE source_cd = 'C' AND taxon_id IS NOT NULL UNION SELECT from_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_gene_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_gene_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT from_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = from_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT to_taxon_id as term_id, ( SELECT object_type_id FROM pub2.TERM WHERE id = to_taxon_id), reference_id, ( SELECT id FROM edit.IXN_TYPE WHERE nm = 'GENE-GENE') as ixn_type_id FROM pub2.GENE_GENE_REFERENCE UNION SELECT DISTINCT t.id as taxon_id, t.object_type_id as taxon_object_id, r.id as reference_id, i.ixn_type_id as ixn_type_id FROM edit.REFERENCE_IXN ri, pub2.TERM t, edit.IXN i, pub2.REFERENCE r WHERE ri.taxon_acc_txt = t.acc_txt AND t.object_type_id = ( SELECT id FROM pub2.OBJECT_TYPE WHERE cd = 'taxon') AND ri.ixn_id = i.root_id AND i.ixn_type_id in ( SELECT id FROM edit.IXN_TYPE WHERE nm in ('CHEMICAL-DISEASE', 'GENE-DISEASE')) AND ri.reference_acc_txt = r.acc_txt AND ri.taxon_acc_txt IS NOT NULL AND ri.taxon_acc_txt <> '') as test UNION select ea.anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_ANATOMY ea, pub2.EXP_OUTCOME eo, pub2.EXPOSURE e, pub2.REFERENCE r where ea.exp_outcome_id = eo.id and eo.id = e.exp_outcome_id and e.reference_acc_txt = r.acc_txt UNION select anatomy_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id as reference_id, ( select id from ixn_type where nm = 'PHENOTYPE') as ixn_type_id from pub2.IXN i, pub2.IXN_ANATOMY ia, edit.REFERENCE_IXN ri, pub2.REFERENCE r where i.id = ri.ixn_id and ri.reference_acc_txt = r.acc_txt and i.id = ia.ixn_id UNION select medium_term_id as term_id, ( select id from object_type where cd = 'anatomy') as object_type_id, r.id, ( select id from ixn_type where nm = 'EXPOSURE') as ixn_type_id from pub2.EXP_EVENT ee, pub2.EXPOSURE e, pub2.REFERENCE r where ee.id = e.exp_event_id and e.reference_acc_txt = r.acc_txt and medium_term_id is not null;
Date: 2026-01-06 02:11:48 Duration: 2m44s Bind query: yes
15 2m34s 2m34s 2m34s 1 2m34s select maint_term_label_derive_nm_fts ();Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jan 06 03 1 2m34s 2m34s -
SELECT maint_term_label_derive_nm_fts ();
Date: 2026-01-06 03:15:47 Duration: 2m34s Bind query: yes
16 2m23s 2m23s 2m23s 1 2m23s update pub2.phenotype_term pt set exposure_reference_qty = ( select count(distinct reference_id) from pub2.phenotype_term_reference ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub2.reference r where has_exposures = true));Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jan 06 00 1 2m23s 2m23s -
update pub2.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub2.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub2.REFERENCE r where has_exposures = true));
Date: 2026-01-06 00:14:51 Duration: 2m23s Bind query: yes
17 2m20s 2m20s 2m20s 1 2m20s 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 #17
Day Hour Count Duration Avg duration Jan 06 15 1 2m20s 2m20s [ User: qaeu - Total duration: 2m20s - 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: 2026-01-06 15:12:10 Duration: 2m20s Database: ctdprd51 User: qaeu Bind query: yes
18 1m50s 1m51s 1m50s 5 9m13s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 06 06 1 1m50s 1m50s 10 1 1m50s 1m50s 14 1 1m51s 1m51s 18 1 1m51s 1m51s 19 1 1m50s 1m50s [ User: postgres - Total duration: 7m23s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m23s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 14:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 18:06:52 Duration: 1m51s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-01-06 10:06:52 Duration: 1m50s Database: ctdprd51 User: postgres Application: pg_dump
19 5s182ms 2m24s 35s179ms 5 2m55s 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 #19
Day Hour Count Duration Avg duration Jan 06 15 5 2m55s 35s179ms [ User: qaeu - Total duration: 2m37s - 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: 2026-01-06 15:15:18 Duration: 2m24s 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: 2026-01-06 15:17:15 Duration: 12s691ms 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: 2026-01-06 15:15:31 Duration: 6s774ms Bind query: yes
20 10s792ms 40s525ms 25s659ms 2 51s318ms 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 #20
Day Hour Count Duration Avg duration Jan 06 13 2 51s318ms 25s659ms [ User: qaeu - Total duration: 40s525ms - 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: 2026-01-06 13:08:17 Duration: 40s525ms 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: 2026-01-06 13:08:40 Duration: 10s792ms Bind query: yes
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
- 23,045 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 1314 WARNING entries
- 34 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 1,041 Max number of times the same event was reported
- 1,348 Total events found
Rank Times reported Error 1 1,041 WARNING: skipping "..." --- only table or database owner can vacuum it
Times Reported Most Frequent Error / Event #1
Day Hour Count Jan 06 03 1,041 2 224 WARNING: skipping "..." --- only superuser or database owner can vacuum it
Times Reported Most Frequent Error / Event #2
Day Hour Count Jan 06 03 224 3 43 WARNING: skipping "..." --- only superuser can vacuum it
Times Reported Most Frequent Error / Event #3
Day Hour Count Jan 06 03 43 4 25 ERROR: unexpected EOF on client connection with an open transaction
Times Reported Most Frequent Error / Event #4
Day Hour Count Jan 06 13 17 15 8 5 9 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #5
Day Hour Count Jan 06 20 9 6 6 WARNING: there is no transaction in progress
Times Reported Most Frequent Error / Event #6
Day Hour Count Jan 06 03 2 06 4