-
Global information
- Generated on Thu May 21 04:10:03 2026
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20260520
- Parsed 3,702 log entries in 2s
- Log start from 2026-05-20 00:23:07 to 2026-05-20 23:56:40
-
Overview
Global Stats
- 7 Number of unique normalized queries
- 8 Number of queries
- 5m7s Total query duration
- 2026-05-20 10:16:43 First query
- 2026-05-20 11:16:56 Last query
- 1 queries/s at 2026-05-20 11:12:33 Query peak
- 5m7s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 5m7s Execute total duration
- 9 Number of events
- 5 Number of unique normalized events
- 4 Max number of times the same event was reported
- 0 Number of cancellation
- 2 Total number of automatic vacuums
- 4 Total number of automatic analyzes
- 10 Number temporary file
- 301.06 MiB Max size of temporary file
- 275.93 MiB Average size of temporary file
- 427 Total number of sessions
- 28 sessions at 2026-05-20 11:09:46 Session peak
- 14d14h52m55s Total duration of sessions
- 49m18s Average duration of sessions
- 0 Average queries per session
- 719ms Average queries duration per session
- 49m17s Average idle time per session
- 443 Total number of connections
- 9 connections/s at 2026-05-20 10:31:07 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-05-20 11:12:33 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-05-20 10:35:51 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-05-20 11:12:33 Date
Queries duration
Key values
- 5m7s 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) May 20 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 7s628ms 7s168ms 6s707ms 7s628ms 7s628ms 11 6 0ms 2m2s 48s795ms 48s62ms 2m2s 2m2s 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) May 20 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 2 0 7s168ms 0ms 6s707ms 7s628ms 11 1 0 48s62ms 0ms 0ms 48s62ms 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) May 20 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 May 20 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 2 2.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 May 20 00 16 0.00/s 01 16 0.00/s 02 16 0.00/s 03 15 0.00/s 04 13 0.00/s 05 12 0.00/s 06 16 0.00/s 07 16 0.00/s 08 16 0.00/s 09 29 0.01/s 10 59 0.02/s 11 27 0.01/s 12 16 0.00/s 13 16 0.00/s 14 16 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 May 20 00 16 30m41s 30m41s 01 16 30m37s 30m37s 02 16 30m41s 30m41s 03 15 30m40s 30m40s 04 13 30m39s 30m39s 05 12 30m42s 30m42s 06 16 30m37s 30m37s 07 16 30m41s 30m41s 08 16 30m41s 30m41s 09 21 23m22s 23m22s 10 59 2h49m41s 2h49m40s 11 19 25m52s 25m36s 12 16 30m37s 30m37s 13 16 30m41s 30m41s 14 16 30m41s 30m41s 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
- 9 connections Connection Peak
- 2026-05-20 10:31:07 Date
Connections per database
Key values
- ctddev51 Main Database
- 443 connections Total
Connections per user
Key values
- editeu Main User
- 443 connections Total
-
Sessions
Simultaneous sessions
Key values
- 28 sessions Session Peak
- 2026-05-20 11:09:46 Date
Histogram of session times
Key values
- 381 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 427 sessions Total
Sessions per user
Key values
- editeu Main User
- 427 sessions Total
Sessions per host
Key values
- 10.12.5.47 Main Host
- 427 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 273 buffers Checkpoint Peak
- 2026-05-20 11:10:46 Date
- 27.414 seconds Highest write time
- 0.001 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-05-20 11:40:22 Date
Checkpoints distance
Key values
- 711.95 Mo Distance Peak
- 2026-05-20 11:10:46 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time May 20 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 9 0.983s 0.001s 0.997s 06 7 0.812s 0.001s 0.827s 07 20 2.157s 0.002s 2.186s 08 0 0s 0s 0s 09 60 6.084s 0.001s 6.099s 10 31 3.299s 0.002s 3.33s 11 312 31.393s 0.002s 31.6s 12 27 2.891s 0.002s 2.927s 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 May 20 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 9 0.001s 0.001s 06 0 0 0 7 0.001s 0.001s 07 0 0 0 12 0.001s 0.002s 08 0 0 0 0 0s 0s 09 0 0 0 25 0.001s 0.001s 10 0 0 0 16 0.001s 0.002s 11 0 43 0 49 0.001s 0.002s 12 0 0 0 16 0.001s 0.002s 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) May 20 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 May 20 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 14.00 kB 27,049.00 kB 06 17.00 kB 24,345.00 kB 07 24.50 kB 20,819.50 kB 08 0.00 kB 0.00 kB 09 496.00 kB 17,801.00 kB 10 60.50 kB 15,228.00 kB 11 355,072.00 kB 363,571.50 kB 12 24.50 kB 310,050.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
- 1.31 GiB Temp Files size Peak
- 2026-05-20 11:12:33 Date
Number of temporary files
Key values
- 5 per second Temp Files Peak
- 2026-05-20 11:12:33 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size May 20 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 10 2.69 GiB 275.93 MiB 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 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 5 1.39 GiB 262.34 MiB 301.06 MiB 284.07 MiB create index concurrently idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);-
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:58 Duration: 26s620ms
-
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:46 Duration: 0ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
2 5 1.31 GiB 249.23 MiB 286.86 MiB 267.80 MiB create index idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);-
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 14s7ms
-
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 0ms
Queries generating the largest temporary files
Rank Size Query 1 301.06 MiB CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:47 ]
2 299.30 MiB CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:46 - Database: ctddev51 - User: pub1 - Application: pgAdmin 4 - CONN:7673166 ]
3 286.86 MiB CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
4 280.67 MiB CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
5 279.09 MiB CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:47 ]
6 278.55 MiB CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:47 ]
7 264.24 MiB CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
8 262.34 MiB CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:47 ]
9 257.98 MiB CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
10 249.23 MiB CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Analyzes per table
Key values
- edit.object_note (4) Main table analyzed (database ctddev51)
- 4 analyzes Total
Vacuums per table
Key values
- edit.object_note (2) Main table vacuumed on database ctddev51
- 2 vacuums Total
Tuples removed per table
Key values
- edit.object_note (113) Main table with removed tuples on database ctddev51
- 113 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 May 20 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 2 4 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
- 3 Total read queries
- 5 Total write queries
Queries by database
Key values
- ctddev51 Main database
- 4 Requests
- 3m38s (ctddev51)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 4 Requests
User Request type Count Duration pub1 Total 2 1m28s cte 1 40s831ms select 1 48s62ms pub2 Total 1 2m2s cte 1 2m2s pubeu Total 1 6s707ms select 1 6s707ms unknown Total 4 1m28s cte 1 40s736ms ddl 2 40s628ms select 1 7s628ms Duration by user
Key values
- 2m2s (pub2) Main time consuming user
User Request type Count Duration pub1 Total 2 1m28s cte 1 40s831ms select 1 48s62ms pub2 Total 1 2m2s cte 1 2m2s pubeu Total 1 6s707ms select 1 6s707ms unknown Total 4 1m28s cte 1 40s736ms ddl 2 40s628ms select 1 7s628ms Queries by host
Key values
- unknown Main host
- 8 Requests
- 5m7s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 5 Requests
- 2m2s (pgAdmin 4 - CONN:2477865)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-05-20 15:13:09 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 6 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 2m2s WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;[ Date: 2026-05-20 11:07:20 - Database: ctddev51 - User: pub2 - Application: pgAdmin 4 - CONN:2477865 ]
2 48s62ms SELECT 'D015056' AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casRN AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, c.nm_sort AS chem_nm_sort, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt, g.nm_sort AS gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE c.acc_txt = 'D015056' ) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm AS go_term_nm, gt.acc_txt AS go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm AS ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false /* optional DAG filters */ ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;[ Date: 2026-05-20 11:16:56 - Database: ctddev51 - User: pub1 - Application: pgAdmin 4 - CONN:9681020 ]
3 40s831ms WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;[ Date: 2026-05-20 11:11:13 - Database: ctddev51 - User: pub1 - Application: pgAdmin 4 - CONN:1855680 ]
4 40s736ms WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; --CREATE INDEX idx_gga_gene_not_go -- ON gene_go_annot ( -- gene_id, is_not, -- go_term_id );[ Date: 2026-05-20 11:13:25 ]
5 26s620ms CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:09:58 ]
6 14s7ms CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);[ Date: 2026-05-20 11:12:33 ]
7 7s628ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'COPPER' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 50;[ Date: 2026-05-20 10:16:43 - Bind query: yes ]
8 6s707ms select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'COPPER')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'HOPPER') AND t.object_type_id = 5) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'TOPPER') AND t.object_type_id = 10)) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and upper(baseTerm.nm) LIKE 'IJIMAIA LOPPEI')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 500;[ Date: 2026-05-20 10:35:51 - Database: ctddev51 - User: pubeu - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2m43s 2 40s831ms 2m2s 1m21s with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 20 11 2 2m43s 1m21s [ User: pub2 - Total duration: 2m2s - Times executed: 1 ]
[ User: pub1 - Total duration: 40s831ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2477865 - Total duration: 2m2s - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 40s831ms - Times executed: 1 ]
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:07:20 Duration: 2m2s Database: ctddev51 User: pub2 Application: pgAdmin 4 - CONN:2477865
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:11:13 Duration: 40s831ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
2 48s62ms 1 48s62ms 48s62ms 48s62ms select ? AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casrn AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" from ( with sq as ( select distinct c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, c.nm_sort as chem_nm_sort, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt, g.nm_sort as gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where c.acc_txt = ? ) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm as go_term_nm, gt.acc_txt as go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm as ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 20 11 1 48s62ms 48s62ms [ User: pub1 - Total duration: 48s62ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:9681020 - Total duration: 48s62ms - Times executed: 1 ]
-
SELECT 'D015056' AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casRN AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, c.nm_sort AS chem_nm_sort, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt, g.nm_sort AS gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE c.acc_txt = 'D015056' ) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm AS go_term_nm, gt.acc_txt AS go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm AS ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false /* optional DAG filters */ ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-05-20 11:16:56 Duration: 48s62ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:9681020
3 40s736ms 1 40s736ms 40s736ms 40s736ms with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; -- go_term_id );Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 20 11 1 40s736ms 40s736ms -
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; --CREATE INDEX idx_gga_gene_not_go -- ON gene_go_annot ( -- gene_id, is_not, -- go_term_id );
Date: 2026-05-20 11:13:25 Duration: 40s736ms
4 26s620ms 1 26s620ms 26s620ms 26s620ms create index concurrently idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 20 11 1 26s620ms 26s620ms -
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:58 Duration: 26s620ms
-
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:46 Duration: 0ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
5 14s7ms 1 14s7ms 14s7ms 14s7ms create index idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 20 11 1 14s7ms 14s7ms -
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 14s7ms
-
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 0ms
6 7s628ms 1 7s628ms 7s628ms 7s628ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 20 10 1 7s628ms 7s628ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'COPPER' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-05-20 10:16:43 Duration: 7s628ms Bind query: yes
7 6s707ms 1 6s707ms 6s707ms 6s707ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?)) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 20 10 1 6s707ms 6s707ms [ User: pubeu - Total duration: 6s707ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'COPPER')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'HOPPER') AND t.object_type_id = 5) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'TOPPER') AND t.object_type_id = 10)) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and upper(baseTerm.nm) LIKE 'IJIMAIA LOPPEI')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 500;
Date: 2026-05-20 10:35:51 Duration: 6s707ms Database: ctddev51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 2 2m43s 40s831ms 2m2s 1m21s with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 20 11 2 2m43s 1m21s [ User: pub2 - Total duration: 2m2s - Times executed: 1 ]
[ User: pub1 - Total duration: 40s831ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2477865 - Total duration: 2m2s - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 40s831ms - Times executed: 1 ]
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:07:20 Duration: 2m2s Database: ctddev51 User: pub2 Application: pgAdmin 4 - CONN:2477865
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:11:13 Duration: 40s831ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
2 1 48s62ms 48s62ms 48s62ms 48s62ms select ? AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casrn AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" from ( with sq as ( select distinct c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, c.nm_sort as chem_nm_sort, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt, g.nm_sort as gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where c.acc_txt = ? ) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm as go_term_nm, gt.acc_txt as go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm as ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 20 11 1 48s62ms 48s62ms [ User: pub1 - Total duration: 48s62ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:9681020 - Total duration: 48s62ms - Times executed: 1 ]
-
SELECT 'D015056' AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casRN AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, c.nm_sort AS chem_nm_sort, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt, g.nm_sort AS gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE c.acc_txt = 'D015056' ) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm AS go_term_nm, gt.acc_txt AS go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm AS ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false /* optional DAG filters */ ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-05-20 11:16:56 Duration: 48s62ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:9681020
3 1 40s736ms 40s736ms 40s736ms 40s736ms with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; -- go_term_id );Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 20 11 1 40s736ms 40s736ms -
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; --CREATE INDEX idx_gga_gene_not_go -- ON gene_go_annot ( -- gene_id, is_not, -- go_term_id );
Date: 2026-05-20 11:13:25 Duration: 40s736ms
4 1 26s620ms 26s620ms 26s620ms 26s620ms create index concurrently idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 20 11 1 26s620ms 26s620ms -
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:58 Duration: 26s620ms
-
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:46 Duration: 0ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
5 1 14s7ms 14s7ms 14s7ms 14s7ms create index idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 20 11 1 14s7ms 14s7ms -
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 14s7ms
-
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 0ms
6 1 7s628ms 7s628ms 7s628ms 7s628ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 20 10 1 7s628ms 7s628ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'COPPER' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-05-20 10:16:43 Duration: 7s628ms Bind query: yes
7 1 6s707ms 6s707ms 6s707ms 6s707ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?)) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 20 10 1 6s707ms 6s707ms [ User: pubeu - Total duration: 6s707ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'COPPER')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'HOPPER') AND t.object_type_id = 5) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'TOPPER') AND t.object_type_id = 10)) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and upper(baseTerm.nm) LIKE 'IJIMAIA LOPPEI')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 500;
Date: 2026-05-20 10:35:51 Duration: 6s707ms Database: ctddev51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 40s831ms 2m2s 1m21s 2 2m43s with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 20 11 2 2m43s 1m21s [ User: pub2 - Total duration: 2m2s - Times executed: 1 ]
[ User: pub1 - Total duration: 40s831ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:2477865 - Total duration: 2m2s - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:1855680 - Total duration: 40s831ms - Times executed: 1 ]
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:07:20 Duration: 2m2s Database: ctddev51 User: pub2 Application: pgAdmin 4 - CONN:2477865
-
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm;
Date: 2026-05-20 11:11:13 Duration: 40s831ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:1855680
2 48s62ms 48s62ms 48s62ms 1 48s62ms select ? AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casrn AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" from ( with sq as ( select distinct c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, c.nm_sort as chem_nm_sort, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt, g.nm_sort as gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where c.acc_txt = ? ) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm as go_term_nm, gt.acc_txt as go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm as ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 20 11 1 48s62ms 48s62ms [ User: pub1 - Total duration: 48s62ms - Times executed: 1 ]
[ Application: pgAdmin 4 - CONN:9681020 - Total duration: 48s62ms - Times executed: 1 ]
-
SELECT 'D015056' AS "Input", sqi.chem_nm AS "ChemicalName", sqi.chem_acc_txt AS "ChemicalID", sqi.casRN AS "CasRN", sqi.gene_symbol AS "GeneSymbol", sqi.gene_acc_txt AS "GeneID", sqi.ontology_nm AS "Ontology", sqi.go_term_nm AS "GoTermName", sqi.go_acc_txt AS "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, c.nm_sort AS chem_nm_sort, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt, g.nm_sort AS gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE c.acc_txt = 'D015056' ) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm AS go_term_nm, gt.acc_txt AS go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm AS ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false /* optional DAG filters */ ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-05-20 11:16:56 Duration: 48s62ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:9681020
3 40s736ms 40s736ms 40s736ms 1 40s736ms with sq as ( select c.id as chem_id, c.nm as chem_nm, c.acc_txt as chem_acc_txt, c.secondary_nm as casrn, gcr.gene_id, g.nm as gene_symbol, g.acc_txt as gene_acc_txt from term c join gene_chem_reference gcr on gcr.chem_id = c.id join term g on g.id = gcr.gene_id where c.acc_txt = ? group by c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) select ? AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casrn AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" from sq join gene_go_annot gga on gga.gene_id = sq.gene_id and gga.is_not = false join dag_node gt on gt.object_id = gga.go_term_id join dag d on d.id = gt.dag_id group by sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt order by sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; -- go_term_id );Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 20 11 1 40s736ms 40s736ms -
WITH sq AS ( SELECT c.id AS chem_id, c.nm AS chem_nm, c.acc_txt AS chem_acc_txt, c.secondary_nm AS casRN, gcr.gene_id, g.nm AS gene_symbol, g.acc_txt AS gene_acc_txt FROM term c JOIN gene_chem_reference gcr ON gcr.chem_id = c.id JOIN term g ON g.id = gcr.gene_id WHERE c.acc_txt = 'D015056' GROUP BY c.id, c.nm, c.acc_txt, c.secondary_nm, gcr.gene_id, g.nm, g.acc_txt ) SELECT 'D015056' AS "Input", sq.chem_nm AS "ChemicalName", sq.chem_acc_txt AS "ChemicalID", sq.casRN AS "CasRN", sq.gene_symbol AS "GeneSymbol", sq.gene_acc_txt AS "GeneID", d.nm AS "Ontology", gt.nm AS "GoTermName", gt.acc_txt AS "GoTermID" FROM sq JOIN gene_go_annot gga ON gga.gene_id = sq.gene_id AND gga.is_not = false JOIN dag_node gt ON gt.object_id = gga.go_term_id JOIN dag d ON d.id = gt.dag_id GROUP BY sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, d.nm, gt.nm, gt.acc_txt ORDER BY sq.chem_nm, sq.gene_symbol, d.nm, gt.nm; --CREATE INDEX idx_gga_gene_not_go -- ON gene_go_annot ( -- gene_id, is_not, -- go_term_id );
Date: 2026-05-20 11:13:25 Duration: 40s736ms
4 26s620ms 26s620ms 26s620ms 1 26s620ms create index concurrently idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 20 11 1 26s620ms 26s620ms -
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:58 Duration: 26s620ms
-
CREATE INDEX CONCURRENTLY idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:09:46 Duration: 0ms Database: ctddev51 User: pub1 Application: pgAdmin 4 - CONN:7673166
5 14s7ms 14s7ms 14s7ms 1 14s7ms create index idx_gga_gene_not_go on gene_go_annot (gene_id, is_not, go_term_id);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 20 11 1 14s7ms 14s7ms -
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 14s7ms
-
CREATE INDEX idx_gga_gene_not_go ON gene_go_annot (gene_id, is_not, go_term_id);
Date: 2026-05-20 11:12:33 Duration: 0ms
6 7s628ms 7s628ms 7s628ms 1 7s628ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 20 10 1 7s628ms 7s628ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'COPPER' AND tl.object_type_id = 2))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases', 'decreases', 'affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 50;
Date: 2026-05-20 10:16:43 Duration: 7s628ms Bind query: yes
7 6s707ms 6s707ms 6s707ms 1 6s707ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select t.id from term t where t.nm_fts @@ to_tsquery(?, ?) and t.object_type_id = ?)) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort asc, pt.indirect_term_qty desc limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 20 10 1 6s707ms 6s707ms [ User: pubeu - Total duration: 6s707ms - Times executed: 1 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'COPPER')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'HOPPER') AND t.object_type_id = 5) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( SELECT /* DBConstants.getContainsSQL */ t.id FROM term t WHERE t.nm_fts @@ to_tsquery('common.english_nostops', 'TOPPER') AND t.object_type_id = 10)) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and upper(baseTerm.nm) LIKE 'IJIMAIA LOPPEI')) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('affects')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort asc, pt.indirect_term_qty desc LIMIT 500;
Date: 2026-05-20 10:35:51 Duration: 6s707ms Database: ctddev51 User: pubeu Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 1,828 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 2 FATAL entries
- 3 ERROR entries
- 0 WARNING entries
- 4 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 4 Max number of times the same event was reported
- 9 Total events found
Rank Times reported Error 1 4 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #1
Day Hour Count May 20 09 4 2 2 FATAL: password authentication failed for user "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count May 20 09 2 - FATAL: password authentication failed for user "load"
Detail: Connection matched pg_hba.conf line 85: "host all all 192.168.201.0/24 md5 "
Date: 2026-05-20 09:24:28
3 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #3
Day Hour Count May 20 10 1 - ERROR: syntax error at or near "like" at character 46
Statement: select * from pub1.object_note where note is like '%Disease%'
Date: 2026-05-20 10:40:28
4 1 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #4
Day Hour Count May 20 10 1 - ERROR: column "object_id" does not exist at character 31
Statement: select * from pub1.term where object_id in ( 1430761 ,2136114)
Date: 2026-05-20 10:41:15
5 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #5
Day Hour Count May 20 09 1 - ERROR: relation "object_note" does not exist at character 17
Statement: select * from object_note
Date: 2026-05-20 09:24:54 Database: ctddev51 Application: pgAdmin 4 - CONN:5281904 User: load Remote: