-
Global information
- Generated on Thu Jul 17 04:10:03 2025
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20250716
- Parsed 791 log entries in 2s
- Log start from 2025-07-16 08:52:18 to 2025-07-16 22:11:35
-
Overview
Global Stats
- 11 Number of unique normalized queries
- 21 Number of queries
- 8m47s Total query duration
- 2025-07-16 08:52:54 First query
- 2025-07-16 16:57:30 Last query
- 1 queries/s at 2025-07-16 11:14:08 Query peak
- 8m47s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 8m47s Execute total duration
- 32 Number of events
- 6 Number of unique normalized events
- 10 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 0 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 78 Total number of sessions
- 13 sessions at 2025-07-16 14:37:03 Session peak
- 4d2h22m3s Total duration of sessions
- 1h15m40s Average duration of sessions
- 0 Average queries per session
- 6s764ms Average queries duration per session
- 1h15m33s Average idle time per session
- 79 Total number of connections
- 9 connections/s at 2025-07-16 13:54:18 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2025-07-16 11:14:08 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2025-07-16 11:14:08 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2025-07-16 12:46:53 Date
Queries duration
Key values
- 8m47s 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) Jul 16 08 1 0ms 35s355ms 35s355ms 35s355ms 35s355ms 35s355ms 09 0 0ms 0ms 0ms 0ms 0ms 0ms 10 2 0ms 27s262ms 27s150ms 27s262ms 27s262ms 27s262ms 11 3 0ms 31s594ms 31s67ms 31s594ms 31s594ms 31s594ms 12 1 3s152ms 3s152ms 3s152ms 3s152ms 3s152ms 3s152ms 13 2 0ms 9s597ms 6s342ms 9s597ms 9s597ms 9s597ms 14 4 0ms 22s581ms 8s772ms 5s419ms 22s581ms 22s581ms 15 2 0ms 3s295ms 2s177ms 4s354ms 4s354ms 4s354ms 16 6 0ms 4m21s 48s249ms 4m21s 4m21s 4m21s 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 Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 08 1 0 35s355ms 35s355ms 35s355ms 35s355ms 09 0 0 0ms 0ms 0ms 0ms 10 2 0 27s150ms 27s39ms 27s262ms 27s262ms 11 3 0 31s67ms 31s42ms 31s594ms 31s594ms 12 0 0 0ms 0ms 0ms 0ms 13 1 0 9s597ms 0ms 9s597ms 9s597ms 14 4 0 8s772ms 2s450ms 5s419ms 22s581ms 15 0 0 0ms 0ms 0ms 0ms 16 6 0 48s249ms 13s62ms 4m21s 4m21s 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 Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 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 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 Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 16 08 0 1 1.00 0.00% 09 0 0 0.00 0.00% 10 0 2 2.00 0.00% 11 0 3 3.00 0.00% 12 0 1 1.00 0.00% 13 0 2 2.00 0.00% 14 0 0 0.00 0.00% 15 0 2 2.00 0.00% 16 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% Day Hour Count Average / Second Jul 16 08 1 0.00/s 09 3 0.00/s 10 5 0.00/s 11 3 0.00/s 12 9 0.00/s 13 25 0.01/s 14 22 0.01/s 15 9 0.00/s 16 1 0.00/s 18 1 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s Day Hour Count Average Duration Average idle time Jul 16 08 1 39s216ms 3s860ms 09 0 0ms 0ms 10 5 11s848ms 988ms 11 3 33s270ms 2s202ms 12 1 251ms 0ms 13 24 22m27s 22m26s 14 17 28m53s 28m51s 15 17 13m23s 13m23s 16 0 0ms 0ms 18 0 0ms 0ms 19 2 3h30m31s 3h30m31s 20 4 6h19m10s 6h19m10s 21 3 12h10m52s 12h10m52s 22 1 8h30m24s 8h30m24s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2025-07-16 13:54:18 Date
Connections per database
Key values
- ctddev51 Main Database
- 79 connections Total
Connections per user
Key values
- pubeu Main User
- 79 connections Total
-
Sessions
Simultaneous sessions
Key values
- 13 sessions Session Peak
- 2025-07-16 14:37:03 Date
Histogram of session times
Key values
- 31 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 78 sessions Total
Sessions per user
Key values
- pubeu Main User
- 78 sessions Total
Sessions per host
Key values
- 192.168.201.22 Main Host
- 78 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 21 buffers Checkpoint Peak
- 2025-07-16 10:24:56 Date
- 2.225 seconds Highest write time
- 0.001 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2025-07-16 14:24:56 Date
Checkpoints distance
Key values
- 0.10 Mo Distance Peak
- 2025-07-16 10:24:56 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 16 08 2 0.379s 0.001s 0.394s 09 0 0s 0s 0s 10 25 2.719s 0.002s 2.749s 11 4 0.473s 0.001s 0.488s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 14 1.66s 0.002s 1.689s 15 1 0.271s 0.001s 0.285s 16 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 16 08 0 0 0 1 0.001s 0.001s 09 0 0 0 0 0s 0s 10 0 0 0 25 0.001s 0.002s 11 0 0 0 4 0.001s 0.001s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 14 0.001s 0.002s 15 0 0 0 1 0.001s 0.001s 16 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 16 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 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jul 16 08 10.00 kB 38.00 kB 09 0.00 kB 0.00 kB 10 28.50 kB 49.50 kB 11 6.00 kB 43.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 19.50 kB 40.50 kB 15 2.00 kB 35.00 kB 16 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 16 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 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 Jul 16 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 - 0 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
- 17 Total read queries
- 4 Total write queries
Queries by database
Key values
- unknown Main database
- 12 Requests
- 5m35s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 12 Requests
User Request type Count Duration load Total 6 3m2s select 6 3m2s pubeu Total 3 9s534ms cte 3 9s534ms unknown Total 12 5m35s cte 1 1s59ms select 11 5m34s Duration by user
Key values
- 5m35s (unknown) Main time consuming user
User Request type Count Duration load Total 6 3m2s select 6 3m2s pubeu Total 3 9s534ms cte 3 9s534ms unknown Total 12 5m35s cte 1 1s59ms select 11 5m34s Queries by host
Key values
- unknown Main host
- 21 Requests
- 8m47s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 21 Requests
- 8m47s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-07-16 08:52:57 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 12 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 4m21s SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence, g.nm AS InferenceGeneSymbol, -- get rid of this cdr.network_score AS InferenceScore, -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-07-16 16:26:51 ]
2 35s355ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 08:52:54 - Database: ctddev51 - User: load - Bind query: yes ]
3 31s594ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 11:18:25 - Database: ctddev51 - User: load - Bind query: yes ]
4 31s42ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 11:08:51 - Database: ctddev51 - User: load - Bind query: yes ]
5 30s563ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 11:14:08 - Database: ctddev51 - User: load - Bind query: yes ]
6 27s262ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 10:15:20 - Database: ctddev51 - User: load - Bind query: yes ]
7 27s39ms select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;[ Date: 2025-07-16 10:28:58 - Database: ctddev51 - User: load - Bind query: yes ]
8 22s581ms SELECT i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;[ Date: 2025-07-16 14:38:01 ]
9 13s62ms SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'I' -- add this in to only get curated AND cdr.source_acc_txt is NOT null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-07-16 16:48:59 ]
10 9s597ms 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', 'UBERON_0000916') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'UBERON_0000916') 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 'UBERON_0000916')) 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 'UBERON_0000916')) ii GROUP BY ii.cd;[ Date: 2025-07-16 13:57:49 - Bind query: yes ]
11 5s555ms SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated -- AND cdr.source_acc_txt is NOT null -- this is null for all curated, only if omim inferred GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-07-16 16:50:24 ]
12 5s419ms SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;[ Date: 2025-07-16 14:56:30 ]
13 5s142ms SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated AND cdr.source_acc_txt is null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-07-16 16:47:42 ]
14 4s639ms SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;[ Date: 2025-07-16 14:54:36 ]
15 3s295ms WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;[ Date: 2025-07-16 15:23:30 - Database: ctddev51 - User: pubeu - Bind query: yes ]
16 3s152ms WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;[ Date: 2025-07-16 12:46:53 - Database: ctddev51 - User: pubeu - Bind query: yes ]
17 3s86ms WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;[ Date: 2025-07-16 13:54:23 - Database: ctddev51 - User: pubeu - Bind query: yes ]
18 2s450ms select distinct (source_cd) from chem_disease_reference;[ Date: 2025-07-16 14:05:46 ]
19 2s381ms SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;[ Date: 2025-07-16 16:38:25 ]
20 1s745ms select distinct (source_cd) from chem_disease_reference --select * from object_type;[ Date: 2025-07-16 16:57:30 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 4m21s 1 4m21s 4m21s 4m21s select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, g.nm as inferencegenesymbol, cdr.network_score as inferencescore, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score order by c.nm_sort, d.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 16 1 4m21s 4m21s -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence, g.nm AS InferenceGeneSymbol, -- get rid of this cdr.network_score AS InferenceScore, -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:26:51 Duration: 4m21s
2 3m2s 6 27s39ms 35s355ms 30s476ms select t.id, t.object_type_id, t.acc_txt, db.cd, t.nm, t.nm_sort, t.secondary_nm, t.description, t.note, l.nm from load.term t, load.term_label l, edit.db db where t.object_type_id = ? and t.id = l.term_id and t.acc_db_id = db.id;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 1 35s355ms 35s355ms 10 2 54s301ms 27s150ms 11 3 1m33s 31s67ms [ User: load - Total duration: 3m2s - Times executed: 6 ]
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 08:52:54 Duration: 35s355ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:18:25 Duration: 31s594ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:08:51 Duration: 31s42ms Database: ctddev51 User: load Bind query: yes
3 22s581ms 1 22s581ms 22s581ms 22s581ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 14 1 22s581ms 22s581ms -
SELECT i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:38:01 Duration: 22s581ms
4 13s62ms 1 13s62ms 13s62ms 13s62ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is not null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 16 1 13s62ms 13s62ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'I' -- add this in to only get curated AND cdr.source_acc_txt is NOT null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:48:59 Duration: 13s62ms
5 10s594ms 4 1s59ms 3s295ms 2s648ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 12 1 3s152ms 3s152ms 13 1 3s86ms 3s86ms 15 2 4s354ms 2s177ms [ User: pubeu - Total duration: 9s534ms - Times executed: 3 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 15:23:30 Duration: 3s295ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 12:46:53 Duration: 3s152ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 13:54:23 Duration: 3s86ms Database: ctddev51 User: pubeu Bind query: yes
6 10s59ms 2 4s639ms 5s419ms 5s29ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) and n.object_id in ( select gcr.chem_id from gene_chem_reference gcr union select cdr.chem_id from chem_disease_reference cdr where source_cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 14 2 10s59ms 5s29ms -
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:56:30 Duration: 5s419ms
-
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:54:36 Duration: 4s639ms
7 9s597ms 1 9s597ms 9s597ms 9s597ms 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 #7
Day Hour Count Duration Avg duration Jul 16 13 1 9s597ms 9s597ms -
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', 'UBERON_0000916') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'UBERON_0000916') 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 'UBERON_0000916')) 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 'UBERON_0000916')) ii GROUP BY ii.cd;
Date: 2025-07-16 13:57:49 Duration: 9s597ms Bind query: yes
8 7s937ms 2 2s381ms 5s555ms 3s968ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 16 2 7s937ms 3s968ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated -- AND cdr.source_acc_txt is NOT null -- this is null for all curated, only if omim inferred GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:50:24 Duration: 5s555ms
-
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:38:25 Duration: 2s381ms
9 5s142ms 1 5s142ms 5s142ms 5s142ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 16 1 5s142ms 5s142ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated AND cdr.source_acc_txt is null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:47:42 Duration: 5s142ms
10 2s450ms 1 2s450ms 2s450ms 2s450ms select distinct (source_cd) from chem_disease_reference;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 14 1 2s450ms 2s450ms -
select distinct (source_cd) from chem_disease_reference;
Date: 2025-07-16 14:05:46 Duration: 2s450ms
11 1s745ms 1 1s745ms 1s745ms 1s745ms select distinct (source_cd) from chem_disease_reference --select * from object_type;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 16 1 1s745ms 1s745ms -
select distinct (source_cd) from chem_disease_reference --select * from object_type;
Date: 2025-07-16 16:57:30 Duration: 1s745ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 6 3m2s 27s39ms 35s355ms 30s476ms select t.id, t.object_type_id, t.acc_txt, db.cd, t.nm, t.nm_sort, t.secondary_nm, t.description, t.note, l.nm from load.term t, load.term_label l, edit.db db where t.object_type_id = ? and t.id = l.term_id and t.acc_db_id = db.id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 08 1 35s355ms 35s355ms 10 2 54s301ms 27s150ms 11 3 1m33s 31s67ms [ User: load - Total duration: 3m2s - Times executed: 6 ]
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 08:52:54 Duration: 35s355ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:18:25 Duration: 31s594ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:08:51 Duration: 31s42ms Database: ctddev51 User: load Bind query: yes
2 4 10s594ms 1s59ms 3s295ms 2s648ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 12 1 3s152ms 3s152ms 13 1 3s86ms 3s86ms 15 2 4s354ms 2s177ms [ User: pubeu - Total duration: 9s534ms - Times executed: 3 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 15:23:30 Duration: 3s295ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 12:46:53 Duration: 3s152ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 13:54:23 Duration: 3s86ms Database: ctddev51 User: pubeu Bind query: yes
3 2 10s59ms 4s639ms 5s419ms 5s29ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) and n.object_id in ( select gcr.chem_id from gene_chem_reference gcr union select cdr.chem_id from chem_disease_reference cdr where source_cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 14 2 10s59ms 5s29ms -
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:56:30 Duration: 5s419ms
-
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:54:36 Duration: 4s639ms
4 2 7s937ms 2s381ms 5s555ms 3s968ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 16 2 7s937ms 3s968ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated -- AND cdr.source_acc_txt is NOT null -- this is null for all curated, only if omim inferred GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:50:24 Duration: 5s555ms
-
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:38:25 Duration: 2s381ms
5 1 4m21s 4m21s 4m21s 4m21s select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, g.nm as inferencegenesymbol, cdr.network_score as inferencescore, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score order by c.nm_sort, d.nm;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 16 1 4m21s 4m21s -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence, g.nm AS InferenceGeneSymbol, -- get rid of this cdr.network_score AS InferenceScore, -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:26:51 Duration: 4m21s
6 1 22s581ms 22s581ms 22s581ms 22s581ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 14 1 22s581ms 22s581ms -
SELECT i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:38:01 Duration: 22s581ms
7 1 13s62ms 13s62ms 13s62ms 13s62ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is not null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 16 1 13s62ms 13s62ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'I' -- add this in to only get curated AND cdr.source_acc_txt is NOT null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:48:59 Duration: 13s62ms
8 1 9s597ms 9s597ms 9s597ms 9s597ms 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 #8
Day Hour Count Duration Avg duration Jul 16 13 1 9s597ms 9s597ms -
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', 'UBERON_0000916') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'UBERON_0000916') 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 'UBERON_0000916')) 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 'UBERON_0000916')) ii GROUP BY ii.cd;
Date: 2025-07-16 13:57:49 Duration: 9s597ms Bind query: yes
9 1 5s142ms 5s142ms 5s142ms 5s142ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 16 1 5s142ms 5s142ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated AND cdr.source_acc_txt is null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:47:42 Duration: 5s142ms
10 1 2s450ms 2s450ms 2s450ms 2s450ms select distinct (source_cd) from chem_disease_reference;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 14 1 2s450ms 2s450ms -
select distinct (source_cd) from chem_disease_reference;
Date: 2025-07-16 14:05:46 Duration: 2s450ms
11 1 1s745ms 1s745ms 1s745ms 1s745ms select distinct (source_cd) from chem_disease_reference --select * from object_type;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 16 1 1s745ms 1s745ms -
select distinct (source_cd) from chem_disease_reference --select * from object_type;
Date: 2025-07-16 16:57:30 Duration: 1s745ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 4m21s 4m21s 4m21s 1 4m21s select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, g.nm as inferencegenesymbol, cdr.network_score as inferencescore, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score order by c.nm_sort, d.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 16 1 4m21s 4m21s -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence, g.nm AS InferenceGeneSymbol, -- get rid of this cdr.network_score AS InferenceScore, -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm, g.nm, cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:26:51 Duration: 4m21s
2 27s39ms 35s355ms 30s476ms 6 3m2s select t.id, t.object_type_id, t.acc_txt, db.cd, t.nm, t.nm_sort, t.secondary_nm, t.description, t.note, l.nm from load.term t, load.term_label l, edit.db db where t.object_type_id = ? and t.id = l.term_id and t.acc_db_id = db.id;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 1 35s355ms 35s355ms 10 2 54s301ms 27s150ms 11 3 1m33s 31s67ms [ User: load - Total duration: 3m2s - Times executed: 6 ]
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 08:52:54 Duration: 35s355ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:18:25 Duration: 31s594ms Database: ctddev51 User: load Bind query: yes
-
select t.ID, t.OBJECT_TYPE_ID, t.ACC_TXT, db.CD, t.NM, t.NM_SORT, t.SECONDARY_NM, t.DESCRIPTION, t.NOTE, l.NM from load.TERM t, load.TERM_LABEL l, edit.DB db where t.object_type_id = 2 and t.id = l.term_id and t.acc_db_id = db.id;
Date: 2025-07-16 11:08:51 Duration: 31s42ms Database: ctddev51 User: load Bind query: yes
3 22s581ms 22s581ms 22s581ms 1 22s581ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 14 1 22s581ms 22s581ms -
SELECT i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:38:01 Duration: 22s581ms
4 13s62ms 13s62ms 13s62ms 1 13s62ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is not null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 16 1 13s62ms 13s62ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'I' -- add this in to only get curated AND cdr.source_acc_txt is NOT null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:48:59 Duration: 13s62ms
5 9s597ms 9s597ms 9s597ms 1 9s597ms 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 Jul 16 13 1 9s597ms 9s597ms -
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', 'UBERON_0000916') UNION SELECT 'reference', r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english', 'UBERON_0000916') 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 'UBERON_0000916')) 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 'UBERON_0000916')) ii GROUP BY ii.cd;
Date: 2025-07-16 13:57:49 Duration: 9s597ms Bind query: yes
6 5s142ms 5s142ms 5s142ms 1 5s142ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? and cdr.source_acc_txt is null group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 16 1 5s142ms 5s142ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated AND cdr.source_acc_txt is null GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:47:42 Duration: 5s142ms
7 4s639ms 5s419ms 5s29ms 2 10s59ms select i.nm as chemicalname, i.acc as chemicalid, i.cas_rn as casrn, ( select t.description from term t where t.id = i.term_id) as definition, string_agg(distinct p.acc_db_cd || ? || p.object_acc_txt, ? order by p.acc_db_cd || ? || p.object_acc_txt) as parentids, string_agg(distinct i.tree_num, ? order by i.tree_num) as treenumbers, string_agg(distinct p.acc_txt, ? order by p.acc_txt) as parenttreenumbers, ( select string_agg(distinct tl.nm, ? order by tl.nm) from term_label tl inner join term_label_type tlt on tl.term_label_type_id = tlt.id where tl.term_id = i.term_id and tl.nm != ( select tn.nm from term tn where tn.id = tl.term_id) and tlt.nm in (...)) as synonyms from ( select distinct n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ? || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id from dag_node n where n.dag_id = ( select id from dag where cd = ?) and n.object_id in ( select gcr.chem_id from gene_chem_reference gcr union select cdr.chem_id from chem_disease_reference cdr where source_cd = ?) order by n.object_acc_txt) i left outer join dag_node p on i.parent_id = p.id group by i.nm, i.acc, i.cas_rn, i.term_id order by i.nm;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 14 2 10s59ms 5s29ms -
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:56:30 Duration: 5s419ms
-
SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName, i.acc as ChemicalID, i.cas_rn as CasRN, ( SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition, STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs, STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers, STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers, ( SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != ( SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM', 'EQUIVALENT TERM', 'CAS TYPE 1 NAME')) as Synonyms FROM ( SELECT DISTINCT n.nm, n.parent_id, n.acc_txt tree_num, n.acc_db_cd || ':' || n.object_acc_txt acc, n.secondary_nm cas_rn, n.object_acc_txt, n.object_id term_id FROM dag_node n WHERE n.dag_id = ( SELECT id FROM dag WHERE cd = 'chem') AND n.object_id IN ( SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm, i.acc, i.cas_rn, i.term_id ORDER BY i.nm;
Date: 2025-07-16 14:54:36 Duration: 4s639ms
8 2s381ms 5s555ms 3s968ms 2 7s937ms select c.nm as chemicalname, c.acc_txt as chemicalid, c.secondary_nm as casrn, d.nm as diseasename, d.acc_db_cd || ? || d.acc_txt as diseaseid, a.action_type_nm as directevidence, string_agg(cdr.source_acc_txt, ? order by cdr.source_acc_txt) as omimids, string_agg(r.acc_txt, ? order by r.acc_txt) as pubmedids from chem_disease_reference cdr inner join term d on cdr.disease_id = d.id inner join term c on cdr.chem_id = c.id left outer join chem_disease_reference_axn a on cdr.id = a.chem_disease_reference_id left outer join reference r on cdr.reference_id = r.id left outer join term g on cdr.via_gene_id = g.id where cdr.source_cd = ? group by c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ? || d.acc_txt, a.action_type_nm order by c.nm_sort, d.nm;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 16 2 7s937ms 3s968ms -
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated -- AND cdr.source_acc_txt is NOT null -- this is null for all curated, only if omim inferred GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:50:24 Duration: 5s555ms
-
SELECT --/* AllCuratedCDRelationsDAO */\n") c.nm AS ChemicalName, c.acc_txt AS ChemicalID, c.secondary_nm AS CasRN, d.nm AS DiseaseName, d.acc_db_cd || ':' || d.acc_txt AS DiseaseID, a.action_type_nm AS DirectEvidence -- ,g.nm AS InferenceGeneSymbol -- get rid of this , -- ,cdr.network_score AS InferenceScore -- get rid of this STRING_AGG(cdr.source_acc_txt, '|' ORDER BY cdr.source_acc_txt) AS OmimIDs, STRING_AGG(r.acc_txt, '|' ORDER BY r.acc_txt) AS PubMedIDs FROM chem_disease_reference cdr INNER JOIN term d ON cdr.disease_id = d.id INNER JOIN term c ON cdr.chem_id = c.id LEFT OUTER JOIN chem_disease_reference_axn a ON cdr.id = a.chem_disease_reference_id LEFT OUTER JOIN reference r ON cdr.reference_id = r.id LEFT OUTER JOIN term g ON cdr.via_gene_id = g.id WHERE cdr.source_cd = 'C' -- add this in to only get curated GROUP BY c.nm, c.nm_sort, c.acc_txt, c.secondary_nm, d.nm, d.acc_db_cd || ':' || d.acc_txt, a.action_type_nm -- ,g.nm -- ,cdr.network_score ORDER BY c.nm_sort, d.nm;
Date: 2025-07-16 16:38:25 Duration: 2s381ms
9 1s59ms 3s295ms 2s648ms 4 10s594ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 12 1 3s152ms 3s152ms 13 1 3s86ms 3s86ms 15 2 4s354ms 2s177ms [ User: pubeu - Total duration: 9s534ms - Times executed: 3 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 15:23:30 Duration: 3s295ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 12:46:53 Duration: 3s152ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '597156' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2025-07-16 13:54:23 Duration: 3s86ms Database: ctddev51 User: pubeu Bind query: yes
10 2s450ms 2s450ms 2s450ms 1 2s450ms select distinct (source_cd) from chem_disease_reference;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 14 1 2s450ms 2s450ms -
select distinct (source_cd) from chem_disease_reference;
Date: 2025-07-16 14:05:46 Duration: 2s450ms
11 1s745ms 1s745ms 1s745ms 1 1s745ms select distinct (source_cd) from chem_disease_reference --select * from object_type;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 16 1 1s745ms 1s745ms -
select distinct (source_cd) from chem_disease_reference --select * from object_type;
Date: 2025-07-16 16:57:30 Duration: 1s745ms
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
- 403 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
- 13 ERROR entries
- 0 WARNING entries
- 19 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 10 Max number of times the same event was reported
- 32 Total events found
Rank Times reported Error 1 10 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 16 19 2 20 4 21 3 22 1 2 9 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 16 08 1 10 5 11 3 3 8 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 16 10 2 14 4 16 2 - ERROR: syntax error at or near "int" at character 8
- ERROR: syntax error at or near "db" at character 8
- ERROR: syntax error at or near "as" at character 972
Statement: insert int db ( id ,nm ,nm_display ,cd ,description ) VALUES ( 158 ,'CompTox Chemicals Dashboard' ,'CompTox Chemicals Dashboard' ,'COMPTOX' ,'The CompTox Chemicals Dashboard integrates biology, bioinformatics, biotechnology, chemistry, and computer science to identify important biological processes that may be disrupted by chemicals, helping to prioritize chemicals based on potential health risks.' ) , ( 159 ,'Google InChIKey Search' ,'Google InChIKey Search' ,'GOOGLE_INCHIKEY' ,'Conduct Google search based on InChIKey string' )
Date: 2025-07-16 10:01:18 Database: ctddev51 Application: pgAdmin 4 - CONN:4680668 User: edit Remote:
Statement: insert db ( id ,nm ,nm_display ,cd ,description ) VALUES ( 158 ,'CompTox Chemicals Dashboard' ,'CompTox Chemicals Dashboard' ,'COMPTOX' ,'The CompTox Chemicals Dashboard integrates biology, bioinformatics, biotechnology, chemistry, and computer science to identify important biological processes that may be disrupted by chemicals, helping to prioritize chemicals based on potential health risks.' ) , ( 159 ,'Google InChIKey Search' ,'Google InChIKey Search' ,'GOOGLE_INCHIKEY' ,'Conduct Google search based on InChIKey string' )
Date: 2025-07-16 10:01:54
Statement: SELECT i.nm as ChemicalName ,i.acc as ChemicalID ,i.cas_rn as CasRN ,(SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition ,STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs ,STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers ,STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers ,(SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != (SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM','EQUIVALENT TERM','CAS TYPE 1 NAME') as Synonyms FROM (SELECT DISTINCT n.nm ,n.parent_id ,n.acc_txt tree_num ,n.acc_db_cd || ':' || n.object_acc_txt acc ,n.secondary_nm cas_rn ,n.object_acc_txt ,n.object_id term_id FROM dag_node nn WHERE n.dag_id = (SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm ,i.accn ,i.cas_rnn ,i.term_idn ORDER BY i.nm
Date: 2025-07-16 14:32:20 Database: ctddev51 Application: pgAdmin 4 - CONN:8247599 User: pub1 Remote:
4 2 ERROR: missing FROM-clause entry for table "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 16 14 2 - ERROR: missing FROM-clause entry for table "n" at character 1023
- ERROR: missing FROM-clause entry for table "object" at character 1509
Statement: SELECT i.nm as ChemicalName ,i.acc as ChemicalID ,i.cas_rn as CasRN ,(SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition ,STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs ,STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers ,STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers ,(SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != (SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM','EQUIVALENT TERM','CAS TYPE 1 NAME')) as Synonyms FROM (SELECT DISTINCT n.nm ,n.parent_id ,n.acc_txt tree_num ,n.acc_db_cd || ':' || n.object_acc_txt acc ,n.secondary_nm cas_rn ,n.object_acc_txt ,n.object_id term_id FROM dag_node nn WHERE n.dag_id = (SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm ,i.accn ,i.cas_rnn ,i.term_idn ORDER BY i.nm
Date: 2025-07-16 14:36:01
Statement: SELECT -- All Chem query - need to add in to filter for only curated i.nm as ChemicalName ,i.acc as ChemicalID ,i.cas_rn as CasRN ,(SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition ,STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs ,STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers ,STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers ,(SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != (SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM','EQUIVALENT TERM','CAS TYPE 1 NAME')) as Synonyms FROM (SELECT DISTINCT n.nm ,n.parent_id ,n.acc_txt tree_num ,n.acc_db_cd || ':' || n.object_acc_txt acc ,n.secondary_nm cas_rn ,n.object_acc_txt ,n.object_id term_id FROM dag_node n WHERE n.dag_id = (SELECT id FROM dag WHERE cd = 'chem') AND n.object.id IN (SELECT gcr.chem_id FROM gene_chem_reference gcr UNION SELECT cdr.chem_id FROM chem_disease_reference cdr WHERE source_cd = 'C') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm ,i.acc ,i.cas_rn ,i.term_id ORDER BY i.nm
Date: 2025-07-16 14:53:00
5 2 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 16 14 2 - ERROR: column "src_cd" does not exist at character 17
- ERROR: column i.accn does not exist at character 1585
Hint: Perhaps you meant to reference the column "chem_disease_reference.source_cd".
Statement: select distinct(src_cd) from chem_disease_referenceDate: 2025-07-16 14:05:18 Database: ctddev51 Application: pgAdmin 4 - CONN:8112541 User: pub1 Remote:
Hint: Perhaps you meant to reference the column "i.acc".
Statement: SELECT i.nm as ChemicalName ,i.acc as ChemicalID ,i.cas_rn as CasRN ,(SELECT t.description FROM term t WHERE t.id = i.term_id) as Definition ,STRING_AGG(DISTINCT p.acc_db_cd || ':' || p.object_acc_txt, '|' ORDER BY p.acc_db_cd || ':' || p.object_acc_txt) as ParentIDs ,STRING_AGG(DISTINCT i.tree_num, '|' ORDER BY i.tree_num) as TreeNumbers ,STRING_AGG(DISTINCT p.acc_txt, '|' ORDER BY p.acc_txt) as ParentTreeNumbers ,(SELECT STRING_AGG(DISTINCT tl.nm, '|' ORDER BY tl.nm) FROM term_label tl INNER JOIN term_label_type tlt ON tl.term_label_type_id = tlt.id WHERE tl.term_id = i.term_id AND tl.nm != (SELECT tn.nm FROM term tn where tn.id = tl.term_id) AND tlt.nm IN ('CHEMICAL SYNONYM','EQUIVALENT TERM','CAS TYPE 1 NAME')) as Synonyms FROM (SELECT DISTINCT n.nm ,n.parent_id ,n.acc_txt tree_num ,n.acc_db_cd || ':' || n.object_acc_txt acc ,n.secondary_nm cas_rn ,n.object_acc_txt ,n.object_id term_id FROM dag_node n WHERE n.dag_id = (SELECT id FROM dag WHERE cd = 'chem') ORDER BY n.object_acc_txt) i LEFT OUTER JOIN dag_node p ON i.parent_id = p.id GROUP BY i.nm ,i.accn ,i.cas_rnn ,i.term_idn ORDER BY i.nmDate: 2025-07-16 14:37:03
6 1 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 16 10 1 - ERROR: null value in column "create_by" of relation "db" violates not-null constraint
Detail: Failing row contains (158, CompTox Chemicals Dashboard, CompTox Chemicals Dashboard, null, null, COMPTOX, The CompTox Chemicals Dashboard integrates biology, bioinformati..., null, null, 2025-07-16 10:02:38.753071, null, 2025-07-16 10:02:38.753071).
Statement: insert INTO db ( id ,nm ,nm_display ,cd ,description ) VALUES ( 158 ,'CompTox Chemicals Dashboard' ,'CompTox Chemicals Dashboard' ,'COMPTOX' ,'The CompTox Chemicals Dashboard integrates biology, bioinformatics, biotechnology, chemistry, and computer science to identify important biological processes that may be disrupted by chemicals, helping to prioritize chemicals based on potential health risks.' ) , ( 159 ,'Google InChIKey Search' ,'Google InChIKey Search' ,'GOOGLE_INCHIKEY' ,'Conduct Google search based on InChIKey string' )Date: 2025-07-16 10:02:38