-
Global information
- Generated on Tue Apr 23 04:10:03 2024
- Log file: /project/archive/log/postgres/dbdev51/postgresql.log-20240422
- Parsed 13,640 log entries in 2s
- Log start from 2024-04-22 00:05:40 to 2024-04-22 23:57:53
-
Overview
Global Stats
- 38 Number of unique normalized queries
- 93 Number of queries
- 1h13m10s Total query duration
- 2024-04-22 05:45:12 First query
- 2024-04-22 16:25:11 Last query
- 1 queries/s at 2024-04-22 11:56:14 Query peak
- 1h13m10s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1h13m10s Execute total duration
- 8 Number of events
- 2 Number of unique normalized events
- 6 Max number of times the same event was reported
- 0 Number of cancellation
- 45 Total number of automatic vacuums
- 51 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 1,618 Total number of sessions
- 45 sessions at 2024-04-22 15:50:51 Session peak
- 54d14h25m14s Total duration of sessions
- 48m35s Average duration of sessions
- 0 Average queries per session
- 2s713ms Average queries duration per session
- 48m32s Average idle time per session
- 1,618 Total number of connections
- 9 connections/s at 2024-04-22 05:45:08 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-22 11:56:14 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-22 05:48:45 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2024-04-22 11:56:14 Date
Queries duration
Key values
- 1h13m10s 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 22 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 23 0ms 8s364ms 2s370ms 8s364ms 18s354ms 23s381ms 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 0 0ms 0ms 0ms 0ms 0ms 0ms 11 16 0ms 2m14s 17s351ms 36s299ms 1m24s 2m19s 12 3 0ms 27m46s 10m21s 0ms 1m52s 27m46s 13 0 0ms 0ms 0ms 0ms 0ms 0ms 14 28 0ms 3s484ms 2s212ms 4s462ms 8s738ms 8s935ms 15 21 0ms 2m34s 18s338ms 43s762ms 1m22s 2m39s 16 2 0ms 27m12s 14m33s 0ms 1m54s 27m12s 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 22 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 21 0 2s385ms 0ms 8s364ms 23s381ms 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 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 22 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 11 5 0 0 17s351ms 0ms 0ms 1m24s 12 0 3 0 0 10m21s 0ms 0ms 1m52s 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 11 6 0 0 22s132ms 0ms 0ms 1m22s 16 0 2 0 0 14m33s 0ms 0ms 1m54s 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 22 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 23 23.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 16 16.00 0.00% 12 0 3 3.00 0.00% 13 0 0 0.00 0.00% 14 0 28 28.00 0.00% 15 0 21 21.00 0.00% 16 0 2 2.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 22 00 64 0.02/s 01 64 0.02/s 02 63 0.02/s 03 63 0.02/s 04 58 0.02/s 05 69 0.02/s 06 64 0.02/s 07 63 0.02/s 08 59 0.02/s 09 62 0.02/s 10 64 0.02/s 11 72 0.02/s 12 64 0.02/s 13 66 0.02/s 14 147 0.04/s 15 78 0.02/s 16 61 0.02/s 17 57 0.02/s 18 60 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 22 00 64 30m39s 30m39s 01 64 30m38s 30m38s 02 63 30m41s 30m41s 03 63 30m39s 30m39s 04 58 30m39s 30m39s 05 69 28m18s 28m17s 06 64 30m38s 30m38s 07 63 30m39s 30m39s 08 59 30m41s 30m41s 09 62 30m39s 30m39s 10 64 30m39s 30m39s 11 65 29m44s 29m40s 12 65 30m43s 30m14s 13 66 29m44s 29m44s 14 147 3h33m21s 3h33m20s 15 77 26m2s 25m57s 16 62 30m44s 30m16s 17 57 30m42s 30m42s 18 60 30m37s 30m37s 19 64 30m41s 30m41s 20 70 1h10m26s 1h10m26s 21 64 30m38s 30m38s 22 64 30m41s 30m41s 23 64 30m40s 30m40s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2024-04-22 05:45:08 Date
Connections per database
Key values
- ctddev51 Main Database
- 1,618 connections Total
Connections per user
Key values
- editeu Main User
- 1,618 connections Total
-
Sessions
Simultaneous sessions
Key values
- 45 sessions Session Peak
- 2024-04-22 15:50:51 Date
Histogram of session times
Key values
- 1,500 1800000-3600000ms duration
Sessions per database
Key values
- ctddev51 Main Database
- 1,618 sessions Total
Sessions per user
Key values
- editeu Main User
- 1,618 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 1,618 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 1,021,823 buffers Checkpoint Peak
- 2024-04-22 16:08:29 Date
- 1619.919 seconds Highest write time
- 0.126 seconds Sync time
Checkpoints Wal files
Key values
- 539 files Wal files usage Peak
- 2024-04-22 12:01:33 Date
Checkpoints distance
Key values
- 17,243.59 Mo Distance Peak
- 2024-04-22 12:01:33 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Apr 22 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 51 5.209s 0.001s 5.225s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 2,417,607 3,239.116s 0.153s 3,265.726s 13 738,550 1,619.267s 0.002s 1,621.533s 14 40 4.2s 0.002s 4.231s 15 602,359 168.871s 0.1s 175.949s 16 2,058,650 3,118.097s 0.025s 3,137.826s 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 22 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 8 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 0 0s 0s 11 0 0 0 0 0s 0s 12 0 32 2,153 658 0.029s 0.005s 13 0 0 176 49 0.001s 0.001s 14 0 0 0 15 0.001s 0.002s 15 0 32 538 527 0.011s 0.002s 16 0 0 1,614 158 0.006s 0.003s 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 22 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 22 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 248.00 kB 1,381,359.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 8,819,438.50 kB 8,826,923.75 kB 13 3,415,579.00 kB 8,284,410.00 kB 14 53.50 kB 7,083,180.00 kB 15 4,406,378.00 kB 7,426,040.50 kB 16 8,812,213.67 kB 8,814,892.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 22 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
- 251.01 sec Highest CPU-cost vacuum
Table pub1.gene_disease
Database ctddev51 - 2024-04-22 16:27:56 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctddev51 - Date
Average Autovacuum Duration
Key values
- 251.01 sec Highest CPU-cost vacuum
Table pub1.gene_disease
Database ctddev51 - 2024-04-22 16:27:56 Date
Analyzes per table
Key values
- pub1.reference (2) Main table analyzed (database ctddev51)
- 51 analyzes Total
Table Number of analyzes ctddev51.pub1.reference 2 ctddev51.pub1.exp_event_project 2 ctddev51.pg_catalog.pg_class 2 ctddev51.pub1.exp_stressor 2 ctddev51.pub1.exp_event_location 2 ctddev51.pub1.geographic_region 2 ctddev51.pub1.exp_event 2 ctddev51.pub1.medium 2 ctddev51.pub1.exp_study_factor 2 ctddev51.pub1.country 2 ctddev51.pub1.exp_receptor 2 ctddev51.pub1.exp_event_assay_method 2 ctddev51.pub1.exp_receptor_gender 2 ctddev51.pub1.exp_stressor_stressor_src 2 ctddev51.pub1.phenotype_term 2 ctddev51.pub1.exp_anatomy 2 ctddev51.pub1.exp_receptor_tobacco_use 2 ctddev51.pub1.exposure 2 ctddev51.pub1.dag_node 2 ctddev51.pub1.term 2 ctddev51.pub1.exp_receptor_race 2 ctddev51.pub1.gene_disease 2 ctddev51.pub1.chem_disease 2 ctddev51.pub1.exp_outcome 2 ctddev51.pub1.reference_exp 2 ctddev51.pub1.race 1 Total 51 Vacuums per table
Key values
- pub1.exp_event (2) Main table vacuumed on database ctddev51
- 45 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctddev51.pub1.exp_event 2 0 24,462 0 6 0 0 12,084 2 729,740 ctddev51.pub1.exp_event_location 2 0 6,764 0 6 0 0 3,270 2 209,768 ctddev51.pub1.exp_event_project 2 0 4,026 0 6 0 0 1,968 2 132,950 ctddev51.pub1.reference 2 2 651,534 0 46 0 7,251 434,559 12,770 124,646,271 ctddev51.pub1.exp_stressor 2 0 11,889 0 6 0 0 5,894 2 364,535 ctddev51.pub1.exp_receptor_race 2 1 3,424 0 6 0 0 1,332 2 95,708 ctddev51.pub1.gene_disease 2 2 7,353,842 0 1,467,095 0 0 3,470,899 1,398,093 4,262,791,213 ctddev51.pub1.term 2 2 2,612,909 0 599,916 3 0 1,750,451 561,748 1,778,103,406 ctddev51.pub1.reference_exp 2 0 648 0 6 0 0 250 2 31,588 ctddev51.pub1.exp_outcome 2 1 1,251 0 6 0 0 502 2 47,370 ctddev51.pub1.chem_disease 2 2 667,572 0 28,543 0 0 344,015 73,016 295,337,852 ctddev51.pub1.exp_receptor_tobacco_use 2 0 2,348 0 6 0 0 1,104 2 81,974 ctddev51.pub1.exposure 2 0 7,256 0 6 0 0 3,504 2 223,574 ctddev51.pub1.dag_node 2 2 658,545 0 3,366 0 330 578,944 2,628 126,557,222 ctddev51.pub1.exp_stressor_stressor_src 2 0 5,103 0 5 0 0 2,494 2 164,015 ctddev51.pub1.exp_receptor_gender 2 1 5,933 0 6 0 0 2,647 2 172,932 ctddev51.pub1.exp_event_assay_method 2 0 9,396 0 6 0 0 4,632 2 290,126 ctddev51.pub1.exp_anatomy 2 0 314 0 6 0 0 66 2 20,732 ctddev51.pub1.phenotype_term 2 2 638,092 0 5,016 0 186,816 387,590 58,072 153,270,556 ctddev51.pub1.exp_receptor 2 0 14,406 0 6 0 0 7,156 2 438,988 ctddev51.pub1.exp_study_factor 2 0 158 0 6 0 0 22 2 18,136 ctddev51.pg_catalog.pg_class 1 1 291 0 3 0 0 121 4 29,027 ctddev51.pg_catalog.pg_statistic 1 1 632 0 94 0 0 293 75 344,002 ctddev51.pg_toast.pg_toast_2619 1 1 4,928 0 1,223 0 9,895 3,214 1,004 593,311 Total 45 18 12,685,723 48,383 2,105,391 3 204,292 7,017,011 2,107,440 6,744,694,996 Tuples removed per table
Key values
- pub1.gene_disease (65175860) Main table with removed tuples on database ctddev51
- 83441108 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctddev51.pub1.gene_disease 2 2 65,175,860 65,175,860 0 0 958,470 ctddev51.pub1.chem_disease 2 2 6,552,222 6,552,222 0 0 96,258 ctddev51.pub1.phenotype_term 2 2 6,473,114 9,799,794 0 0 363,510 ctddev51.pub1.dag_node 2 2 3,397,984 3,390,388 0 0 164,826 ctddev51.pub1.term 2 2 1,627,834 4,137,201 0 0 668,235 ctddev51.pub1.reference 2 2 209,848 408,269 0 0 170,052 ctddev51.pg_toast.pg_toast_2619 1 1 3,812 21,541 616 0 12,592 ctddev51.pg_catalog.pg_statistic 1 1 256 2,385 130 0 290 ctddev51.pg_catalog.pg_class 1 1 88 1,917 0 0 61 ctddev51.pub1.exp_event 2 0 18 411,632 0 0 12,082 ctddev51.pub1.exp_stressor 2 0 18 411,856 0 0 5,892 ctddev51.pub1.exp_outcome 2 1 18 22,300 0 0 430 ctddev51.pub1.exp_stressor_stressor_src 2 0 18 562,784 0 0 2,492 ctddev51.pub1.exp_receptor 2 0 18 378,726 0 0 7,154 ctddev51.pub1.exp_event_location 2 0 0 494,788 0 0 3,286 ctddev51.pub1.exp_event_project 2 0 0 188,512 0 0 1,966 ctddev51.pub1.exp_receptor_race 2 1 0 192,338 0 0 1,248 ctddev51.pub1.reference_exp 2 0 0 6,846 0 0 248 ctddev51.pub1.exp_receptor_tobacco_use 2 0 0 156,170 0 0 1,102 ctddev51.pub1.exposure 2 0 0 425,472 0 0 3,502 ctddev51.pub1.exp_receptor_gender 2 1 0 372,310 0 0 2,614 ctddev51.pub1.exp_event_assay_method 2 0 0 466,702 0 0 4,648 ctddev51.pub1.exp_anatomy 2 0 0 7,492 0 0 64 ctddev51.pub1.exp_study_factor 2 0 0 3,218 0 0 20 Total 45 18 83,441,108 93,590,723 746 0 2,481,042 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_event 2 0 18 0 ctddev51.pub1.exp_event_location 2 0 0 0 ctddev51.pub1.exp_event_project 2 0 0 0 ctddev51.pg_catalog.pg_class 1 1 88 0 ctddev51.pub1.reference 2 2 209848 0 ctddev51.pub1.exp_stressor 2 0 18 0 ctddev51.pub1.exp_receptor_race 2 1 0 0 ctddev51.pub1.gene_disease 2 2 65175860 0 ctddev51.pg_catalog.pg_statistic 1 1 256 0 ctddev51.pub1.term 2 2 1627834 0 ctddev51.pub1.reference_exp 2 0 0 0 ctddev51.pub1.exp_outcome 2 1 18 0 ctddev51.pub1.chem_disease 2 2 6552222 0 ctddev51.pub1.exp_receptor_tobacco_use 2 0 0 0 ctddev51.pub1.exposure 2 0 0 0 ctddev51.pub1.dag_node 2 2 3397984 0 ctddev51.pub1.exp_stressor_stressor_src 2 0 18 0 ctddev51.pub1.exp_receptor_gender 2 1 0 0 ctddev51.pub1.exp_event_assay_method 2 0 0 0 ctddev51.pub1.exp_anatomy 2 0 0 0 ctddev51.pub1.phenotype_term 2 2 6473114 0 ctddev51.pg_toast.pg_toast_2619 1 1 3812 0 ctddev51.pub1.exp_receptor 2 0 18 0 ctddev51.pub1.exp_study_factor 2 0 0 0 Total 45 18 83,441,108 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Apr 22 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 20 12 0 6 13 0 0 14 0 0 15 0 23 16 0 2 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 251.01 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
- 21 Total read queries
- 72 Total write queries
Queries by database
Key values
- unknown Main database
- 70 Requests
- 1h11m43s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 86 Requests
User Request type Count Duration editeu Total 16 54s319ms cte 16 54s319ms pub1 Total 2 18s913ms insert 2 18s913ms pubeu Total 8 25s170ms cte 2 6s741ms select 6 18s429ms unknown Total 86 1h12m21s cte 18 18s565ms insert 20 1m27s select 32 1m17s update 16 1h9m18s Duration by user
Key values
- 1h12m21s (unknown) Main time consuming user
User Request type Count Duration editeu Total 16 54s319ms cte 16 54s319ms pub1 Total 2 18s913ms insert 2 18s913ms pubeu Total 8 25s170ms cte 2 6s741ms select 6 18s429ms unknown Total 86 1h12m21s cte 18 18s565ms insert 20 1m27s select 32 1m17s update 16 1h9m18s Queries by host
Key values
- unknown Main host
- 112 Requests
- 1h14m (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 93 Requests
- 1h13m10s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-04-22 08:31:50 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 79 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 27m46s 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-22 12:29:11 - Bind query: yes ]
2 27m12s 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-22 16:23:16 - Bind query: yes ]
3 2m34s update pub1.TERM set has_exposures = false;[ Date: 2024-04-22 15:53:14 - Bind query: yes ]
4 2m14s update pub1.TERM set has_exposures = false;[ Date: 2024-04-22 11:58:29 - Bind query: yes ]
5 1m54s 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-22 16:25:11 - Bind query: yes ]
6 1m52s 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-22 12:31:04 - Bind query: yes ]
7 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-22 12:01:24 - Bind query: yes ]
8 1m21s 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-22 15:56:04 - Bind query: yes ]
9 57s799ms update pub1.DAG_NODE set has_exposures = false;[ Date: 2024-04-22 15:54:17 - Bind query: yes ]
10 53s563ms update pub1.DAG_NODE set has_exposures = false;[ Date: 2024-04-22 11:59:28 - Bind query: yes ]
11 28s783ms update pub1.REFERENCE set has_exposures = false;[ Date: 2024-04-22 11:59:59 - Bind query: yes ]
12 23s224ms update pub1.REFERENCE set has_exposures = false;[ Date: 2024-04-22 15:54:42 - Bind query: yes ]
13 10s455ms 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-22 11:56:14 - Bind query: yes ]
14 10s209ms 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-22 15:50:39 - Bind query: yes ]
15 9s474ms 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-22 15:49:55 - Database: ctddev51 - User: pub1 - Bind query: yes ]
16 9s438ms 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-22 11:55:29 - Database: ctddev51 - User: pub1 - Bind query: yes ]
17 8s364ms 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-22 05:49:01 - Bind query: yes ]
18 6s441ms 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-22 15:50:01 - Bind query: yes ]
19 6s342ms 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-22 11:55:36 - Bind query: yes ]
20 5s496ms 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-22 11:58:35 - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 54m58s 2 27m12s 27m46s 27m29s 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 22 12 1 27m46s 27m46s 16 1 27m12s 27m12s -
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-22 12:29:11 Duration: 27m46s Bind query: yes
-
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-22 16:23:16 Duration: 27m12s Bind query: yes
2 4m48s 2 2m14s 2m34s 2m24s update pub1.term set has_exposures = false;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 22 11 1 2m14s 2m14s 15 1 2m34s 2m34s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 15:53:14 Duration: 2m34s Bind query: yes
-
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 11:58:29 Duration: 2m14s Bind query: yes
3 3m47s 2 1m52s 1m54s 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 22 12 1 1m52s 1m52s 16 1 1m54s 1m54s -
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-22 16:25:11 Duration: 1m54s Bind query: yes
-
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-22 12:31:04 Duration: 1m52s Bind query: yes
4 2m46s 2 1m21s 1m24s 1m23s 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 22 12 1 1m24s 1m24s 15 1 1m21s 1m21s -
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-22 12:01:24 Duration: 1m24s Bind query: yes
-
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-22 15:56:04 Duration: 1m21s Bind query: yes
5 1m51s 2 53s563ms 57s799ms 55s681ms update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 22 11 1 53s563ms 53s563ms 15 1 57s799ms 57s799ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 15:54:17 Duration: 57s799ms Bind query: yes
-
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 11:59:28 Duration: 53s563ms Bind query: yes
6 1m15s 34 1s6ms 3s484ms 2s212ms 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 22 05 2 4s420ms 2s210ms 14 28 1m1s 2s212ms 15 4 8s850ms 2s212ms [ User: editeu - Total duration: 54s319ms - Times executed: 16 ]
[ User: pubeu - Total duration: 3s380ms - 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-22 14:21:33 Duration: 3s484ms Database: ctddev51 User: editeu 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-22 14:24:58 Duration: 3s457ms Database: ctddev51 User: editeu 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-22 14:38:05 Duration: 3s436ms Database: ctddev51 User: editeu Bind query: yes
7 52s7ms 2 23s224ms 28s783ms 26s3ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 22 11 1 28s783ms 28s783ms 15 1 23s224ms 23s224ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 11:59:59 Duration: 28s783ms Bind query: yes
-
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 15:54:42 Duration: 23s224ms Bind query: yes
8 20s664ms 2 10s209ms 10s455ms 10s332ms 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 22 11 1 10s455ms 10s455ms 15 1 10s209ms 10s209ms -
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-22 11:56:14 Duration: 10s455ms Bind query: yes
-
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-22 15:50:39 Duration: 10s209ms Bind query: yes
9 18s913ms 2 9s438ms 9s474ms 9s456ms 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 22 11 1 9s438ms 9s438ms 15 1 9s474ms 9s474ms [ User: pub1 - Total duration: 18s913ms - Times executed: 2 ]
-
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-22 15:49:55 Duration: 9s474ms Database: ctddev51 User: pub1 Bind query: yes
-
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-22 11:55:29 Duration: 9s438ms Database: ctddev51 User: pub1 Bind query: yes
10 12s783ms 2 6s342ms 6s441ms 6s391ms 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 22 11 1 6s342ms 6s342ms 15 1 6s441ms 6s441ms -
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-22 15:50:01 Duration: 6s441ms Bind query: yes
-
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-22 11:55:36 Duration: 6s342ms Bind query: yes
11 10s642ms 2 5s270ms 5s372ms 5s321ms 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 22 11 1 5s270ms 5s270ms 15 1 5s372ms 5s372ms -
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-22 15:50:12 Duration: 5s372ms Bind query: yes
-
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-22 11:55:47 Duration: 5s270ms Bind query: yes
12 10s158ms 2 4s661ms 5s496ms 5s79ms 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 #12
Day Hour Count Duration Avg duration Apr 22 11 1 5s496ms 5s496ms 15 1 4s661ms 4s661ms -
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-22 11:58:35 Duration: 5s496ms Bind query: yes
-
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-22 15:53:19 Duration: 4s661ms Bind query: yes
13 9s861ms 2 4s878ms 4s982ms 4s930ms 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 22 11 1 4s982ms 4s982ms 15 1 4s878ms 4s878ms -
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-22 11:55:57 Duration: 4s982ms Bind query: yes
-
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-22 15:50:22 Duration: 4s878ms Bind query: yes
14 9s544ms 2 4s762ms 4s781ms 4s772ms 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 22 11 1 4s762ms 4s762ms 15 1 4s781ms 4s781ms -
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-22 15:50:17 Duration: 4s781ms Bind query: yes
-
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-22 11:55:52 Duration: 4s762ms Bind query: yes
15 8s467ms 2 4s208ms 4s258ms 4s233ms 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 #15
Day Hour Count Duration Avg duration Apr 22 11 1 4s208ms 4s208ms 15 1 4s258ms 4s258ms -
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-22 15:50:05 Duration: 4s258ms Bind query: yes
-
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-22 11:55:40 Duration: 4s208ms Bind query: yes
16 8s364ms 1 8s364ms 8s364ms 8s364ms 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 #16
Day Hour Count Duration Avg duration Apr 22 05 1 8s364ms 8s364ms -
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-22 05:49:01 Duration: 8s364ms Bind query: yes
17 6s311ms 2 3s154ms 3s157ms 3s155ms insert into pub1.exp_receptor_gender (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) select distinct er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html from edit.exp_receptor_gender er inner join edit.exposure e on e.exp_receptor_id = er.exp_receptor_id inner join pub1.gender g on er.gender_id = g.id;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 22 11 1 3s154ms 3s154ms 15 1 3s157ms 3s157ms -
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 15:50:25 Duration: 3s157ms Bind query: yes
-
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 11:56:00 Duration: 3s154ms Bind query: yes
18 4s115ms 1 4s115ms 4s115ms 4s115ms 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 22 05 1 4s115ms 4s115ms -
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-22 05:48:49 Duration: 4s115ms Bind query: yes
19 4s49ms 1 4s49ms 4s49ms 4s49ms 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 #19
Day Hour Count Duration Avg duration Apr 22 05 1 4s49ms 4s49ms -
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-22 05:48:45 Duration: 4s49ms Bind query: yes
20 3s994ms 1 3s994ms 3s994ms 3s994ms 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 #20
Day Hour Count Duration Avg duration Apr 22 05 1 3s994ms 3s994ms [ User: pubeu - Total duration: 3s994ms - 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-22 05:47:20 Duration: 3s994ms Database: ctddev51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 34 1m15s 1s6ms 3s484ms 2s212ms 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 22 05 2 4s420ms 2s210ms 14 28 1m1s 2s212ms 15 4 8s850ms 2s212ms [ User: editeu - Total duration: 54s319ms - Times executed: 16 ]
[ User: pubeu - Total duration: 3s380ms - 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-22 14:21:33 Duration: 3s484ms Database: ctddev51 User: editeu 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-22 14:24:58 Duration: 3s457ms Database: ctddev51 User: editeu 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-22 14:38:05 Duration: 3s436ms Database: ctddev51 User: editeu Bind query: yes
2 3 3s203ms 1s40ms 1s108ms 1s67ms 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 #2
Day Hour Count Duration Avg duration Apr 22 05 3 3s203ms 1s67ms [ User: pubeu - Total duration: 1s108ms - Times executed: 1 ]
-
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-22 05:47:50 Duration: 1s108ms Database: ctddev51 User: pubeu 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-22 05:47:54 Duration: 1s54ms 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-22 05:47:51 Duration: 1s40ms Bind query: yes
3 2 54m58s 27m12s 27m46s 27m29s 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 #3
Day Hour Count Duration Avg duration Apr 22 12 1 27m46s 27m46s 16 1 27m12s 27m12s -
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-22 12:29:11 Duration: 27m46s Bind query: yes
-
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-22 16:23:16 Duration: 27m12s Bind query: yes
4 2 4m48s 2m14s 2m34s 2m24s update pub1.term set has_exposures = false;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 22 11 1 2m14s 2m14s 15 1 2m34s 2m34s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 15:53:14 Duration: 2m34s Bind query: yes
-
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 11:58:29 Duration: 2m14s Bind query: yes
5 2 3m47s 1m52s 1m54s 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 #5
Day Hour Count Duration Avg duration Apr 22 12 1 1m52s 1m52s 16 1 1m54s 1m54s -
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-22 16:25:11 Duration: 1m54s Bind query: yes
-
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-22 12:31:04 Duration: 1m52s Bind query: yes
6 2 2m46s 1m21s 1m24s 1m23s 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 #6
Day Hour Count Duration Avg duration Apr 22 12 1 1m24s 1m24s 15 1 1m21s 1m21s -
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-22 12:01:24 Duration: 1m24s Bind query: yes
-
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-22 15:56:04 Duration: 1m21s Bind query: yes
7 2 1m51s 53s563ms 57s799ms 55s681ms update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 22 11 1 53s563ms 53s563ms 15 1 57s799ms 57s799ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 15:54:17 Duration: 57s799ms Bind query: yes
-
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 11:59:28 Duration: 53s563ms Bind query: yes
8 2 52s7ms 23s224ms 28s783ms 26s3ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 22 11 1 28s783ms 28s783ms 15 1 23s224ms 23s224ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 11:59:59 Duration: 28s783ms Bind query: yes
-
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 15:54:42 Duration: 23s224ms Bind query: yes
9 2 20s664ms 10s209ms 10s455ms 10s332ms 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 #9
Day Hour Count Duration Avg duration Apr 22 11 1 10s455ms 10s455ms 15 1 10s209ms 10s209ms -
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-22 11:56:14 Duration: 10s455ms Bind query: yes
-
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-22 15:50:39 Duration: 10s209ms Bind query: yes
10 2 18s913ms 9s438ms 9s474ms 9s456ms 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 #10
Day Hour Count Duration Avg duration Apr 22 11 1 9s438ms 9s438ms 15 1 9s474ms 9s474ms [ User: pub1 - Total duration: 18s913ms - Times executed: 2 ]
-
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-22 15:49:55 Duration: 9s474ms Database: ctddev51 User: pub1 Bind query: yes
-
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-22 11:55:29 Duration: 9s438ms Database: ctddev51 User: pub1 Bind query: yes
11 2 12s783ms 6s342ms 6s441ms 6s391ms 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 22 11 1 6s342ms 6s342ms 15 1 6s441ms 6s441ms -
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-22 15:50:01 Duration: 6s441ms Bind query: yes
-
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-22 11:55:36 Duration: 6s342ms Bind query: yes
12 2 10s642ms 5s270ms 5s372ms 5s321ms 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 22 11 1 5s270ms 5s270ms 15 1 5s372ms 5s372ms -
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-22 15:50:12 Duration: 5s372ms Bind query: yes
-
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-22 11:55:47 Duration: 5s270ms Bind query: yes
13 2 10s158ms 4s661ms 5s496ms 5s79ms 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 #13
Day Hour Count Duration Avg duration Apr 22 11 1 5s496ms 5s496ms 15 1 4s661ms 4s661ms -
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-22 11:58:35 Duration: 5s496ms Bind query: yes
-
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-22 15:53:19 Duration: 4s661ms Bind query: yes
14 2 9s861ms 4s878ms 4s982ms 4s930ms 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 #14
Day Hour Count Duration Avg duration Apr 22 11 1 4s982ms 4s982ms 15 1 4s878ms 4s878ms -
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-22 11:55:57 Duration: 4s982ms Bind query: yes
-
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-22 15:50:22 Duration: 4s878ms Bind query: yes
15 2 9s544ms 4s762ms 4s781ms 4s772ms 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 #15
Day Hour Count Duration Avg duration Apr 22 11 1 4s762ms 4s762ms 15 1 4s781ms 4s781ms -
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-22 15:50:17 Duration: 4s781ms Bind query: yes
-
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-22 11:55:52 Duration: 4s762ms Bind query: yes
16 2 8s467ms 4s208ms 4s258ms 4s233ms 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 22 11 1 4s208ms 4s208ms 15 1 4s258ms 4s258ms -
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-22 15:50:05 Duration: 4s258ms Bind query: yes
-
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-22 11:55:40 Duration: 4s208ms Bind query: yes
17 2 6s311ms 3s154ms 3s157ms 3s155ms insert into pub1.exp_receptor_gender (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) select distinct er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html from edit.exp_receptor_gender er inner join edit.exposure e on e.exp_receptor_id = er.exp_receptor_id inner join pub1.gender g on er.gender_id = g.id;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 22 11 1 3s154ms 3s154ms 15 1 3s157ms 3s157ms -
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 15:50:25 Duration: 3s157ms Bind query: yes
-
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 11:56:00 Duration: 3s154ms Bind query: yes
18 2 3s791ms 1s888ms 1s903ms 1s895ms insert into pub1.exp_receptor_race (exp_receptor_id, race_id, race_nm, pct) select distinct err.exp_receptor_id, err.race_id, r.nm, err.pct from edit.exp_receptor_race err inner join edit.exposure e on e.exp_receptor_id = err.exp_receptor_id inner join pub1.race r on err.race_id = r.id;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 22 11 1 1s903ms 1s903ms 15 1 1s888ms 1s888ms -
INSERT INTO pub1.EXP_RECEPTOR_RACE (exp_receptor_id, race_id, race_nm, pct) SELECT DISTINCT err.exp_receptor_id, err.race_id, r.nm, err.pct FROM edit.EXP_RECEPTOR_RACE err INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = err.exp_receptor_id INNER JOIN pub1.RACE r ON err.race_id = r.id;
Date: 2024-04-22 11:56:02 Duration: 1s903ms Bind query: yes
-
INSERT INTO pub1.EXP_RECEPTOR_RACE (exp_receptor_id, race_id, race_nm, pct) SELECT DISTINCT err.exp_receptor_id, err.race_id, r.nm, err.pct FROM edit.EXP_RECEPTOR_RACE err INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = err.exp_receptor_id INNER JOIN pub1.RACE r ON err.race_id = r.id;
Date: 2024-04-22 15:50:27 Duration: 1s888ms Bind query: yes
19 2 3s569ms 1s389ms 2s179ms 1s784ms update pub1.dag_node set has_exposures = true where object_id in ( select id from pub1.term re where has_exposures is true);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 22 11 1 2s179ms 2s179ms 15 1 1s389ms 1s389ms -
update pub1.DAG_NODE set has_exposures = true where object_id in ( select id from pub1.TERM re where has_exposures is true);
Date: 2024-04-22 11:59:30 Duration: 2s179ms Bind query: yes
-
update pub1.DAG_NODE set has_exposures = true where object_id in ( select id from pub1.TERM re where has_exposures is true);
Date: 2024-04-22 15:54:18 Duration: 1s389ms Bind query: yes
20 2 3s54ms 1s505ms 1s548ms 1s527ms insert into pub1.exp_receptor_tobacco_use (exp_receptor_id, tobacco_use_id, tobacco_use_nm, pct) select distinct ert.exp_receptor_id, ert.tobacco_use_id, t.nm, ert.pct from edit.exp_receptor_tobacco_use ert inner join edit.exposure e on e.exp_receptor_id = ert.exp_receptor_id inner join pub1.tobacco_use t on ert.tobacco_use_id = t.id;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 22 11 1 1s548ms 1s548ms 15 1 1s505ms 1s505ms -
INSERT INTO pub1.EXP_RECEPTOR_TOBACCO_USE (exp_receptor_id, tobacco_use_id, tobacco_use_nm, pct) SELECT DISTINCT ert.exp_receptor_id, ert.tobacco_use_id, t.nm, ert.pct FROM edit.EXP_RECEPTOR_TOBACCO_USE ert INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = ert.exp_receptor_id INNER JOIN pub1.TOBACCO_USE t ON ert.tobacco_use_id = t.id;
Date: 2024-04-22 11:56:03 Duration: 1s548ms Bind query: yes
-
INSERT INTO pub1.EXP_RECEPTOR_TOBACCO_USE (exp_receptor_id, tobacco_use_id, tobacco_use_nm, pct) SELECT DISTINCT ert.exp_receptor_id, ert.tobacco_use_id, t.nm, ert.pct FROM edit.EXP_RECEPTOR_TOBACCO_USE ert INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = ert.exp_receptor_id INNER JOIN pub1.TOBACCO_USE t ON ert.tobacco_use_id = t.id;
Date: 2024-04-22 15:50:29 Duration: 1s505ms Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 27m12s 27m46s 27m29s 2 54m58s 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 22 12 1 27m46s 27m46s 16 1 27m12s 27m12s -
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-22 12:29:11 Duration: 27m46s Bind query: yes
-
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-22 16:23:16 Duration: 27m12s Bind query: yes
2 2m14s 2m34s 2m24s 2 4m48s update pub1.term set has_exposures = false;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 22 11 1 2m14s 2m14s 15 1 2m34s 2m34s -
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 15:53:14 Duration: 2m34s Bind query: yes
-
update pub1.TERM set has_exposures = false;
Date: 2024-04-22 11:58:29 Duration: 2m14s Bind query: yes
3 1m52s 1m54s 1m53s 2 3m47s 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 22 12 1 1m52s 1m52s 16 1 1m54s 1m54s -
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-22 16:25:11 Duration: 1m54s Bind query: yes
-
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-22 12:31:04 Duration: 1m52s Bind query: yes
4 1m21s 1m24s 1m23s 2 2m46s 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 22 12 1 1m24s 1m24s 15 1 1m21s 1m21s -
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-22 12:01:24 Duration: 1m24s Bind query: yes
-
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-22 15:56:04 Duration: 1m21s Bind query: yes
5 53s563ms 57s799ms 55s681ms 2 1m51s update pub1.dag_node set has_exposures = false;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 22 11 1 53s563ms 53s563ms 15 1 57s799ms 57s799ms -
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 15:54:17 Duration: 57s799ms Bind query: yes
-
update pub1.DAG_NODE set has_exposures = false;
Date: 2024-04-22 11:59:28 Duration: 53s563ms Bind query: yes
6 23s224ms 28s783ms 26s3ms 2 52s7ms update pub1.reference set has_exposures = false;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 22 11 1 28s783ms 28s783ms 15 1 23s224ms 23s224ms -
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 11:59:59 Duration: 28s783ms Bind query: yes
-
update pub1.REFERENCE set has_exposures = false;
Date: 2024-04-22 15:54:42 Duration: 23s224ms Bind query: yes
7 10s209ms 10s455ms 10s332ms 2 20s664ms 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 22 11 1 10s455ms 10s455ms 15 1 10s209ms 10s209ms -
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-22 11:56:14 Duration: 10s455ms Bind query: yes
-
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-22 15:50:39 Duration: 10s209ms Bind query: yes
8 9s438ms 9s474ms 9s456ms 2 18s913ms 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 22 11 1 9s438ms 9s438ms 15 1 9s474ms 9s474ms [ User: pub1 - Total duration: 18s913ms - Times executed: 2 ]
-
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-22 15:49:55 Duration: 9s474ms Database: ctddev51 User: pub1 Bind query: yes
-
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-22 11:55:29 Duration: 9s438ms Database: ctddev51 User: pub1 Bind query: yes
9 8s364ms 8s364ms 8s364ms 1 8s364ms 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 22 05 1 8s364ms 8s364ms -
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-22 05:49:01 Duration: 8s364ms Bind query: yes
10 6s342ms 6s441ms 6s391ms 2 12s783ms 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 22 11 1 6s342ms 6s342ms 15 1 6s441ms 6s441ms -
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-22 15:50:01 Duration: 6s441ms Bind query: yes
-
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-22 11:55:36 Duration: 6s342ms Bind query: yes
11 5s270ms 5s372ms 5s321ms 2 10s642ms 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 22 11 1 5s270ms 5s270ms 15 1 5s372ms 5s372ms -
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-22 15:50:12 Duration: 5s372ms Bind query: yes
-
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-22 11:55:47 Duration: 5s270ms Bind query: yes
12 4s661ms 5s496ms 5s79ms 2 10s158ms 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 #12
Day Hour Count Duration Avg duration Apr 22 11 1 5s496ms 5s496ms 15 1 4s661ms 4s661ms -
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-22 11:58:35 Duration: 5s496ms Bind query: yes
-
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-22 15:53:19 Duration: 4s661ms Bind query: yes
13 4s878ms 4s982ms 4s930ms 2 9s861ms 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 22 11 1 4s982ms 4s982ms 15 1 4s878ms 4s878ms -
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-22 11:55:57 Duration: 4s982ms Bind query: yes
-
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-22 15:50:22 Duration: 4s878ms Bind query: yes
14 4s762ms 4s781ms 4s772ms 2 9s544ms 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 22 11 1 4s762ms 4s762ms 15 1 4s781ms 4s781ms -
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-22 15:50:17 Duration: 4s781ms Bind query: yes
-
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-22 11:55:52 Duration: 4s762ms Bind query: yes
15 4s208ms 4s258ms 4s233ms 2 8s467ms 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 #15
Day Hour Count Duration Avg duration Apr 22 11 1 4s208ms 4s208ms 15 1 4s258ms 4s258ms -
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-22 15:50:05 Duration: 4s258ms Bind query: yes
-
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-22 11:55:40 Duration: 4s208ms Bind query: yes
16 4s115ms 4s115ms 4s115ms 1 4s115ms 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 #16
Day Hour Count Duration Avg duration Apr 22 05 1 4s115ms 4s115ms -
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-22 05:48:49 Duration: 4s115ms Bind query: yes
17 4s49ms 4s49ms 4s49ms 1 4s49ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and upper(baseterm.nm) like ?)) and ptr.term_object_type_id = ? and ptr.phenotype_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and taxonterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id in ( select distinct id from term baseterm where object_type_id = ? and baseterm.id in ( select object_id from db_link l where l.acc_txt = ? and l.type_cd = ? and l.object_type_id = ?))) and i.id in ( select ixn_id from ixn_axn where action_type_nm = ? and action_degree_type_nm in (...)) group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 22 05 1 4s49ms 4s49ms -
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-22 05:48:45 Duration: 4s49ms Bind query: yes
18 3s994ms 3s994ms 3s994ms 1 3s994ms 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 22 05 1 3s994ms 3s994ms [ User: pubeu - Total duration: 3s994ms - 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-22 05:47:20 Duration: 3s994ms Database: ctddev51 User: pubeu Bind query: yes
19 3s154ms 3s157ms 3s155ms 2 6s311ms insert into pub1.exp_receptor_gender (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) select distinct er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html from edit.exp_receptor_gender er inner join edit.exposure e on e.exp_receptor_id = er.exp_receptor_id inner join pub1.gender g on er.gender_id = g.id;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 22 11 1 3s154ms 3s154ms 15 1 3s157ms 3s157ms -
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 15:50:25 Duration: 3s157ms Bind query: yes
-
INSERT INTO pub1.EXP_RECEPTOR_GENDER (exp_receptor_id, gender_id, pct, gender_nm, gender_nm_html) SELECT DISTINCT er.exp_receptor_id, er.gender_id, er.pct, g.nm, g.nm_html FROM edit.EXP_RECEPTOR_GENDER er INNER JOIN edit.EXPOSURE e ON e.exp_receptor_id = er.exp_receptor_id INNER JOIN pub1.GENDER g ON er.gender_id = g.id;
Date: 2024-04-22 11:56:00 Duration: 3s154ms Bind query: yes
20 1s6ms 3s484ms 2s212ms 34 1m15s 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 22 05 2 4s420ms 2s210ms 14 28 1m1s 2s212ms 15 4 8s850ms 2s212ms [ User: editeu - Total duration: 54s319ms - Times executed: 16 ]
[ User: pubeu - Total duration: 3s380ms - 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-22 14:21:33 Duration: 3s484ms Database: ctddev51 User: editeu 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-22 14:24:58 Duration: 3s457ms Database: ctddev51 User: editeu 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-22 14:38:05 Duration: 3s436ms Database: ctddev51 User: editeu 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,746 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 8 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 6 Max number of times the same event was reported
- 8 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 22 20 6 2 2 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #2
Day Hour Count Apr 22 13 1 15 1 - ERROR: relation "reference_contact" does not exist at character 15
- ERROR: relation "reference_contact" does not exist at character 13
Statement: select * from reference_contact where create_tm > '2024-04-15' and mod_by = 'Exposure Load'
Date: 2024-04-22 13:13:29 Database: ctddev51 Application: pgAdmin 4 - CONN:7149790 User: pub1 Remote:
Statement: delete from reference_contact where create_tm > '2024-04-15' and mod_by = 'Exposure Load'
Date: 2024-04-22 15:48:21