-
Global information
- Generated on Thu Jun 4 04:10:03 2026
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20260603
- Parsed 3,075 log entries in 2s
- Log start from 2026-06-03 00:11:54 to 2026-06-03 23:45:27
-
Overview
Global Stats
- 2 Number of unique normalized queries
- 2 Number of queries
- 1m38s Total query duration
- 2026-06-03 10:14:45 First query
- 2026-06-03 10:16:30 Last query
- 1 queries/s at 2026-06-03 10:16:30 Query peak
- 1m38s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1m38s Execute total duration
- 8 Number of events
- 1 Number of unique normalized events
- 8 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
- 384 Total number of sessions
- 10 sessions at 2026-06-03 11:34:27 Session peak
- 75d16h30m5s Total duration of sessions
- 4h43m49s Average duration of sessions
- 0 Average queries per session
- 256ms Average queries duration per session
- 4h43m49s Average idle time per session
- 380 Total number of connections
- 3 connections/s at 2026-06-03 12:28:56 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-03 10:16:30 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-03 10:14:45 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-03 10:16:30 Date
Queries duration
Key values
- 1m38s 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) Jun 03 00 0 0ms 0ms 0ms 0ms 0ms 0ms 01 0 0ms 0ms 0ms 0ms 0ms 0ms 02 0 0ms 0ms 0ms 0ms 0ms 0ms 03 0 0ms 0ms 0ms 0ms 0ms 0ms 04 0 0ms 0ms 0ms 0ms 0ms 0ms 05 0 0ms 0ms 0ms 0ms 0ms 0ms 06 0 0ms 0ms 0ms 0ms 0ms 0ms 07 0 0ms 0ms 0ms 0ms 0ms 0ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 0 0ms 0ms 0ms 0ms 0ms 0ms 10 2 0ms 58s449ms 49s157ms 39s865ms 58s449ms 58s449ms 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 0 0ms 0ms 0ms 0ms 0ms 0ms 13 0 0ms 0ms 0ms 0ms 0ms 0ms 14 0 0ms 0ms 0ms 0ms 0ms 0ms 15 0 0ms 0ms 0ms 0ms 0ms 0ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 03 00 0 0 0ms 0ms 0ms 0ms 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 0 0 0ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 0 0 0ms 0ms 0ms 0ms 10 1 0 58s449ms 0ms 0ms 58s449ms 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 03 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jun 03 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jun 03 00 16 0.00/s 01 16 0.00/s 02 16 0.00/s 03 16 0.00/s 04 16 0.00/s 05 16 0.00/s 06 16 0.00/s 07 16 0.00/s 08 16 0.00/s 09 17 0.00/s 10 19 0.01/s 11 16 0.00/s 12 15 0.00/s 13 10 0.00/s 14 15 0.00/s 15 16 0.00/s 16 16 0.00/s 17 16 0.00/s 18 16 0.00/s 19 16 0.00/s 20 16 0.00/s 21 16 0.00/s 22 16 0.00/s 23 16 0.00/s Day Hour Count Average Duration Average idle time Jun 03 00 16 30m41s 30m41s 01 16 30m37s 30m37s 02 16 30m41s 30m41s 03 16 30m41s 30m41s 04 16 30m37s 30m37s 05 16 30m41s 30m41s 06 16 30m41s 30m41s 07 16 30m37s 30m37s 08 16 30m41s 30m41s 09 16 30m41s 30m41s 10 19 21h18m16s 21h18m11s 11 21 2d10h51m4s 2d10h51m4s 12 15 30m40s 30m40s 13 10 30m39s 30m39s 14 15 30m42s 30m42s 15 16 30m37s 30m37s 16 16 30m41s 30m41s 17 16 30m41s 30m41s 18 16 30m37s 30m37s 19 16 30m41s 30m41s 20 16 30m41s 30m41s 21 16 30m37s 30m37s 22 16 30m41s 30m41s 23 16 30m41s 30m41s -
Connections
Established Connections
Key values
- 3 connections Connection Peak
- 2026-06-03 12:28:56 Date
Connections per database
Key values
- ctddev51 Main Database
- 380 connections Total
Connections per user
Key values
- editeu Main User
- 380 connections Total
-
Sessions
Simultaneous sessions
Key values
- 10 sessions Session Peak
- 2026-06-03 11:34:27 Date
Histogram of session times
Key values
- 376 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 384 sessions Total
Sessions per user
Key values
- editeu Main User
- 384 sessions Total
Sessions per host
Key values
- 10.12.5.47 Main Host
- 384 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 280 buffers Checkpoint Peak
- 2026-06-03 09:44:42 Date
- 28.140 seconds Highest write time
- 0.001 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-06-03 09:44:42 Date
Checkpoints distance
Key values
- 0.05 Mo Distance Peak
- 2026-06-03 09:44:42 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jun 03 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 280 28.14s 0.001s 28.156s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 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 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jun 03 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 11 0.001s 0.001s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 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 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jun 03 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jun 03 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 24.00 kB 6,748,874.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 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 23 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 Jun 03 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 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 Jun 03 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 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 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 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
- 1 Total read queries
- 1 Total write queries
Queries by database
Key values
- ctddev51 Main database
- 2 Requests
- 1m38s (ctddev51)
- Main time consuming database
Queries by user
Key values
- pub1 Main user
- 2 Requests
User Request type Count Duration pub1 Total 2 1m38s cte 1 39s865ms select 1 58s449ms Duration by user
Key values
- 1m38s (pub1) Main time consuming user
User Request type Count Duration pub1 Total 2 1m38s cte 1 39s865ms select 1 58s449ms Queries by host
Key values
- unknown Main host
- 2 Requests
- 1m38s (unknown)
- Main time consuming host
Queries by application
Key values
- pgAdmin 4 - CONN:1855680 Main application
- 1 Requests
- 58s449ms (pgAdmin 4 - CONN:7673166)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-06-03 12:28:56 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 2 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 58s449ms -- Average runtime in PGAdmin average= 47s SELECT /* Optimized ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^' || 'GO' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, -- Move aggregation into the main group to avoid N+1 subqueries STRING_AGG(DISTINCT taxonTerm.nm || '^' || 'TAXON' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt ON ptr.term_id = pt.term_id AND ptr.phenotype_id = pt.phenotype_id INNER JOIN term associatedTerm ON ptr.term_id = associatedTerm.id INNER JOIN term phenotypeTerm ON ptr.phenotype_id = phenotypeTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN object_type o ON associatedTerm.object_type_id = o.id LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id WHERE taxonTerm.id IN ( -- Replaced ANY ARRAY with a standard IN for better Semi-Join optimization SELECT descendant_object_id FROM dag_path WHERE ancestor_object_id = 179416) GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount;[ Date: 2026-06-03 10:14:45 - Database: ctddev51 - User: pub1 - Application: pgAdmin 4 - CONN:7673166 ]
2 39s865ms -- Average runtime in PGAdmin average= 26s WITH descendant_terms AS ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = 179416 ), filtered_ptr AS ( SELECT ptr.* FROM phenotype_term_reference ptr JOIN descendant_terms dt ON ptr.taxon_id = dt.descendant_object_id ) SELECT DISTINCT associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^GO^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, STRING_AGG(DISTINCT taxonTerm.nm || '^TAXON^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM filtered_ptr ptr JOIN phenotype_term pt ON pt.term_id = ptr.term_id AND pt.phenotype_id = ptr.phenotype_id JOIN term associatedTerm ON associatedTerm.id = ptr.term_id JOIN term phenotypeTerm ON phenotypeTerm.id = ptr.phenotype_id LEFT JOIN term taxonTerm ON taxonTerm.id = ptr.taxon_id JOIN reference r ON r.id = ptr.reference_id JOIN ixn i ON i.id = ptr.ixn_id JOIN object_type o ON o.id = associatedTerm.object_type_id LEFT JOIN ixn_anatomy ia ON ia.ixn_id = ptr.ixn_id LEFT JOIN term anatomyTerm ON anatomyTerm.id = ia.anatomy_id GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedTerm.id, phenotypeTerm.id, pt.indirect_term_qty;[ Date: 2026-06-03 10:16:30 - Database: ctddev51 - User: pub1 - Application: pgAdmin 4 - CONN:1855680 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 58s449ms 1 58s449ms 58s449ms 58s449ms select associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where taxonterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 03 10 1 58s449ms 58s449ms [ User: pub1 - Total duration: 58s449ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:7673166 - Total duration: 58s449ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 47s SELECT /* Optimized ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^' || 'GO' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, -- Move aggregation into the main group to avoid N+1 subqueries STRING_AGG(DISTINCT taxonTerm.nm || '^' || 'TAXON' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt ON ptr.term_id = pt.term_id AND ptr.phenotype_id = pt.phenotype_id INNER JOIN term associatedTerm ON ptr.term_id = associatedTerm.id INNER JOIN term phenotypeTerm ON ptr.phenotype_id = phenotypeTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN object_type o ON associatedTerm.object_type_id = o.id LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id WHERE taxonTerm.id IN ( -- Replaced ANY ARRAY with a standard IN for better Semi-Join optimization SELECT descendant_object_id FROM dag_path WHERE ancestor_object_id = 179416) GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount;
Date: 2026-06-03 10:14:45 Duration: 58s449ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
2 39s865ms 1 39s865ms 39s865ms 39s865ms with descendant_terms as ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ? ), filtered_ptr as ( select ptr.* from phenotype_term_reference ptr join descendant_terms dt on ptr.taxon_id = dt.descendant_object_id ) select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from filtered_ptr ptr join phenotype_term pt on pt.term_id = ptr.term_id and pt.phenotype_id = ptr.phenotype_id join term associatedterm on associatedterm.id = ptr.term_id join term phenotypeterm on phenotypeterm.id = ptr.phenotype_id left join term taxonterm on taxonterm.id = ptr.taxon_id join reference r on r.id = ptr.reference_id join ixn i on i.id = ptr.ixn_id join object_type o on o.id = associatedterm.object_type_id left join ixn_anatomy ia on ia.ixn_id = ptr.ixn_id left join term anatomyterm on anatomyterm.id = ia.anatomy_id group by associatedterm, associatedtermnmsort, phenotype, casrn, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedterm.id, phenotypeterm.id, pt.indirect_term_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 03 10 1 39s865ms 39s865ms [ User: pub1 - Total duration: 39s865ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 39s865ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 26s WITH descendant_terms AS ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = 179416 ), filtered_ptr AS ( SELECT ptr.* FROM phenotype_term_reference ptr JOIN descendant_terms dt ON ptr.taxon_id = dt.descendant_object_id ) SELECT DISTINCT associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^GO^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, STRING_AGG(DISTINCT taxonTerm.nm || '^TAXON^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM filtered_ptr ptr JOIN phenotype_term pt ON pt.term_id = ptr.term_id AND pt.phenotype_id = ptr.phenotype_id JOIN term associatedTerm ON associatedTerm.id = ptr.term_id JOIN term phenotypeTerm ON phenotypeTerm.id = ptr.phenotype_id LEFT JOIN term taxonTerm ON taxonTerm.id = ptr.taxon_id JOIN reference r ON r.id = ptr.reference_id JOIN ixn i ON i.id = ptr.ixn_id JOIN object_type o ON o.id = associatedTerm.object_type_id LEFT JOIN ixn_anatomy ia ON ia.ixn_id = ptr.ixn_id LEFT JOIN term anatomyTerm ON anatomyTerm.id = ia.anatomy_id GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedTerm.id, phenotypeTerm.id, pt.indirect_term_qty;
Date: 2026-06-03 10:16:30 Duration: 39s865ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1 58s449ms 58s449ms 58s449ms 58s449ms select associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where taxonterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 03 10 1 58s449ms 58s449ms [ User: pub1 - Total duration: 58s449ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:7673166 - Total duration: 58s449ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 47s SELECT /* Optimized ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^' || 'GO' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, -- Move aggregation into the main group to avoid N+1 subqueries STRING_AGG(DISTINCT taxonTerm.nm || '^' || 'TAXON' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt ON ptr.term_id = pt.term_id AND ptr.phenotype_id = pt.phenotype_id INNER JOIN term associatedTerm ON ptr.term_id = associatedTerm.id INNER JOIN term phenotypeTerm ON ptr.phenotype_id = phenotypeTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN object_type o ON associatedTerm.object_type_id = o.id LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id WHERE taxonTerm.id IN ( -- Replaced ANY ARRAY with a standard IN for better Semi-Join optimization SELECT descendant_object_id FROM dag_path WHERE ancestor_object_id = 179416) GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount;
Date: 2026-06-03 10:14:45 Duration: 58s449ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
2 1 39s865ms 39s865ms 39s865ms 39s865ms with descendant_terms as ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ? ), filtered_ptr as ( select ptr.* from phenotype_term_reference ptr join descendant_terms dt on ptr.taxon_id = dt.descendant_object_id ) select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from filtered_ptr ptr join phenotype_term pt on pt.term_id = ptr.term_id and pt.phenotype_id = ptr.phenotype_id join term associatedterm on associatedterm.id = ptr.term_id join term phenotypeterm on phenotypeterm.id = ptr.phenotype_id left join term taxonterm on taxonterm.id = ptr.taxon_id join reference r on r.id = ptr.reference_id join ixn i on i.id = ptr.ixn_id join object_type o on o.id = associatedterm.object_type_id left join ixn_anatomy ia on ia.ixn_id = ptr.ixn_id left join term anatomyterm on anatomyterm.id = ia.anatomy_id group by associatedterm, associatedtermnmsort, phenotype, casrn, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedterm.id, phenotypeterm.id, pt.indirect_term_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 03 10 1 39s865ms 39s865ms [ User: pub1 - Total duration: 39s865ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 39s865ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 26s WITH descendant_terms AS ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = 179416 ), filtered_ptr AS ( SELECT ptr.* FROM phenotype_term_reference ptr JOIN descendant_terms dt ON ptr.taxon_id = dt.descendant_object_id ) SELECT DISTINCT associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^GO^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, STRING_AGG(DISTINCT taxonTerm.nm || '^TAXON^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM filtered_ptr ptr JOIN phenotype_term pt ON pt.term_id = ptr.term_id AND pt.phenotype_id = ptr.phenotype_id JOIN term associatedTerm ON associatedTerm.id = ptr.term_id JOIN term phenotypeTerm ON phenotypeTerm.id = ptr.phenotype_id LEFT JOIN term taxonTerm ON taxonTerm.id = ptr.taxon_id JOIN reference r ON r.id = ptr.reference_id JOIN ixn i ON i.id = ptr.ixn_id JOIN object_type o ON o.id = associatedTerm.object_type_id LEFT JOIN ixn_anatomy ia ON ia.ixn_id = ptr.ixn_id LEFT JOIN term anatomyTerm ON anatomyTerm.id = ia.anatomy_id GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedTerm.id, phenotypeTerm.id, pt.indirect_term_qty;
Date: 2026-06-03 10:16:30 Duration: 39s865ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 58s449ms 58s449ms 58s449ms 1 58s449ms select associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where taxonterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 03 10 1 58s449ms 58s449ms [ User: pub1 - Total duration: 58s449ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:7673166 - Total duration: 58s449ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 47s SELECT /* Optimized ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^' || 'GO' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, -- Move aggregation into the main group to avoid N+1 subqueries STRING_AGG(DISTINCT taxonTerm.nm || '^' || 'TAXON' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM phenotype_term_reference ptr INNER JOIN phenotype_term pt ON ptr.term_id = pt.term_id AND ptr.phenotype_id = pt.phenotype_id INNER JOIN term associatedTerm ON ptr.term_id = associatedTerm.id INNER JOIN term phenotypeTerm ON ptr.phenotype_id = phenotypeTerm.id INNER JOIN reference r ON ptr.reference_id = r.id INNER JOIN ixn i ON ptr.ixn_id = i.id INNER JOIN object_type o ON associatedTerm.object_type_id = o.id LEFT OUTER JOIN term taxonTerm ON ptr.taxon_id = taxonTerm.id LEFT OUTER JOIN ixn_anatomy ia ON ptr.ixn_id = ia.ixn_id LEFT OUTER JOIN term anatomyTerm ON ia.anatomy_id = anatomyTerm.id WHERE taxonTerm.id IN ( -- Replaced ANY ARRAY with a standard IN for better Semi-Join optimization SELECT descendant_object_id FROM dag_path WHERE ancestor_object_id = 179416) GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount;
Date: 2026-06-03 10:14:45 Duration: 58s449ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
2 39s865ms 39s865ms 39s865ms 1 39s865ms with descendant_terms as ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ? ), filtered_ptr as ( select ptr.* from phenotype_term_reference ptr join descendant_terms dt on ptr.taxon_id = dt.descendant_object_id ) select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id as associatedtermid, ptr.ixn_id as ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort as associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) as casrn, phenotypeterm.nm || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id as phenotypeid, string_agg(distinct taxonterm.nm || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?) as taxonterms, string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?) as anatomyterms, count(distinct taxonterm.nm) as taxoncount, i.ixn_prose_html as ixnprosehtml, i.ixn_prose_txt as ixnprose, i.sort_txt as ixnsort, string_agg(distinct r.acc_txt, ?) as references, count(distinct ptr.reference_id) as refcount, pt.indirect_term_qty as inferredcount, count(*) over () as full_count from filtered_ptr ptr join phenotype_term pt on pt.term_id = ptr.term_id and pt.phenotype_id = ptr.phenotype_id join term associatedterm on associatedterm.id = ptr.term_id join term phenotypeterm on phenotypeterm.id = ptr.phenotype_id left join term taxonterm on taxonterm.id = ptr.taxon_id join reference r on r.id = ptr.reference_id join ixn i on i.id = ptr.ixn_id join object_type o on o.id = associatedterm.object_type_id left join ixn_anatomy ia on ia.ixn_id = ptr.ixn_id left join term anatomyterm on anatomyterm.id = ia.anatomy_id group by associatedterm, associatedtermnmsort, phenotype, casrn, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedterm.id, phenotypeterm.id, pt.indirect_term_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 03 10 1 39s865ms 39s865ms [ User: pub1 - Total duration: 39s865ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 39s865ms - Times executed: 1 ]
-
-- Average runtime in PGAdmin average= 26s WITH descendant_terms AS ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = 179416 ), filtered_ptr AS ( SELECT ptr.* FROM phenotype_term_reference ptr JOIN descendant_terms dt ON ptr.taxon_id = dt.descendant_object_id ) SELECT DISTINCT associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd AS associatedTerm, associatedTerm.id AS associatedTermId, ptr.ixn_id AS ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort AS associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') AS casRN, phenotypeTerm.nm || '^GO^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd AS phenotype, phenotypeTerm.id AS phenotypeId, STRING_AGG(DISTINCT taxonTerm.nm || '^TAXON^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|') AS taxonTerms, STRING_AGG(DISTINCT anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|') AS anatomyTerms, COUNT(DISTINCT taxonTerm.nm) AS taxonCount, i.ixn_prose_html AS ixnProseHtml, i.ixn_prose_txt AS ixnProse, i.sort_txt AS ixnSort, STRING_AGG(DISTINCT r.acc_txt, '|') AS references, COUNT(DISTINCT ptr.reference_id) AS refCount, pt.indirect_term_qty AS inferredCount, COUNT(*) OVER () AS full_count FROM filtered_ptr ptr JOIN phenotype_term pt ON pt.term_id = ptr.term_id AND pt.phenotype_id = ptr.phenotype_id JOIN term associatedTerm ON associatedTerm.id = ptr.term_id JOIN term phenotypeTerm ON phenotypeTerm.id = ptr.phenotype_id LEFT JOIN term taxonTerm ON taxonTerm.id = ptr.taxon_id JOIN reference r ON r.id = ptr.reference_id JOIN ixn i ON i.id = ptr.ixn_id JOIN object_type o ON o.id = associatedTerm.object_type_id LEFT JOIN ixn_anatomy ia ON ia.ixn_id = ptr.ixn_id LEFT JOIN term anatomyTerm ON anatomyTerm.id = ia.anatomy_id GROUP BY associatedTerm, associatedTermNmSort, phenotype, casRN, ptr.ixn_id, i.ixn_prose_html, i.ixn_prose_txt, i.sort_txt, associatedTerm.id, phenotypeTerm.id, pt.indirect_term_qty;
Date: 2026-06-03 10:16:30 Duration: 39s865ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
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
- 1,536 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 8 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 8 Max number of times the same event was reported
- 8 Total events found
Rank Times reported Error 1 8 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 03 10 3 11 5