-
Global information
- Generated on Wed Apr 24 04:10:03 2024
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20240423
- Parsed 12,881 log entries in 2s
- Log start from 2024-04-23 00:07:13 to 2024-04-23 23:58:56
-
Overview
Global Stats
- 41 Number of unique normalized queries
- 60 Number of queries
- 37m43s Total query duration
- 2024-04-23 05:45:13 First query
- 2024-04-23 14:31:29 Last query
- 1 queries/s at 2024-04-23 11:19:19 Query peak
- 37m43s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 37m43s Execute total duration
- 6 Number of events
- 1 Number of unique normalized events
- 6 Max number of times the same event was reported
- 0 Number of cancellation
- 22 Total number of automatic vacuums
- 27 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 1,560 Total number of sessions
- 44 sessions at 2024-04-23 17:01:14 Session peak
- 57d10h21m25s Total duration of sessions
- 53m Average duration of sessions
- 0 Average queries per session
- 1s450ms Average queries duration per session
- 52m59s Average idle time per session
- 1,560 Total number of connections
- 9 connections/s at 2024-04-23 05:45:08 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-23 11:19:19 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-23 05:47:28 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-23 11:19:19 Date
Queries duration
Key values
- 37m43s 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) Apr 23 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 24 0ms 8s144ms 2s356ms 8s144ms 18s378ms 25s571ms 06 0 0ms 0ms 0ms 0ms 0ms 0ms 07 0 0ms 0ms 0ms 0ms 0ms 0ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 0 0ms 0ms 0ms 0ms 0ms 0ms 10 2 0ms 3s414ms 2s226ms 0ms 0ms 4s452ms 11 11 0ms 3s466ms 2s204ms 4s461ms 4s493ms 4s513ms 12 17 0ms 2m15s 21s369ms 1m24s 1m25s 2m19s 13 2 0ms 28m12s 15m3s 0ms 1m53s 28m12s 14 4 0ms 3s401ms 2s216ms 0ms 0ms 8s866ms 15 0 0ms 0ms 0ms 0ms 0ms 0ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 23 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 22 0 2s367ms 0ms 8s144ms 25s571ms 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 0 0 0ms 0ms 0ms 0ms 11 1 0 1s885ms 0ms 0ms 1s885ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 23 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 11 6 0 0 21s369ms 0ms 0ms 1m25s 13 0 2 0 0 15m3s 0ms 0ms 28m12s 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 Apr 23 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 24 24.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 2 2.00 0.00% 11 0 11 11.00 0.00% 12 0 17 17.00 0.00% 13 0 2 2.00 0.00% 14 0 4 4.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Apr 23 00 64 0.02/s 01 63 0.02/s 02 63 0.02/s 03 58 0.02/s 04 64 0.02/s 05 67 0.02/s 06 63 0.02/s 07 59 0.02/s 08 62 0.02/s 09 64 0.02/s 10 70 0.02/s 11 94 0.03/s 12 66 0.02/s 13 63 0.02/s 14 76 0.02/s 15 63 0.02/s 16 63 0.02/s 17 54 0.01/s 18 64 0.02/s 19 64 0.02/s 20 64 0.02/s 21 64 0.02/s 22 64 0.02/s 23 64 0.02/s Day Hour Count Average Duration Average idle time Apr 23 00 64 30m38s 30m38s 01 63 30m41s 30m41s 02 63 30m40s 30m40s 03 58 30m38s 30m38s 04 64 30m41s 30m41s 05 67 29m7s 29m7s 06 63 30m38s 30m38s 07 59 30m41s 30m41s 08 62 30m38s 30m38s 09 64 30m40s 30m40s 10 64 30m12s 30m12s 11 94 22m7s 22m7s 12 65 30m12s 30m6s 13 64 30m46s 30m17s 14 76 1h58m8s 1h58m8s 15 63 30m40s 30m40s 16 63 7h28m11s 7h28m11s 17 54 30m37s 30m37s 18 64 30m41s 30m41s 19 70 1h11m40s 1h11m40s 20 64 30m38s 30m38s 21 64 30m41s 30m41s 22 64 30m40s 30m40s 23 64 30m38s 30m38s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2024-04-23 05:45:08 Date
Connections per database
Key values
- ctddev51 Main Database
- 1,560 connections Total
Connections per user
Key values
- editeu Main User
- 1,560 connections Total
-
Sessions
Simultaneous sessions
Key values
- 44 sessions Session Peak
- 2024-04-23 17:01:14 Date
Histogram of session times
Key values
- 1,499 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 1,560 sessions Total
Sessions per user
Key values
- editeu Main User
- 1,560 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 1,560 sessions Total
Host Count Total Duration Average Duration 10.12.5.40 2 36m16s 18m8s 10.12.5.47 376 8d10m19s 30m39s 10.12.5.53 379 7d23h58m38s 30m23s 10.12.5.54 376 8d10m18s 30m39s 10.12.5.55 376 8d10m49s 30m40s 10.12.5.56 12 4d20h57m41s 9h44m48s 192.168.201.10 36 1d19h59m17s 1h13m18s 192.168.202.6 1 8h54m31s 8h54m31s ::1 2 18d7h23m31s 9d3h41m45s -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 807,179 buffers Checkpoint Peak
- 2024-04-23 12:47:12 Date
- 1619.888 seconds Highest write time
- 0.112 seconds Sync time
Checkpoints Wal files
Key values
- 538 files Wal files usage Peak
- 2024-04-23 13:01:37 Date
Checkpoints distance
Key values
- 17,224.40 Mo Distance Peak
- 2024-04-23 13:30:03 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Apr 23 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 752,382 1,619.56s 0.002s 1,621.452s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 6 0.703s 0.001s 0.719s 11 9 1.001s 0.001s 1.016s 12 1,478,885 860.903s 0.113s 874.562s 13 993,855 2,404.261s 0.009s 2,417.353s 14 618,299 1,623.145s 0.003s 1,625.397s 15 0 0s 0s 0s 16 2 0.399s 0.001s 0.414s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Apr 23 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 145 57 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 6 0.001s 0.001s 11 0 0 0 7 0.001s 0.001s 12 0 32 1,076 610 0.016s 0.002s 13 0 0 1,076 51 0.003s 0.002s 14 0 0 175 54 0.001s 0.002s 15 0 0 0 0 0s 0s 16 0 0 0 1 0.001s 0.001s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Apr 23 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 Apr 23 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 2,910,406.00 kB 8,227,445.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 20.00 kB 7,404,702.00 kB 11 28.00 kB 6,664,235.00 kB 12 8,807,455.00 kB 8,811,983.50 kB 13 8,816,745.00 kB 8,816,745.00 kB 14 1,693,563.00 kB 7,861,924.00 kB 15 0.00 kB 0.00 kB 16 11.00 kB 6,703,333.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Apr 23 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
- 195.92 sec Highest CPU-cost vacuum
Table pub1.gene_disease
Database ctddev51 - 2024-04-23 13:06:01 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctddev51 - Date
Average Autovacuum Duration
Key values
- 195.92 sec Highest CPU-cost vacuum
Table pub1.gene_disease
Database ctddev51 - 2024-04-23 13:06:01 Date
Analyzes per table
Key values
- pub1.exp_event (1) Main table analyzed (database ctddev51)
- 27 analyzes Total
Table Number of analyzes ctddev51.pub1.exp_event 1 ctddev51.pub1.exp_receptor_race 1 ctddev51.pub1.exp_receptor 1 ctddev51.pub1.exp_receptor_gender 1 ctddev51.pub1.reference_exp 1 ctddev51.pub1.chem_disease 1 ctddev51.pub1.race 1 ctddev51.pub1.exp_event_assay_method 1 ctddev51.pub1.exp_stressor 1 ctddev51.pub1.geographic_region 1 ctddev51.pub1.dag_node 1 ctddev51.pub1.exp_event_project 1 ctddev51.pub1.medium 1 ctddev51.pub1.exp_anatomy 1 ctddev51.pub1.phenotype_term 1 ctddev51.pubc.log_query 1 ctddev51.pg_catalog.pg_class 1 ctddev51.pub1.exposure 1 ctddev51.pub1.gene_disease 1 ctddev51.pub1.term 1 ctddev51.pub1.exp_stressor_stressor_src 1 ctddev51.pub1.exp_event_location 1 ctddev51.pub1.reference 1 ctddev51.pub1.country 1 ctddev51.pub1.exp_study_factor 1 ctddev51.pub1.exp_receptor_tobacco_use 1 ctddev51.pub1.exp_outcome 1 Total 27 Vacuums per table
Key values
- pub1.exp_stressor_stressor_src (1) Main table vacuumed on database ctddev51
- 22 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctddev51.pub1.exp_stressor_stressor_src 1 0 2,552 0 4 0 0 1,247 1 81,992 ctddev51.pub1.gene_disease 1 1 3,745,027 0 578,498 0 0 1,653,085 607,686 2,132,569,701 ctddev51.pub1.term 1 1 1,335,704 0 269,639 0 0 889,971 350,192 1,527,920,057 ctddev51.pub1.exposure 1 0 3,611 0 3 0 0 1,752 1 111,787 ctddev51.pub1.exp_receptor_tobacco_use 1 0 1,174 0 3 0 0 552 1 40,987 ctddev51.pub1.exp_outcome 1 0 546 0 3 0 0 216 1 21,163 ctddev51.pub1.exp_study_factor 1 0 113 0 4 0 0 11 2 15,628 ctddev51.pub1.exp_event_location 1 0 3,391 0 3 0 0 1,644 1 105,415 ctddev51.pub1.reference 1 1 318,943 0 789 0 3,359 217,088 6,384 72,865,983 ctddev51.pub1.chem_disease 1 1 333,051 0 12,768 0 0 163,212 12,763 107,858,543 ctddev51.pub1.reference_exp 1 0 324 0 3 0 0 125 1 15,794 ctddev51.pub1.exp_receptor_race 1 0 1,320 0 3 0 0 625 1 45,294 ctddev51.pub1.exp_receptor_gender 1 0 2,646 0 3 0 0 1,308 1 85,591 ctddev51.pub1.exp_receptor 1 0 7,212 0 3 0 0 3,578 1 219,521 ctddev51.pub1.exp_event 1 0 12,240 0 3 0 0 6,042 1 364,897 ctddev51.pub1.exp_anatomy 1 0 152 0 3 0 0 33 1 10,366 ctddev51.pub1.phenotype_term 1 1 324,776 0 3,544 0 93,408 193,514 18,785 64,694,044 ctddev51.pubc.log_query 1 1 412 0 101 0 0 152 62 468,875 ctddev51.pub1.dag_node 1 1 321,547 0 3,176 0 154 293,318 2,544 65,070,322 ctddev51.pub1.exp_event_project 1 0 2,013 0 3 0 0 984 1 66,475 ctddev51.pub1.exp_stressor 1 0 5,953 0 3 0 0 2,947 1 182,292 ctddev51.pub1.exp_event_assay_method 1 0 4,741 0 3 0 0 2,325 1 145,594 Total 22 7 6,427,448 10,052 868,562 0 96,921 3,433,729 998,432 3,972,960,321 Tuples removed per table
Key values
- pub1.gene_disease (32587930) Main table with removed tuples on database ctddev51
- 41148838 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctddev51.pub1.gene_disease 1 1 32,587,930 32,587,930 0 0 479,235 ctddev51.pub1.chem_disease 1 1 3,276,111 3,276,111 0 0 48,130 ctddev51.pub1.phenotype_term 1 1 3,236,557 4,899,897 0 0 181,755 ctddev51.pub1.dag_node 1 1 1,698,995 1,694,968 0 0 82,413 ctddev51.pub1.term 1 1 261,312 2,068,596 0 0 336,833 ctddev51.pub1.reference 1 1 87,932 203,521 0 0 85,026 ctddev51.pubc.log_query 1 1 1 3,150 0 0 97 ctddev51.pub1.exp_stressor_stressor_src 1 0 0 281,401 0 0 1,246 ctddev51.pub1.exposure 1 0 0 212,736 0 0 1,751 ctddev51.pub1.exp_receptor_tobacco_use 1 0 0 78,085 0 0 551 ctddev51.pub1.exp_outcome 1 0 0 11,159 0 0 215 ctddev51.pub1.exp_study_factor 1 0 0 1,609 0 0 10 ctddev51.pub1.exp_event_location 1 0 0 247,403 0 0 1,643 ctddev51.pub1.reference_exp 1 0 0 3,423 0 0 124 ctddev51.pub1.exp_receptor_race 1 0 0 96,184 0 0 624 ctddev51.pub1.exp_receptor_gender 1 0 0 186,170 0 0 1,307 ctddev51.pub1.exp_receptor 1 0 0 189,372 0 0 3,577 ctddev51.pub1.exp_event 1 0 0 205,825 0 0 6,041 ctddev51.pub1.exp_anatomy 1 0 0 3,746 0 0 32 ctddev51.pub1.exp_event_project 1 0 0 94,256 0 0 983 ctddev51.pub1.exp_stressor 1 0 0 205,937 0 0 2,946 ctddev51.pub1.exp_event_assay_method 1 0 0 233,360 0 0 2,324 Total 22 7 41,148,838 46,784,839 0 0 1,236,863 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed ctddev51.pub1.exp_stressor_stressor_src 1 0 0 0 ctddev51.pub1.gene_disease 1 1 32587930 0 ctddev51.pub1.term 1 1 261312 0 ctddev51.pub1.exposure 1 0 0 0 ctddev51.pub1.exp_receptor_tobacco_use 1 0 0 0 ctddev51.pub1.exp_outcome 1 0 0 0 ctddev51.pub1.exp_study_factor 1 0 0 0 ctddev51.pub1.exp_event_location 1 0 0 0 ctddev51.pub1.reference 1 1 87932 0 ctddev51.pub1.chem_disease 1 1 3276111 0 ctddev51.pub1.reference_exp 1 0 0 0 ctddev51.pub1.exp_receptor_race 1 0 0 0 ctddev51.pub1.exp_receptor_gender 1 0 0 0 ctddev51.pub1.exp_receptor 1 0 0 0 ctddev51.pub1.exp_event 1 0 0 0 ctddev51.pub1.exp_anatomy 1 0 0 0 ctddev51.pub1.phenotype_term 1 1 3236557 0 ctddev51.pubc.log_query 1 1 1 0 ctddev51.pub1.dag_node 1 1 1698995 0 ctddev51.pub1.exp_event_project 1 0 0 0 ctddev51.pub1.exp_stressor 1 0 0 0 ctddev51.pub1.exp_event_assay_method 1 0 0 0 Total 22 7 41,148,838 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Apr 23 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 1 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 24 13 0 2 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 - 195.92 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
- 23 Total read queries
- 37 Total write queries
Queries by database
Key values
- unknown Main database
- 48 Requests
- 36m57s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 118 Requests
User Request type Count Duration editeu Total 18 1m1s cte 18 1m1s pub1 Total 3 28s451ms insert 3 28s451ms pubeu Total 8 22s497ms cte 2 6s799ms select 6 15s698ms qaeu Total 6 20s611ms cte 6 20s611ms unknown Total 118 1h48m40s cte 26 26s828ms insert 30 2m11s select 38 1m28s update 24 1h44m33s Duration by user
Key values
- 1h48m40s (unknown) Main time consuming user
User Request type Count Duration editeu Total 18 1m1s cte 18 1m1s pub1 Total 3 28s451ms insert 3 28s451ms pubeu Total 8 22s497ms cte 2 6s799ms select 6 15s698ms qaeu Total 6 20s611ms cte 6 20s611ms unknown Total 118 1h48m40s cte 26 26s828ms insert 30 2m11s select 38 1m28s update 24 1h44m33s Queries by host
Key values
- unknown Main host
- 153 Requests
- 1h50m53s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 60 Requests
- 37m43s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-04-23 03:24:22 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 53 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 28m12s update pub1.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));[ Date: 2024-04-23 13:02:31 - Bind query: yes ]
2 2m15s update pub1.TERM set has_exposures = false;[ Date: 2024-04-23 12:31:24 - Bind query: yes ]
3 1m53s update pub1.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));[ Date: 2024-04-23 13:04:25 - Bind query: yes ]
4 1m24s update pub1.CHEM_DISEASE cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.CHEM_DISEASE_REFERENCE cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));[ Date: 2024-04-23 12:34:19 - Bind query: yes ]
5 55s184ms update pub1.DAG_NODE set has_exposures = false;[ Date: 2024-04-23 12:32:23 - Bind query: yes ]
6 29s93ms update pub1.REFERENCE set has_exposures = false;[ Date: 2024-04-23 12:32:54 - Bind query: yes ]
7 10s313ms INSERT INTO pub1.EXPOSURE (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) SELECT e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id FROM edit.EXPOSURE e INNER JOIN pub1.REFERENCE r ON e.reference_acc_txt = r.acc_txt AND r.acc_db_cd = 'PUBMED';[ Date: 2024-04-23 12:29:09 - Bind query: yes ]
8 9s537ms INSERT INTO pub1.EXP_EVENT (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) SELECT DISTINCT ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html FROM edit.EXP_EVENT ee INNER JOIN edit.EXPOSURE e ON e.exp_event_id = ee.id LEFT OUTER JOIN edit.EXP_MARKER_TYPE emt ON ee.exp_marker_type_id = emt.id LEFT OUTER JOIN pub1.TERM t ON ee.exp_marker_acc_txt = t.acc_txt AND emt.object_type_id = t.object_type_id LEFT OUTER JOIN pub1.MEDIUM m ON ee.medium_id = m.id LEFT OUTER JOIN pub1.TERM mt ON m.term_acc_txt = mt.acc_txt AND m.term_object_type_id = mt.object_type_id;[ Date: 2024-04-23 12:28:24 - Database: ctddev51 - User: pub1 - Bind query: yes ]
9 8s144ms 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 /* 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 chemTerm.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 viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and geneTerm.id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and phenotypeTerm.id = ANY (ARRAY ( 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 diseaseTerm.id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'NECROSIS'))) 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-04-23 05:49:01 - Bind query: yes ]
10 6s478ms INSERT INTO pub1.EXP_EVENT_LOCATION (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) SELECT DISTINCT eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt FROM edit.EXP_EVENT_LOCATION eel INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eel.exp_event_id;[ Date: 2024-04-23 12:28:31 - Bind query: yes ]
11 5s253ms INSERT INTO pub1.EXP_STRESSOR (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) SELECT DISTINCT es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note FROM edit.EXP_STRESSOR es INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = es.id LEFT OUTER JOIN pub1.TERM t ON t.acc_txt = es.chem_acc_txt AND t.object_type_id = 2;[ Date: 2024-04-23 12:28:42 - Bind query: yes ]
12 4s950ms INSERT INTO pub1.EXP_RECEPTOR (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) SELECT DISTINCT er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html FROM edit.EXP_RECEPTOR er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.id INNER JOIN edit.RECEPTOR r ON er.receptor_id = r.id LEFT OUTER JOIN pub1.AGE_UOM au ON er.age_uom_id = au.id LEFT OUTER JOIN pub1.AGE_QUALIFIER aq ON er.age_qualifier_id = aq.id LEFT OUTER JOIN pub1.GENDER g ON er.gender_id = g.id LEFT OUTER JOIN pub1.TERM t ON er.term_acc_txt = t.acc_txt AND er.object_type_id = t.object_type_id;[ Date: 2024-04-23 12:28:52 - Bind query: yes ]
13 4s737ms INSERT INTO pub1.EXP_STRESSOR_STRESSOR_SRC (exp_stressor_id, exp_stressor_src_type_id) SELECT DISTINCT ess.exp_stressor_id, ess.exp_stressor_src_type_id FROM edit.EXP_STRESSOR_STRESSOR_SRC ess INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = ess.exp_stressor_id;[ Date: 2024-04-23 12:28:47 - Bind query: yes ]
14 4s359ms update pub1.TERM set has_exposures = true where id in ( select ancestor_object_id from pub1.DAG_PATH where descendant_object_id in ( select distinct s.chem_id from pub1.EXP_STRESSOR s union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e union select distinct e.phenotype_id from pub1.EXP_OUTCOME e union select distinct e.disease_id from pub1.EXP_OUTCOME e union select distinct e.term_id from pub1.EXP_RECEPTOR e) union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e UNION select distinct e.term_id from pub1.EXP_RECEPTOR e where object_type_id = ( select id from pub1.OBJECT_TYPE where cd = 'gene'));[ Date: 2024-04-23 12:31:28 - Bind query: yes ]
15 4s342ms 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-04-23 05:48:45 - Bind query: yes ]
16 4s240ms INSERT INTO pub1.EXP_EVENT_ASSAY_METHOD (exp_event_id, nm) SELECT DISTINCT eem.exp_event_id, eem.nm FROM edit.EXP_EVENT_ASSAY_METHOD eem INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eem.exp_event_id;[ Date: 2024-04-23 12:28:35 - Bind query: yes ]
17 4s228ms 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-04-23 05:48:49 - Bind query: yes ]
18 3s957ms 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-04-23 05:47:20 - Database: ctddev51 - User: pubeu - Bind query: yes ]
19 3s862ms 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 = 1285538)) 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-04-23 05:48:23 - Bind query: yes ]
20 3s846ms 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-04-23 05:47:25 - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 28m12s 1 28m12s 28m12s 28m12s update pub1.gene_disease gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.gene_disease_reference gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 23 13 1 28m12s 28m12s -
update pub1.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:02:31 Duration: 28m12s Bind query: yes
2 2m15s 1 2m15s 2m15s 2m15s update pub1.term set has_exposures = false;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 23 12 1 2m15s 2m15s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-23 12:31:24 Duration: 2m15s Bind query: yes
3 1m53s 1 1m53s 1m53s 1m53s update pub1.phenotype_term pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.phenotype_term_reference ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 23 13 1 1m53s 1m53s -
update pub1.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:04:25 Duration: 1m53s Bind query: yes
4 1m24s 1 1m24s 1m24s 1m24s update pub1.chem_disease cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.chem_disease_reference cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 23 12 1 1m24s 1m24s -
update pub1.CHEM_DISEASE cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.CHEM_DISEASE_REFERENCE cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 12:34:19 Duration: 1m24s Bind query: yes
5 55s184ms 1 55s184ms 55s184ms 55s184ms update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 23 12 1 55s184ms 55s184ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-23 12:32:23 Duration: 55s184ms Bind query: yes
6 40s134ms 18 1s18ms 3s466ms 2s229ms 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 #6
Day Hour Count Duration Avg duration Apr 23 05 2 4s452ms 2s226ms 10 2 4s452ms 2s226ms 11 10 22s363ms 2s236ms 14 4 8s866ms 2s216ms [ User: qaeu - Total duration: 20s611ms - Times executed: 6 ]
[ User: editeu - Total duration: 6s798ms - Times executed: 2 ]
[ User: pubeu - Total duration: 3s418ms - 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 = '588473' 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-04-23 11:17:14 Duration: 3s466ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:00:46 Duration: 3s449ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:12:42 Duration: 3s442ms Database: ctddev51 User: qaeu Bind query: yes
7 29s93ms 1 29s93ms 29s93ms 29s93ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 23 12 1 29s93ms 29s93ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-23 12:32:54 Duration: 29s93ms Bind query: yes
8 10s313ms 1 10s313ms 10s313ms 10s313ms insert into pub1.exposure (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) select e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id from edit.exposure e inner join pub1.reference r on e.reference_acc_txt = r.acc_txt and r.acc_db_cd = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 23 12 1 10s313ms 10s313ms -
INSERT INTO pub1.EXPOSURE (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) SELECT e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id FROM edit.EXPOSURE e INNER JOIN pub1.REFERENCE r ON e.reference_acc_txt = r.acc_txt AND r.acc_db_cd = 'PUBMED';
Date: 2024-04-23 12:29:09 Duration: 10s313ms Bind query: yes
9 9s537ms 1 9s537ms 9s537ms 9s537ms insert into pub1.exp_event (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) select distinct ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html from edit.exp_event ee inner join edit.exposure e on e.exp_event_id = ee.id left outer join edit.exp_marker_type emt on ee.exp_marker_type_id = emt.id left outer join pub1.term t on ee.exp_marker_acc_txt = t.acc_txt and emt.object_type_id = t.object_type_id left outer join pub1.medium m on ee.medium_id = m.id left outer join pub1.term mt on m.term_acc_txt = mt.acc_txt and m.term_object_type_id = mt.object_type_id;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 23 12 1 9s537ms 9s537ms [ User: pub1 - Total duration: 9s537ms - Times executed: 1 ]
-
INSERT INTO pub1.EXP_EVENT (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) SELECT DISTINCT ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html FROM edit.EXP_EVENT ee INNER JOIN edit.EXPOSURE e ON e.exp_event_id = ee.id LEFT OUTER JOIN edit.EXP_MARKER_TYPE emt ON ee.exp_marker_type_id = emt.id LEFT OUTER JOIN pub1.TERM t ON ee.exp_marker_acc_txt = t.acc_txt AND emt.object_type_id = t.object_type_id LEFT OUTER JOIN pub1.MEDIUM m ON ee.medium_id = m.id LEFT OUTER JOIN pub1.TERM mt ON m.term_acc_txt = mt.acc_txt AND m.term_object_type_id = mt.object_type_id;
Date: 2024-04-23 12:28:24 Duration: 9s537ms Database: ctddev51 User: pub1 Bind query: yes
10 8s144ms 1 8s144ms 8s144ms 8s144ms 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 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 chemterm.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 viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and geneterm.id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( 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 diseaseterm.id = any (array ( 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 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 Apr 23 05 1 8s144ms 8s144ms -
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 /* 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 chemTerm.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 viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and geneTerm.id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and phenotypeTerm.id = ANY (ARRAY ( 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 diseaseTerm.id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'NECROSIS'))) 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-04-23 05:49:01 Duration: 8s144ms Bind query: yes
11 6s478ms 1 6s478ms 6s478ms 6s478ms insert into pub1.exp_event_location (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) select distinct eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt from edit.exp_event_location eel inner join edit.exposure e on e.exp_event_id = eel.exp_event_id;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 23 12 1 6s478ms 6s478ms -
INSERT INTO pub1.EXP_EVENT_LOCATION (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) SELECT DISTINCT eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt FROM edit.EXP_EVENT_LOCATION eel INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eel.exp_event_id;
Date: 2024-04-23 12:28:31 Duration: 6s478ms Bind query: yes
12 5s253ms 1 5s253ms 5s253ms 5s253ms insert into pub1.exp_stressor (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) select distinct es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note from edit.exp_stressor es inner join edit.exposure e on e.exp_stressor_id = es.id left outer join pub1.term t on t.acc_txt = es.chem_acc_txt and t.object_type_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 23 12 1 5s253ms 5s253ms -
INSERT INTO pub1.EXP_STRESSOR (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) SELECT DISTINCT es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note FROM edit.EXP_STRESSOR es INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = es.id LEFT OUTER JOIN pub1.TERM t ON t.acc_txt = es.chem_acc_txt AND t.object_type_id = 2;
Date: 2024-04-23 12:28:42 Duration: 5s253ms Bind query: yes
13 4s950ms 1 4s950ms 4s950ms 4s950ms insert into pub1.exp_receptor (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) select distinct er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html from edit.exp_receptor er inner join edit.exposure e on e.exp_receptor_id = er.id inner join edit.receptor r on er.receptor_id = r.id left outer join pub1.age_uom au on er.age_uom_id = au.id left outer join pub1.age_qualifier aq on er.age_qualifier_id = aq.id left outer join pub1.gender g on er.gender_id = g.id left outer join pub1.term t on er.term_acc_txt = t.acc_txt and er.object_type_id = t.object_type_id;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 23 12 1 4s950ms 4s950ms -
INSERT INTO pub1.EXP_RECEPTOR (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) SELECT DISTINCT er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html FROM edit.EXP_RECEPTOR er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.id INNER JOIN edit.RECEPTOR r ON er.receptor_id = r.id LEFT OUTER JOIN pub1.AGE_UOM au ON er.age_uom_id = au.id LEFT OUTER JOIN pub1.AGE_QUALIFIER aq ON er.age_qualifier_id = aq.id LEFT OUTER JOIN pub1.GENDER g ON er.gender_id = g.id LEFT OUTER JOIN pub1.TERM t ON er.term_acc_txt = t.acc_txt AND er.object_type_id = t.object_type_id;
Date: 2024-04-23 12:28:52 Duration: 4s950ms Bind query: yes
14 4s737ms 1 4s737ms 4s737ms 4s737ms insert into pub1.exp_stressor_stressor_src (exp_stressor_id, exp_stressor_src_type_id) select distinct ess.exp_stressor_id, ess.exp_stressor_src_type_id from edit.exp_stressor_stressor_src ess inner join edit.exposure e on e.exp_stressor_id = ess.exp_stressor_id;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 23 12 1 4s737ms 4s737ms -
INSERT INTO pub1.EXP_STRESSOR_STRESSOR_SRC (exp_stressor_id, exp_stressor_src_type_id) SELECT DISTINCT ess.exp_stressor_id, ess.exp_stressor_src_type_id FROM edit.EXP_STRESSOR_STRESSOR_SRC ess INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = ess.exp_stressor_id;
Date: 2024-04-23 12:28:47 Duration: 4s737ms Bind query: yes
15 4s359ms 1 4s359ms 4s359ms 4s359ms update pub1.term set has_exposures = true where id in ( select ancestor_object_id from pub1.dag_path where descendant_object_id in ( select distinct s.chem_id from pub1.exp_stressor s union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.phenotype_id from pub1.exp_outcome e union select distinct e.disease_id from pub1.exp_outcome e union select distinct e.term_id from pub1.exp_receptor e) union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.term_id from pub1.exp_receptor e where object_type_id = ( select id from pub1.object_type where cd = ?));Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 23 12 1 4s359ms 4s359ms -
update pub1.TERM set has_exposures = true where id in ( select ancestor_object_id from pub1.DAG_PATH where descendant_object_id in ( select distinct s.chem_id from pub1.EXP_STRESSOR s union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e union select distinct e.phenotype_id from pub1.EXP_OUTCOME e union select distinct e.disease_id from pub1.EXP_OUTCOME e union select distinct e.term_id from pub1.EXP_RECEPTOR e) union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e UNION select distinct e.term_id from pub1.EXP_RECEPTOR e where object_type_id = ( select id from pub1.OBJECT_TYPE where cd = 'gene'));
Date: 2024-04-23 12:31:28 Duration: 4s359ms Bind query: yes
16 4s342ms 1 4s342ms 4s342ms 4s342ms 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 #16
Day Hour Count Duration Avg duration Apr 23 05 1 4s342ms 4s342ms -
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-04-23 05:48:45 Duration: 4s342ms Bind query: yes
17 4s240ms 1 4s240ms 4s240ms 4s240ms insert into pub1.exp_event_assay_method (exp_event_id, nm) select distinct eem.exp_event_id, eem.nm from edit.exp_event_assay_method eem inner join edit.exposure e on e.exp_event_id = eem.exp_event_id;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 23 12 1 4s240ms 4s240ms -
INSERT INTO pub1.EXP_EVENT_ASSAY_METHOD (exp_event_id, nm) SELECT DISTINCT eem.exp_event_id, eem.nm FROM edit.EXP_EVENT_ASSAY_METHOD eem INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eem.exp_event_id;
Date: 2024-04-23 12:28:35 Duration: 4s240ms Bind query: yes
18 4s228ms 1 4s228ms 4s228ms 4s228ms 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 Apr 23 05 1 4s228ms 4s228ms -
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-04-23 05:48:49 Duration: 4s228ms Bind query: yes
19 3s957ms 1 3s957ms 3s957ms 3s957ms 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 Apr 23 05 1 3s957ms 3s957ms [ User: pubeu - Total duration: 3s957ms - 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-04-23 05:47:20 Duration: 3s957ms Database: ctddev51 User: pubeu Bind query: yes
20 3s862ms 1 3s862ms 3s862ms 3s862ms 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 #20
Day Hour Count Duration Avg duration Apr 23 05 1 3s862ms 3s862ms -
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 = 1285538)) 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-04-23 05:48:23 Duration: 3s862ms Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 18 40s134ms 1s18ms 3s466ms 2s229ms 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 #1
Day Hour Count Duration Avg duration Apr 23 05 2 4s452ms 2s226ms 10 2 4s452ms 2s226ms 11 10 22s363ms 2s236ms 14 4 8s866ms 2s216ms [ User: qaeu - Total duration: 20s611ms - Times executed: 6 ]
[ User: editeu - Total duration: 6s798ms - Times executed: 2 ]
[ User: pubeu - Total duration: 3s418ms - 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 = '588473' 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-04-23 11:17:14 Duration: 3s466ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:00:46 Duration: 3s449ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:12:42 Duration: 3s442ms Database: ctddev51 User: qaeu Bind query: yes
2 2 2s834ms 1s393ms 1s441ms 1s417ms 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 #2
Day Hour Count Duration Avg duration Apr 23 05 2 2s834ms 1s417ms -
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-04-23 05:48:03 Duration: 1s441ms 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-04-23 05:48:05 Duration: 1s393ms Bind query: yes
3 2 2s23ms 1s4ms 1s18ms 1s11ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 23 05 2 2s23ms 1s11ms -
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1285538' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-23 05:47:50 Duration: 1s18ms Bind query: yes
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1285538' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-23 05:47:49 Duration: 1s4ms Bind query: yes
4 1 28m12s 28m12s 28m12s 28m12s update pub1.gene_disease gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.gene_disease_reference gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 23 13 1 28m12s 28m12s -
update pub1.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:02:31 Duration: 28m12s Bind query: yes
5 1 2m15s 2m15s 2m15s 2m15s update pub1.term set has_exposures = false;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 23 12 1 2m15s 2m15s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-23 12:31:24 Duration: 2m15s Bind query: yes
6 1 1m53s 1m53s 1m53s 1m53s update pub1.phenotype_term pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.phenotype_term_reference ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 23 13 1 1m53s 1m53s -
update pub1.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:04:25 Duration: 1m53s Bind query: yes
7 1 1m24s 1m24s 1m24s 1m24s update pub1.chem_disease cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.chem_disease_reference cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 23 12 1 1m24s 1m24s -
update pub1.CHEM_DISEASE cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.CHEM_DISEASE_REFERENCE cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 12:34:19 Duration: 1m24s Bind query: yes
8 1 55s184ms 55s184ms 55s184ms 55s184ms update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 23 12 1 55s184ms 55s184ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-23 12:32:23 Duration: 55s184ms Bind query: yes
9 1 29s93ms 29s93ms 29s93ms 29s93ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 23 12 1 29s93ms 29s93ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-23 12:32:54 Duration: 29s93ms Bind query: yes
10 1 10s313ms 10s313ms 10s313ms 10s313ms insert into pub1.exposure (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) select e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id from edit.exposure e inner join pub1.reference r on e.reference_acc_txt = r.acc_txt and r.acc_db_cd = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 23 12 1 10s313ms 10s313ms -
INSERT INTO pub1.EXPOSURE (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) SELECT e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id FROM edit.EXPOSURE e INNER JOIN pub1.REFERENCE r ON e.reference_acc_txt = r.acc_txt AND r.acc_db_cd = 'PUBMED';
Date: 2024-04-23 12:29:09 Duration: 10s313ms Bind query: yes
11 1 9s537ms 9s537ms 9s537ms 9s537ms insert into pub1.exp_event (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) select distinct ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html from edit.exp_event ee inner join edit.exposure e on e.exp_event_id = ee.id left outer join edit.exp_marker_type emt on ee.exp_marker_type_id = emt.id left outer join pub1.term t on ee.exp_marker_acc_txt = t.acc_txt and emt.object_type_id = t.object_type_id left outer join pub1.medium m on ee.medium_id = m.id left outer join pub1.term mt on m.term_acc_txt = mt.acc_txt and m.term_object_type_id = mt.object_type_id;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 23 12 1 9s537ms 9s537ms [ User: pub1 - Total duration: 9s537ms - Times executed: 1 ]
-
INSERT INTO pub1.EXP_EVENT (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) SELECT DISTINCT ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html FROM edit.EXP_EVENT ee INNER JOIN edit.EXPOSURE e ON e.exp_event_id = ee.id LEFT OUTER JOIN edit.EXP_MARKER_TYPE emt ON ee.exp_marker_type_id = emt.id LEFT OUTER JOIN pub1.TERM t ON ee.exp_marker_acc_txt = t.acc_txt AND emt.object_type_id = t.object_type_id LEFT OUTER JOIN pub1.MEDIUM m ON ee.medium_id = m.id LEFT OUTER JOIN pub1.TERM mt ON m.term_acc_txt = mt.acc_txt AND m.term_object_type_id = mt.object_type_id;
Date: 2024-04-23 12:28:24 Duration: 9s537ms Database: ctddev51 User: pub1 Bind query: yes
12 1 8s144ms 8s144ms 8s144ms 8s144ms 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 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 chemterm.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 viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and geneterm.id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( 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 diseaseterm.id = any (array ( 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 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 #12
Day Hour Count Duration Avg duration Apr 23 05 1 8s144ms 8s144ms -
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 /* 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 chemTerm.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 viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and geneTerm.id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and phenotypeTerm.id = ANY (ARRAY ( 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 diseaseTerm.id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'NECROSIS'))) 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-04-23 05:49:01 Duration: 8s144ms Bind query: yes
13 1 6s478ms 6s478ms 6s478ms 6s478ms insert into pub1.exp_event_location (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) select distinct eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt from edit.exp_event_location eel inner join edit.exposure e on e.exp_event_id = eel.exp_event_id;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 23 12 1 6s478ms 6s478ms -
INSERT INTO pub1.EXP_EVENT_LOCATION (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) SELECT DISTINCT eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt FROM edit.EXP_EVENT_LOCATION eel INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eel.exp_event_id;
Date: 2024-04-23 12:28:31 Duration: 6s478ms Bind query: yes
14 1 5s253ms 5s253ms 5s253ms 5s253ms insert into pub1.exp_stressor (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) select distinct es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note from edit.exp_stressor es inner join edit.exposure e on e.exp_stressor_id = es.id left outer join pub1.term t on t.acc_txt = es.chem_acc_txt and t.object_type_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 23 12 1 5s253ms 5s253ms -
INSERT INTO pub1.EXP_STRESSOR (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) SELECT DISTINCT es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note FROM edit.EXP_STRESSOR es INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = es.id LEFT OUTER JOIN pub1.TERM t ON t.acc_txt = es.chem_acc_txt AND t.object_type_id = 2;
Date: 2024-04-23 12:28:42 Duration: 5s253ms Bind query: yes
15 1 4s950ms 4s950ms 4s950ms 4s950ms insert into pub1.exp_receptor (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) select distinct er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html from edit.exp_receptor er inner join edit.exposure e on e.exp_receptor_id = er.id inner join edit.receptor r on er.receptor_id = r.id left outer join pub1.age_uom au on er.age_uom_id = au.id left outer join pub1.age_qualifier aq on er.age_qualifier_id = aq.id left outer join pub1.gender g on er.gender_id = g.id left outer join pub1.term t on er.term_acc_txt = t.acc_txt and er.object_type_id = t.object_type_id;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 23 12 1 4s950ms 4s950ms -
INSERT INTO pub1.EXP_RECEPTOR (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) SELECT DISTINCT er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html FROM edit.EXP_RECEPTOR er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.id INNER JOIN edit.RECEPTOR r ON er.receptor_id = r.id LEFT OUTER JOIN pub1.AGE_UOM au ON er.age_uom_id = au.id LEFT OUTER JOIN pub1.AGE_QUALIFIER aq ON er.age_qualifier_id = aq.id LEFT OUTER JOIN pub1.GENDER g ON er.gender_id = g.id LEFT OUTER JOIN pub1.TERM t ON er.term_acc_txt = t.acc_txt AND er.object_type_id = t.object_type_id;
Date: 2024-04-23 12:28:52 Duration: 4s950ms Bind query: yes
16 1 4s737ms 4s737ms 4s737ms 4s737ms insert into pub1.exp_stressor_stressor_src (exp_stressor_id, exp_stressor_src_type_id) select distinct ess.exp_stressor_id, ess.exp_stressor_src_type_id from edit.exp_stressor_stressor_src ess inner join edit.exposure e on e.exp_stressor_id = ess.exp_stressor_id;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 23 12 1 4s737ms 4s737ms -
INSERT INTO pub1.EXP_STRESSOR_STRESSOR_SRC (exp_stressor_id, exp_stressor_src_type_id) SELECT DISTINCT ess.exp_stressor_id, ess.exp_stressor_src_type_id FROM edit.EXP_STRESSOR_STRESSOR_SRC ess INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = ess.exp_stressor_id;
Date: 2024-04-23 12:28:47 Duration: 4s737ms Bind query: yes
17 1 4s359ms 4s359ms 4s359ms 4s359ms update pub1.term set has_exposures = true where id in ( select ancestor_object_id from pub1.dag_path where descendant_object_id in ( select distinct s.chem_id from pub1.exp_stressor s union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.phenotype_id from pub1.exp_outcome e union select distinct e.disease_id from pub1.exp_outcome e union select distinct e.term_id from pub1.exp_receptor e) union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.term_id from pub1.exp_receptor e where object_type_id = ( select id from pub1.object_type where cd = ?));Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 23 12 1 4s359ms 4s359ms -
update pub1.TERM set has_exposures = true where id in ( select ancestor_object_id from pub1.DAG_PATH where descendant_object_id in ( select distinct s.chem_id from pub1.EXP_STRESSOR s union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e union select distinct e.phenotype_id from pub1.EXP_OUTCOME e union select distinct e.disease_id from pub1.EXP_OUTCOME e union select distinct e.term_id from pub1.EXP_RECEPTOR e) union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e UNION select distinct e.term_id from pub1.EXP_RECEPTOR e where object_type_id = ( select id from pub1.OBJECT_TYPE where cd = 'gene'));
Date: 2024-04-23 12:31:28 Duration: 4s359ms Bind query: yes
18 1 4s342ms 4s342ms 4s342ms 4s342ms 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 #18
Day Hour Count Duration Avg duration Apr 23 05 1 4s342ms 4s342ms -
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-04-23 05:48:45 Duration: 4s342ms Bind query: yes
19 1 4s240ms 4s240ms 4s240ms 4s240ms insert into pub1.exp_event_assay_method (exp_event_id, nm) select distinct eem.exp_event_id, eem.nm from edit.exp_event_assay_method eem inner join edit.exposure e on e.exp_event_id = eem.exp_event_id;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 23 12 1 4s240ms 4s240ms -
INSERT INTO pub1.EXP_EVENT_ASSAY_METHOD (exp_event_id, nm) SELECT DISTINCT eem.exp_event_id, eem.nm FROM edit.EXP_EVENT_ASSAY_METHOD eem INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eem.exp_event_id;
Date: 2024-04-23 12:28:35 Duration: 4s240ms Bind query: yes
20 1 4s228ms 4s228ms 4s228ms 4s228ms 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 Apr 23 05 1 4s228ms 4s228ms -
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-04-23 05:48:49 Duration: 4s228ms Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 28m12s 28m12s 28m12s 1 28m12s update pub1.gene_disease gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.gene_disease_reference gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 23 13 1 28m12s 28m12s -
update pub1.GENE_DISEASE gd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.GENE_DISEASE_REFERENCE gdr where gd.gene_id = gdr.gene_id and gd.disease_id = gdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:02:31 Duration: 28m12s Bind query: yes
2 2m15s 2m15s 2m15s 1 2m15s update pub1.term set has_exposures = false;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 23 12 1 2m15s 2m15s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-23 12:31:24 Duration: 2m15s Bind query: yes
3 1m53s 1m53s 1m53s 1 1m53s update pub1.phenotype_term pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.phenotype_term_reference ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 23 13 1 1m53s 1m53s -
update pub1.PHENOTYPE_TERM pt set exposure_reference_qty = ( select count(distinct reference_id) from pub1.PHENOTYPE_TERM_REFERENCE ptr where pt.phenotype_id = ptr.phenotype_id and pt.term_id = ptr.term_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 13:04:25 Duration: 1m53s Bind query: yes
4 1m24s 1m24s 1m24s 1 1m24s update pub1.chem_disease cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.chem_disease_reference cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.reference r where has_exposures = true));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 23 12 1 1m24s 1m24s -
update pub1.CHEM_DISEASE cd set exposure_reference_qty = ( select count(distinct reference_id) from pub1.CHEM_DISEASE_REFERENCE cdr where cd.chem_id = cdr.chem_id and cd.disease_id = cdr.disease_id and reference_id in ( select id from pub1.REFERENCE r where has_exposures = true));
Date: 2024-04-23 12:34:19 Duration: 1m24s Bind query: yes
5 55s184ms 55s184ms 55s184ms 1 55s184ms update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 23 12 1 55s184ms 55s184ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-23 12:32:23 Duration: 55s184ms Bind query: yes
6 29s93ms 29s93ms 29s93ms 1 29s93ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 23 12 1 29s93ms 29s93ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-23 12:32:54 Duration: 29s93ms Bind query: yes
7 10s313ms 10s313ms 10s313ms 1 10s313ms insert into pub1.exposure (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) select e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id from edit.exposure e inner join pub1.reference r on e.reference_acc_txt = r.acc_txt and r.acc_db_cd = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 23 12 1 10s313ms 10s313ms -
INSERT INTO pub1.EXPOSURE (id, reference_id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id) SELECT e.id, r.id, reference_acc_txt, reference_acc_db_id, exp_stressor_id, exp_receptor_id, exp_event_id, exp_outcome_id FROM edit.EXPOSURE e INNER JOIN pub1.REFERENCE r ON e.reference_acc_txt = r.acc_txt AND r.acc_db_cd = 'PUBMED';
Date: 2024-04-23 12:29:09 Duration: 10s313ms Bind query: yes
8 9s537ms 9s537ms 9s537ms 1 9s537ms insert into pub1.exp_event (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) select distinct ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html from edit.exp_event ee inner join edit.exposure e on e.exp_event_id = ee.id left outer join edit.exp_marker_type emt on ee.exp_marker_type_id = emt.id left outer join pub1.term t on ee.exp_marker_acc_txt = t.acc_txt and emt.object_type_id = t.object_type_id left outer join pub1.medium m on ee.medium_id = m.id left outer join pub1.term mt on m.term_acc_txt = mt.acc_txt and m.term_object_type_id = mt.object_type_id;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 23 12 1 9s537ms 9s537ms [ User: pub1 - Total duration: 9s537ms - Times executed: 1 ]
-
INSERT INTO pub1.EXP_EVENT (exp_marker_lvl, exp_marker_lvl_range, detection_limit_uom, note, detection_freq, detection_freq_range, collection_end_yr, detection_limit_is_loq, detection_limit, detection_limit_range, assay_note, assay_measurement_stat, exp_marker_actor_form_type_id, exp_marker_acc_db_id, exp_marker_acc_txt, collection_start_yr, assay_uom, exp_marker_term_id, exp_marker_type_id, medium_id, medium_nm, medium_term_id, medium_term_acc_txt, has_locations, id, exp_marker_term_nm, exp_marker_term_nm_html) SELECT DISTINCT ee.exp_marker_lvl, ee.exp_marker_lvl_range, ee.detection_limit_uom, ee.note, ee.detection_freq, ee.detection_freq_range, ee.collection_end_yr, ee.detection_limit_is_loq, ee.detection_limit, ee.detection_limit_range, ee.assay_note, ee.assay_measurement_stat, ee.exp_marker_actor_form_type_id, ee.exp_marker_acc_db_id, ee.exp_marker_acc_txt, ee.collection_start_yr, ee.assay_uom, t.id, ee.exp_marker_type_id, ee.medium_id, m.nm, mt.id, m.term_acc_txt, ee.has_locations, ee.id, ee.exp_marker_term_nm, t.nm_html FROM edit.EXP_EVENT ee INNER JOIN edit.EXPOSURE e ON e.exp_event_id = ee.id LEFT OUTER JOIN edit.EXP_MARKER_TYPE emt ON ee.exp_marker_type_id = emt.id LEFT OUTER JOIN pub1.TERM t ON ee.exp_marker_acc_txt = t.acc_txt AND emt.object_type_id = t.object_type_id LEFT OUTER JOIN pub1.MEDIUM m ON ee.medium_id = m.id LEFT OUTER JOIN pub1.TERM mt ON m.term_acc_txt = mt.acc_txt AND m.term_object_type_id = mt.object_type_id;
Date: 2024-04-23 12:28:24 Duration: 9s537ms Database: ctddev51 User: pub1 Bind query: yes
9 8s144ms 8s144ms 8s144ms 1 8s144ms 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 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 chemterm.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 viageneptr.via_term_id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and geneterm.id in ( select baseterm.id from term baseterm where baseterm.object_type_id = ? and upper(baseterm.nm) like ?) and phenotypeterm.id = any (array ( 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 diseaseterm.id = any (array ( 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 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 #9
Day Hour Count Duration Avg duration Apr 23 05 1 8s144ms 8s144ms -
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 /* 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 chemTerm.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 viaGenePTR.via_term_id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and geneTerm.id IN ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 4 and upper(baseTerm.nm) LIKE 'BCL2') and phenotypeTerm.id = ANY (ARRAY ( 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 diseaseTerm.id = ANY (ARRAY ( 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 = 3 and upper(baseTerm.nm) LIKE 'NECROSIS'))) 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-04-23 05:49:01 Duration: 8s144ms Bind query: yes
10 6s478ms 6s478ms 6s478ms 1 6s478ms insert into pub1.exp_event_location (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) select distinct eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt from edit.exp_event_location eel inner join edit.exposure e on e.exp_event_id = eel.exp_event_id;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 23 12 1 6s478ms 6s478ms -
INSERT INTO pub1.EXP_EVENT_LOCATION (id, exp_event_id, country_id, geographic_region_id, geographic_region_nm, locality_txt) SELECT DISTINCT eel.id, eel.exp_event_id, eel.country_id, eel.geographic_region_id, eel.geographic_region_nm, eel.locality_txt FROM edit.EXP_EVENT_LOCATION eel INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eel.exp_event_id;
Date: 2024-04-23 12:28:31 Duration: 6s478ms Bind query: yes
11 5s253ms 5s253ms 5s253ms 1 5s253ms insert into pub1.exp_stressor (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) select distinct es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note from edit.exp_stressor es inner join edit.exposure e on e.exp_stressor_id = es.id left outer join pub1.term t on t.acc_txt = es.chem_acc_txt and t.object_type_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 23 12 1 5s253ms 5s253ms -
INSERT INTO pub1.EXP_STRESSOR (id, chem_id, chem_term_nm, chem_term_nm_html, chem_acc_txt, chem_acc_db_id, src_details, sample_qty, note) SELECT DISTINCT es.id, t.id, es.chem_term_nm, t.nm_html, es.chem_acc_txt, es.chem_acc_db_id, es.src_details, es.sample_qty, es.note FROM edit.EXP_STRESSOR es INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = es.id LEFT OUTER JOIN pub1.TERM t ON t.acc_txt = es.chem_acc_txt AND t.object_type_id = 2;
Date: 2024-04-23 12:28:42 Duration: 5s253ms Bind query: yes
12 4s950ms 4s950ms 4s950ms 1 4s950ms insert into pub1.exp_receptor (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) select distinct er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html from edit.exp_receptor er inner join edit.exposure e on e.exp_receptor_id = er.id inner join edit.receptor r on er.receptor_id = r.id left outer join pub1.age_uom au on er.age_uom_id = au.id left outer join pub1.age_qualifier aq on er.age_qualifier_id = aq.id left outer join pub1.gender g on er.gender_id = g.id left outer join pub1.term t on er.term_acc_txt = t.acc_txt and er.object_type_id = t.object_type_id;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 23 12 1 4s950ms 4s950ms -
INSERT INTO pub1.EXP_RECEPTOR (id, description, object_type_id, term_id, term_nm, term_nm_html, term_acc_txt, term_acc_db_id, qty, note, age, age_range, age_uom_id, age_qualifier_id, gender_id, age_uom_nm, age_qualifier_nm, gender_nm, gender_nm_html) SELECT DISTINCT er.id, r.nm, er.object_type_id, t.id, er.term_nm, t.nm_html, er.term_acc_txt, er.term_acc_db_id, er.qty, er.note, er.age, er.age_range, er.age_uom_id, er.age_qualifier_id, er.gender_id, au.nm, aq.nm, g.nm, g.nm_html FROM edit.EXP_RECEPTOR er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.id INNER JOIN edit.RECEPTOR r ON er.receptor_id = r.id LEFT OUTER JOIN pub1.AGE_UOM au ON er.age_uom_id = au.id LEFT OUTER JOIN pub1.AGE_QUALIFIER aq ON er.age_qualifier_id = aq.id LEFT OUTER JOIN pub1.GENDER g ON er.gender_id = g.id LEFT OUTER JOIN pub1.TERM t ON er.term_acc_txt = t.acc_txt AND er.object_type_id = t.object_type_id;
Date: 2024-04-23 12:28:52 Duration: 4s950ms Bind query: yes
13 4s737ms 4s737ms 4s737ms 1 4s737ms insert into pub1.exp_stressor_stressor_src (exp_stressor_id, exp_stressor_src_type_id) select distinct ess.exp_stressor_id, ess.exp_stressor_src_type_id from edit.exp_stressor_stressor_src ess inner join edit.exposure e on e.exp_stressor_id = ess.exp_stressor_id;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 23 12 1 4s737ms 4s737ms -
INSERT INTO pub1.EXP_STRESSOR_STRESSOR_SRC (exp_stressor_id, exp_stressor_src_type_id) SELECT DISTINCT ess.exp_stressor_id, ess.exp_stressor_src_type_id FROM edit.EXP_STRESSOR_STRESSOR_SRC ess INNER JOIN edit.EXPOSURE e ON e.exp_stressor_id = ess.exp_stressor_id;
Date: 2024-04-23 12:28:47 Duration: 4s737ms Bind query: yes
14 4s359ms 4s359ms 4s359ms 1 4s359ms update pub1.term set has_exposures = true where id in ( select ancestor_object_id from pub1.dag_path where descendant_object_id in ( select distinct s.chem_id from pub1.exp_stressor s union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.phenotype_id from pub1.exp_outcome e union select distinct e.disease_id from pub1.exp_outcome e union select distinct e.term_id from pub1.exp_receptor e) union select distinct e.exp_marker_term_id from pub1.exp_event e union select distinct e.term_id from pub1.exp_receptor e where object_type_id = ( select id from pub1.object_type where cd = ?));Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 23 12 1 4s359ms 4s359ms -
update pub1.TERM set has_exposures = true where id in ( select ancestor_object_id from pub1.DAG_PATH where descendant_object_id in ( select distinct s.chem_id from pub1.EXP_STRESSOR s union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e union select distinct e.phenotype_id from pub1.EXP_OUTCOME e union select distinct e.disease_id from pub1.EXP_OUTCOME e union select distinct e.term_id from pub1.EXP_RECEPTOR e) union select distinct e.exp_marker_term_id from pub1.EXP_EVENT e UNION select distinct e.term_id from pub1.EXP_RECEPTOR e where object_type_id = ( select id from pub1.OBJECT_TYPE where cd = 'gene'));
Date: 2024-04-23 12:31:28 Duration: 4s359ms Bind query: yes
15 4s342ms 4s342ms 4s342ms 1 4s342ms 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 Apr 23 05 1 4s342ms 4s342ms -
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-04-23 05:48:45 Duration: 4s342ms Bind query: yes
16 4s240ms 4s240ms 4s240ms 1 4s240ms insert into pub1.exp_event_assay_method (exp_event_id, nm) select distinct eem.exp_event_id, eem.nm from edit.exp_event_assay_method eem inner join edit.exposure e on e.exp_event_id = eem.exp_event_id;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 23 12 1 4s240ms 4s240ms -
INSERT INTO pub1.EXP_EVENT_ASSAY_METHOD (exp_event_id, nm) SELECT DISTINCT eem.exp_event_id, eem.nm FROM edit.EXP_EVENT_ASSAY_METHOD eem INNER JOIN edit.EXPOSURE e ON e.exp_event_id = eem.exp_event_id;
Date: 2024-04-23 12:28:35 Duration: 4s240ms Bind query: yes
17 4s228ms 4s228ms 4s228ms 1 4s228ms 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 #17
Day Hour Count Duration Avg duration Apr 23 05 1 4s228ms 4s228ms -
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-04-23 05:48:49 Duration: 4s228ms Bind query: yes
18 3s957ms 3s957ms 3s957ms 1 3s957ms 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 #18
Day Hour Count Duration Avg duration Apr 23 05 1 3s957ms 3s957ms [ User: pubeu - Total duration: 3s957ms - 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-04-23 05:47:20 Duration: 3s957ms Database: ctddev51 User: pubeu Bind query: yes
19 3s862ms 3s862ms 3s862ms 1 3s862ms 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 #19
Day Hour Count Duration Avg duration Apr 23 05 1 3s862ms 3s862ms -
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 = 1285538)) 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-04-23 05:48:23 Duration: 3s862ms Bind query: yes
20 1s18ms 3s466ms 2s229ms 18 40s134ms 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 Apr 23 05 2 4s452ms 2s226ms 10 2 4s452ms 2s226ms 11 10 22s363ms 2s236ms 14 4 8s866ms 2s216ms [ User: qaeu - Total duration: 20s611ms - Times executed: 6 ]
[ User: editeu - Total duration: 6s798ms - Times executed: 2 ]
[ User: pubeu - Total duration: 3s418ms - 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 = '588473' 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-04-23 11:17:14 Duration: 3s466ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:00:46 Duration: 3s449ms Database: ctddev51 User: qaeu 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 = '588473' 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-04-23 11:12:42 Duration: 3s442ms Database: ctddev51 User: qaeu 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
- 6,407 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 6 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 6 Max number of times the same event was reported
- 6 Total events found
Rank Times reported Error 1 6 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Apr 23 19 6