-
Global information
- Generated on Thu Sep 3 04:15:03 2026
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20260902
- Parsed 16,704 log entries in 2s
- Log start from 2026-09-02 00:00:01 to 2026-09-02 23:59:42
-
Overview
Global Stats
- 23 Number of unique normalized queries
- 61 Number of queries
- 35m46s Total query duration
- 2026-09-02 00:09:22 First query
- 2026-09-02 22:26:36 Last query
- 1 queries/s at 2026-09-02 21:19:33 Query peak
- 35m46s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 35m46s Execute total duration
- 14 Number of events
- 7 Number of unique normalized events
- 4 Max number of times the same event was reported
- 0 Number of cancellation
- 4 Total number of automatic vacuums
- 22 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 2,023 Total number of sessions
- 52 sessions at 2026-09-02 23:21:41 Session peak
- 40d17h10m12s Total duration of sessions
- 28m58s Average duration of sessions
- 0 Average queries per session
- 1s60ms Average queries duration per session
- 28m57s Average idle time per session
- 2,026 Total number of connections
- 9 connections/s at 2026-09-02 04:56:12 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-09-02 21:19:33 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-09-02 21:19:33 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-09-02 07:18:26 Date
Queries duration
Key values
- 35m46s 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) Sep 02 00 2 0ms 9m21s 4m44s 0ms 0ms 9m28s 01 0 0ms 0ms 0ms 0ms 0ms 0ms 02 8 0ms 41s724ms 26s31ms 0ms 23s420ms 2m13s 03 0 0ms 0ms 0ms 0ms 0ms 0ms 04 0 0ms 0ms 0ms 0ms 0ms 0ms 05 2 0ms 5s856ms 5s808ms 0ms 0ms 5s856ms 06 9 0ms 1m52s 24s745ms 21s145ms 49s82ms 1m52s 07 4 0ms 1m29s 1m6s 6s534ms 1m28s 1m29s 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 3 0ms 1m9s 47s566ms 0ms 1m6s 1m9s 10 9 0ms 1m53s 24s845ms 0ms 39s561ms 1m53s 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 0 0ms 0ms 0ms 0ms 0ms 0ms 13 1 0ms 8s344ms 8s344ms 0ms 0ms 8s344ms 14 9 0ms 1m52s 24s623ms 0ms 39s419ms 1m52s 15 2 0ms 8s171ms 8s28ms 0ms 7s885ms 8s171ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 9 0ms 1m52s 24s639ms 21s47ms 49s36ms 1m52s 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 2 0ms 7s980ms 7s966ms 0ms 0ms 15s933ms 22 1 0ms 19s717ms 19s717ms 0ms 0ms 19s717ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 02 00 1 0 9m21s 0ms 0ms 9m21s 01 0 0 0ms 0ms 0ms 0ms 02 8 0 26s31ms 0ms 0ms 2m13s 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 2 0 5s808ms 0ms 0ms 5s856ms 06 0 9 24s745ms 0ms 21s145ms 1m52s 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 3 0 47s566ms 0ms 0ms 1m9s 10 0 9 24s845ms 0ms 0ms 1m53s 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 1 0 8s344ms 0ms 0ms 8s344ms 14 0 9 24s623ms 0ms 0ms 1m52s 15 2 0 8s28ms 0ms 0ms 8s171ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 9 24s639ms 0ms 21s47ms 1m52s 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 2 0 7s966ms 0ms 0ms 15s933ms 22 1 0 19s717ms 0ms 0ms 19s717ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 02 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 Sep 02 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 8 8.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 2 2.00 0.00% 06 0 0 0.00 0.00% 07 0 4 4.00 0.00% 08 0 0 0.00 0.00% 09 0 3 3.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 1 1.00 0.00% 14 0 0 0.00 0.00% 15 0 2 2.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 2 2.00 0.00% 22 0 1 1.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Sep 02 00 76 0.02/s 01 81 0.02/s 02 108 0.03/s 03 76 0.02/s 04 107 0.03/s 05 118 0.03/s 06 74 0.02/s 07 78 0.02/s 08 81 0.02/s 09 83 0.02/s 10 83 0.02/s 11 102 0.03/s 12 71 0.02/s 13 79 0.02/s 14 80 0.02/s 15 77 0.02/s 16 81 0.02/s 17 75 0.02/s 18 79 0.02/s 19 78 0.02/s 20 77 0.02/s 21 78 0.02/s 22 102 0.03/s 23 82 0.02/s Day Hour Count Average Duration Average idle time Sep 02 00 76 31m13s 31m5s 01 81 30m27s 30m27s 02 108 22m18s 22m16s 03 76 31m22s 31m22s 04 107 23m50s 23m50s 05 118 18m33s 18m33s 06 74 30m45s 30m42s 07 78 29m27s 29m24s 08 81 30m46s 30m46s 09 82 31m2s 31m 10 80 30m20s 30m17s 11 102 22m28s 22m28s 12 71 32m22s 32m22s 13 79 30m20s 30m20s 14 78 31m8s 31m6s 15 77 31m9s 31m8s 16 81 29m56s 29m56s 17 75 32m23s 32m23s 18 82 42m25s 42m22s 19 78 31m15s 31m15s 20 77 30m54s 30m54s 21 78 30m43s 30m43s 22 102 22m17s 22m17s 23 82 31m24s 31m24s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2026-09-02 04:56:12 Date
Connections per database
Key values
- ctdprd51 Main Database
- 2,026 connections Total
Connections per user
Key values
- pubeu Main User
- 2,026 connections Total
-
Sessions
Simultaneous sessions
Key values
- 52 sessions Session Peak
- 2026-09-02 23:21:41 Date
Histogram of session times
Key values
- 1,755 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 2,023 sessions Total
Sessions per user
Key values
- pubeu Main User
- 2,023 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 2,023 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 13,957 buffers Checkpoint Peak
- 2026-09-02 13:52:48 Date
- 1397.240 seconds Highest write time
- 0.002 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-09-02 00:30:02 Date
Checkpoints distance
Key values
- 220.22 Mo Distance Peak
- 2026-09-02 13:52:48 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Sep 02 00 339 34.057s 0.002s 34.064s 01 619 62.164s 0.003s 62.179s 02 4,098 410.455s 0.002s 410.516s 03 148 14.912s 0.001s 14.916s 04 1,021 102.552s 0.003s 102.565s 05 5,135 514.257s 0.001s 514.312s 06 2,429 243.46s 0.003s 243.474s 07 46 4.699s 0.001s 4.704s 08 1,011 101.343s 0.003s 101.357s 09 190 19.222s 0.002s 19.232s 10 386 38.852s 0.002s 38.861s 11 146 14.801s 0.002s 14.856s 12 20 2.165s 0.002s 2.173s 13 13,957 1,397.24s 0.001s 1,397.313s 14 5,171 518.069s 0.003s 518.082s 15 150 15.202s 0.002s 15.211s 16 150 15.213s 0.002s 15.222s 17 86 8.792s 0.002s 8.8s 18 34 3.566s 0.002s 3.576s 19 29 3.069s 0.002s 3.077s 20 139 14.097s 0.002s 14.105s 21 201 20.316s 0.002s 20.325s 22 240 24.22s 0.002s 24.228s 23 149 15.098s 0.002s 15.106s Day Hour Added Removed Recycled Synced files Longest sync Average sync Sep 02 00 0 0 0 54 0.001s 0.001s 01 0 0 0 46 0.001s 0.003s 02 0 3 0 42 0.001s 0.002s 03 0 0 0 11 0.001s 0.001s 04 0 0 0 69 0.001s 0.003s 05 0 4 0 19 0.001s 0.001s 06 0 0 0 68 0.001s 0.003s 07 0 0 0 11 0.001s 0.001s 08 0 0 0 178 0.001s 0.003s 09 0 0 0 67 0.001s 0.002s 10 0 0 0 115 0.001s 0.002s 11 0 1 0 30 0.001s 0.002s 12 0 0 0 15 0.001s 0.002s 13 0 10 0 31 0.001s 0.001s 14 0 0 0 49 0.001s 0.003s 15 0 0 0 61 0.001s 0.002s 16 0 0 0 63 0.001s 0.002s 17 0 0 0 61 0.001s 0.002s 18 0 0 0 22 0.001s 0.002s 19 0 0 0 16 0.001s 0.002s 20 0 0 0 27 0.001s 0.002s 21 0 0 0 20 0.001s 0.002s 22 0 0 0 30 0.001s 0.002s 23 0 0 0 23 0.001s 0.002s Day Hour Count Avg time (sec) Sep 02 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 Sep 02 00 2,142.00 kB 37,982.00 kB 01 883.67 kB 31,102.67 kB 02 21,244.00 kB 40,116.00 kB 03 44.00 kB 34,221.00 kB 04 1,534.33 kB 28,174.00 kB 05 55,789.00 kB 55,789.00 kB 06 601.67 kB 45,492.67 kB 07 158.00 kB 36,759.00 kB 08 3,465.00 kB 30,762.00 kB 09 394.00 kB 23,708.00 kB 10 866.50 kB 19,342.50 kB 11 346.50 kB 15,753.00 kB 12 30.50 kB 12,786.50 kB 13 112,751.00 kB 112,751.00 kB 14 18,868.00 kB 96,776.33 kB 15 356.00 kB 74,260.50 kB 16 299.50 kB 60,189.50 kB 17 181.50 kB 48,811.00 kB 18 24.50 kB 39,541.50 kB 19 18.50 kB 32,032.50 kB 20 248.00 kB 25,975.00 kB 21 94.50 kB 21,072.50 kB 22 324.00 kB 17,113.00 kB 23 71.50 kB 13,893.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 Sep 02 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.95 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-09-02 13:09:13 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 0.95 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-09-02 13:09:13 Date
Analyzes per table
Key values
- pubc.log_query (16) Main table analyzed (database ctdprd51)
- 22 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 Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples ctdprd51.pubc.log_query 2 1 417 0 64 0 0 115 48 339,740 0 0 ctdprd51.pub2.term_set_enrichment 1 0 384 0 112 0 0 153 1 17,446 0 0 ctdprd51.pub2.term_set_enrichment_agent 1 0 11,991 0 3,886 0 0 5,961 2 363,870 0 0 Total 4 1 12,792 7 4,062 0 0 6,229 51 721,056 0 0 Vacuum throughput per table
Key values
- pub2.term_set_enrichment_agent (0.95) Max CPU elapsed for vacuum on database ctdprd51
- unknown (0 ms) Max I/O read time for vacuum on database ctdprd51
- unknown (0 ms) Max I/O write time for vacuum on database ctdprd51
Tuples removed per table
Key values
- pubc.log_query (10) Main table with removed tuples on database ctdprd51
- 10 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 Sep 02 00 1 0 01 0 1 02 0 2 03 0 1 04 0 2 05 1 5 06 0 2 07 0 1 08 0 0 09 0 1 10 1 1 11 0 1 12 0 0 13 1 3 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 1 21 0 0 22 0 1 23 0 0 - 0.95 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
- 20 Total read queries
- 40 Total write queries
Queries by database
Key values
- unknown Main database
- 32 Requests
- 29m13s (ctdprd51)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 66 Requests
User Request type Count Duration editeu Total 6 1m12s select 6 1m12s postgres Total 16 17m46s copy to 16 17m46s pubc Total 2 9m31s select 2 9m31s pubeu Total 27 11m48s cte 4 4m25s select 23 7m22s qaeu Total 2 11s623ms select 2 11s623ms unknown Total 66 13m17s copy to 56 11m56s others 1 7s57ms select 9 1m13s Duration by user
Key values
- 17m46s (postgres) Main time consuming user
User Request type Count Duration editeu Total 6 1m12s select 6 1m12s postgres Total 16 17m46s copy to 16 17m46s pubc Total 2 9m31s select 2 9m31s pubeu Total 27 11m48s cte 4 4m25s select 23 7m22s qaeu Total 2 11s623ms select 2 11s623ms unknown Total 66 13m17s copy to 56 11m56s others 1 7s57ms select 9 1m13s Queries by host
Key values
- unknown Main host
- 119 Requests
- 53m47s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 52 Requests
- 17m32s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-09-02 17:18:44 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 39 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 9m21s /* * 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-09-02 00:09:22 - Database: ctdprd51 - User: pubc - Application: psql ]
2 1m53s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 10:06:55 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
3 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 06:06:54 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
4 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 18:06:54 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
5 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 14:06:53 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
6 1m29s WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism LIMIT 50;[ Date: 2026-09-02 07:25:08 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
7 1m28s WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism;[ Date: 2026-09-02 07:27:52 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
8 1m20s WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1531906') ORDER BY organism LIMIT 50;[ Date: 2026-09-02 07:31:02 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
9 1m9s select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 50;[ Date: 2026-09-02 09:39:14 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
10 1m6s select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 1000;[ Date: 2026-09-02 09:40:43 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
11 41s724ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;[ Date: 2026-09-02 02:06:47 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
12 39s933ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;[ Date: 2026-09-02 02:06:58 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
13 39s264ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2026-09-02 02:03:07 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
14 38s736ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;[ Date: 2026-09-02 02:06:41 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
15 24s325ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 06:07:19 ]
16 24s146ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 10:07:19 ]
17 24s56ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 14:07:17 ]
18 24s51ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-09-02 18:07:18 ]
19 20s377ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-09-02 10:00:22 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
20 20s358ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-09-02 14:00:22 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 9m21s 1 9m21s 9m21s 9m21s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 02 00 1 9m21s 9m21s [ User: pubc - Total duration: 9m21s - Times executed: 1 ]
[ Application: psql - Total duration: 9m21s - 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-09-02 00:09:22 Duration: 9m21s Database: ctdprd51 User: pubc Application: psql
2 7m30s 4 1m52s 1m53s 1m52s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 02 06 1 1m52s 1m52s 10 1 1m53s 1m53s 14 1 1m52s 1m52s 18 1 1m52s 1m52s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:06:55 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 18:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
3 2m56s 3 6s534ms 1m29s 58s813ms with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 02 07 3 2m56s 58s813ms [ User: pubeu - Total duration: 2m56s - Times executed: 3 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:25:08 Duration: 1m29s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1531906') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:31:02 Duration: 1m20s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1443338') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:18:26 Duration: 6s534ms Database: ctdprd51 User: pubeu Bind query: yes
4 2m16s 2 1m6s 1m9s 1m8s select phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, t.reference_score as referencescore, count(*) over () fullrowcount from tetramer t inner join term phenotypeterm on t.phenotype_id = phenotypeterm.id inner join term diseaseterm on t.disease_id = diseaseterm.id inner join term geneterm on t.gene_id = geneterm.id inner join term chemterm on t.chem_id = chemterm.id where disease_id = any (array ( 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 exists ( select ? from chem_disease_reference cdr where chemterm.id = cdr.chem_id and diseaseterm.id = cdr.disease_id and cdr.source_cd = ? and exists ( select ? from chem_disease_reference_axn cdra where cdr.id = cdra.chem_disease_reference_id and cdra.action_type_cd = ?)) and exists ( select ? from gene_disease_reference gdr where gdr.gene_id = t.gene_id and gdr.disease_id = t.disease_id and ((source_cd = ? and exists ( select ? from gene_disease_reference_axn gdra where gdr.id = gdra.gene_disease_reference_id and gdra.action_type_cd = ?)) or (source_cd = ?))) order by t.reference_score desc, chemterm.nm, geneterm.nm, phenotypeterm.nm, diseaseterm.nm limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 02 09 2 2m16s 1m8s [ User: pubeu - Total duration: 2m16s - Times executed: 2 ]
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 50;
Date: 2026-09-02 09:39:14 Duration: 1m9s Database: ctdprd51 User: pubeu Bind query: yes
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 1000;
Date: 2026-09-02 09:40:43 Duration: 1m6s Database: ctdprd51 User: pubeu Bind query: yes
5 2m 3 38s736ms 41s724ms 40s131ms 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 Sep 02 02 3 2m 40s131ms [ User: pubeu - Total duration: 2m - Times executed: 3 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:47 Duration: 41s724ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:58 Duration: 39s933ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:41 Duration: 38s736ms Database: ctdprd51 User: pubeu Bind query: yes
6 1m36s 4 24s51ms 24s325ms 24s144ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 02 06 1 24s325ms 24s325ms 10 1 24s146ms 24s146ms 14 1 24s56ms 24s56ms 18 1 24s51ms 24s51ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:07:19 Duration: 24s325ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:07:19 Duration: 24s146ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 14:07:17 Duration: 24s56ms
7 1m28s 1 1m28s 1m28s 1m28s with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 02 07 1 1m28s 1m28s [ User: pubeu - Total duration: 1m28s - Times executed: 1 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism;
Date: 2026-09-02 07:27:52 Duration: 1m28s Database: ctdprd51 User: pubeu Bind query: yes
8 1m21s 4 20s231ms 20s377ms 20s304ms copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 02 06 1 20s231ms 20s231ms 10 1 20s377ms 20s377ms 14 1 20s358ms 20s358ms 18 1 20s251ms 20s251ms [ User: postgres - Total duration: 1m21s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m21s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:22 Duration: 20s377ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:22 Duration: 20s358ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:22 Duration: 20s251ms Database: ctdprd51 User: postgres Application: pg_dump
9 1m1s 4 15s363ms 15s517ms 15s420ms copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 02 06 1 15s517ms 15s517ms 10 1 15s415ms 15s415ms 14 1 15s363ms 15s363ms 18 1 15s384ms 15s384ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 06:07:34 Duration: 15s517ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 10:07:35 Duration: 15s415ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 18:07:34 Duration: 15s384ms
10 59s866ms 4 14s919ms 15s24ms 14s966ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 02 06 1 15s24ms 15s24ms 10 1 14s951ms 14s951ms 14 1 14s919ms 14s919ms 18 1 14s972ms 14s972ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:53 Duration: 15s24ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:53 Duration: 14s972ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:53 Duration: 14s951ms
11 58s379ms 4 14s549ms 14s639ms 14s594ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 02 06 1 14s639ms 14s639ms 10 1 14s611ms 14s611ms 14 1 14s578ms 14s578ms 18 1 14s549ms 14s549ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:08 Duration: 14s639ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:01:08 Duration: 14s611ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:08 Duration: 14s578ms
12 54s720ms 5 6s128ms 13s392ms 10s944ms 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 ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 02 02 4 48s592ms 12s148ms 09 1 6s128ms 6s128ms [ User: pubeu - Total duration: 42s941ms - Times executed: 4 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:06:37 Duration: 13s392ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:02:03 Duration: 11s779ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:01:48 Duration: 11s750ms Database: ctdprd51 User: pubeu Bind query: yes
13 39s264ms 1 39s264ms 39s264ms 39s264ms 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 #13
Day Hour Count Duration Avg duration Sep 02 02 1 39s264ms 39s264ms [ User: pubeu - Total duration: 39s264ms - 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-09-02 02:03:07 Duration: 39s264ms Database: ctdprd51 User: pubeu Bind query: yes
14 30s290ms 4 7s554ms 7s590ms 7s572ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 02 06 1 7s590ms 7s590ms 10 1 7s554ms 7s554ms 14 1 7s558ms 7s558ms 18 1 7s586ms 7s586ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:31 Duration: 7s590ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:31 Duration: 7s586ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:32 Duration: 7s558ms
15 25s989ms 4 6s476ms 6s509ms 6s497ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 02 06 1 6s505ms 6s505ms 10 1 6s476ms 6s476ms 14 1 6s509ms 6s509ms 18 1 6s497ms 6s497ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:16 Duration: 6s509ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:16 Duration: 6s505ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:01:16 Duration: 6s497ms
16 24s943ms 4 6s202ms 6s277ms 6s235ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 02 06 1 6s237ms 6s237ms 10 1 6s277ms 6s277ms 14 1 6s202ms 6s202ms 18 1 6s225ms 6s225ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:38 Duration: 6s277ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:38 Duration: 6s237ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:38 Duration: 6s225ms
17 19s717ms 1 19s717ms 19s717ms 19s717ms 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 g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 02 22 1 19s717ms 19s717ms [ User: pubeu - Total duration: 19s717ms - 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 = '2205291') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 22:26:36 Duration: 19s717ms Database: ctdprd51 User: pubeu Bind query: yes
18 16s56ms 2 7s885ms 8s171ms 8s28ms 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 baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.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 #18
Day Hour Count Duration Avg duration Sep 02 15 2 16s56ms 8s28ms [ User: pubeu - Total duration: 8s171ms - 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 15:41:20 Duration: 8s171ms 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) 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-09-02 15:43:10 Duration: 7s885ms Bind query: yes
19 11s616ms 2 5s760ms 5s856ms 5s808ms 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 #19
Day Hour Count Duration Avg duration Sep 02 05 2 11s616ms 5s808ms [ User: qaeu - Total duration: 5s856ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s760ms - 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 = 1404748)) 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-09-02 05:43:39 Duration: 5s856ms 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 = 1404748)) 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-09-02 05:48:40 Duration: 5s760ms Database: ctdprd51 User: pubeu Bind query: yes
20 8s344ms 1 8s344ms 8s344ms 8s344ms 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 i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 02 13 1 8s344ms 8s344ms [ User: pubeu - Total duration: 8s344ms - 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 'FLUOROCARBONS')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 13:16:17 Duration: 8s344ms Database: ctdprd51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 5 54s720ms 6s128ms 13s392ms 10s944ms 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 ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 02 02 4 48s592ms 12s148ms 09 1 6s128ms 6s128ms [ User: pubeu - Total duration: 42s941ms - Times executed: 4 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:06:37 Duration: 13s392ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:02:03 Duration: 11s779ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:01:48 Duration: 11s750ms Database: ctdprd51 User: pubeu Bind query: yes
2 4 7m30s 1m52s 1m53s 1m52s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 02 06 1 1m52s 1m52s 10 1 1m53s 1m53s 14 1 1m52s 1m52s 18 1 1m52s 1m52s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:06:55 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 18:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
3 4 1m36s 24s51ms 24s325ms 24s144ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 02 06 1 24s325ms 24s325ms 10 1 24s146ms 24s146ms 14 1 24s56ms 24s56ms 18 1 24s51ms 24s51ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:07:19 Duration: 24s325ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:07:19 Duration: 24s146ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 14:07:17 Duration: 24s56ms
4 4 1m21s 20s231ms 20s377ms 20s304ms copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 02 06 1 20s231ms 20s231ms 10 1 20s377ms 20s377ms 14 1 20s358ms 20s358ms 18 1 20s251ms 20s251ms [ User: postgres - Total duration: 1m21s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m21s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:22 Duration: 20s377ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:22 Duration: 20s358ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:22 Duration: 20s251ms Database: ctdprd51 User: postgres Application: pg_dump
5 4 1m1s 15s363ms 15s517ms 15s420ms copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 02 06 1 15s517ms 15s517ms 10 1 15s415ms 15s415ms 14 1 15s363ms 15s363ms 18 1 15s384ms 15s384ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 06:07:34 Duration: 15s517ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 10:07:35 Duration: 15s415ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 18:07:34 Duration: 15s384ms
6 4 59s866ms 14s919ms 15s24ms 14s966ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 02 06 1 15s24ms 15s24ms 10 1 14s951ms 14s951ms 14 1 14s919ms 14s919ms 18 1 14s972ms 14s972ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:53 Duration: 15s24ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:53 Duration: 14s972ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:53 Duration: 14s951ms
7 4 58s379ms 14s549ms 14s639ms 14s594ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 02 06 1 14s639ms 14s639ms 10 1 14s611ms 14s611ms 14 1 14s578ms 14s578ms 18 1 14s549ms 14s549ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:08 Duration: 14s639ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:01:08 Duration: 14s611ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:08 Duration: 14s578ms
8 4 30s290ms 7s554ms 7s590ms 7s572ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 02 06 1 7s590ms 7s590ms 10 1 7s554ms 7s554ms 14 1 7s558ms 7s558ms 18 1 7s586ms 7s586ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:31 Duration: 7s590ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:31 Duration: 7s586ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:32 Duration: 7s558ms
9 4 25s989ms 6s476ms 6s509ms 6s497ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 02 06 1 6s505ms 6s505ms 10 1 6s476ms 6s476ms 14 1 6s509ms 6s509ms 18 1 6s497ms 6s497ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:16 Duration: 6s509ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:16 Duration: 6s505ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:01:16 Duration: 6s497ms
10 4 24s943ms 6s202ms 6s277ms 6s235ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 02 06 1 6s237ms 6s237ms 10 1 6s277ms 6s277ms 14 1 6s202ms 6s202ms 18 1 6s225ms 6s225ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:38 Duration: 6s277ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:38 Duration: 6s237ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:38 Duration: 6s225ms
11 3 2m56s 6s534ms 1m29s 58s813ms with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 02 07 3 2m56s 58s813ms [ User: pubeu - Total duration: 2m56s - Times executed: 3 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:25:08 Duration: 1m29s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1531906') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:31:02 Duration: 1m20s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1443338') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:18:26 Duration: 6s534ms Database: ctdprd51 User: pubeu Bind query: yes
12 3 2m 38s736ms 41s724ms 40s131ms 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 #12
Day Hour Count Duration Avg duration Sep 02 02 3 2m 40s131ms [ User: pubeu - Total duration: 2m - Times executed: 3 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:47 Duration: 41s724ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:58 Duration: 39s933ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:41 Duration: 38s736ms Database: ctdprd51 User: pubeu Bind query: yes
13 2 2m16s 1m6s 1m9s 1m8s select phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, t.reference_score as referencescore, count(*) over () fullrowcount from tetramer t inner join term phenotypeterm on t.phenotype_id = phenotypeterm.id inner join term diseaseterm on t.disease_id = diseaseterm.id inner join term geneterm on t.gene_id = geneterm.id inner join term chemterm on t.chem_id = chemterm.id where disease_id = any (array ( 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 exists ( select ? from chem_disease_reference cdr where chemterm.id = cdr.chem_id and diseaseterm.id = cdr.disease_id and cdr.source_cd = ? and exists ( select ? from chem_disease_reference_axn cdra where cdr.id = cdra.chem_disease_reference_id and cdra.action_type_cd = ?)) and exists ( select ? from gene_disease_reference gdr where gdr.gene_id = t.gene_id and gdr.disease_id = t.disease_id and ((source_cd = ? and exists ( select ? from gene_disease_reference_axn gdra where gdr.id = gdra.gene_disease_reference_id and gdra.action_type_cd = ?)) or (source_cd = ?))) order by t.reference_score desc, chemterm.nm, geneterm.nm, phenotypeterm.nm, diseaseterm.nm limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 02 09 2 2m16s 1m8s [ User: pubeu - Total duration: 2m16s - Times executed: 2 ]
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 50;
Date: 2026-09-02 09:39:14 Duration: 1m9s Database: ctdprd51 User: pubeu Bind query: yes
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 1000;
Date: 2026-09-02 09:40:43 Duration: 1m6s Database: ctdprd51 User: pubeu Bind query: yes
14 2 16s56ms 7s885ms 8s171ms 8s28ms 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 baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.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 #14
Day Hour Count Duration Avg duration Sep 02 15 2 16s56ms 8s28ms [ User: pubeu - Total duration: 8s171ms - 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 15:41:20 Duration: 8s171ms 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) 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-09-02 15:43:10 Duration: 7s885ms Bind query: yes
15 2 11s616ms 5s760ms 5s856ms 5s808ms 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 #15
Day Hour Count Duration Avg duration Sep 02 05 2 11s616ms 5s808ms [ User: qaeu - Total duration: 5s856ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s760ms - 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 = 1404748)) 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-09-02 05:43:39 Duration: 5s856ms 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 = 1404748)) 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-09-02 05:48:40 Duration: 5s760ms Database: ctdprd51 User: pubeu Bind query: yes
16 1 9m21s 9m21s 9m21s 9m21s select maint_query_logs_archive ();Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 02 00 1 9m21s 9m21s [ User: pubc - Total duration: 9m21s - Times executed: 1 ]
[ Application: psql - Total duration: 9m21s - 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-09-02 00:09:22 Duration: 9m21s Database: ctdprd51 User: pubc Application: psql
17 1 1m28s 1m28s 1m28s 1m28s with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 02 07 1 1m28s 1m28s [ User: pubeu - Total duration: 1m28s - Times executed: 1 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism;
Date: 2026-09-02 07:27:52 Duration: 1m28s Database: ctdprd51 User: pubeu Bind query: yes
18 1 39s264ms 39s264ms 39s264ms 39s264ms 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 #18
Day Hour Count Duration Avg duration Sep 02 02 1 39s264ms 39s264ms [ User: pubeu - Total duration: 39s264ms - 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-09-02 02:03:07 Duration: 39s264ms Database: ctdprd51 User: pubeu Bind query: yes
19 1 19s717ms 19s717ms 19s717ms 19s717ms 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 g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 02 22 1 19s717ms 19s717ms [ User: pubeu - Total duration: 19s717ms - 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 = '2205291') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 22:26:36 Duration: 19s717ms Database: ctdprd51 User: pubeu Bind query: yes
20 1 8s344ms 8s344ms 8s344ms 8s344ms 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 i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 02 13 1 8s344ms 8s344ms [ User: pubeu - Total duration: 8s344ms - 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 'FLUOROCARBONS')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 13:16:17 Duration: 8s344ms Database: ctdprd51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9m21s 9m21s 9m21s 1 9m21s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 02 00 1 9m21s 9m21s [ User: pubc - Total duration: 9m21s - Times executed: 1 ]
[ Application: psql - Total duration: 9m21s - 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-09-02 00:09:22 Duration: 9m21s Database: ctdprd51 User: pubc Application: psql
2 1m52s 1m53s 1m52s 4 7m30s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 02 06 1 1m52s 1m52s 10 1 1m53s 1m53s 14 1 1m52s 1m52s 18 1 1m52s 1m52s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:06:55 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 18:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
3 1m28s 1m28s 1m28s 1 1m28s with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 02 07 1 1m28s 1m28s [ User: pubeu - Total duration: 1m28s - Times executed: 1 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism;
Date: 2026-09-02 07:27:52 Duration: 1m28s Database: ctdprd51 User: pubeu Bind query: yes
4 1m6s 1m9s 1m8s 2 2m16s select phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, t.reference_score as referencescore, count(*) over () fullrowcount from tetramer t inner join term phenotypeterm on t.phenotype_id = phenotypeterm.id inner join term diseaseterm on t.disease_id = diseaseterm.id inner join term geneterm on t.gene_id = geneterm.id inner join term chemterm on t.chem_id = chemterm.id where disease_id = any (array ( 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 exists ( select ? from chem_disease_reference cdr where chemterm.id = cdr.chem_id and diseaseterm.id = cdr.disease_id and cdr.source_cd = ? and exists ( select ? from chem_disease_reference_axn cdra where cdr.id = cdra.chem_disease_reference_id and cdra.action_type_cd = ?)) and exists ( select ? from gene_disease_reference gdr where gdr.gene_id = t.gene_id and gdr.disease_id = t.disease_id and ((source_cd = ? and exists ( select ? from gene_disease_reference_axn gdra where gdr.id = gdra.gene_disease_reference_id and gdra.action_type_cd = ?)) or (source_cd = ?))) order by t.reference_score desc, chemterm.nm, geneterm.nm, phenotypeterm.nm, diseaseterm.nm limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 02 09 2 2m16s 1m8s [ User: pubeu - Total duration: 2m16s - Times executed: 2 ]
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 50;
Date: 2026-09-02 09:39:14 Duration: 1m9s Database: ctdprd51 User: pubeu Bind query: yes
-
select phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, t.reference_score AS referenceScore, COUNT(*) OVER () fullRowCount from TETRAMER t inner join TERM phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join TERM diseaseTerm on t.disease_id = diseaseTerm.id inner join TERM geneTerm on t.gene_id = geneTerm.id inner join TERM chemTerm on t.chem_id = chemTerm.id where disease_id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'LIVER DISEASES'))) and EXISTS ( SELECT 1 FROM chem_disease_reference cdr WHERE chemTerm.id = cdr.chem_id AND diseaseTerm.id = cdr.disease_id AND cdr.source_cd = 'C' AND EXISTS ( SELECT 1 FROM chem_disease_reference_axn cdra WHERE cdr.id = cdra.chem_disease_reference_id AND cdra.action_type_cd = 'm')) and EXISTS ( SELECT 1 FROM gene_disease_reference gdr WHERE gdr.gene_id = t.gene_id AND gdr.disease_id = t.disease_id -- BASE_GENE_DISEASE_RLTNP_FRAGMENT AND ((source_cd = 'C' -- DBConstants.CURATED_FILTER_SQL AND EXISTS ( SELECT 1 FROM gene_disease_reference_axn gdra WHERE gdr.id = gdra.gene_disease_reference_id AND gdra.action_type_cd = 'm' --GENE_DISEASE_CTD_CURATED_MARKER_RLTNP_WHERE_FRAGMENT )) OR (source_cd = 'O') -- DBConstants.OMIM_CURATED_FILTER_SQL )) order by t.reference_score desc, chemTerm.nm, geneTerm.nm, phenotypeTerm.nm, diseaseTerm.nm LIMIT 1000;
Date: 2026-09-02 09:40:43 Duration: 1m6s Database: ctdprd51 User: pubeu Bind query: yes
5 6s534ms 1m29s 58s813ms 3 2m56s with anatomy as ( select chem_conc_id, array_agg(anatomy_id order by anatomy_id) as anatomy_ids, string_agg(distinct anatomy_nm_html || ? || anatomy_acc_txt || ? || position_seq || ? || anatomy_acc_db_id || ? || anatomy_nm, ?) as anatomyterms from chem_conc_anatomy cca group by chem_conc_id ), reference_groups as ( select cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, string_agg(distinct r.acc_txt, ?) as refacc, count(distinct cc.reference_id) as referencecount from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id left join reference r on r.id = cc.reference_id group by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) ), deduplicated_cc as ( select cc.*, coalesce(a.anatomy_ids, array[]::integer[]) as anatomy_ids, a.anatomyterms, row_number() over (partition by cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, coalesce(a.anatomy_ids, array[]::integer[]) order by cc.id) as rn from chem_conc cc left join anatomy a on a.chem_conc_id = cc.id where exists ( select ? from chem_conc cc_ref left join anatomy a_ref on a_ref.chem_conc_id = cc_ref.id where cc_ref.chem_id is not distinct from cc.chem_id and cc_ref.chem_conc is not distinct from cc.chem_conc and cc_ref.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and cc_ref.taxon_id is not distinct from cc.taxon_id and cc_ref.disease_id is not distinct from cc.disease_id and cc_ref.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and cc_ref.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and cc_ref.action_type_cd is not distinct from cc.action_type_cd and coalesce(a_ref.anatomy_ids, array[]::integer[]) = coalesce(a.anatomy_ids, array[]::integer[]))) select cc.chem_id as chem_id, t.nm as chem, t.nm_html as chemnmhtml, t.acc_txt as chemacc, t.secondary_nm as casrn, cc.chem_conc || ? || cc.chem_conc_uom_nm as concentration, cc.ixn_qualifier_nm as vivovitro, cc.chem_conc_exp_route_nm as exproute, cc.taxon_nm_html as organism, cc.anatomyterms as anatomyterms, cc.anatomyterms as anatomytermssort, cc.action_type_cd as directevidence, cc.action_type_cd as directevidencesort, d.nm as diseasenm, d.acc_txt as diseaseacc, d.acc_db_cd as diseaseaccdbcd, d.id as diseaseid, tx.nm as taxonnm, tx.secondary_nm as taxoncomnm, tx.id as taxonid, tx.acc_txt as taxonacc, rg.refacc, rg.referencecount, count(*) over () fullrowcount from deduplicated_cc cc inner join term t on cc.chem_id = t.id inner join term tx on cc.taxon_id = tx.id left join term d on cc.disease_id = d.id inner join reference_groups rg on rg.chem_id is not distinct from cc.chem_id and rg.chem_conc is not distinct from cc.chem_conc and rg.chem_conc_uom_nm is not distinct from cc.chem_conc_uom_nm and rg.taxon_id is not distinct from cc.taxon_id and rg.disease_id is not distinct from cc.disease_id and rg.chem_conc_exp_route_nm is not distinct from cc.chem_conc_exp_route_nm and rg.ixn_qualifier_nm is not distinct from cc.ixn_qualifier_nm and rg.action_type_cd is not distinct from cc.action_type_cd and rg.anatomy_ids = cc.anatomy_ids where cc.rn = ? and t.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) order by organism limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 02 07 3 2m56s 58s813ms [ User: pubeu - Total duration: 2m56s - Times executed: 3 ]
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1419818') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:25:08 Duration: 1m29s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1531906') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:31:02 Duration: 1m20s Database: ctdprd51 User: pubeu Bind query: yes
-
WITH anatomy AS ( SELECT chem_conc_id, array_agg(anatomy_id ORDER BY anatomy_id) AS anatomy_ids, string_agg(DISTINCT anatomy_nm_html || '^' || anatomy_acc_txt || '^' || position_seq || '^' || anatomy_acc_db_id || '^' || anatomy_nm, '|') AS anatomyTerms FROM chem_conc_anatomy cca GROUP BY chem_conc_id ), reference_groups AS ( SELECT cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, string_agg(DISTINCT r.acc_txt, '|') AS refAcc, COUNT(DISTINCT cc.reference_id) AS referenceCount FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id LEFT JOIN reference r ON r.id = cc.reference_id GROUP BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ), deduplicated_cc AS ( SELECT cc.*, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) AS anatomy_ids, a.anatomyTerms, ROW_NUMBER() OVER (PARTITION BY cc.chem_id, cc.chem_conc, cc.chem_conc_uom_nm, cc.taxon_id, cc.disease_id, cc.chem_conc_exp_route_nm, cc.ixn_qualifier_nm, cc.action_type_cd, COALESCE(a.anatomy_ids, ARRAY[]::integer[]) ORDER BY cc.id) AS rn FROM chem_conc cc LEFT JOIN anatomy a ON a.chem_conc_id = cc.id WHERE EXISTS ( SELECT 1 FROM chem_conc cc_ref LEFT JOIN anatomy a_ref ON a_ref.chem_conc_id = cc_ref.id WHERE cc_ref.chem_id IS NOT DISTINCT FROM cc.chem_id AND cc_ref.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND cc_ref.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND cc_ref.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND cc_ref.disease_id IS NOT DISTINCT FROM cc.disease_id AND cc_ref.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND cc_ref.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND cc_ref.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND COALESCE(a_ref.anatomy_ids, ARRAY[]::integer[]) = COALESCE(a.anatomy_ids, ARRAY[]::integer[]))) SELECT /* ChemConcentrationDao */ cc.chem_id AS chem_id, t.nm AS chem, t.nm_html AS chemNmHtml, t.acc_txt AS chemAcc, t.secondary_nm AS casRN, cc.chem_conc || ' ' || cc.chem_conc_uom_nm AS concentration, cc.ixn_qualifier_nm AS vivoVitro, cc.chem_conc_exp_route_nm AS expRoute, cc.taxon_nm_html AS organism, cc.anatomyTerms AS anatomyTerms, cc.anatomyTerms AS anatomyTermsSort, cc.action_type_cd AS directEvidence, cc.action_type_cd AS directEvidenceSort, d.nm AS diseasenm, d.acc_txt AS diseaseacc, d.acc_db_cd AS diseaseaccdbcd, d.id AS diseaseid, tx.nm AS taxonnm, tx.secondary_nm AS taxoncomnm, tx.id AS taxonid, tx.acc_txt AS taxonacc, rg.refAcc, rg.referenceCount, COUNT(*) OVER () fullRowCount FROM deduplicated_cc cc INNER JOIN term t ON cc.chem_id = t.id INNER JOIN term tx ON cc.taxon_id = tx.id LEFT JOIN term d ON cc.disease_id = d.id INNER JOIN reference_groups rg ON rg.chem_id IS NOT DISTINCT FROM cc.chem_id AND rg.chem_conc IS NOT DISTINCT FROM cc.chem_conc AND rg.chem_conc_uom_nm IS NOT DISTINCT FROM cc.chem_conc_uom_nm AND rg.taxon_id IS NOT DISTINCT FROM cc.taxon_id AND rg.disease_id IS NOT DISTINCT FROM cc.disease_id AND rg.chem_conc_exp_route_nm IS NOT DISTINCT FROM cc.chem_conc_exp_route_nm AND rg.ixn_qualifier_nm IS NOT DISTINCT FROM cc.ixn_qualifier_nm AND rg.action_type_cd IS NOT DISTINCT FROM cc.action_type_cd AND rg.anatomy_ids = cc.anatomy_ids WHERE cc.rn = 1 AND t.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1443338') ORDER BY organism LIMIT 50;
Date: 2026-09-02 07:18:26 Duration: 6s534ms Database: ctdprd51 User: pubeu Bind query: yes
6 38s736ms 41s724ms 40s131ms 3 2m 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 Sep 02 02 3 2m 40s131ms [ User: pubeu - Total duration: 2m - Times executed: 3 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:47 Duration: 41s724ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:58 Duration: 39s933ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 4635350;
Date: 2026-09-02 02:06:41 Duration: 38s736ms Database: ctdprd51 User: pubeu Bind query: yes
7 39s264ms 39s264ms 39s264ms 1 39s264ms 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 #7
Day Hour Count Duration Avg duration Sep 02 02 1 39s264ms 39s264ms [ User: pubeu - Total duration: 39s264ms - 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-09-02 02:03:07 Duration: 39s264ms Database: ctdprd51 User: pubeu Bind query: yes
8 24s51ms 24s325ms 24s144ms 4 1m36s copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 02 06 1 24s325ms 24s325ms 10 1 24s146ms 24s146ms 14 1 24s56ms 24s56ms 18 1 24s51ms 24s51ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 06:07:19 Duration: 24s325ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 10:07:19 Duration: 24s146ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-09-02 14:07:17 Duration: 24s56ms
9 20s231ms 20s377ms 20s304ms 4 1m21s copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 02 06 1 20s231ms 20s231ms 10 1 20s377ms 20s377ms 14 1 20s358ms 20s358ms 18 1 20s251ms 20s251ms [ User: postgres - Total duration: 1m21s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m21s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:22 Duration: 20s377ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:22 Duration: 20s358ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:22 Duration: 20s251ms Database: ctdprd51 User: postgres Application: pg_dump
10 19s717ms 19s717ms 19s717ms 1 19s717ms 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 g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 02 22 1 19s717ms 19s717ms [ User: pubeu - Total duration: 19s717ms - 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 = '2205291') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 22:26:36 Duration: 19s717ms Database: ctdprd51 User: pubeu Bind query: yes
11 15s363ms 15s517ms 15s420ms 4 1m1s copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 02 06 1 15s517ms 15s517ms 10 1 15s415ms 15s415ms 14 1 15s363ms 15s363ms 18 1 15s384ms 15s384ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 06:07:34 Duration: 15s517ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 10:07:35 Duration: 15s415ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-09-02 18:07:34 Duration: 15s384ms
12 14s919ms 15s24ms 14s966ms 4 59s866ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 02 06 1 15s24ms 15s24ms 10 1 14s951ms 14s951ms 14 1 14s919ms 14s919ms 18 1 14s972ms 14s972ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:53 Duration: 15s24ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:53 Duration: 14s972ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:53 Duration: 14s951ms
13 14s549ms 14s639ms 14s594ms 4 58s379ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 02 06 1 14s639ms 14s639ms 10 1 14s611ms 14s611ms 14 1 14s578ms 14s578ms 18 1 14s549ms 14s549ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:08 Duration: 14s639ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:01:08 Duration: 14s611ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:08 Duration: 14s578ms
14 6s128ms 13s392ms 10s944ms 5 54s720ms 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 ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 02 02 4 48s592ms 12s148ms 09 1 6s128ms 6s128ms [ User: pubeu - Total duration: 42s941ms - Times executed: 4 ]
-
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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:06:37 Duration: 13s392ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:02:03 Duration: 11s779ms 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 = '2198383') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2026-09-02 02:01:48 Duration: 11s750ms Database: ctdprd51 User: pubeu Bind query: yes
15 8s344ms 8s344ms 8s344ms 1 8s344ms 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 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 #15
Day Hour Count Duration Avg duration Sep 02 13 1 8s344ms 8s344ms [ User: pubeu - Total duration: 8s344ms - 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 'FLUOROCARBONS')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 13:16:17 Duration: 8s344ms Database: ctdprd51 User: pubeu Bind query: yes
16 7s885ms 8s171ms 8s28ms 2 16s56ms 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 baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.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 #16
Day Hour Count Duration Avg duration Sep 02 15 2 16s56ms 8s28ms [ User: pubeu - Total duration: 8s171ms - 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) 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-09-02 15:41:20 Duration: 8s171ms 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 baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'PARA-AMINOSALICYLIC ACID' AND tl.object_type_id = 2))) 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-09-02 15:43:10 Duration: 7s885ms Bind query: yes
17 7s554ms 7s590ms 7s572ms 4 30s290ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 02 06 1 7s590ms 7s590ms 10 1 7s554ms 7s554ms 14 1 7s558ms 7s558ms 18 1 7s586ms 7s586ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:31 Duration: 7s590ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:31 Duration: 7s586ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:00:32 Duration: 7s558ms
18 6s476ms 6s509ms 6s497ms 4 25s989ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 02 06 1 6s505ms 6s505ms 10 1 6s476ms 6s476ms 14 1 6s509ms 6s509ms 18 1 6s497ms 6s497ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 14:01:16 Duration: 6s509ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:01:16 Duration: 6s505ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:01:16 Duration: 6s497ms
19 6s202ms 6s277ms 6s235ms 4 24s943ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 02 06 1 6s237ms 6s237ms 10 1 6s277ms 6s277ms 14 1 6s202ms 6s202ms 18 1 6s225ms 6s225ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 10:00:38 Duration: 6s277ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 06:00:38 Duration: 6s237ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-09-02 18:00:38 Duration: 6s225ms
20 5s760ms 5s856ms 5s808ms 2 11s616ms 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 #20
Day Hour Count Duration Avg duration Sep 02 05 2 11s616ms 5s808ms [ User: qaeu - Total duration: 5s856ms - Times executed: 1 ]
[ User: pubeu - Total duration: 5s760ms - 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 = 1404748)) 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-09-02 05:43:39 Duration: 5s856ms 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 = 1404748)) 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-09-02 05:48:40 Duration: 5s760ms 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 NO DATASET
-
Events
Log levels
Key values
- 8,329 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 7 ERROR entries
- 0 WARNING entries
- 7 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 4 Max number of times the same event was reported
- 14 Total events found
Rank Times reported Error 1 4 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 02 16 4 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-09-02 16:26:33 Database: ctdprd51 Application: User: load Remote:
Date: 2026-09-02 16:49:57
Date: 2026-09-02 16:50:37
2 3 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 02 09 1 14 2 - ERROR: relation "tetramers" does not exist at character 15
- ERROR: relation "pub.term" does not exist at character 238
- ERROR: relation "pub.term" does not exist at character 22
Statement: select * from tetramers limit 100
Date: 2026-09-02 09:54:55 Database: ctdprd51 Application: pgAdmin 4 - CONN:5620679 User: pub1 Remote:
Statement: select chemTerm.nm ,chemTerm.acc_txt ,chemTerm.secondary_nm ,geneTerm.nm ,geneTerm.acc_txt ,phenotypeTerm.nm ,phenotypeTerm.acc_txt ,diseaseTerm.nm ,diseaseTerm.acc_txt from pub2.tetramer t inner join pub.term chemTerm on t.chem_id = chemTerm.id inner join pub.term geneTerm on t.gene_id = geneTerm.id inner join pub.term phenotypeTerm on t.phenotype_id = phenotypeTerm.id inner join pub.term diseaseTerm on t.disease_id = diseaseTerm.id limit 100
Date: 2026-09-02 14:35:03 Database: ctdprd51 Application: pgAdmin 4 - CONN:774039 User: load Remote:
Statement: select count(*) from pub.term
Date: 2026-09-02 14:43:51 Database: ctdprd51 Application: pgAdmin 4 - CONN:2371216 User: pub2 Remote:
3 3 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 02 18 3 - LOG: could not receive data from client: Connection timed out
- LOG: could not receive data from client: Connection timed out
- LOG: could not receive data from client: Connection timed out
Date: 2026-09-02 18:42:00
Date: 2026-09-02 18:46:22
Date: 2026-09-02 18:50:44
4 1 ERROR: column reference "..." is ambiguous
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 02 14 1 - ERROR: column reference "object_type_id" is ambiguous at character 135
Statement: select distinct db_id, cd, dbl.acc_txt, chemTerm.acc_txt, db.* from pub2.db_link dbl ,pub2.db db ,pub2.term chemTerm where object_type_id = 2 and dbl.db_id = db.id and dbl.object_id = chemTerm.id limit 100
Date: 2026-09-02 14:50:13
5 1 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 02 16 1 - ERROR: column "pubchem_sid" does not exist at character 227
Statement: select cd, dbl.acc_txt, chemTerm.acc_txt #015 from pub2.db_link dbl #015 ,pub2.db db #015 ,pub2.term chemTerm #015 where chemTerm.object_type_id = 2 #015 and dbl.db_id = db.id #015 and dbl.object_id = chemTerm.id #015 and cd in ( PUBCHEM_SID, PUBCHEM_CID, COMPTOX, GOOGLE_INCHIKEY)#015 #015 #015 #015
Date: 2026-09-02 16:50:37 Database: ctdprd51 Application: User: load Remote:
6 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 02 16 1 - ERROR: syntax error at or near "(" at character 281
Statement: select cd, dbl.acc_txt, chemTerm.acc_txt #015 from pub2.db_link dbl #015 ,pub2.db db #015 ,pub2.term chemTerm #015 where chemTerm.object_type_id = 2 #015 and dbl.db_id = db.id #015 and dbl.object_id = chemTerm.id #015 and cd in ( PUBCHEM_SID, PUBCHEM_CID, COMPTOX, GOOGLE_INCHIKEY)#015 ( #015 'PUBCHEM_SID' #015 ,'PUBCHEM_CID' #015 ,'COMPTOX' #015 ,'GOOGLE_INCHIKEY' #015 ) #015 #015 #015 #015
Date: 2026-09-02 16:49:57 Database: ctdprd51 Application: User: load Remote:
7 1 ERROR: missing FROM-clause entry for table "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Sep 02 14 1 - ERROR: missing FROM-clause entry for table "dbl" at character 96
Statement: select distinct db_id, cd from pub2.db_link ,pub2.db db where object_type_id = 2 and dbl.db_id = db.id limit 100
Date: 2026-09-02 14:47:57