-
Global information
- Generated on Mon Mar 2 04:15:04 2026
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20260301
- Parsed 16,888 log entries in 2s
- Log start from 2026-03-01 00:00:12 to 2026-03-01 23:59:57
-
Overview
Global Stats
- 11 Number of unique normalized queries
- 31 Number of queries
- 15m4s Total query duration
- 2026-03-01 00:09:27 First query
- 2026-03-01 23:59:16 Last query
- 2 queries/s at 2026-03-01 05:06:03 Query peak
- 15m4s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 15m4s Execute total duration
- 17 Number of events
- 3 Number of unique normalized events
- 15 Max number of times the same event was reported
- 0 Number of cancellation
- 4 Total number of automatic vacuums
- 18 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 2,070 Total number of sessions
- 46 sessions at 2026-03-01 04:14:41 Session peak
- 86d15h30m23s Total duration of sessions
- 1h16s Average duration of sessions
- 0 Average queries per session
- 436ms Average queries duration per session
- 1h16s Average idle time per session
- 2,057 Total number of connections
- 23 connections/s at 2026-03-01 05:09:43 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-03-01 05:06:03 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-03-01 05:06:03 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 15m4s 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) Mar 01 00 2 0ms 9m14s 4m40s 0ms 0ms 9m21s 01 5 0ms 9s793ms 9s660ms 0ms 0ms 48s301ms 02 0 0ms 0ms 0ms 0ms 0ms 0ms 03 0 0ms 0ms 0ms 0ms 0ms 0ms 04 3 0ms 15s835ms 9s809ms 0ms 7s640ms 15s835ms 05 15 0ms 10s562ms 7s530ms 14s875ms 29s475ms 32s840ms 06 0 0ms 0ms 0ms 0ms 0ms 0ms 07 0 0ms 0ms 0ms 0ms 0ms 0ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 0 0ms 0ms 0ms 0ms 0ms 0ms 10 0 0ms 0ms 0ms 0ms 0ms 0ms 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 0 0ms 0ms 0ms 0ms 0ms 0ms 13 0 0ms 0ms 0ms 0ms 0ms 0ms 14 0 0ms 0ms 0ms 0ms 0ms 0ms 15 0 0ms 0ms 0ms 0ms 0ms 0ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 1 0ms 5s578ms 5s578ms 0ms 0ms 5s578ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 5 0ms 33s277ms 29s253ms 0ms 27s466ms 1m2s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 01 00 1 0 9m14s 0ms 0ms 9m14s 01 5 0 9s660ms 0ms 0ms 48s301ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 3 0 9s809ms 0ms 0ms 15s835ms 05 15 0 7s530ms 0ms 14s875ms 32s840ms 06 0 0 0ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 0 0 0ms 0ms 0ms 0ms 10 0 0 0ms 0ms 0ms 0ms 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 1 0 5s578ms 0ms 0ms 5s578ms 22 0 0 0ms 0ms 0ms 0ms 23 5 0 29s253ms 0ms 0ms 1m2s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 01 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 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 Mar 01 00 0 0 0.00 0.00% 01 0 5 5.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 3 3.00 0.00% 05 0 14 14.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.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 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 1 1.00 0.00% 22 0 0 0.00 0.00% 23 0 5 5.00 0.00% Day Hour Count Average / Second Mar 01 00 80 0.02/s 01 75 0.02/s 02 79 0.02/s 03 76 0.02/s 04 119 0.03/s 05 178 0.05/s 06 78 0.02/s 07 78 0.02/s 08 78 0.02/s 09 77 0.02/s 10 74 0.02/s 11 76 0.02/s 12 77 0.02/s 13 80 0.02/s 14 78 0.02/s 15 79 0.02/s 16 76 0.02/s 17 78 0.02/s 18 79 0.02/s 19 78 0.02/s 20 104 0.03/s 21 79 0.02/s 22 77 0.02/s 23 104 0.03/s Day Hour Count Average Duration Average idle time Mar 01 00 80 30m31s 30m24s 01 75 30m36s 30m35s 02 79 32m15s 32m15s 03 76 31m20s 31m20s 04 119 20m55s 20m55s 05 178 12m40s 12m39s 06 78 30m56s 30m56s 07 78 30m56s 30m56s 08 78 31m31s 31m31s 09 77 31m36s 31m36s 10 74 31m16s 31m16s 11 78 3h12m26s 3h12m26s 12 88 10h38m11s 10h38m11s 13 80 30m10s 30m10s 14 78 30m37s 30m37s 15 79 30m51s 30m51s 16 76 31m46s 31m46s 17 78 30m46s 30m46s 18 78 31m15s 31m15s 19 78 31m15s 31m15s 20 105 28m7s 28m7s 21 79 29m21s 29m21s 22 77 31m7s 31m7s 23 104 24m30s 24m28s -
Connections
Established Connections
Key values
- 23 connections Connection Peak
- 2026-03-01 05:09:43 Date
Connections per database
Key values
- ctdprd51 Main Database
- 2,057 connections Total
Connections per user
Key values
- pubeu Main User
- 2,057 connections Total
-
Sessions
Simultaneous sessions
Key values
- 46 sessions Session Peak
- 2026-03-01 04:14:41 Date
Histogram of session times
Key values
- 1,810 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 2,070 sessions Total
Sessions per user
Key values
- pubeu Main User
- 2,070 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 2,070 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 48,674 buffers Checkpoint Peak
- 2026-03-01 19:12:58 Date
- 1619.587 seconds Highest write time
- 0.002 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-03-01 05:46:09 Date
Checkpoints distance
Key values
- 1,013.34 Mo Distance Peak
- 2026-03-01 19:12:58 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Mar 01 00 587 58.975s 0.003s 58.996s 01 150 15.204s 0.002s 15.213s 02 113 11.501s 0.002s 11.51s 03 41 4.281s 0.002s 4.29s 04 111 11.334s 0.002s 11.343s 05 156 15.818s 0.002s 15.827s 06 107 10.897s 0.002s 10.906s 07 84 8.602s 0.002s 8.611s 08 226 22.824s 0.002s 22.832s 09 5,064 507.079s 0.002s 507.137s 10 31 3.28s 0.002s 3.288s 11 90 9.183s 0.002s 9.192s 12 35 3.677s 0.002s 3.685s 13 9 0.991s 0.001s 0.995s 14 63 6.494s 0.002s 6.502s 15 49 5.075s 0.002s 5.084s 16 248 25.03s 0.002s 25.039s 17 339 34.148s 0.002s 34.166s 18 12 1.289s 0.001s 1.293s 19 48,704 1,622.677s 0.002s 1,622.822s 20 118 11.997s 0.002s 12.006s 21 296 29.832s 0.002s 29.841s 22 595 59.771s 0.002s 59.787s 23 3,618 362.665s 0.002s 362.687s Day Hour Added Removed Recycled Synced files Longest sync Average sync Mar 01 00 0 1 0 72 0.001s 0.002s 01 0 0 0 31 0.001s 0.002s 02 0 0 0 26 0.001s 0.002s 03 0 0 0 19 0.001s 0.002s 04 0 0 0 28 0.001s 0.002s 05 0 0 0 30 0.001s 0.002s 06 0 0 0 26 0.001s 0.002s 07 0 0 0 20 0.001s 0.002s 08 0 0 0 106 0.001s 0.002s 09 0 3 0 28 0.001s 0.002s 10 0 0 0 17 0.001s 0.002s 11 0 0 0 23 0.001s 0.002s 12 0 0 0 16 0.001s 0.002s 13 0 0 0 8 0.001s 0.001s 14 0 0 0 20 0.001s 0.002s 15 0 0 0 15 0.001s 0.002s 16 0 0 0 112 0.001s 0.002s 17 0 1 0 117 0.001s 0.002s 18 0 0 0 7 0.001s 0.001s 19 0 31 0 38 0.001s 0.002s 20 0 0 0 28 0.001s 0.002s 21 0 0 0 29 0.001s 0.002s 22 0 1 0 34 0.001s 0.002s 23 0 2 0 36 0.001s 0.002s Day Hour Count Avg time (sec) Mar 01 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 Mar 01 00 2,202.50 kB 6,525.00 kB 01 315.00 kB 5,422.50 kB 02 163.50 kB 4,424.50 kB 03 50.50 kB 3,603.00 kB 04 214.00 kB 2,959.50 kB 05 296.00 kB 2,431.50 kB 06 252.00 kB 2,039.50 kB 07 68.50 kB 1,664.00 kB 08 597.50 kB 1,429.00 kB 09 27,843.00 kB 28,425.50 kB 10 64.00 kB 47,533.50 kB 11 208.50 kB 38,528.00 kB 12 34.50 kB 31,228.50 kB 13 25.00 kB 26,631.00 kB 14 65.00 kB 22,779.00 kB 15 44.00 kB 18,461.00 kB 16 497.50 kB 15,030.50 kB 17 1,148.50 kB 12,364.50 kB 18 55.00 kB 10,598.00 kB 19 259,475.50 kB 492,894.00 kB 20 273.00 kB 399,282.50 kB 21 428.50 kB 323,488.00 kB 22 2,045.00 kB 262,271.50 kB 23 18,832.50 kB 214,502.50 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Mar 01 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 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 0 0 0 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 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.53 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-03-01 18:37:38 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 0.53 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-03-01 18:37:38 Date
Analyzes per table
Key values
- pubc.log_query (15) Main table analyzed (database ctdprd51)
- 18 analyzes Total
Vacuums per table
Key values
- pubc.log_query (2) Main table vacuumed on database ctdprd51
- 4 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pubc.log_query 2 2 465 0 77 0 0 136 49 363,427 ctdprd51.pub2.term_set_enrichment_agent 1 0 42,934 0 13 0 0 21,428 2 1,280,868 ctdprd51.pub2.term_set_enrichment 1 0 791 0 63 0 0 343 2 31,844 Total 4 2 44,190 9 153 0 0 21,907 53 1,676,139 Tuples removed per table
Key values
- pubc.log_query (14) Main table with removed tuples on database ctdprd51
- 14 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Mar 01 00 0 0 01 0 2 02 0 1 03 0 0 04 1 1 05 0 4 06 0 0 07 0 0 08 0 1 09 0 0 10 0 0 11 0 1 12 0 0 13 0 0 14 0 0 15 0 0 16 0 1 17 0 0 18 2 4 19 0 0 20 0 1 21 1 1 22 0 0 23 0 1 - 0.53 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
- 30 Total read queries
- 0 Total write queries
Queries by database
Key values
- ctdprd51 Main database
- 26 Requests
- 14m27s (ctdprd51)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 59 Requests
User Request type Count Duration postgres Total 1 18s726ms copy to 1 18s726ms pubc Total 2 9m25s select 2 9m25s pubeu Total 26 7m53s select 26 7m53s qaeu Total 3 17s855ms select 3 17s855ms unknown Total 59 1h34m30s copy to 52 1h33m38s others 1 6s759ms select 6 44s293ms Duration by user
Key values
- 1h34m30s (unknown) Main time consuming user
User Request type Count Duration postgres Total 1 18s726ms copy to 1 18s726ms pubc Total 2 9m25s select 2 9m25s pubeu Total 26 7m53s select 26 7m53s qaeu Total 3 17s855ms select 3 17s855ms unknown Total 59 1h34m30s copy to 52 1h33m38s others 1 6s759ms select 6 44s293ms Queries by host
Key values
- unknown Main host
- 91 Requests
- 1h52m25s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 29 Requests
- 9m25s (psql)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-03-01 20:02:02 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 23 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 9m14s /* * 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-03-01 00:09:27 - Database: ctdprd51 - User: pubc - Application: psql ]
2 33s277ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 23:59:16 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
3 29s404ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 23:46:47 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
4 29s269ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 23:59:07 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
5 27s466ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 23:58:27 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
6 26s851ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 23:44:00 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
7 15s835ms 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 = '2119969') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 04:48:38 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
8 10s562ms SELECT type_cd "Type" # 015, 'gene' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd "Type" # 015, 'geneForm' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_form_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'disease' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND disease_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'taxon' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND taxon_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'chem' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND chem_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'acc' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND acc_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'author' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND party_nm_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'go' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND go_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'actionType' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND action_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'pathway' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND pathway_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'marrayOnly' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND has_marray = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'year' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND (through_yr IS NOT NULL # 015 OR from_yr IS NOT NULL) # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'journal' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND journal_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'volume' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND volume_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'first page' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND first_page_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'review only' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND is_review = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'title/abstract' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND title_abstract_txt IS NOT NULL # 015 GROUP BY type_cd # 015 ORDER BY 1 # 015, 3 DESC # 015, 2;[ Date: 2026-03-01 05:45:15 - Database: ctdprd51 - User: pubc - Application: psql ]
9 9s793ms SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;[ Date: 2026-03-01 01:30:39 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
10 9s692ms SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;[ Date: 2026-03-01 01:30:38 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
11 9s664ms SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;[ Date: 2026-03-01 01:30:36 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
12 9s589ms SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;[ Date: 2026-03-01 01:30:41 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
13 9s562ms SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;[ Date: 2026-03-01 01:30:39 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
14 8s432ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:06:03 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
15 8s410ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:06:03 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
16 8s200ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:05:59 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
17 8s93ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:06:22 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
18 7s905ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:06:57 - Bind query: yes ]
19 7s640ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 04:45:09 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
20 7s554ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-03-01 05:05:57 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 9m14s 1 9m14s 9m14s 9m14s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 01 00 1 9m14s 9m14s [ User: pubc - Total duration: 9m14s - Times executed: 1 ]
[ Application: psql - Total duration: 9m14s - 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-03-01 00:09:27 Duration: 9m14s Database: ctdprd51 User: pubc Application: psql
2 3m38s 13 7s554ms 33s277ms 16s795ms 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 #2
Day Hour Count Duration Avg duration Mar 01 04 2 23s475ms 11s737ms 05 6 48s595ms 8s99ms 23 5 2m26s 29s253ms [ User: pubeu - Total duration: 3m30s - Times executed: 12 ]
-
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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:16 Duration: 33s277ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:46:47 Duration: 29s404ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:07 Duration: 29s269ms Database: ctdprd51 User: pubeu Bind query: yes
3 48s301ms 5 9s562ms 9s793ms 9s660ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ? or substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ? or upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 01 01 5 48s301ms 9s660ms [ User: pubeu - Total duration: 48s301ms - Times executed: 5 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:39 Duration: 9s793ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:38 Duration: 9s692ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:36 Duration: 9s664ms Database: ctdprd51 User: pubeu Bind query: yes
4 14s983ms 2 7s483ms 7s499ms 7s491ms 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 #4
Day Hour Count Duration Avg duration Mar 01 05 2 14s983ms 7s491ms [ User: pubeu - Total duration: 7s499ms - 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-03-01 05:49:09 Duration: 7s499ms Database: ctdprd51 User: pubeu 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-03-01 05:44:04 Duration: 7s483ms Bind query: yes
5 14s832ms 2 7s391ms 7s440ms 7s416ms 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 #5
Day Hour Count Duration Avg duration Mar 01 05 2 14s832ms 7s416ms [ User: pubeu - Total duration: 7s440ms - 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-03-01 05:49:17 Duration: 7s440ms Database: ctdprd51 User: pubeu 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-03-01 05:44:11 Duration: 7s391ms Bind query: yes
6 13s721ms 2 6s842ms 6s878ms 6s860ms 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 limit ? offset ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 01 05 2 13s721ms 6s860ms [ User: pubeu - Total duration: 6s878ms - 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003700;
Date: 2026-03-01 05:05:31 Duration: 6s878ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003650;
Date: 2026-03-01 05:05:44 Duration: 6s842ms Bind query: yes
7 10s562ms 1 10s562ms 10s562ms 10s562ms select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_txt is not null # ? group by type_cd # ? union all # ? select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_form_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and disease_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and taxon_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and chem_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and acc_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and party_nm_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and go_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and action_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and pathway_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and has_marray = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and (through_yr is not null # ? or from_yr is not null) # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and journal_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and volume_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and first_page_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and is_review = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and title_abstract_txt is not null # ? group by type_cd # ? order by ? # ?, ? desc # ?, ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 01 05 1 10s562ms 10s562ms [ User: pubc - Total duration: 10s562ms - Times executed: 1 ]
[ Application: psql - Total duration: 10s562ms - Times executed: 1 ]
-
SELECT type_cd "Type" # 015, 'gene' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd "Type" # 015, 'geneForm' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_form_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'disease' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND disease_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'taxon' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND taxon_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'chem' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND chem_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'acc' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND acc_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'author' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND party_nm_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'go' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND go_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'actionType' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND action_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'pathway' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND pathway_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'marrayOnly' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND has_marray = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'year' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND (through_yr IS NOT NULL # 015 OR from_yr IS NOT NULL) # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'journal' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND journal_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'volume' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND volume_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'first page' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND first_page_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'review only' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND is_review = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'title/abstract' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND title_abstract_txt IS NOT NULL # 015 GROUP BY type_cd # 015 ORDER BY 1 # 015, 3 DESC # 015, 2;
Date: 2026-03-01 05:45:15 Duration: 10s562ms Database: ctdprd51 User: pubc Application: psql
8 10s259ms 2 5s62ms 5s196ms 5s129ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 01 05 2 10s259ms 5s129ms [ User: qaeu - Total duration: 5s196ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s62ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:43:38 Duration: 5s196ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:48:42 Duration: 5s62ms Database: ctdprd51 User: pubeu Bind query: yes
9 6s759ms 1 6s759ms 6s759ms 6s759ms vacuum analyze log_query_archive;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 01 00 1 6s759ms 6s759ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-03-01 00:09:34 Duration: 6s759ms
10 5s953ms 1 5s953ms 5s953ms 5s953ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 01 04 1 5s953ms 5s953ms [ User: pubeu - Total duration: 5s953ms - Times executed: 1 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'ZIZIPHIN_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'ZIZIPHIN_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'ZIZIPHIN_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'ZIZIPHIN_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 04:22:33 Duration: 5s953ms Database: ctdprd51 User: pubeu Bind query: yes
11 5s578ms 1 5s578ms 5s578ms 5s578ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 01 21 1 5s578ms 5s578ms [ User: pubeu - Total duration: 5s578ms - Times executed: 1 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2026-03-01 21:03:53 Duration: 5s578ms Database: ctdprd51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 13 3m38s 7s554ms 33s277ms 16s795ms 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 #1
Day Hour Count Duration Avg duration Mar 01 04 2 23s475ms 11s737ms 05 6 48s595ms 8s99ms 23 5 2m26s 29s253ms [ User: pubeu - Total duration: 3m30s - Times executed: 12 ]
-
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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:16 Duration: 33s277ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:46:47 Duration: 29s404ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:07 Duration: 29s269ms Database: ctdprd51 User: pubeu Bind query: yes
2 5 48s301ms 9s562ms 9s793ms 9s660ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ? or substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ? or upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 01 01 5 48s301ms 9s660ms [ User: pubeu - Total duration: 48s301ms - Times executed: 5 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:39 Duration: 9s793ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:38 Duration: 9s692ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:36 Duration: 9s664ms Database: ctdprd51 User: pubeu Bind query: yes
3 2 14s983ms 7s483ms 7s499ms 7s491ms 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 #3
Day Hour Count Duration Avg duration Mar 01 05 2 14s983ms 7s491ms [ User: pubeu - Total duration: 7s499ms - 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-03-01 05:49:09 Duration: 7s499ms Database: ctdprd51 User: pubeu 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-03-01 05:44:04 Duration: 7s483ms Bind query: yes
4 2 14s832ms 7s391ms 7s440ms 7s416ms 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 #4
Day Hour Count Duration Avg duration Mar 01 05 2 14s832ms 7s416ms [ User: pubeu - Total duration: 7s440ms - 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-03-01 05:49:17 Duration: 7s440ms Database: ctdprd51 User: pubeu 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-03-01 05:44:11 Duration: 7s391ms Bind query: yes
5 2 13s721ms 6s842ms 6s878ms 6s860ms 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 limit ? offset ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 01 05 2 13s721ms 6s860ms [ User: pubeu - Total duration: 6s878ms - 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003700;
Date: 2026-03-01 05:05:31 Duration: 6s878ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003650;
Date: 2026-03-01 05:05:44 Duration: 6s842ms Bind query: yes
6 2 10s259ms 5s62ms 5s196ms 5s129ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 01 05 2 10s259ms 5s129ms [ User: qaeu - Total duration: 5s196ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s62ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:43:38 Duration: 5s196ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:48:42 Duration: 5s62ms Database: ctdprd51 User: pubeu Bind query: yes
7 1 9m14s 9m14s 9m14s 9m14s select maint_query_logs_archive ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 01 00 1 9m14s 9m14s [ User: pubc - Total duration: 9m14s - Times executed: 1 ]
[ Application: psql - Total duration: 9m14s - 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-03-01 00:09:27 Duration: 9m14s Database: ctdprd51 User: pubc Application: psql
8 1 10s562ms 10s562ms 10s562ms 10s562ms select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_txt is not null # ? group by type_cd # ? union all # ? select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_form_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and disease_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and taxon_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and chem_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and acc_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and party_nm_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and go_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and action_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and pathway_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and has_marray = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and (through_yr is not null # ? or from_yr is not null) # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and journal_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and volume_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and first_page_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and is_review = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and title_abstract_txt is not null # ? group by type_cd # ? order by ? # ?, ? desc # ?, ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 01 05 1 10s562ms 10s562ms [ User: pubc - Total duration: 10s562ms - Times executed: 1 ]
[ Application: psql - Total duration: 10s562ms - Times executed: 1 ]
-
SELECT type_cd "Type" # 015, 'gene' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd "Type" # 015, 'geneForm' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_form_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'disease' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND disease_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'taxon' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND taxon_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'chem' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND chem_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'acc' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND acc_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'author' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND party_nm_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'go' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND go_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'actionType' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND action_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'pathway' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND pathway_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'marrayOnly' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND has_marray = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'year' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND (through_yr IS NOT NULL # 015 OR from_yr IS NOT NULL) # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'journal' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND journal_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'volume' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND volume_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'first page' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND first_page_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'review only' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND is_review = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'title/abstract' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND title_abstract_txt IS NOT NULL # 015 GROUP BY type_cd # 015 ORDER BY 1 # 015, 3 DESC # 015, 2;
Date: 2026-03-01 05:45:15 Duration: 10s562ms Database: ctdprd51 User: pubc Application: psql
9 1 6s759ms 6s759ms 6s759ms 6s759ms vacuum analyze log_query_archive;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 01 00 1 6s759ms 6s759ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-03-01 00:09:34 Duration: 6s759ms
10 1 5s953ms 5s953ms 5s953ms 5s953ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 01 04 1 5s953ms 5s953ms [ User: pubeu - Total duration: 5s953ms - Times executed: 1 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'ZIZIPHIN_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'ZIZIPHIN_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'ZIZIPHIN_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'ZIZIPHIN_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 04:22:33 Duration: 5s953ms Database: ctdprd51 User: pubeu Bind query: yes
11 1 5s578ms 5s578ms 5s578ms 5s578ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 01 21 1 5s578ms 5s578ms [ User: pubeu - Total duration: 5s578ms - Times executed: 1 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2026-03-01 21:03:53 Duration: 5s578ms Database: ctdprd51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9m14s 9m14s 9m14s 1 9m14s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 01 00 1 9m14s 9m14s [ User: pubc - Total duration: 9m14s - Times executed: 1 ]
[ Application: psql - Total duration: 9m14s - 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-03-01 00:09:27 Duration: 9m14s Database: ctdprd51 User: pubc Application: psql
2 7s554ms 33s277ms 16s795ms 13 3m38s 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 #2
Day Hour Count Duration Avg duration Mar 01 04 2 23s475ms 11s737ms 05 6 48s595ms 8s99ms 23 5 2m26s 29s253ms [ User: pubeu - Total duration: 3m30s - Times executed: 12 ]
-
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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:16 Duration: 33s277ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:46:47 Duration: 29s404ms 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 = '2131953') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-03-01 23:59:07 Duration: 29s269ms Database: ctdprd51 User: pubeu Bind query: yes
3 10s562ms 10s562ms 10s562ms 1 10s562ms select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_txt is not null # ? group by type_cd # ? union all # ? select type_cd "Type" # ?, ? "Field" # ?, coalesce(sum(submission_qty), ?) "Count" # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and gene_form_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and disease_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and taxon_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and chem_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and acc_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and party_nm_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and go_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and action_type_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and pathway_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and has_marray = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and (through_yr is not null # ? or from_yr is not null) # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and journal_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and volume_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and first_page_txt is not null # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and is_review = true # ? group by type_cd # ? union all # ? select type_cd # ?, ? # ?, coalesce(sum(submission_qty), ?) # ? from log_query_archive # ? where date_trunc(?, query_tm) = # ? date_trunc(?, current_date - interval ?) # ? and title_abstract_txt is not null # ? group by type_cd # ? order by ? # ?, ? desc # ?, ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 01 05 1 10s562ms 10s562ms [ User: pubc - Total duration: 10s562ms - Times executed: 1 ]
[ Application: psql - Total duration: 10s562ms - Times executed: 1 ]
-
SELECT type_cd "Type" # 015, 'gene' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd "Type" # 015, 'geneForm' "Field" # 015, COALESCE(SUM(submission_qty), 0) "Count" # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND gene_form_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'disease' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND disease_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'taxon' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND taxon_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'chem' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND chem_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'acc' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND acc_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'author' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND party_nm_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'go' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND go_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'actionType' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND action_type_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'pathway' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND pathway_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'marrayOnly' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND has_marray = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'year' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND (through_yr IS NOT NULL # 015 OR from_yr IS NOT NULL) # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'journal' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND journal_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'volume' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND volume_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'first page' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND first_page_txt IS NOT NULL # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'review only' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND is_review = true # 015 GROUP BY type_cd # 015 UNION ALL # 015 SELECT type_cd # 015, 'title/abstract' # 015, COALESCE(SUM(submission_qty), 0) # 015 FROM log_query_archive # 015 WHERE DATE_TRUNC('month', query_tm) = # 015 DATE_TRUNC('month', CURRENT_DATE - INTERVAL '1 month') # 015 AND title_abstract_txt IS NOT NULL # 015 GROUP BY type_cd # 015 ORDER BY 1 # 015, 3 DESC # 015, 2;
Date: 2026-03-01 05:45:15 Duration: 10s562ms Database: ctdprd51 User: pubc Application: psql
4 9s562ms 9s793ms 9s660ms 5 48s301ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ? or substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ? or upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 01 01 5 48s301ms 9s660ms [ User: pubeu - Total duration: 48s301ms - Times executed: 5 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:39 Duration: 9s793ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:38 Duration: 9s692ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'MULBERROSIDE & C_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'MULBERROSIDE & C_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'MULBERROSIDE' OR SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'C_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'MULBERROSIDE' OR upper(l.acc_txt) LIKE 'C_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 01:30:36 Duration: 9s664ms Database: ctdprd51 User: pubeu Bind query: yes
5 7s483ms 7s499ms 7s491ms 2 14s983ms 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 #5
Day Hour Count Duration Avg duration Mar 01 05 2 14s983ms 7s491ms [ User: pubeu - Total duration: 7s499ms - 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-03-01 05:49:09 Duration: 7s499ms Database: ctdprd51 User: pubeu 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-03-01 05:44:04 Duration: 7s483ms Bind query: yes
6 7s391ms 7s440ms 7s416ms 2 14s832ms 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 #6
Day Hour Count Duration Avg duration Mar 01 05 2 14s832ms 7s416ms [ User: pubeu - Total duration: 7s440ms - 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-03-01 05:49:17 Duration: 7s440ms Database: ctdprd51 User: pubeu 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-03-01 05:44:11 Duration: 7s391ms Bind query: yes
7 6s842ms 6s878ms 6s860ms 2 13s721ms 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 limit ? offset ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 01 05 2 13s721ms 6s860ms [ User: pubeu - Total duration: 6s878ms - 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003700;
Date: 2026-03-01 05:05:31 Duration: 6s878ms 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 = '2129907') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1003650;
Date: 2026-03-01 05:05:44 Duration: 6s842ms Bind query: yes
8 6s759ms 6s759ms 6s759ms 1 6s759ms vacuum analyze log_query_archive;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 01 00 1 6s759ms 6s759ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-03-01 00:09:34 Duration: 6s759ms
9 5s953ms 5s953ms 5s953ms 1 5s953ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 01 04 1 5s953ms 5s953ms [ User: pubeu - Total duration: 5s953ms - Times executed: 1 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'ZIZIPHIN_QT') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'ZIZIPHIN_QT') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'ZIZIPHIN_QT')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'ZIZIPHIN_QT')) ii GROUP BY ii.cd;
Date: 2026-03-01 04:22:33 Duration: 5s953ms Database: ctdprd51 User: pubeu Bind query: yes
10 5s578ms 5s578ms 5s578ms 1 5s578ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 01 21 1 5s578ms 5s578ms [ User: pubeu - Total duration: 5s578ms - Times executed: 1 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1451928') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2026-03-01 21:03:53 Duration: 5s578ms Database: ctdprd51 User: pubeu Bind query: yes
11 5s62ms 5s196ms 5s129ms 2 10s259ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 01 05 2 10s259ms 5s129ms [ User: qaeu - Total duration: 5s196ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s62ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:43:38 Duration: 5s196ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1335246)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-03-01 05:48:42 Duration: 5s62ms Database: ctdprd51 User: pubeu 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 1 0ms 1 0ms 0ms 0ms ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Feb 28 08 1 0ms 0ms [ User: pubeu - Total duration: 2m43s - Times executed: 1 ]
-
;
Date: Duration: 0ms Database: postgres User: ctdprd51 Remote: pubeu
-
Events
Log levels
Key values
- 8,428 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 1 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 16 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 15 Max number of times the same event was reported
- 17 Total events found
Rank Times reported Error 1 15 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Mar 01 11 3 12 11 20 1 2 1 FATAL: canceling authentication due to timeout
Times Reported Most Frequent Error / Event #2
Day Hour Count Mar 01 23 1 3 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #3
Day Hour Count Mar 01 23 1