-
Global information
- Generated on Sat Sep 21 04:10:03 2024
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20240920
- Parsed 15,320 log entries in 2s
- Log start from 2024-09-20 00:00:25 to 2024-09-20 23:59:40
-
Overview
Global Stats
- 33 Number of unique normalized queries
- 50 Number of queries
- 14m56s Total query duration
- 2024-09-20 05:45:12 First query
- 2024-09-20 17:20:52 Last query
- 1 queries/s at 2024-09-20 05:48:11 Query peak
- 14m56s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 14m56s Execute total duration
- 17 Number of events
- 6 Number of unique normalized events
- 5 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
- 1,894 Total number of sessions
- 45 sessions at 2024-09-20 01:06:52 Session peak
- 41d16h58m29s Total duration of sessions
- 31m42s Average duration of sessions
- 0 Average queries per session
- 473ms Average queries duration per session
- 31m42s Average idle time per session
- 1,894 Total number of connections
- 9 connections/s at 2024-09-20 05:45:08 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2024-09-20 05:48:11 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2024-09-20 05:48:11 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2024-09-20 05:45:14 Date
Queries duration
Key values
- 14m56s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 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 20 0ms 4s309ms 2s234ms 0ms 15s333ms 24s674ms 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 3 0ms 1m31s 37s109ms 0ms 11s430ms 1m31s 11 7 0ms 2m3s 26s428ms 0ms 1m1s 2m3s 12 0 0ms 0ms 0ms 0ms 0ms 0ms 13 2 0ms 48s753ms 25s710ms 0ms 0ms 51s421ms 14 10 0ms 2m7s 27s912ms 41s810ms 56s919ms 2m7s 15 0 0ms 0ms 0ms 0ms 0ms 0ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 8 0ms 2m3s 28s176ms 8s120ms 46s692ms 2m3s 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) Sep 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 18 0 2s222ms 0ms 0ms 24s674ms 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 3 0 37s109ms 0ms 0ms 1m31s 11 7 0 26s428ms 0ms 0ms 2m3s 12 0 0 0ms 0ms 0ms 0ms 13 2 0 25s710ms 0ms 0ms 51s421ms 14 10 0 27s912ms 0ms 41s810ms 2m7s 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 8 0 28s176ms 0ms 8s120ms 2m3s 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) Sep 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 Sep 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 20 20.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 7 7.00 0.00% 12 0 0 0.00 0.00% 13 0 2 2.00 0.00% 14 0 10 10.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 8 8.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 Sep 20 00 80 0.02/s 01 80 0.02/s 02 79 0.02/s 03 79 0.02/s 04 79 0.02/s 05 84 0.02/s 06 80 0.02/s 07 80 0.02/s 08 79 0.02/s 09 78 0.02/s 10 80 0.02/s 11 81 0.02/s 12 80 0.02/s 13 81 0.02/s 14 81 0.02/s 15 78 0.02/s 16 78 0.02/s 17 76 0.02/s 18 78 0.02/s 19 80 0.02/s 20 71 0.02/s 21 78 0.02/s 22 74 0.02/s 23 80 0.02/s Day Hour Count Average Duration Average idle time Sep 20 00 80 30m41s 30m41s 01 80 30m39s 30m39s 02 79 30m39s 30m39s 03 79 30m41s 30m41s 04 79 30m38s 30m38s 05 84 28m17s 28m17s 06 80 30m40s 30m40s 07 80 30m38s 30m38s 08 79 30m41s 30m41s 09 78 30m45s 30m45s 10 75 30m41s 30m40s 11 81 30m21s 30m18s 12 80 30m41s 30m41s 13 81 30m15s 30m14s 14 81 30m6s 30m3s 15 78 30m40s 30m40s 16 78 30m38s 30m38s 17 77 35m47s 35m44s 18 81 48m3s 48m3s 19 81 36m23s 36m23s 20 71 30m41s 30m41s 21 78 30m39s 30m39s 22 74 30m39s 30m39s 23 80 30m40s 30m40s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2024-09-20 05:45:08 Date
Connections per database
Key values
- ctddev51 Main Database
- 1,894 connections Total
Connections per user
Key values
- editeu Main User
- 1,894 connections Total
-
Sessions
Simultaneous sessions
Key values
- 45 sessions Session Peak
- 2024-09-20 01:06:52 Date
Histogram of session times
Key values
- 1,875 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 1,894 sessions Total
Sessions per user
Key values
- editeu Main User
- 1,894 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 1,894 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 64 buffers Checkpoint Peak
- 2024-09-20 06:11:34 Date
- 6.505 seconds Highest write time
- 0.001 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2024-09-20 06:11:34 Date
Checkpoints distance
Key values
- 0.80 Mo Distance Peak
- 2024-09-20 06:11:34 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Sep 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 0 0s 0s 0s 06 64 6.505s 0.001s 6.521s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 6 0.795s 0.001s 0.809s 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 6 0.697s 0.001s 0.717s 17 8 0.887s 0.001s 0.902s 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 Sep 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 0 0s 0s 06 0 0 0 7 0.001s 0.001s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 3 0.001s 0.001s 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 6 0.001s 0.001s 17 0 0 0 6 0.001s 0.001s 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) Sep 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 Sep 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 0.00 kB 0.00 kB 06 408.00 kB 408.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 4.00 kB 367.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 26.00 kB 333.00 kB 17 35.00 kB 303.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 Sep 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 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 Sep 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 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
- 48 Total read queries
- 2 Total write queries
Queries by database
Key values
- unknown Main database
- 39 Requests
- 10m44s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 74 Requests
User Request type Count Duration pub1 Total 9 6m28s select 9 6m28s pubeu Total 13 2m20s cte 2 7s43ms select 11 2m13s unknown Total 74 21m24s cte 2 2s160ms select 72 21m21s Duration by user
Key values
- 21m24s (unknown) Main time consuming user
User Request type Count Duration pub1 Total 9 6m28s select 9 6m28s pubeu Total 13 2m20s cte 2 7s43ms select 11 2m13s unknown Total 74 21m24s cte 2 2s160ms select 72 21m21s Queries by host
Key values
- unknown Main host
- 96 Requests
- 30m13s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 50 Requests
- 14m56s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-09-20 05:48:11 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 38 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 2m7s SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;[ Date: 2024-09-20 14:09:31 - Bind query: yes ]
2 2m3s SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;[ Date: 2024-09-20 11:18:47 - Bind query: yes ]
3 2m3s SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;[ Date: 2024-09-20 17:13:51 - Bind query: yes ]
4 1m31s select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;[ Date: 2024-09-20 10:50:14 ]
5 48s753ms SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;[ Date: 2024-09-20 13:59:02 - Database: ctddev51 - User: pub1 - Bind query: yes ]
6 47s258ms SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;[ Date: 2024-09-20 14:06:22 - Database: ctddev51 - User: pub1 - Bind query: yes ]
7 46s757ms SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 # 015;[ Date: 2024-09-20 11:16:19 - Database: ctddev51 - User: pub1 - Bind query: yes ]
8 46s692ms SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;[ Date: 2024-09-20 17:06:47 - Database: ctddev51 - User: pub1 - Bind query: yes ]
9 42s945ms SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;[ Date: 2024-09-20 14:04:12 - Database: ctddev51 - User: pub1 - Bind query: yes ]
10 38s273ms SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;[ Date: 2024-09-20 14:07:14 - Bind query: yes ]
11 34s468ms SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;[ Date: 2024-09-20 17:11:38 - Bind query: yes ]
12 11s430ms select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);[ Date: 2024-09-20 10:16:14 ]
13 8s471ms select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit 100;[ Date: 2024-09-20 10:15:32 ]
14 8s120ms select distinct phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, COUNT(*) OVER () fullRowCount from PHENOTYPE_TERM_REFERENCE viaChemPTR, PHENOTYPE_TERM_REFERENCE viaGenePTR, TERM phenotypeTerm, TERM diseaseTerm, TERM geneTerm, TERM chemTerm where viaChemPTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'CLONIDINE' AND tl.object_type_id = 2)) and viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'POMC') and phenotypeTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0008217' AND l.type_cd = 'A' AND l.object_type_id = 5))) and diseaseTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 3 and upper(baseTerm.nm) LIKE 'HYPERTENSION')) and viaChemPTR.phenotype_id = phenotypeTerm.id and viaChemPTR.term_object_type_id = 3 and viaChemPTR.term_id = diseaseTerm.id and viaChemPTR.via_term_object_type_id = 2 and viaChemPTR.via_term_id = chemTerm.id and viaChemPTR.term_id = viaGenePTR.term_id and viaChemPTR.phenotype_id = viaGenePTR.phenotype_id and viaGenePTR.via_term_object_type_id = 4 and viaGenePTR.via_term_id = geneTerm.id and exists ( select 1 from gene_chem_reference where gene_id = geneTerm.id and chem_id = chemTerm.id) GROUP BY phenotypeTerm.nm, phenotypeTerm.nm_html, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.nm_html, diseaseTerm.acc_txt, diseaseTerm.acc_db_cd, chemTerm.nm, chemTerm.nm_html, chemTerm.acc_txt, geneTerm.nm, geneTerm.nm_html, geneTerm.acc_txt order by chemTerm.nm LIMIT 50;[ Date: 2024-09-20 17:20:52 - Database: ctddev51 - User: pubeu - Bind query: yes ]
15 7s200ms SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;[ Date: 2024-09-20 17:11:03 - Bind query: yes ]
16 6s572ms SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;[ Date: 2024-09-20 14:04:26 - Bind query: yes ]
17 6s117ms SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;[ Date: 2024-09-20 11:16:34 - Bind query: yes ]
18 5s572ms SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;[ Date: 2024-09-20 14:06:35 - Bind query: yes ]
19 4s309ms SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1291235)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;[ Date: 2024-09-20 05:48:30 - Bind query: yes ]
20 4s88ms SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;[ Date: 2024-09-20 14:06:29 - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 6m13s 3 2m3s 2m7s 2m4s select distinct viachemptr.via_term_id, viageneptr.via_term_id, viachemptr.phenotype_id, viachemptr.term_id from pub2.phenotype_term_reference viachemptr # ?, pub2.phenotype_term_reference viageneptr # ? where viachemptr.term_id = viageneptr.term_id # ? and viachemptr.term_object_type_id = ? # ? and viachemptr.phenotype_id = viageneptr.phenotype_id # ? and viachemptr.via_term_object_type_id = ? # ? and viageneptr.via_term_object_type_id = ? # ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 20 11 1 2m3s 2m3s 14 1 2m7s 2m7s 17 1 2m3s 2m3s -
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 14:09:31 Duration: 2m7s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 11:18:47 Duration: 2m3s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 17:13:51 Duration: 2m3s Bind query: yes
2 3m5s 4 42s945ms 48s753ms 46s412ms select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? # ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 20 13 1 48s753ms 48s753ms 14 2 1m30s 45s101ms 17 1 46s692ms 46s692ms [ User: pub1 - Total duration: 3m5s - Times executed: 4 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 13:59:02 Duration: 48s753ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 14:06:22 Duration: 47s258ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 17:06:47 Duration: 46s692ms Database: ctddev51 User: pub1 Bind query: yes
3 1m31s 1 1m31s 1m31s 1m31s select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 20 10 1 1m31s 1m31s -
select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;
Date: 2024-09-20 10:50:14 Duration: 1m31s
4 1m12s 2 34s468ms 38s273ms 36s371ms select distinct go_term_id # ?, gene_id # ?, evidence_cd # ? from pub2.gene_go_annot transactionalreferencetabler # ? where is_not = ? # ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 20 14 1 38s273ms 38s273ms 17 1 34s468ms 34s468ms -
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 14:07:14 Duration: 38s273ms Bind query: yes
-
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 17:11:38 Duration: 34s468ms Bind query: yes
5 46s757ms 1 46s757ms 46s757ms 46s757ms select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? # ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 20 11 1 46s757ms 46s757ms [ User: pub1 - Total duration: 46s757ms - Times executed: 1 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 # 015;
Date: 2024-09-20 11:16:19 Duration: 46s757ms Database: ctddev51 User: pub1 Bind query: yes
6 19s346ms 3 5s572ms 7s200ms 6s448ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 20 14 2 12s145ms 6s72ms 17 1 7s200ms 7s200ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 17:11:03 Duration: 7s200ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:04:26 Duration: 6s572ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:06:35 Duration: 5s572ms Bind query: yes
7 12s570ms 4 2s350ms 4s88ms 3s142ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 20 13 1 2s668ms 2s668ms 14 2 7s552ms 3s776ms 17 1 2s350ms 2s350ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:06:29 Duration: 4s88ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:04:19 Duration: 3s463ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 13:59:08 Duration: 2s668ms Bind query: yes
8 11s430ms 1 11s430ms 11s430ms 11s430ms select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 20 10 1 11s430ms 11s430ms -
select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);
Date: 2024-09-20 10:16:14 Duration: 11s430ms
9 8s471ms 1 8s471ms 8s471ms 8s471ms select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 20 10 1 8s471ms 8s471ms -
select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit 100;
Date: 2024-09-20 10:15:32 Duration: 8s471ms
10 8s120ms 1 8s120ms 8s120ms 8s120ms select distinct phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, count(*) over () fullrowcount from phenotype_term_reference viachemptr, phenotype_term_reference viageneptr, term phenotypeterm, term diseaseterm, term geneterm, term chemterm where viachemptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?)) and viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and diseaseterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?)) and viachemptr.phenotype_id = phenotypeterm.id and viachemptr.term_object_type_id = ? and viachemptr.term_id = diseaseterm.id and viachemptr.via_term_object_type_id = ? and viachemptr.via_term_id = chemterm.id and viachemptr.term_id = viageneptr.term_id and viachemptr.phenotype_id = viageneptr.phenotype_id and viageneptr.via_term_object_type_id = ? and viageneptr.via_term_id = geneterm.id and exists ( select ? from gene_chem_reference where gene_id = geneterm.id and chem_id = chemterm.id) group by phenotypeterm.nm, phenotypeterm.nm_html, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.nm_html, diseaseterm.acc_txt, diseaseterm.acc_db_cd, chemterm.nm, chemterm.nm_html, chemterm.acc_txt, geneterm.nm, geneterm.nm_html, geneterm.acc_txt order by chemterm.nm limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 20 17 1 8s120ms 8s120ms [ User: pubeu - Total duration: 8s120ms - Times executed: 1 ]
-
select distinct phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, COUNT(*) OVER () fullRowCount from PHENOTYPE_TERM_REFERENCE viaChemPTR, PHENOTYPE_TERM_REFERENCE viaGenePTR, TERM phenotypeTerm, TERM diseaseTerm, TERM geneTerm, TERM chemTerm where viaChemPTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'CLONIDINE' AND tl.object_type_id = 2)) and viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'POMC') and phenotypeTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0008217' AND l.type_cd = 'A' AND l.object_type_id = 5))) and diseaseTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 3 and upper(baseTerm.nm) LIKE 'HYPERTENSION')) and viaChemPTR.phenotype_id = phenotypeTerm.id and viaChemPTR.term_object_type_id = 3 and viaChemPTR.term_id = diseaseTerm.id and viaChemPTR.via_term_object_type_id = 2 and viaChemPTR.via_term_id = chemTerm.id and viaChemPTR.term_id = viaGenePTR.term_id and viaChemPTR.phenotype_id = viaGenePTR.phenotype_id and viaGenePTR.via_term_object_type_id = 4 and viaGenePTR.via_term_id = geneTerm.id and exists ( select 1 from gene_chem_reference where gene_id = geneTerm.id and chem_id = chemTerm.id) GROUP BY phenotypeTerm.nm, phenotypeTerm.nm_html, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.nm_html, diseaseTerm.acc_txt, diseaseTerm.acc_db_cd, chemTerm.nm, chemTerm.nm_html, chemTerm.acc_txt, geneTerm.nm, geneTerm.nm_html, geneTerm.acc_txt order by chemTerm.nm LIMIT 50;
Date: 2024-09-20 17:20:52 Duration: 8s120ms Database: ctddev51 User: pubeu Bind query: yes
11 7s112ms 3 2s253ms 2s572ms 2s370ms select id, object_type_id, acc_txt, t.acc_db_cd, nm, nm_sort, secondary_nm, description, note from pub2.term t where object_type_id = ? and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id not in ( select gene_chem_reference_id from pub2.gene_chem_reference_axn where action_degree_type_nm = ?) union select distinct gene_id from pub2.gene_disease_reference r where source_cd in (...));Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 20 11 1 2s572ms 2s572ms 14 1 2s285ms 2s285ms 17 1 2s253ms 2s253ms -
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 11:16:39 Duration: 2s572ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 14:07:19 Duration: 2s285ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 17:11:43 Duration: 2s253ms Bind query: yes
12 6s117ms 1 6s117ms 6s117ms 6s117ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 20 11 1 6s117ms 6s117ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 11:16:34 Duration: 6s117ms Bind query: yes
13 4s676ms 2 1s96ms 3s579ms 2s338ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 20 05 2 4s676ms 2s338ms [ User: pubeu - Total duration: 3s579ms - Times executed: 1 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '589967' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:12 Duration: 3s579ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '1432724' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:14 Duration: 1s96ms Bind query: yes
14 4s309ms 1 4s309ms 4s309ms 4s309ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 20 05 1 4s309ms 4s309ms -
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1291235)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2024-09-20 05:48:30 Duration: 4s309ms Bind query: yes
15 3s991ms 1 3s991ms 3s991ms 3s991ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 20 05 1 3s991ms 3s991ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:50 Duration: 3s991ms Bind query: yes
16 3s982ms 1 3s982ms 3s982ms 3s982ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 20 11 1 3s982ms 3s982ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 11:16:26 Duration: 3s982ms Bind query: yes
17 3s937ms 1 3s937ms 3s937ms 3s937ms select gcr.ixn_id, null, null, null from gene_chem_reference gcr where gcr.gene_id = any (array (( select gd.gene_id from term t inner join dag_path dp on t.id = dp.ancestor_object_id inner join gene_disease gd on dp.descendant_object_id = gd.disease_id where upper(t.nm) like ? and t.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?));Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 20 05 1 3s937ms 3s937ms [ User: pubeu - Total duration: 3s937ms - Times executed: 1 ]
-
SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, NULL, NULL, NULL FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterDiseaseWhereEquals.Name.Gene */ gd.gene_id FROM term t INNER JOIN dag_path dp ON t.id = dp.ancestor_object_id INNER JOIN gene_disease gd ON dp.descendant_object_id = gd.disease_id WHERE UPPER(t.nm) LIKE 'ASTHMA' AND t.object_type_id = 3))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases'));
Date: 2024-09-20 05:47:20 Duration: 3s937ms Database: ctddev51 User: pubeu Bind query: yes
18 3s900ms 1 3s900ms 3s900ms 3s900ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 20 05 1 3s900ms 3s900ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:54 Duration: 3s900ms Bind query: yes
19 3s818ms 1 3s818ms 3s818ms 3s818ms select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where gcr.gene_id = any (array (( select gd.gene_id from term t inner join dag_path dp on t.id = dp.ancestor_object_id inner join gene_disease gd on dp.descendant_object_id = gd.disease_id where upper(t.nm) like ? and t.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 20 05 1 3s818ms 3s818ms -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterDiseaseWhereEquals.Name.Gene */ gd.gene_id FROM term t INNER JOIN dag_path dp ON t.id = dp.ancestor_object_id INNER JOIN gene_disease gd ON dp.descendant_object_id = gd.disease_id WHERE UPPER(t.nm) LIKE 'ASTHMA' AND t.object_type_id = 3))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases'))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-09-20 05:47:24 Duration: 3s818ms Bind query: yes
20 3s484ms 1 3s484ms 3s484ms 3s484ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where gcr.gene_id = any (array (( select tp.term_id from term_pathway tp where upper(tp.pathway_nm) like ? and tp.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 20 05 1 3s484ms 3s484ms -
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterPathwayWhereEquals.Name */ tp.term_id FROM term_pathway tp WHERE UPPER(tp.pathway_nm) LIKE 'METABOLISM' AND tp.object_type_id = 4))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases')) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2024-09-20 05:47:32 Duration: 3s484ms Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 4 3m5s 42s945ms 48s753ms 46s412ms select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? # ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 20 13 1 48s753ms 48s753ms 14 2 1m30s 45s101ms 17 1 46s692ms 46s692ms [ User: pub1 - Total duration: 3m5s - Times executed: 4 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 13:59:02 Duration: 48s753ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 14:06:22 Duration: 47s258ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 17:06:47 Duration: 46s692ms Database: ctddev51 User: pub1 Bind query: yes
2 4 12s570ms 2s350ms 4s88ms 3s142ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 20 13 1 2s668ms 2s668ms 14 2 7s552ms 3s776ms 17 1 2s350ms 2s350ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:06:29 Duration: 4s88ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:04:19 Duration: 3s463ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 13:59:08 Duration: 2s668ms Bind query: yes
3 3 6m13s 2m3s 2m7s 2m4s select distinct viachemptr.via_term_id, viageneptr.via_term_id, viachemptr.phenotype_id, viachemptr.term_id from pub2.phenotype_term_reference viachemptr # ?, pub2.phenotype_term_reference viageneptr # ? where viachemptr.term_id = viageneptr.term_id # ? and viachemptr.term_object_type_id = ? # ? and viachemptr.phenotype_id = viageneptr.phenotype_id # ? and viachemptr.via_term_object_type_id = ? # ? and viageneptr.via_term_object_type_id = ? # ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 20 11 1 2m3s 2m3s 14 1 2m7s 2m7s 17 1 2m3s 2m3s -
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 14:09:31 Duration: 2m7s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 11:18:47 Duration: 2m3s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 17:13:51 Duration: 2m3s Bind query: yes
4 3 19s346ms 5s572ms 7s200ms 6s448ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 20 14 2 12s145ms 6s72ms 17 1 7s200ms 7s200ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 17:11:03 Duration: 7s200ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:04:26 Duration: 6s572ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:06:35 Duration: 5s572ms Bind query: yes
5 3 7s112ms 2s253ms 2s572ms 2s370ms select id, object_type_id, acc_txt, t.acc_db_cd, nm, nm_sort, secondary_nm, description, note from pub2.term t where object_type_id = ? and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id not in ( select gene_chem_reference_id from pub2.gene_chem_reference_axn where action_degree_type_nm = ?) union select distinct gene_id from pub2.gene_disease_reference r where source_cd in (...));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 20 11 1 2s572ms 2s572ms 14 1 2s285ms 2s285ms 17 1 2s253ms 2s253ms -
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 11:16:39 Duration: 2s572ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 14:07:19 Duration: 2s285ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 17:11:43 Duration: 2s253ms Bind query: yes
6 3 3s397ms 1s30ms 1s250ms 1s132ms select id, object_type_id, acc_txt, t.acc_db_cd, nm, nm_sort, secondary_nm, description, note from pub2.term t where object_type_id = ? and t.id in ( select distinct chem_id from pub2.gene_chem_reference r where r.id not in ( select gene_chem_reference_id from pub2.gene_chem_reference_axn where action_degree_type_nm = ?) union select distinct chem_id from pub2.chem_disease_reference r where source_cd = ?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 20 11 1 1s30ms 1s30ms 14 1 1s250ms 1s250ms 17 1 1s116ms 1s116ms -
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 2 and t.id in ( select distinct chem_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct chem_id from pub2.chem_disease_reference r where source_cd = 'C');
Date: 2024-09-20 14:07:16 Duration: 1s250ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 2 and t.id in ( select distinct chem_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct chem_id from pub2.chem_disease_reference r where source_cd = 'C');
Date: 2024-09-20 17:11:41 Duration: 1s116ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 2 and t.id in ( select distinct chem_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct chem_id from pub2.chem_disease_reference r where source_cd = 'C');
Date: 2024-09-20 11:16:36 Duration: 1s30ms Bind query: yes
7 2 1m12s 34s468ms 38s273ms 36s371ms select distinct go_term_id # ?, gene_id # ?, evidence_cd # ? from pub2.gene_go_annot transactionalreferencetabler # ? where is_not = ? # ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 20 14 1 38s273ms 38s273ms 17 1 34s468ms 34s468ms -
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 14:07:14 Duration: 38s273ms Bind query: yes
-
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 17:11:38 Duration: 34s468ms Bind query: yes
8 2 4s676ms 1s96ms 3s579ms 2s338ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 20 05 2 4s676ms 2s338ms [ User: pubeu - Total duration: 3s579ms - Times executed: 1 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '589967' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:12 Duration: 3s579ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '1432724' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:14 Duration: 1s96ms Bind query: yes
9 2 2s650ms 1s316ms 1s333ms 1s325ms select fg.nm fromgenesymbol, fg.acc_txt fromgeneacc, tg.nm togenesymbol, tg.acc_txt togeneacc, ft.nm fromtaxonnm, ft.secondary_nm fromtaxoncommonnm, ft.acc_txt fromtaxonacc, tt.nm totaxonnm, tt.secondary_nm totaxoncommonnm, tt.acc_txt totaxonacc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( select string_agg(ggt.throughput_txt, ? order by ggt.throughput_txt) from gene_gene_ref_throughput ggt where ggt.gene_gene_reference_id = ggr.id) throughput, count(*) over () fullrowcount from gene_gene_reference ggr inner join term fg on ggr.from_gene_id = fg.id inner join term tg on ggr.to_gene_id = tg.id inner join term ft on ggr.from_taxon_id = ft.id inner join term tt on ggr.to_taxon_id = tt.id where ggr.reference_id = ? order by fg.nm_sort, tg.nm_sort limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 20 05 2 2s650ms 1s325ms [ User: pubeu - Total duration: 1s316ms - Times executed: 1 ]
-
SELECT /* ReferenceGeneGeneIxnsDAO */ fg.nm fromGeneSymbol, fg.acc_txt fromGeneAcc, tg.nm toGeneSymbol, tg.acc_txt toGeneAcc, ft.nm fromTaxonNm, ft.secondary_nm fromTaxonCommonNm, ft.acc_txt fromTaxonAcc, tt.nm toTaxonNm, tt.secondary_nm toTaxonCommonNm, tt.acc_txt toTaxonAcc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( SELECT STRING_AGG(ggt.throughput_txt, ', ' ORDER BY ggt.throughput_txt) FROM gene_gene_ref_throughput ggt WHERE ggt.gene_gene_reference_id = ggr.id) throughput, COUNT(*) OVER () fullRowCount FROM gene_gene_reference ggr INNER JOIN term fg ON ggr.from_gene_id = fg.id INNER JOIN term tg ON ggr.to_gene_id = tg.id INNER JOIN term ft ON ggr.from_taxon_id = ft.id INNER JOIN term tt ON ggr.to_taxon_id = tt.id WHERE ggr.reference_id = '111363' ORDER BY fg.nm_sort, tg.nm_sort LIMIT 50;
Date: 2024-09-20 05:48:11 Duration: 1s333ms Bind query: yes
-
SELECT /* ReferenceGeneGeneIxnsDAO */ fg.nm fromGeneSymbol, fg.acc_txt fromGeneAcc, tg.nm toGeneSymbol, tg.acc_txt toGeneAcc, ft.nm fromTaxonNm, ft.secondary_nm fromTaxonCommonNm, ft.acc_txt fromTaxonAcc, tt.nm toTaxonNm, tt.secondary_nm toTaxonCommonNm, tt.acc_txt toTaxonAcc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( SELECT STRING_AGG(ggt.throughput_txt, ', ' ORDER BY ggt.throughput_txt) FROM gene_gene_ref_throughput ggt WHERE ggt.gene_gene_reference_id = ggr.id) throughput, COUNT(*) OVER () fullRowCount FROM gene_gene_reference ggr INNER JOIN term fg ON ggr.from_gene_id = fg.id INNER JOIN term tg ON ggr.to_gene_id = tg.id INNER JOIN term ft ON ggr.from_taxon_id = ft.id INNER JOIN term tt ON ggr.to_taxon_id = tt.id WHERE ggr.reference_id = '111363' ORDER BY fg.nm_sort, tg.nm_sort LIMIT 50;
Date: 2024-09-20 05:48:10 Duration: 1s316ms Database: ctddev51 User: pubeu Bind query: yes
10 1 1m31s 1m31s 1m31s 1m31s select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 20 10 1 1m31s 1m31s -
select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;
Date: 2024-09-20 10:50:14 Duration: 1m31s
11 1 46s757ms 46s757ms 46s757ms 46s757ms select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? # ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 20 11 1 46s757ms 46s757ms [ User: pub1 - Total duration: 46s757ms - Times executed: 1 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 # 015;
Date: 2024-09-20 11:16:19 Duration: 46s757ms Database: ctddev51 User: pub1 Bind query: yes
12 1 11s430ms 11s430ms 11s430ms 11s430ms select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 20 10 1 11s430ms 11s430ms -
select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);
Date: 2024-09-20 10:16:14 Duration: 11s430ms
13 1 8s471ms 8s471ms 8s471ms 8s471ms select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 20 10 1 8s471ms 8s471ms -
select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit 100;
Date: 2024-09-20 10:15:32 Duration: 8s471ms
14 1 8s120ms 8s120ms 8s120ms 8s120ms select distinct phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, count(*) over () fullrowcount from phenotype_term_reference viachemptr, phenotype_term_reference viageneptr, term phenotypeterm, term diseaseterm, term geneterm, term chemterm where viachemptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?)) and viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and diseaseterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?)) and viachemptr.phenotype_id = phenotypeterm.id and viachemptr.term_object_type_id = ? and viachemptr.term_id = diseaseterm.id and viachemptr.via_term_object_type_id = ? and viachemptr.via_term_id = chemterm.id and viachemptr.term_id = viageneptr.term_id and viachemptr.phenotype_id = viageneptr.phenotype_id and viageneptr.via_term_object_type_id = ? and viageneptr.via_term_id = geneterm.id and exists ( select ? from gene_chem_reference where gene_id = geneterm.id and chem_id = chemterm.id) group by phenotypeterm.nm, phenotypeterm.nm_html, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.nm_html, diseaseterm.acc_txt, diseaseterm.acc_db_cd, chemterm.nm, chemterm.nm_html, chemterm.acc_txt, geneterm.nm, geneterm.nm_html, geneterm.acc_txt order by chemterm.nm limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 20 17 1 8s120ms 8s120ms [ User: pubeu - Total duration: 8s120ms - Times executed: 1 ]
-
select distinct phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, COUNT(*) OVER () fullRowCount from PHENOTYPE_TERM_REFERENCE viaChemPTR, PHENOTYPE_TERM_REFERENCE viaGenePTR, TERM phenotypeTerm, TERM diseaseTerm, TERM geneTerm, TERM chemTerm where viaChemPTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'CLONIDINE' AND tl.object_type_id = 2)) and viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'POMC') and phenotypeTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0008217' AND l.type_cd = 'A' AND l.object_type_id = 5))) and diseaseTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 3 and upper(baseTerm.nm) LIKE 'HYPERTENSION')) and viaChemPTR.phenotype_id = phenotypeTerm.id and viaChemPTR.term_object_type_id = 3 and viaChemPTR.term_id = diseaseTerm.id and viaChemPTR.via_term_object_type_id = 2 and viaChemPTR.via_term_id = chemTerm.id and viaChemPTR.term_id = viaGenePTR.term_id and viaChemPTR.phenotype_id = viaGenePTR.phenotype_id and viaGenePTR.via_term_object_type_id = 4 and viaGenePTR.via_term_id = geneTerm.id and exists ( select 1 from gene_chem_reference where gene_id = geneTerm.id and chem_id = chemTerm.id) GROUP BY phenotypeTerm.nm, phenotypeTerm.nm_html, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.nm_html, diseaseTerm.acc_txt, diseaseTerm.acc_db_cd, chemTerm.nm, chemTerm.nm_html, chemTerm.acc_txt, geneTerm.nm, geneTerm.nm_html, geneTerm.acc_txt order by chemTerm.nm LIMIT 50;
Date: 2024-09-20 17:20:52 Duration: 8s120ms Database: ctddev51 User: pubeu Bind query: yes
15 1 6s117ms 6s117ms 6s117ms 6s117ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 20 11 1 6s117ms 6s117ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 11:16:34 Duration: 6s117ms Bind query: yes
16 1 4s309ms 4s309ms 4s309ms 4s309ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 20 05 1 4s309ms 4s309ms -
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1291235)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2024-09-20 05:48:30 Duration: 4s309ms Bind query: yes
17 1 3s991ms 3s991ms 3s991ms 3s991ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 20 05 1 3s991ms 3s991ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:50 Duration: 3s991ms Bind query: yes
18 1 3s982ms 3s982ms 3s982ms 3s982ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 20 11 1 3s982ms 3s982ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 11:16:26 Duration: 3s982ms Bind query: yes
19 1 3s937ms 3s937ms 3s937ms 3s937ms select gcr.ixn_id, null, null, null from gene_chem_reference gcr where gcr.gene_id = any (array (( select gd.gene_id from term t inner join dag_path dp on t.id = dp.ancestor_object_id inner join gene_disease gd on dp.descendant_object_id = gd.disease_id where upper(t.nm) like ? and t.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?));Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 20 05 1 3s937ms 3s937ms [ User: pubeu - Total duration: 3s937ms - Times executed: 1 ]
-
SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, NULL, NULL, NULL FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterDiseaseWhereEquals.Name.Gene */ gd.gene_id FROM term t INNER JOIN dag_path dp ON t.id = dp.ancestor_object_id INNER JOIN gene_disease gd ON dp.descendant_object_id = gd.disease_id WHERE UPPER(t.nm) LIKE 'ASTHMA' AND t.object_type_id = 3))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases'));
Date: 2024-09-20 05:47:20 Duration: 3s937ms Database: ctddev51 User: pubeu Bind query: yes
20 1 3s900ms 3s900ms 3s900ms 3s900ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 20 05 1 3s900ms 3s900ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:54 Duration: 3s900ms Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2m3s 2m7s 2m4s 3 6m13s select distinct viachemptr.via_term_id, viageneptr.via_term_id, viachemptr.phenotype_id, viachemptr.term_id from pub2.phenotype_term_reference viachemptr # ?, pub2.phenotype_term_reference viageneptr # ? where viachemptr.term_id = viageneptr.term_id # ? and viachemptr.term_object_type_id = ? # ? and viachemptr.phenotype_id = viageneptr.phenotype_id # ? and viachemptr.via_term_object_type_id = ? # ? and viageneptr.via_term_object_type_id = ? # ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 20 11 1 2m3s 2m3s 14 1 2m7s 2m7s 17 1 2m3s 2m3s -
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 14:09:31 Duration: 2m7s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 11:18:47 Duration: 2m3s Bind query: yes
-
SELECT distinct viaChemPTR.via_term_id, -- chem #015 viaGenePTR.via_term_id, -- gene #015 viaChemPTR.phenotype_id, -- phenotype #015 viaChemPTR.term_id -- disease #015 FROM pub2.PHENOTYPE_TERM_REFERENCE viaChemPTR # 015, pub2.PHENOTYPE_TERM_REFERENCE viaGenePTR # 015 WHERE viaChemPTR.term_id = viaGenePTR.term_id # 015 AND viaChemPTR.term_object_type_id = 3 # 015 AND viaChemPTR.phenotype_id = viaGenePTR.phenotype_id # 015 AND viaChemPTR.via_term_object_type_id = 2 # 015 AND viaGenePTR.via_term_object_type_id = 4 # 015;
Date: 2024-09-20 17:13:51 Duration: 2m3s Bind query: yes
2 1m31s 1m31s 1m31s 1 1m31s select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 20 10 1 1m31s 1m31s -
select count(distinct (gene_id, go_term_id)) from pub2.gene_go_annot;
Date: 2024-09-20 10:50:14 Duration: 1m31s
3 46s757ms 46s757ms 46s757ms 1 46s757ms select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? # ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 20 11 1 46s757ms 46s757ms [ User: pub1 - Total duration: 46s757ms - Times executed: 1 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 # 015;
Date: 2024-09-20 11:16:19 Duration: 46s757ms Database: ctddev51 User: pub1 Bind query: yes
4 42s945ms 48s753ms 46s412ms 4 3m5s select gene_id # ?, chem_id # ?, acc_txt # ? from pub2.gene_chem_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? # ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 20 13 1 48s753ms 48s753ms 14 2 1m30s 45s101ms 17 1 46s692ms 46s692ms [ User: pub1 - Total duration: 3m5s - Times executed: 4 ]
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 13:59:02 Duration: 48s753ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 14:06:22 Duration: 47s258ms Database: ctddev51 User: pub1 Bind query: yes
-
SELECT gene_id # 015, chem_id # 015, acc_txt # 015 FROM pub2.GENE_CHEM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 # 015;
Date: 2024-09-20 17:06:47 Duration: 46s692ms Database: ctddev51 User: pub1 Bind query: yes
5 34s468ms 38s273ms 36s371ms 2 1m12s select distinct go_term_id # ?, gene_id # ?, evidence_cd # ? from pub2.gene_go_annot transactionalreferencetabler # ? where is_not = ? # ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 20 14 1 38s273ms 38s273ms 17 1 34s468ms 34s468ms -
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 14:07:14 Duration: 38s273ms Bind query: yes
-
SELECT distinct go_term_id # 015, gene_id # 015, evidence_cd # 015 FROM pub2.GENE_GO_ANNOT transactionalReferenceTabler # 015 where is_not = 'f' # 015;
Date: 2024-09-20 17:11:38 Duration: 34s468ms Bind query: yes
6 11s430ms 11s430ms 11s430ms 1 11s430ms select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 20 10 1 11s430ms 11s430ms -
select distinct term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot);
Date: 2024-09-20 10:16:14 Duration: 11s430ms
7 8s471ms 8s471ms 8s471ms 1 8s471ms select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = ? and source_cd = ? and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 20 10 1 8s471ms 8s471ms -
select term_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (term_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot) limit 100;
Date: 2024-09-20 10:15:32 Duration: 8s471ms
8 8s120ms 8s120ms 8s120ms 1 8s120ms select distinct phenotypeterm.nm as gonm, phenotypeterm.nm_html as gonmhtml, phenotypeterm.acc_txt as goacc, diseaseterm.nm as diseasenm, diseaseterm.nm_html as diseasenmhtml, diseaseterm.acc_txt as diseaseacc, diseaseterm.acc_db_cd as diseaseaccdbcd, chemterm.nm as chemnm, chemterm.nm_html as chemnmhtml, chemterm.acc_txt as chemacc, geneterm.nm as genesymbol, geneterm.nm_html as genesymbolhtml, geneterm.acc_txt as geneacc, count(*) over () fullrowcount from phenotype_term_reference viachemptr, phenotype_term_reference viageneptr, term phenotypeterm, term diseaseterm, term geneterm, term chemterm where viachemptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select term_id from term_label tl where upper(tl.nm) = ? and tl.object_type_id = ?)) and viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and diseaseterm.id = any (array ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?)) and viachemptr.phenotype_id = phenotypeterm.id and viachemptr.term_object_type_id = ? and viachemptr.term_id = diseaseterm.id and viachemptr.via_term_object_type_id = ? and viachemptr.via_term_id = chemterm.id and viachemptr.term_id = viageneptr.term_id and viachemptr.phenotype_id = viageneptr.phenotype_id and viageneptr.via_term_object_type_id = ? and viageneptr.via_term_id = geneterm.id and exists ( select ? from gene_chem_reference where gene_id = geneterm.id and chem_id = chemterm.id) group by phenotypeterm.nm, phenotypeterm.nm_html, phenotypeterm.acc_txt, diseaseterm.nm, diseaseterm.nm_html, diseaseterm.acc_txt, diseaseterm.acc_db_cd, chemterm.nm, chemterm.nm_html, chemterm.acc_txt, geneterm.nm, geneterm.nm_html, geneterm.acc_txt order by chemterm.nm limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 20 17 1 8s120ms 8s120ms [ User: pubeu - Total duration: 8s120ms - Times executed: 1 ]
-
select distinct phenotypeTerm.nm AS goNm, phenotypeTerm.nm_html AS goNmHtml, phenotypeTerm.acc_txt AS goAcc, diseaseTerm.nm AS diseaseNm, diseaseTerm.nm_html AS diseaseNmHtml, diseaseTerm.acc_txt AS diseaseAcc, diseaseTerm.acc_db_cd AS diseaseAccDbCd, chemTerm.nm AS chemNm, chemTerm.nm_html AS chemNmHtml, chemTerm.acc_txt AS chemAcc, geneTerm.nm AS geneSymbol, geneTerm.nm_html AS geneSymbolHtml, geneTerm.acc_txt AS geneAcc, COUNT(*) OVER () fullRowCount from PHENOTYPE_TERM_REFERENCE viaChemPTR, PHENOTYPE_TERM_REFERENCE viaGenePTR, TERM phenotypeTerm, TERM diseaseTerm, TERM geneTerm, TERM chemTerm where viaChemPTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 2 and baseTerm.id in ( select term_id from term_label tl WHERE UPPER(tl.nm) = 'CLONIDINE' AND tl.object_type_id = 2)) and viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'POMC') and phenotypeTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0008217' AND l.type_cd = 'A' AND l.object_type_id = 5))) and diseaseTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 3 and upper(baseTerm.nm) LIKE 'HYPERTENSION')) and viaChemPTR.phenotype_id = phenotypeTerm.id and viaChemPTR.term_object_type_id = 3 and viaChemPTR.term_id = diseaseTerm.id and viaChemPTR.via_term_object_type_id = 2 and viaChemPTR.via_term_id = chemTerm.id and viaChemPTR.term_id = viaGenePTR.term_id and viaChemPTR.phenotype_id = viaGenePTR.phenotype_id and viaGenePTR.via_term_object_type_id = 4 and viaGenePTR.via_term_id = geneTerm.id and exists ( select 1 from gene_chem_reference where gene_id = geneTerm.id and chem_id = chemTerm.id) GROUP BY phenotypeTerm.nm, phenotypeTerm.nm_html, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.nm_html, diseaseTerm.acc_txt, diseaseTerm.acc_db_cd, chemTerm.nm, chemTerm.nm_html, chemTerm.acc_txt, geneTerm.nm, geneTerm.nm_html, geneTerm.acc_txt order by chemTerm.nm LIMIT 50;
Date: 2024-09-20 17:20:52 Duration: 8s120ms Database: ctddev51 User: pubeu Bind query: yes
9 5s572ms 7s200ms 6s448ms 3 19s346ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 20 14 2 12s145ms 6s72ms 17 1 7s200ms 7s200ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 17:11:03 Duration: 7s200ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:04:26 Duration: 6s572ms Bind query: yes
-
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 14:06:35 Duration: 5s572ms Bind query: yes
10 6s117ms 6s117ms 6s117ms 1 6s117ms select phenotype_id # ?, term_id # ?, acc_txt # ? from pub2.phenotype_term_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? and term_object_type_id = ? # ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 20 11 1 6s117ms 6s117ms -
SELECT phenotype_id # 015, term_id # 015, acc_txt # 015 FROM pub2.PHENOTYPE_TERM_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' and term_object_type_id = 2 # 015;
Date: 2024-09-20 11:16:34 Duration: 6s117ms Bind query: yes
11 4s309ms 4s309ms 4s309ms 1 4s309ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 20 05 1 4s309ms 4s309ms -
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1291235)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2024-09-20 05:48:30 Duration: 4s309ms Bind query: yes
12 3s991ms 3s991ms 3s991ms 1 3s991ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 20 05 1 3s991ms 3s991ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ZINC')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006915' AND l.type_cd = 'A' AND l.object_type_id = 5))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9606' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:50 Duration: 3s991ms Bind query: yes
13 3s982ms 3s982ms 3s982ms 1 3s982ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference gdr # ? left outer join pub2.reference r on gdr.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 20 11 1 3s982ms 3s982ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE gdr # 015 LEFT OUTER JOIN pub2.REFERENCE r ON gdr.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 11:16:26 Duration: 3s982ms Bind query: yes
14 3s937ms 3s937ms 3s937ms 1 3s937ms select gcr.ixn_id, null, null, null from gene_chem_reference gcr where gcr.gene_id = any (array (( select gd.gene_id from term t inner join dag_path dp on t.id = dp.ancestor_object_id inner join gene_disease gd on dp.descendant_object_id = gd.disease_id where upper(t.nm) like ? and t.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?));Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 20 05 1 3s937ms 3s937ms [ User: pubeu - Total duration: 3s937ms - Times executed: 1 ]
-
SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, NULL, NULL, NULL FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterDiseaseWhereEquals.Name.Gene */ gd.gene_id FROM term t INNER JOIN dag_path dp ON t.id = dp.ancestor_object_id INNER JOIN gene_disease gd ON dp.descendant_object_id = gd.disease_id WHERE UPPER(t.nm) LIKE 'ASTHMA' AND t.object_type_id = 3))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases'));
Date: 2024-09-20 05:47:20 Duration: 3s937ms Database: ctddev51 User: pubeu Bind query: yes
15 3s900ms 3s900ms 3s900ms 1 3s900ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 20 05 1 3s900ms 3s900ms -
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.term_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 2 and upper(baseTerm.nm) LIKE 'ACETYLCYSTEINE')) and ptr.term_object_type_id = 2 and ptr.phenotype_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 5 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = 'GO:0006979' AND l.type_cd = 'A' AND l.object_type_id = 5))) and i.id in ( select ixn_id from ixn_anatomy where anatomy_id IN ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 10 and upper(baseTerm.nm) LIKE 'CARDIOVASCULAR SYSTEM'))) and taxonTerm.id in ( select /* DBConstants.getDAGTermSQL */ distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id in ( select distinct id from term baseTerm where object_type_id = 1 and baseTerm.id in ( select object_id from db_link l where l.acc_txt = '9605' AND l.type_cd = 'A' AND l.object_type_id = 1))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = 'phenotype' and action_degree_type_nm in ('increases')) group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-09-20 05:48:54 Duration: 3s900ms Bind query: yes
16 3s818ms 3s818ms 3s818ms 1 3s818ms select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where gcr.gene_id = any (array (( select gd.gene_id from term t inner join dag_path dp on t.id = dp.ancestor_object_id inner join gene_disease gd on dp.descendant_object_id = gd.disease_id where upper(t.nm) like ? and t.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 20 05 1 3s818ms 3s818ms -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterDiseaseWhereEquals.Name.Gene */ gd.gene_id FROM term t INNER JOIN dag_path dp ON t.id = dp.ancestor_object_id INNER JOIN gene_disease gd ON dp.descendant_object_id = gd.disease_id WHERE UPPER(t.nm) LIKE 'ASTHMA' AND t.object_type_id = 3))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases'))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-09-20 05:47:24 Duration: 3s818ms Bind query: yes
17 3s484ms 3s484ms 3s484ms 1 3s484ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where gcr.gene_id = any (array (( select tp.term_id from term_pathway tp where upper(tp.pathway_nm) like ? and tp.object_type_id = ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 20 05 1 3s484ms 3s484ms -
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE /* CIQH.getIxnWhereCore */ gcr.gene_id = ANY (ARRAY (( SELECT /* IQH.getMasterPathwayWhereEquals.Name */ tp.term_id FROM term_pathway tp WHERE UPPER(tp.pathway_nm) LIKE 'METABOLISM' AND tp.object_type_id = 4))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases')) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2024-09-20 05:47:32 Duration: 3s484ms Bind query: yes
18 2s350ms 4s88ms 3s142ms 4 12s570ms select chem_id # ?, disease_id # ?, acc_txt # ? from pub2.chem_disease_reference transactionalreferencetabler # ? left outer join pub2.reference r on transactionalreferencetabler.reference_id = r.id # ? where source_cd = ? # ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 20 13 1 2s668ms 2s668ms 14 2 7s552ms 3s776ms 17 1 2s350ms 2s350ms -
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:06:29 Duration: 4s88ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 14:04:19 Duration: 3s463ms Bind query: yes
-
SELECT chem_id # 015, disease_id # 015, acc_txt # 015 FROM pub2.CHEM_DISEASE_REFERENCE transactionalReferenceTabler # 015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id # 015 where source_cd = 'C' # 015;
Date: 2024-09-20 13:59:08 Duration: 2s668ms Bind query: yes
19 2s253ms 2s572ms 2s370ms 3 7s112ms select id, object_type_id, acc_txt, t.acc_db_cd, nm, nm_sort, secondary_nm, description, note from pub2.term t where object_type_id = ? and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id not in ( select gene_chem_reference_id from pub2.gene_chem_reference_axn where action_degree_type_nm = ?) union select distinct gene_id from pub2.gene_disease_reference r where source_cd in (...));Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 20 11 1 2s572ms 2s572ms 14 1 2s285ms 2s285ms 17 1 2s253ms 2s253ms -
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 11:16:39 Duration: 2s572ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 14:07:19 Duration: 2s285ms Bind query: yes
-
select ID, OBJECT_TYPE_ID, ACC_TXT, t.ACC_DB_CD, NM, NM_SORT, SECONDARY_NM, DESCRIPTION, NOTE from pub2.term t where object_type_id = 4 and t.id in ( select distinct gene_id from pub2.gene_chem_reference r where r.id NOT in ( SELECT gene_chem_reference_id FROM pub2.GENE_CHEM_REFERENCE_AXN WHERE action_degree_type_nm = 'does not affect') union select distinct gene_id from pub2.gene_disease_reference r where source_cd in ('C', 'O'));
Date: 2024-09-20 17:11:43 Duration: 2s253ms Bind query: yes
20 1s96ms 3s579ms 2s338ms 2 4s676ms with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 20 05 2 4s676ms 2s338ms [ User: pubeu - Total duration: 3s579ms - Times executed: 1 ]
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '589967' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:12 Duration: 3s579ms Database: ctddev51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '1432724' UNION ALL SELECT n.object_id, n.id, CAST(path || n.nm_sort AS varchar(600)[]), sn.lvl + 1 FROM dag_node n INNER JOIN sub_node sn ON (n.parent_id = sn.id)) SELECT /* TreeTermBasicsDAO.getDescendants */ DISTINCT t.nm priNm, t.nm_html priNmHtml, t.secondary_nm secondaryNm, t.acc_db_cd accDbCd, t.acc_txt termAcc, t.is_leaf isLeaf, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_genes hasGenes, sn.lvl, sn.path, MAX(sn.lvl) OVER () maxLvl, t.has_phenotypes hasPhenotypes FROM sub_node sn INNER JOIN term t ON sn.object_id = t.id WHERE sn.lvl <= 2 ORDER BY sn.path;
Date: 2024-09-20 05:45:14 Duration: 1s96ms 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
- 7,672 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 17 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 5 Max number of times the same event was reported
- 17 Total events found
Rank Times reported Error 1 5 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 20 17 1 18 3 19 1 2 5 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 20 11 1 13 1 14 2 17 1 3 3 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 20 10 1 13 1 14 1 - ERROR: column "gene_id" does not exist at character 8
- ERROR: column "go_term_id" does not exist at character 20
- ERROR: column transactionalreferencetabler.reference_id does not exist at character 171
Hint: Perhaps you meant to reference the column "phenotype_term_reference.term_id" or the column "phenotype_term_reference.ixn_id".
Statement: select gene_id, phenotype_id from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' and (gene_id, phenotype_id) not in ( select gene_id, go_term_id from pub2.gene_go_annot ) limit 100Date: 2024-09-20 10:15:09
Hint: Perhaps you meant to reference the column "transactionalreferencetabler.term_id" or the column "transactionalreferencetabler.via_term_id".
Statement: SELECT distinct go_term_id #015 ,gene_id #015 ,evidence_cd #015 FROM pub2.PHENOTYPE_TERM_REFERENCE transactionalReferenceTabler #015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id #015 where source_cd = 'C' and term_object_type_id = 2#015Date: 2024-09-20 13:59:08
Statement: SELECT distinct go_term_id #015 ,gene_id #015 ,evidence_cd #015 FROM load.GENE_GO_ANNOT transactionalReferenceTabler #015 LEFT OUTER JOIN pub2.REFERENCE r ON transactionalReferenceTabler.reference_id = r.id #015 where is_not = 'f' #015
Date: 2024-09-20 14:04:28
4 2 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 20 10 2 - ERROR: relation "object_type" does not exist at character 15
- ERROR: relation "phenotype_term_reference" does not exist at character 24
Statement: select * from object_type
Date: 2024-09-20 10:03:39 Database: ctddev51 Application: pgAdmin 4 - CONN:8656276 User: load Remote:
Statement: select count(*) from phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' limit 100
Date: 2024-09-20 10:04:23
5 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 20 10 1 - ERROR: syntax error at or near "select" at character 119
Statement: select count(*) from pub2.phenotype_term_reference where term_object_type_id = 4 and source_cd = 'C' limit 100 select * from pub2.object_type
Date: 2024-09-20 10:05:02
6 1 ERROR: function count(...) does not exist
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 20 10 1 - ERROR: function count(integer, integer) does not exist at character 8
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Statement: select count( distinct gene_id, go_term_id ) from pub2.gene_go_annotDate: 2024-09-20 10:48:19 Database: ctddev51 Application: pgAdmin 4 - CONN:9964090 User: load Remote: