-
Global information
- Generated on Sat Oct 4 04:15:04 2025
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20251003
- Parsed 18,160 log entries in 3s
- Log start from 2025-10-03 00:00:02 to 2025-10-03 23:59:40
-
Overview
Global Stats
- 18 Number of unique normalized queries
- 37 Number of queries
- 17m20s Total query duration
- 2025-10-03 00:09:25 First query
- 2025-10-03 15:47:10 Last query
- 2 queries/s at 2025-10-03 12:47:57 Query peak
- 17m20s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 17m20s Execute total duration
- 3 Number of events
- 1 Number of unique normalized events
- 3 Max number of times the same event was reported
- 0 Number of cancellation
- 7 Total number of automatic vacuums
- 15 Total number of automatic analyzes
- 4 Number temporary file
- 2.00 MiB Max size of temporary file
- 1.21 MiB Average size of temporary file
- 2,221 Total number of sessions
- 56 sessions at 2025-10-03 01:02:05 Session peak
- 40d12h18m26s Total duration of sessions
- 26m16s Average duration of sessions
- 0 Average queries per session
- 468ms Average queries duration per session
- 26m15s Average idle time per session
- 2,221 Total number of connections
- 31 connections/s at 2025-10-03 01:02:05 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2025-10-03 12:47:57 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2025-10-03 12:47:57 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 17m20s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 03 00 2 0ms 9m23s 4m45s 0ms 0ms 9m30s 01 2 0ms 5s463ms 5s304ms 0ms 5s146ms 5s463ms 02 2 0ms 9s424ms 8s44ms 0ms 6s665ms 9s424ms 03 5 0ms 49s62ms 48s535ms 48s602ms 49s62ms 1m36s 04 3 0ms 9s882ms 9s180ms 0ms 8s160ms 19s381ms 05 7 0ms 8s18ms 6s561ms 5s134ms 15s102ms 15s475ms 06 0 0ms 0ms 0ms 0ms 0ms 0ms 07 4 0ms 6s489ms 6s277ms 0ms 0ms 25s109ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 1 0ms 5s126ms 5s126ms 0ms 0ms 5s126ms 10 6 0ms 13s445ms 10s873ms 9s470ms 12s602ms 13s445ms 11 1 0ms 8s40ms 8s40ms 0ms 0ms 8s40ms 12 2 0ms 6s44ms 6s27ms 0ms 0ms 12s55ms 13 0 0ms 0ms 0ms 0ms 0ms 0ms 14 1 0ms 6s590ms 6s590ms 0ms 0ms 6s590ms 15 1 0ms 5s110ms 5s110ms 0ms 0ms 5s110ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 03 00 1 0 9m23s 0ms 0ms 9m23s 01 2 0 5s304ms 0ms 0ms 5s463ms 02 2 0 8s44ms 0ms 0ms 9s424ms 03 5 0 48s535ms 0ms 48s602ms 1m36s 04 3 0 9s180ms 0ms 0ms 19s381ms 05 7 0 6s561ms 0ms 5s134ms 15s475ms 06 0 0 0ms 0ms 0ms 0ms 07 4 0 6s277ms 0ms 0ms 25s109ms 08 0 0 0ms 0ms 0ms 0ms 09 1 0 5s126ms 0ms 0ms 5s126ms 10 6 0 10s873ms 0ms 9s470ms 13s445ms 11 1 0 8s40ms 0ms 0ms 8s40ms 12 2 0 6s27ms 0ms 0ms 12s55ms 13 0 0 0ms 0ms 0ms 0ms 14 1 0 6s590ms 0ms 0ms 6s590ms 15 1 0 5s110ms 0ms 0ms 5s110ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 03 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 Oct 03 00 0 0 0.00 0.00% 01 0 2 2.00 0.00% 02 0 2 2.00 0.00% 03 0 5 5.00 0.00% 04 0 3 3.00 0.00% 05 0 7 7.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 1 1.00 0.00% 10 0 6 6.00 0.00% 11 0 1 1.00 0.00% 12 0 2 2.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 1 1.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 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Oct 03 00 81 0.02/s 01 389 0.11/s 02 84 0.02/s 03 84 0.02/s 04 80 0.02/s 05 93 0.03/s 06 68 0.02/s 07 74 0.02/s 08 78 0.02/s 09 81 0.02/s 10 78 0.02/s 11 82 0.02/s 12 77 0.02/s 13 75 0.02/s 14 98 0.03/s 15 78 0.02/s 16 77 0.02/s 17 77 0.02/s 18 78 0.02/s 19 78 0.02/s 20 78 0.02/s 21 74 0.02/s 22 80 0.02/s 23 79 0.02/s Day Hour Count Average Duration Average idle time Oct 03 00 81 30m24s 30m17s 01 389 5m59s 5m59s 02 84 30m13s 30m12s 03 84 29m12s 29m9s 04 80 29m35s 29m35s 05 93 24m48s 24m48s 06 68 31m8s 31m8s 07 74 32m36s 32m36s 08 78 31m58s 31m58s 09 81 30m20s 30m20s 10 78 30m25s 30m24s 11 82 28m56s 28m56s 12 77 30m33s 30m33s 13 75 31m52s 31m52s 14 95 26m10s 26m10s 15 78 31m13s 31m13s 16 77 31m30s 31m30s 17 77 31m14s 31m14s 18 80 36m46s 36m46s 19 79 34m26s 34m26s 20 78 30m32s 30m32s 21 74 30m25s 30m25s 22 80 30m51s 30m51s 23 79 30m11s 30m11s -
Connections
Established Connections
Key values
- 31 connections Connection Peak
- 2025-10-03 01:02:05 Date
Connections per database
Key values
- ctdprd51 Main Database
- 2,221 connections Total
Connections per user
Key values
- pubeu Main User
- 2,221 connections Total
-
Sessions
Simultaneous sessions
Key values
- 56 sessions Session Peak
- 2025-10-03 01:02:05 Date
Histogram of session times
Key values
- 1,788 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 2,221 sessions Total
Sessions per user
Key values
- pubeu Main User
- 2,221 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 2,221 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 58,122 buffers Checkpoint Peak
- 2025-10-03 15:13:34 Date
- 1619.978 seconds Highest write time
- 0.003 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2025-10-03 22:16:36 Date
Checkpoints distance
Key values
- 1,268.30 Mo Distance Peak
- 2025-10-03 15:13:34 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Oct 03 00 427 42.976s 0.005s 43.047s 01 285 28.762s 0.002s 28.793s 02 330 33.232s 0.002s 33.263s 03 104 10.656s 0.002s 10.688s 04 7,503 751.762s 0.003s 751.861s 05 245 24.766s 0.002s 24.797s 06 383 38.563s 0.002s 38.595s 07 487 48.865s 0.002s 48.896s 08 684 68.736s 0.003s 68.817s 09 3,110 311.817s 0.004s 311.9s 10 643 64.627s 0.002s 64.659s 11 295 29.743s 0.003s 29.774s 12 874 87.769s 0.003s 87.851s 13 217 21.922s 0.002s 21.956s 14 75 7.618s 0.001s 7.634s 15 58,340 1,641.934s 0.004s 1,642.132s 16 201 20.365s 0.002s 20.399s 17 19 2.109s 0.002s 2.139s 18 21 2.273s 0.002s 2.302s 19 81 8.304s 0.002s 8.334s 20 90 9.226s 0.002s 9.26s 21 95 9.689s 0.002s 9.72s 22 31 3.284s 0.003s 3.315s 23 171 17.31s 0.002s 17.34s Day Hour Added Removed Recycled Synced files Longest sync Average sync Oct 03 00 0 0 0 68 0.001s 0.002s 01 0 0 0 33 0.001s 0.002s 02 0 0 0 21 0.001s 0.002s 03 0 0 0 20 0.001s 0.002s 04 0 5 0 54 0.001s 0.002s 05 0 0 0 28 0.001s 0.002s 06 0 0 0 116 0.001s 0.002s 07 0 0 0 120 0.001s 0.002s 08 0 1 0 94 0.001s 0.002s 09 0 1 0 146 0.001s 0.002s 10 0 0 0 124 0.001s 0.002s 11 0 0 0 76 0.001s 0.002s 12 0 1 0 98 0.001s 0.002s 13 0 0 0 72 0.001s 0.002s 14 0 0 0 46 0.001s 0.001s 15 0 40 0 167 0.001s 0.002s 16 0 0 0 72 0.001s 0.002s 17 0 0 0 12 0.001s 0.002s 18 0 0 0 15 0.001s 0.002s 19 0 0 0 60 0.001s 0.002s 20 0 0 0 58 0.001s 0.002s 21 0 0 0 23 0.001s 0.002s 22 0 0 0 14 0.001s 0.002s 23 0 0 0 21 0.001s 0.002s Day Hour Count Avg time (sec) Oct 03 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 Oct 03 00 2,064.50 kB 41,160.00 kB 01 959.00 kB 33,441.00 kB 02 37.00 kB 27,176.00 kB 03 65.00 kB 22,023.00 kB 04 40,700.50 kB 49,715.50 kB 05 433.00 kB 68,930.50 kB 06 1,082.50 kB 56,033.00 kB 07 1,115.00 kB 45,591.00 kB 08 2,573.00 kB 37,463.00 kB 09 11,141.00 kB 32,412.50 kB 10 1,908.00 kB 26,636.50 kB 11 700.50 kB 21,684.50 kB 12 3,249.00 kB 18,223.00 kB 13 580.00 kB 14,883.00 kB 14 347.00 kB 12,729.00 kB 15 325,317.50 kB 616,966.50 kB 16 464.50 kB 499,886.00 kB 17 40.00 kB 404,915.50 kB 18 34.00 kB 327,988.00 kB 19 179.50 kB 265,691.00 kB 20 176.50 kB 215,256.00 kB 21 224.00 kB 174,383.50 kB 22 41.00 kB 141,274.50 kB 23 115.50 kB 114,451.50 kB -
Temporary Files
Size of temporary files
Key values
- 4.84 MiB Temp Files size Peak
- 2025-10-03 14:34:13 Date
Number of temporary files
Key values
- 4 per second Temp Files Peak
- 2025-10-03 14:34:13 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Oct 03 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 4 4.84 MiB 1.21 MiB 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 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 4 4.84 MiB 640.00 KiB 2.00 MiB 1.21 MiB vacuum full analyze edit.reference_contact;-
VACUUM FULL ANALYZE edit.reference_contact;
Date: 2025-10-03 14:34:13 Duration: 0ms
Queries generating the largest temporary files
Rank Size Query 1 2.00 MiB VACUUM FULL ANALYZE edit.reference_contact;[ Date: 2025-10-03 14:34:13 ]
2 1.20 MiB VACUUM FULL ANALYZE edit.reference_contact;[ Date: 2025-10-03 14:34:13 ]
3 1.02 MiB VACUUM FULL ANALYZE edit.reference_contact;[ Date: 2025-10-03 14:34:13 ]
4 640.00 KiB VACUUM FULL ANALYZE edit.reference_contact;[ Date: 2025-10-03 14:34:13 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.82 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2025-10-03 14:42:26 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 0.82 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2025-10-03 14:42:26 Date
Analyzes per table
Key values
- pubc.log_query (6) Main table analyzed (database ctdprd51)
- 15 analyzes Total
Vacuums per table
Key values
- pub1.term_set_enrichment_agent (3) Main table vacuumed on database ctdprd51
- 7 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pub1.term_set_enrichment_agent 3 0 55,536 0 1,052 0 0 27,709 5 1,668,640 ctdprd51.pub1.term_set_enrichment 3 0 1,362 0 154 0 0 525 6 69,792 ctdprd51.pubc.log_query 1 1 314 0 87 0 0 101 17 119,217 Total 7 1 57,212 11 1,293 0 0 28,335 28 1,857,649 Tuples removed per table
Key values
- pubc.log_query (6) Main table with removed tuples on database ctdprd51
- 6 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 Oct 03 00 0 0 01 0 0 02 0 0 03 0 1 04 3 4 05 1 2 06 0 0 07 0 0 08 0 0 09 0 3 10 0 0 11 0 1 12 1 0 13 0 0 14 2 3 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 1 22 0 0 23 0 0 - 0.82 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
- 36 Total read queries
- 0 Total write queries
Queries by database
Key values
- ctdprd51 Main database
- 31 Requests
- 16m30s (ctdprd51)
- Main time consuming database
Queries by user
Key values
- pubeu Main user
- 40 Requests
User Request type Count Duration edit Total 1 6s590ms select 1 6s590ms editeu Total 5 1m1s select 5 1m1s pubc Total 1 9m23s select 1 9m23s pubeu Total 40 11m14s select 40 11m14s qaeu Total 5 35s664ms select 5 35s664ms unknown Total 10 2m2s others 1 6s878ms select 9 1m55s Duration by user
Key values
- 11m14s (pubeu) Main time consuming user
User Request type Count Duration edit Total 1 6s590ms select 1 6s590ms editeu Total 5 1m1s select 5 1m1s pubc Total 1 9m23s select 1 9m23s pubeu Total 40 11m14s select 40 11m14s qaeu Total 5 35s664ms select 5 35s664ms unknown Total 10 2m2s others 1 6s878ms select 9 1m55s Queries by host
Key values
- unknown Main host
- 62 Requests
- 24m24s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 35 Requests
- 9m23s (psql)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-10-03 23:03:43 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 27 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 9m23s /* * 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: 2025-10-03 00:09:25 - Database: ctdprd51 - User: pubc - Application: psql ]
2 49s62ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 03:41:12 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
3 48s929ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 03:45:50 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
4 48s602ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 03:39:44 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
5 48s54ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 03:40:39 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
6 48s27ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 03:40:20 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
7 13s445ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;[ Date: 2025-10-03 10:00:42 - Database: ctdprd51 - User: editeu - Bind query: yes ]
8 12s617ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;[ Date: 2025-10-03 10:07:11 - Database: ctdprd51 - User: editeu - Bind query: yes ]
9 12s602ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;[ Date: 2025-10-03 10:03:13 - Database: ctdprd51 - User: editeu - Bind query: yes ]
10 11s919ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;[ Date: 2025-10-03 10:09:47 - Bind query: yes ]
11 9s882ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 04:03:40 - Bind query: yes ]
12 9s499ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 04:03:50 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
13 9s470ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;[ Date: 2025-10-03 10:12:37 - Database: ctdprd51 - User: editeu - Bind query: yes ]
14 9s424ms SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1441324' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;[ Date: 2025-10-03 02:49:57 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
15 8s160ms SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein' OR tp.nm = 'gene' OR tp.nm = 'mRNA'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;[ Date: 2025-10-03 04:02:21 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
16 8s40ms 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 'LEAD')) 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 LIMIT 50;[ Date: 2025-10-03 11:46:44 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
17 8s18ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;[ Date: 2025-10-03 05:44:17 - Bind query: yes ]
18 7s658ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;[ Date: 2025-10-03 05:49:15 - Bind query: yes ]
19 7s456ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;[ Date: 2025-10-03 05:44:09 - Database: ctdprd51 - User: qaeu - Bind query: yes ]
20 7s444ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;[ Date: 2025-10-03 05:49:22 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 9m23s 1 9m23s 9m23s 9m23s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 03 00 1 9m23s 9m23s [ User: pubc - Total duration: 9m23s - Times executed: 1 ]
[ Application: psql - Total duration: 9m23s - 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: 2025-10-03 00:09:25 Duration: 9m23s Database: ctdprd51 User: pubc Application: psql
2 4m2s 5 48s27ms 49s62ms 48s535ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gli.term_id gene_id from term_label gli where gli.object_type_id = ? and upper(gli.nm) like ?))) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 03 03 5 4m2s 48s535ms [ User: pubeu - Total duration: 4m2s - Times executed: 5 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:41:12 Duration: 49s62ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:45:50 Duration: 48s929ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:39:44 Duration: 48s602ms Database: ctdprd51 User: pubeu Bind query: yes
3 1m 5 9s470ms 13s445ms 12s11ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.ixn_actor a left outer join pub1.term t on a.acc_txt = t.acc_txt and a.object_type_id = t.object_type_id inner join edit.object_type o on a.object_type_id = o.id inner join edit.ixn i on a.ixn_id = i.id inner join edit.reference_ixn ri on i.root_id = ri.ixn_id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.object_nm) <> upper(t.nm) or t.nm is null) union select distinct i.root_id, edit.get_ixn_prose (i.root_id), ?, a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, ?, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.reference_ixn_anatomy a left outer join pub1.term t on a.anatomy_acc_txt = t.acc_txt and t.object_type_id = ? inner join edit.reference_ixn ri on a.reference_ixn_id = ri.id inner join edit.ixn i on ri.ixn_id = i.id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.anatomy_nm) <> upper(t.nm) or t.nm is null) union select e.id, ?, ?, etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_anatomy etn left outer join pub1.term t on etn.anatomy_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.exp_outcome_id where (upper(etn.anatomy_term_nm) <> upper(t.nm) or t.nm is null) and anatomy_acc_txt is not null and anatomy_acc_txt <> ? union select e.id, ?, ?, etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_stressor etn left outer join pub1.term t on etn.chem_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_stressor_id = etn.id where (upper(etn.chem_term_nm) <> upper(t.nm) or t.nm is null) and chem_acc_txt is not null and chem_acc_txt <> ? union select e.id, ?, ?, etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.disease_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.disease_term_nm) <> upper(t.nm) or t.nm is null) and disease_acc_txt is not null and disease_acc_txt <> ? union select e.id, ?, ?, etn.phenotype_acc_txt as term_acc_txt, etn.phenotype_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.phenotype_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.phenotype_term_nm) <> upper(t.nm) or t.nm is null) and phenotype_acc_txt is not null and phenotype_acc_txt <> ? union select e.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_receptor etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.object_type_id = t.object_type_id inner join edit.object_type o on etn.object_type_id = o.id inner join edit.exposure e on e.exp_receptor_id = etn.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and term_acc_txt is not null and term_acc_txt <> ? union select etn.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, ?, ?, ?, ? from edit.medium etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.term_object_type_id = t.object_type_id inner join edit.object_type o on etn.term_object_type_id = o.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and etn.term_acc_txt is not null and etn.term_acc_txt <> ? union select etn.id, ?, o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_event etn inner join edit.exp_marker_type emt on etn.exp_marker_type_id = emt.id inner join edit.object_type o on emt.object_type_id = o.id left outer join pub1.term t on etn.exp_marker_acc_txt = t.acc_txt and o.id = t.object_type_id inner join edit.exposure e on e.exp_event_id = etn.id where (upper(etn.exp_marker_term_nm) <> upper(t.nm) or t.nm is null) and etn.exp_marker_acc_txt is not null and exp_marker_acc_txt <> ? order by term_nm, term_acc_txt;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 03 10 5 1m 12s11ms [ User: editeu - Total duration: 48s136ms - Times executed: 4 ]
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:00:42 Duration: 13s445ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:07:11 Duration: 12s617ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:03:13 Duration: 12s602ms Database: ctdprd51 User: editeu Bind query: yes
4 25s637ms 5 5s65ms 5s187ms 5s127ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 03 01 1 5s146ms 5s146ms 05 1 5s65ms 5s65ms 09 1 5s126ms 5s126ms 10 1 5s187ms 5s187ms 15 1 5s110ms 5s110ms [ User: pubeu - Total duration: 25s637ms - Times executed: 5 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 10:41:24 Duration: 5s187ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 01:47:13 Duration: 5s146ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 09:15:21 Duration: 5s126ms Database: ctdprd51 User: pubeu Bind query: yes
5 25s109ms 4 6s42ms 6s489ms 6s277ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 03 07 4 25s109ms 6s277ms [ User: pubeu - Total duration: 19s67ms - Times executed: 3 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:58 Duration: 6s489ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:51 Duration: 6s390ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:55 Duration: 6s186ms Database: ctdprd51 User: pubeu Bind query: yes
6 19s381ms 2 9s499ms 9s882ms 9s690ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 03 04 2 19s381ms 9s690ms [ User: pubeu - Total duration: 9s499ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:40 Duration: 9s882ms Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:50 Duration: 9s499ms Database: ctdprd51 User: pubeu Bind query: yes
7 15s462ms 2 7s444ms 8s18ms 7s731ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 03 05 2 15s462ms 7s731ms [ User: pubeu - Total duration: 7s444ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:17 Duration: 8s18ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:22 Duration: 7s444ms Database: ctdprd51 User: pubeu Bind query: yes
8 15s115ms 2 7s456ms 7s658ms 7s557ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 03 05 2 15s115ms 7s557ms [ User: qaeu - Total duration: 7s456ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:15 Duration: 7s658ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:09 Duration: 7s456ms Database: ctdprd51 User: qaeu Bind query: yes
9 12s55ms 2 6s11ms 6s44ms 6s27ms 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 #9
Day Hour Count Duration Avg duration Oct 03 12 2 12s55ms 6s27ms [ User: pubeu - Total duration: 12s55ms - Times executed: 2 ]
-
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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s44ms 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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s11ms Database: ctdprd51 User: pubeu Bind query: yes
10 10s284ms 2 5s134ms 5s149ms 5s142ms 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 #10
Day Hour Count Duration Avg duration Oct 03 05 2 10s284ms 5s142ms [ User: pubeu - Total duration: 5s149ms - Times executed: 1 ]
[ User: qaeu - Total duration: 5s134ms - 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 = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:48:48 Duration: 5s149ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:43:42 Duration: 5s134ms Database: ctdprd51 User: qaeu Bind query: yes
11 9s424ms 1 9s424ms 9s424ms 9s424ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 03 02 1 9s424ms 9s424ms [ User: pubeu - Total duration: 9s424ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1441324' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2025-10-03 02:49:57 Duration: 9s424ms Database: ctdprd51 User: pubeu Bind query: yes
12 8s160ms 1 8s160ms 8s160ms 8s160ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ? or tp.nm = ? or tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 03 04 1 8s160ms 8s160ms [ User: pubeu - Total duration: 8s160ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein' OR tp.nm = 'gene' OR tp.nm = 'mRNA'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:02:21 Duration: 8s160ms Database: ctdprd51 User: pubeu Bind query: yes
13 8s40ms 1 8s40ms 8s40ms 8s40ms 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 limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 03 11 1 8s40ms 8s40ms [ User: pubeu - Total duration: 8s40ms - 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 'LEAD')) 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 LIMIT 50;
Date: 2025-10-03 11:46:44 Duration: 8s40ms Database: ctdprd51 User: pubeu Bind query: yes
14 6s878ms 1 6s878ms 6s878ms 6s878ms vacuum analyze log_query_archive;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 03 00 1 6s878ms 6s878ms -
VACUUM ANALYZE log_query_archive;
Date: 2025-10-03 00:09:32 Duration: 6s878ms
15 6s665ms 1 6s665ms 6s665ms 6s665ms 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 = ?) 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 Oct 03 02 1 6s665ms 6s665ms [ User: pubeu - Total duration: 6s665ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'd003634' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 02:04:42 Duration: 6s665ms Database: ctdprd51 User: pubeu Bind query: yes
16 6s590ms 1 6s590ms 6s590ms 6s590ms select edit.normalize_reference_contact_email ();Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 03 14 1 6s590ms 6s590ms [ User: edit - Total duration: 6s590ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2092772 - Total duration: 6s590ms - Times executed: 1 ]
-
SELECT edit.normalize_reference_contact_email ();
Date: 2025-10-03 14:34:08 Duration: 6s590ms Database: ctdprd51 User: edit Application: pgAdmin 4 - CONN:2092772
17 5s463ms 1 5s463ms 5s463ms 5s463ms 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 #17
Day Hour Count Duration Avg duration Oct 03 01 1 5s463ms 5s463ms [ User: pubeu - Total duration: 5s463ms - 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 = '2119708') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2025-10-03 01:04:05 Duration: 5s463ms 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 4m2s 48s27ms 49s62ms 48s535ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gli.term_id gene_id from term_label gli where gli.object_type_id = ? and upper(gli.nm) like ?))) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 03 03 5 4m2s 48s535ms [ User: pubeu - Total duration: 4m2s - Times executed: 5 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:41:12 Duration: 49s62ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:45:50 Duration: 48s929ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:39:44 Duration: 48s602ms Database: ctdprd51 User: pubeu Bind query: yes
2 5 1m 9s470ms 13s445ms 12s11ms select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.ixn_actor a left outer join pub1.term t on a.acc_txt = t.acc_txt and a.object_type_id = t.object_type_id inner join edit.object_type o on a.object_type_id = o.id inner join edit.ixn i on a.ixn_id = i.id inner join edit.reference_ixn ri on i.root_id = ri.ixn_id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.object_nm) <> upper(t.nm) or t.nm is null) union select distinct i.root_id, edit.get_ixn_prose (i.root_id), ?, a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, ?, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.reference_ixn_anatomy a left outer join pub1.term t on a.anatomy_acc_txt = t.acc_txt and t.object_type_id = ? inner join edit.reference_ixn ri on a.reference_ixn_id = ri.id inner join edit.ixn i on ri.ixn_id = i.id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.anatomy_nm) <> upper(t.nm) or t.nm is null) union select e.id, ?, ?, etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_anatomy etn left outer join pub1.term t on etn.anatomy_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.exp_outcome_id where (upper(etn.anatomy_term_nm) <> upper(t.nm) or t.nm is null) and anatomy_acc_txt is not null and anatomy_acc_txt <> ? union select e.id, ?, ?, etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_stressor etn left outer join pub1.term t on etn.chem_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_stressor_id = etn.id where (upper(etn.chem_term_nm) <> upper(t.nm) or t.nm is null) and chem_acc_txt is not null and chem_acc_txt <> ? union select e.id, ?, ?, etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.disease_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.disease_term_nm) <> upper(t.nm) or t.nm is null) and disease_acc_txt is not null and disease_acc_txt <> ? union select e.id, ?, ?, etn.phenotype_acc_txt as term_acc_txt, etn.phenotype_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.phenotype_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.phenotype_term_nm) <> upper(t.nm) or t.nm is null) and phenotype_acc_txt is not null and phenotype_acc_txt <> ? union select e.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_receptor etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.object_type_id = t.object_type_id inner join edit.object_type o on etn.object_type_id = o.id inner join edit.exposure e on e.exp_receptor_id = etn.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and term_acc_txt is not null and term_acc_txt <> ? union select etn.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, ?, ?, ?, ? from edit.medium etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.term_object_type_id = t.object_type_id inner join edit.object_type o on etn.term_object_type_id = o.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and etn.term_acc_txt is not null and etn.term_acc_txt <> ? union select etn.id, ?, o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_event etn inner join edit.exp_marker_type emt on etn.exp_marker_type_id = emt.id inner join edit.object_type o on emt.object_type_id = o.id left outer join pub1.term t on etn.exp_marker_acc_txt = t.acc_txt and o.id = t.object_type_id inner join edit.exposure e on e.exp_event_id = etn.id where (upper(etn.exp_marker_term_nm) <> upper(t.nm) or t.nm is null) and etn.exp_marker_acc_txt is not null and exp_marker_acc_txt <> ? order by term_nm, term_acc_txt;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 03 10 5 1m 12s11ms [ User: editeu - Total duration: 48s136ms - Times executed: 4 ]
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:00:42 Duration: 13s445ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:07:11 Duration: 12s617ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:03:13 Duration: 12s602ms Database: ctdprd51 User: editeu Bind query: yes
3 5 25s637ms 5s65ms 5s187ms 5s127ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 03 01 1 5s146ms 5s146ms 05 1 5s65ms 5s65ms 09 1 5s126ms 5s126ms 10 1 5s187ms 5s187ms 15 1 5s110ms 5s110ms [ User: pubeu - Total duration: 25s637ms - Times executed: 5 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 10:41:24 Duration: 5s187ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 01:47:13 Duration: 5s146ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 09:15:21 Duration: 5s126ms Database: ctdprd51 User: pubeu Bind query: yes
4 4 25s109ms 6s42ms 6s489ms 6s277ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 03 07 4 25s109ms 6s277ms [ User: pubeu - Total duration: 19s67ms - Times executed: 3 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:58 Duration: 6s489ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:51 Duration: 6s390ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:55 Duration: 6s186ms Database: ctdprd51 User: pubeu Bind query: yes
5 2 19s381ms 9s499ms 9s882ms 9s690ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 03 04 2 19s381ms 9s690ms [ User: pubeu - Total duration: 9s499ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:40 Duration: 9s882ms Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:50 Duration: 9s499ms Database: ctdprd51 User: pubeu Bind query: yes
6 2 15s462ms 7s444ms 8s18ms 7s731ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 03 05 2 15s462ms 7s731ms [ User: pubeu - Total duration: 7s444ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:17 Duration: 8s18ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:22 Duration: 7s444ms Database: ctdprd51 User: pubeu Bind query: yes
7 2 15s115ms 7s456ms 7s658ms 7s557ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 03 05 2 15s115ms 7s557ms [ User: qaeu - Total duration: 7s456ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:15 Duration: 7s658ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:09 Duration: 7s456ms Database: ctdprd51 User: qaeu Bind query: yes
8 2 12s55ms 6s11ms 6s44ms 6s27ms 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 #8
Day Hour Count Duration Avg duration Oct 03 12 2 12s55ms 6s27ms [ User: pubeu - Total duration: 12s55ms - Times executed: 2 ]
-
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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s44ms 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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s11ms Database: ctdprd51 User: pubeu Bind query: yes
9 2 10s284ms 5s134ms 5s149ms 5s142ms 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 #9
Day Hour Count Duration Avg duration Oct 03 05 2 10s284ms 5s142ms [ User: pubeu - Total duration: 5s149ms - Times executed: 1 ]
[ User: qaeu - Total duration: 5s134ms - 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 = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:48:48 Duration: 5s149ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:43:42 Duration: 5s134ms Database: ctdprd51 User: qaeu Bind query: yes
10 1 9m23s 9m23s 9m23s 9m23s select maint_query_logs_archive ();Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 03 00 1 9m23s 9m23s [ User: pubc - Total duration: 9m23s - Times executed: 1 ]
[ Application: psql - Total duration: 9m23s - 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: 2025-10-03 00:09:25 Duration: 9m23s Database: ctdprd51 User: pubc Application: psql
11 1 9s424ms 9s424ms 9s424ms 9s424ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 03 02 1 9s424ms 9s424ms [ User: pubeu - Total duration: 9s424ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1441324' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2025-10-03 02:49:57 Duration: 9s424ms Database: ctdprd51 User: pubeu Bind query: yes
12 1 8s160ms 8s160ms 8s160ms 8s160ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ? or tp.nm = ? or tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 03 04 1 8s160ms 8s160ms [ User: pubeu - Total duration: 8s160ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein' OR tp.nm = 'gene' OR tp.nm = 'mRNA'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:02:21 Duration: 8s160ms Database: ctdprd51 User: pubeu Bind query: yes
13 1 8s40ms 8s40ms 8s40ms 8s40ms 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 limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 03 11 1 8s40ms 8s40ms [ User: pubeu - Total duration: 8s40ms - 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 'LEAD')) 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 LIMIT 50;
Date: 2025-10-03 11:46:44 Duration: 8s40ms Database: ctdprd51 User: pubeu Bind query: yes
14 1 6s878ms 6s878ms 6s878ms 6s878ms vacuum analyze log_query_archive;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 03 00 1 6s878ms 6s878ms -
VACUUM ANALYZE log_query_archive;
Date: 2025-10-03 00:09:32 Duration: 6s878ms
15 1 6s665ms 6s665ms 6s665ms 6s665ms 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 = ?) 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 Oct 03 02 1 6s665ms 6s665ms [ User: pubeu - Total duration: 6s665ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'd003634' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 02:04:42 Duration: 6s665ms Database: ctdprd51 User: pubeu Bind query: yes
16 1 6s590ms 6s590ms 6s590ms 6s590ms select edit.normalize_reference_contact_email ();Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 03 14 1 6s590ms 6s590ms [ User: edit - Total duration: 6s590ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2092772 - Total duration: 6s590ms - Times executed: 1 ]
-
SELECT edit.normalize_reference_contact_email ();
Date: 2025-10-03 14:34:08 Duration: 6s590ms Database: ctdprd51 User: edit Application: pgAdmin 4 - CONN:2092772
17 1 5s463ms 5s463ms 5s463ms 5s463ms 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 #17
Day Hour Count Duration Avg duration Oct 03 01 1 5s463ms 5s463ms [ User: pubeu - Total duration: 5s463ms - 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 = '2119708') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2025-10-03 01:04:05 Duration: 5s463ms Database: ctdprd51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9m23s 9m23s 9m23s 1 9m23s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 03 00 1 9m23s 9m23s [ User: pubc - Total duration: 9m23s - Times executed: 1 ]
[ Application: psql - Total duration: 9m23s - 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: 2025-10-03 00:09:25 Duration: 9m23s Database: ctdprd51 User: pubc Application: psql
2 48s27ms 49s62ms 48s535ms 5 4m2s select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gli.term_id gene_id from term_label gli where gli.object_type_id = ? and upper(gli.nm) like ?))) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 03 03 5 4m2s 48s535ms [ User: pubeu - Total duration: 4m2s - Times executed: 5 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:41:12 Duration: 49s62ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:45:50 Duration: 48s929ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Label */ gli.term_id gene_id FROM term_label gli WHERE gli.object_type_id = 4 AND UPPER(gli.nm) LIKE 'IL6'))) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 03:39:44 Duration: 48s602ms Database: ctdprd51 User: pubeu Bind query: yes
3 9s470ms 13s445ms 12s11ms 5 1m select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.ixn_actor a left outer join pub1.term t on a.acc_txt = t.acc_txt and a.object_type_id = t.object_type_id inner join edit.object_type o on a.object_type_id = o.id inner join edit.ixn i on a.ixn_id = i.id inner join edit.reference_ixn ri on i.root_id = ri.ixn_id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.object_nm) <> upper(t.nm) or t.nm is null) union select distinct i.root_id, edit.get_ixn_prose (i.root_id), ?, a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, ?, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, ?), taxon.nm from edit.reference_ixn_anatomy a left outer join pub1.term t on a.anatomy_acc_txt = t.acc_txt and t.object_type_id = ? inner join edit.reference_ixn ri on a.reference_ixn_id = ri.id inner join edit.ixn i on ri.ixn_id = i.id left outer join pub1.term taxon on ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = ? where (upper(a.anatomy_nm) <> upper(t.nm) or t.nm is null) union select e.id, ?, ?, etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_anatomy etn left outer join pub1.term t on etn.anatomy_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.exp_outcome_id where (upper(etn.anatomy_term_nm) <> upper(t.nm) or t.nm is null) and anatomy_acc_txt is not null and anatomy_acc_txt <> ? union select e.id, ?, ?, etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_stressor etn left outer join pub1.term t on etn.chem_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_stressor_id = etn.id where (upper(etn.chem_term_nm) <> upper(t.nm) or t.nm is null) and chem_acc_txt is not null and chem_acc_txt <> ? union select e.id, ?, ?, etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.disease_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.disease_term_nm) <> upper(t.nm) or t.nm is null) and disease_acc_txt is not null and disease_acc_txt <> ? union select e.id, ?, ?, etn.phenotype_acc_txt as term_acc_txt, etn.phenotype_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_outcome etn left outer join pub1.term t on etn.phenotype_acc_txt = t.acc_txt and ? = t.object_type_id inner join edit.object_type o on ? = o.id inner join edit.exposure e on e.exp_outcome_id = etn.id where (upper(etn.phenotype_term_nm) <> upper(t.nm) or t.nm is null) and phenotype_acc_txt is not null and phenotype_acc_txt <> ? union select e.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_receptor etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.object_type_id = t.object_type_id inner join edit.object_type o on etn.object_type_id = o.id inner join edit.exposure e on e.exp_receptor_id = etn.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and term_acc_txt is not null and term_acc_txt <> ? union select etn.id, ?, o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, ?, t.nm, t.acc_txt, ?, ?, ?, ? from edit.medium etn left outer join pub1.term t on etn.term_acc_txt = t.acc_txt and etn.term_object_type_id = t.object_type_id inner join edit.object_type o on etn.term_object_type_id = o.id where (upper(etn.term_nm) <> upper(t.nm) or t.nm is null) and etn.term_acc_txt is not null and etn.term_acc_txt <> ? union select etn.id, ?, o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, ?, t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, ?), ? from edit.exp_event etn inner join edit.exp_marker_type emt on etn.exp_marker_type_id = emt.id inner join edit.object_type o on emt.object_type_id = o.id left outer join pub1.term t on etn.exp_marker_acc_txt = t.acc_txt and o.id = t.object_type_id inner join edit.exposure e on e.exp_event_id = etn.id where (upper(etn.exp_marker_term_nm) <> upper(t.nm) or t.nm is null) and etn.exp_marker_acc_txt is not null and exp_marker_acc_txt <> ? order by term_nm, term_acc_txt;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 03 10 5 1m 12s11ms [ User: editeu - Total duration: 48s136ms - Times executed: 4 ]
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:00:42 Duration: 13s445ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:07:11 Duration: 12s617ms Database: ctdprd51 User: editeu Bind query: yes
-
select distinct i.root_id, edit.get_ixn_prose (i.root_id), o.cd, a.acc_txt as term_acc_txt, a.object_nm as term_nm, a.seq_acc_txt, t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.IXN_ACTOR a LEFT OUTER JOIN pub1.TERM t ON a.acc_txt = t.acc_txt AND a.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON a.object_type_id = o.id INNER JOIN edit.IXN i ON a.ixn_id = i.id INNER JOIN edit.REFERENCE_IXN ri ON i.root_id = ri.ixn_id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.object_nm) <> upper(t.nm) OR t.nm is null) UNION select distinct i.root_id, edit.get_ixn_prose (i.root_id), 'anatomy', a.anatomy_acc_txt as term_acc_txt, a.anatomy_nm as term_nm, '', t.nm, t.acc_txt, ri.reference_acc_txt, ri.create_by, to_char(ri.create_tm, 'mm-dd-yyyy'), taxon.nm from edit.REFERENCE_IXN_ANATOMY a LEFT OUTER JOIN pub1.TERM t ON a.anatomy_acc_txt = t.acc_txt AND t.object_type_id = 10 INNER JOIN edit.REFERENCE_IXN ri ON a.reference_ixn_id = ri.id INNER JOIN edit.IXN i ON ri.ixn_id = i.id LEFT OUTER JOIN pub1.TERM taxon ON ri.taxon_acc_txt = taxon.acc_txt and taxon.object_type_id = 1 WHERE (upper(a.anatomy_nm) <> upper(t.nm) OR t.nm is null) UNION select e.id, '', 'anatomy', etn.anatomy_acc_txt as term_acc_txt, etn.anatomy_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_ANATOMY etn LEFT OUTER JOIN pub1.TERM t ON etn.anatomy_acc_txt = t.acc_txt AND 10 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 10 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.exp_outcome_id WHERE (upper(etn.anatomy_term_nm) <> upper(t.nm) OR t.nm is null) and anatomy_acc_txt is not null AND anatomy_acc_txt <> '' UNION select e.id, '', 'chem', etn.chem_acc_txt as term_acc_txt, etn.chem_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_STRESSOR etn LEFT OUTER JOIN pub1.TERM t ON etn.chem_acc_txt = t.acc_txt AND 2 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 2 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = etn.id WHERE (upper(etn.chem_term_nm) <> upper(t.nm) OR t.nm is null) and chem_acc_txt is not null AND chem_acc_txt <> '' UNION select e.id, '', 'disease', etn.disease_acc_txt as term_acc_txt, etn.disease_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.disease_acc_txt = t.acc_txt AND 3 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 3 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.disease_term_nm) <> upper(t.nm) OR t.nm is null) and disease_acc_txt is not null AND disease_acc_txt <> '' UNION select e.id, '', 'go', etn.phenotype_acc_txt as term_acc_txt, etn.PHENOTYPE_TERM_NM as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_OUTCOME etn LEFT OUTER JOIN pub1.TERM t ON etn.phenotype_acc_txt = t.acc_txt AND 5 = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON 5 = o.id INNER JOIN edit.EXPOSURE e ON e.exp_outcome_id = etn.id WHERE (upper(etn.PHENOTYPE_TERM_NM) <> upper(t.nm) OR t.nm is null) and phenotype_acc_txt is not null AND phenotype_acc_txt <> '' UNION select e.id, '', o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_RECEPTOR etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.object_type_id = o.id INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = etn.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and term_acc_txt is not null AND term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.term_acc_txt as term_acc_txt, etn.term_nm as term_nm, 'Medium Record - No Seq', t.nm, t.acc_txt, '', -- reference accession '', -- create_by '', -- create_tm 'Medium Record - no Taxon' from edit.MEDIUM etn LEFT OUTER JOIN pub1.TERM t ON etn.term_acc_txt = t.acc_txt AND etn.term_object_type_id = t.object_type_id INNER JOIN edit.OBJECT_TYPE o ON etn.term_object_type_id = o.id WHERE (upper(etn.term_nm) <> upper(t.nm) OR t.nm is null) and etn.term_acc_txt is not null AND etn.term_acc_txt <> '' UNION select etn.id, '', -- Ixn txt o.cd, etn.exp_marker_acc_txt as term_acc_txt, etn.exp_marker_term_nm as term_nm, 'Exposure Record - No Seq', t.nm, t.acc_txt, e.reference_acc_txt, e.create_by, to_char(e.create_tm, 'mm-dd-yyyy'), 'Homo sapiens' -- Exposure taxon always 9606 from edit.EXP_EVENT etn INNER JOIN edit.EXP_MARKER_TYPE emt ON etn.exp_marker_type_id = emt.id INNER JOIN edit.OBJECT_TYPE o ON emt.object_type_id = o.id LEFT OUTER JOIN pub1.TERM t ON etn.exp_marker_acc_txt = t.acc_txt AND o.id = t.object_type_id INNER JOIN edit.EXPOSURE e ON e.exp_event_id = etn.id WHERE (upper(etn.exp_marker_term_nm) <> upper(t.nm) OR t.nm is null) and etn.exp_marker_acc_txt is not null AND exp_marker_acc_txt <> '' order by term_nm, term_acc_txt;
Date: 2025-10-03 10:03:13 Duration: 12s602ms Database: ctdprd51 User: editeu Bind query: yes
4 9s499ms 9s882ms 9s690ms 2 19s381ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 03 04 2 19s381ms 9s690ms [ User: pubeu - Total duration: 9s499ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:40 Duration: 9s882ms Bind query: yes
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:03:50 Duration: 9s499ms Database: ctdprd51 User: pubeu Bind query: yes
5 9s424ms 9s424ms 9s424ms 1 9s424ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 03 02 1 9s424ms 9s424ms [ User: pubeu - Total duration: 9s424ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1441324' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2025-10-03 02:49:57 Duration: 9s424ms Database: ctdprd51 User: pubeu Bind query: yes
6 8s160ms 8s160ms 8s160ms 1 8s160ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ? or tp.nm = ? or tp.nm = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term_label l on l.term_id = dp.ancestor_object_id where upper(l.nm) like ? and l.object_type_id = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 03 04 1 8s160ms 8s160ms [ User: pubeu - Total duration: 8s160ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein' OR tp.nm = 'gene' OR tp.nm = 'mRNA'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Label */ dp.descendant_object_id FROM dag_path dp INNER JOIN term_label l ON l.term_id = dp.ancestor_object_id WHERE UPPER(l.nm) LIKE '2,2-BIS(4-HYDROXYPHENYL)PROPANE' AND l.object_type_id = 2)) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2025-10-03 04:02:21 Duration: 8s160ms Database: ctdprd51 User: pubeu Bind query: yes
7 8s40ms 8s40ms 8s40ms 1 8s40ms 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 limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 03 11 1 8s40ms 8s40ms [ User: pubeu - Total duration: 8s40ms - 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 'LEAD')) 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 LIMIT 50;
Date: 2025-10-03 11:46:44 Duration: 8s40ms Database: ctdprd51 User: pubeu Bind query: yes
8 7s444ms 8s18ms 7s731ms 2 15s462ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 03 05 2 15s462ms 7s731ms [ User: pubeu - Total duration: 7s444ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:17 Duration: 8s18ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:22 Duration: 7s444ms Database: ctdprd51 User: pubeu Bind query: yes
9 7s456ms 7s658ms 7s557ms 2 15s115ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 03 05 2 15s115ms 7s557ms [ User: qaeu - Total duration: 7s456ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:49:15 Duration: 7s658ms Bind query: yes
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2025-10-03 05:44:09 Duration: 7s456ms Database: ctdprd51 User: qaeu Bind query: yes
10 6s878ms 6s878ms 6s878ms 1 6s878ms vacuum analyze log_query_archive;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 03 00 1 6s878ms 6s878ms -
VACUUM ANALYZE log_query_archive;
Date: 2025-10-03 00:09:32 Duration: 6s878ms
11 6s665ms 6s665ms 6s665ms 1 6s665ms 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 = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 03 02 1 6s665ms 6s665ms [ User: pubeu - Total duration: 6s665ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'd003634' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 02:04:42 Duration: 6s665ms Database: ctdprd51 User: pubeu Bind query: yes
12 6s590ms 6s590ms 6s590ms 1 6s590ms select edit.normalize_reference_contact_email ();Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 03 14 1 6s590ms 6s590ms [ User: edit - Total duration: 6s590ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2092772 - Total duration: 6s590ms - Times executed: 1 ]
-
SELECT edit.normalize_reference_contact_email ();
Date: 2025-10-03 14:34:08 Duration: 6s590ms Database: ctdprd51 User: edit Application: pgAdmin 4 - CONN:2092772
13 6s42ms 6s489ms 6s277ms 4 25s109ms select ii.cd, count(ii.id) cnt from ( select ot.cd, tl.term_id id from object_type ot inner join term_label tl on ot.id = tl.object_type_id where tl.nm_fts @@ to_tsquery(?, ?) union select ?, r.id from reference r where r.title_abstract_fts @@ to_tsquery(?, ?) or r.id in ( select rpr.reference_id from reference_party_role rpr inner join reference_party rp on rpr.reference_party_id = rp.id where (substr(get_reference_party_nm_sort (rp.required_nm), ?, ?) like ?)) union select ot.cd, l.object_id from db_link l inner join object_type ot on l.object_type_id = ot.id where l.type_cd = ? and (upper(l.acc_txt) like ?)) ii group by ii.cd;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 03 07 4 25s109ms 6s277ms [ User: pubeu - Total duration: 19s67ms - Times executed: 3 ]
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:58 Duration: 6s489ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:51 Duration: 6s390ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BasicCountsDAO gen */ ii.cd, COUNT(ii.id) cnt FROM ( SELECT ot.cd, tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops', 'EXP_GENE_51104') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'EXP_GENE_51104') OR r.id IN ( SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort (rp.required_nm), 1, 128) LIKE 'EXP_GENE_51104')) UNION SELECT ot.cd, l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper(l.acc_txt) LIKE 'EXP_GENE_51104')) ii GROUP BY ii.cd;
Date: 2025-10-03 07:42:55 Duration: 6s186ms Database: ctdprd51 User: pubeu Bind query: yes
14 6s11ms 6s44ms 6s27ms 2 12s55ms 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 Oct 03 12 2 12s55ms 6s27ms [ User: pubeu - Total duration: 12s55ms - Times executed: 2 ]
-
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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s44ms 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 = '2108479') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2025-10-03 12:47:57 Duration: 6s11ms Database: ctdprd51 User: pubeu Bind query: yes
15 5s463ms 5s463ms 5s463ms 1 5s463ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 03 01 1 5s463ms 5s463ms [ User: pubeu - Total duration: 5s463ms - 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 = '2119708') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2025-10-03 01:04:05 Duration: 5s463ms Database: ctdprd51 User: pubeu Bind query: yes
16 5s134ms 5s149ms 5s142ms 2 10s284ms 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 #16
Day Hour Count Duration Avg duration Oct 03 05 2 10s284ms 5s142ms [ User: pubeu - Total duration: 5s149ms - Times executed: 1 ]
[ User: qaeu - Total duration: 5s134ms - 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 = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:48:48 Duration: 5s149ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1324741)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2025-10-03 05:43:42 Duration: 5s134ms Database: ctdprd51 User: qaeu Bind query: yes
17 5s65ms 5s187ms 5s127ms 5 25s637ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 03 01 1 5s146ms 5s146ms 05 1 5s65ms 5s65ms 09 1 5s126ms 5s126ms 10 1 5s187ms 5s187ms 15 1 5s110ms 5s110ms [ User: pubeu - Total duration: 25s637ms - Times executed: 5 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1336333') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 10:41:24 Duration: 5s187ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1340246') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 01:47:13 Duration: 5s146ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1370433') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2025-10-03 09:15:21 Duration: 5s126ms 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
- 9,064 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 3 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 3 Max number of times the same event was reported
- 3 Total events found
Rank Times reported Error 1 3 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 03 18 2 19 1