-
Global information
- Generated on Sun Oct 20 04:15:17 2024
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20241019
- Parsed 268,074 log entries in 16s
- Log start from 2024-10-13 00:00:01 to 2024-10-19 23:59:48
-
Overview
Global Stats
- 446 Number of unique normalized queries
- 8,349 Number of queries
- 13h27m20s Total query duration
- 2024-10-13 00:00:48 First query
- 2024-10-19 23:57:40 Last query
- 4 queries/s at 2024-10-18 07:06:27 Query peak
- 13h27m20s Total query duration
- 0ms Prepare/parse total duration
- 3s604ms Bind total duration
- 13h27m16s Execute total duration
- 19 Number of events
- 5 Number of unique normalized events
- 14 Max number of times the same event was reported
- 0 Number of cancellation
- 60 Total number of automatic vacuums
- 210 Total number of automatic analyzes
- 6 Number temporary file
- 1.00 GiB Max size of temporary file
- 999.72 MiB Average size of temporary file
- 18,068 Total number of sessions
- 58 sessions at 2024-10-15 03:28:44 Session peak
- 280d10h19m8s Total duration of sessions
- 22m20s Average duration of sessions
- 0 Average queries per session
- 2s680ms Average queries duration per session
- 22m18s Average idle time per session
- 18,070 Total number of connections
- 43 connections/s at 2024-10-18 21:08:46 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 4 queries/s Query Peak
- 2024-10-18 07:06:27 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2024-10-18 07:06:27 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2024-10-13 18:05:44 Date
Queries duration
Key values
- 13h27m20s 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) Oct 13 00 27 0ms 17m3s 39s420ms 2s976ms 4s461ms 17m8s 01 19 0ms 3m41s 13s47ms 1s414ms 1s416ms 3m45s 02 20 0ms 4s281ms 2s192ms 4s72ms 4s166ms 5s414ms 03 25 0ms 5s278ms 1s642ms 2s371ms 2s830ms 11s911ms 04 23 0ms 3s878ms 1s402ms 2s295ms 2s833ms 3s878ms 05 73 0ms 6s701ms 2s220ms 8s450ms 16s624ms 31s156ms 06 38 0ms 34s411ms 4s46ms 6s402ms 11s352ms 54s527ms 07 26 0ms 5s157ms 1s561ms 2s612ms 4s224ms 6s567ms 08 22 0ms 4s354ms 1s578ms 2s441ms 3s385ms 4s354ms 09 50 0ms 6s857ms 1s581ms 3s830ms 7s382ms 13s219ms 10 62 0ms 34s422ms 4s292ms 17s537ms 23s733ms 42s810ms 11 94 0ms 10s735ms 1s754ms 8s118ms 10s182ms 16s793ms 12 46 0ms 4s27ms 1s589ms 5s510ms 6s190ms 8s901ms 13 23 0ms 5s193ms 1s673ms 2s905ms 4s43ms 6s581ms 14 23 0ms 34s324ms 5s635ms 5s207ms 42s731ms 54s648ms 15 36 0ms 10s162ms 1s630ms 3s577ms 4s110ms 11s570ms 16 76 0ms 4s73ms 1s686ms 7s652ms 11s45ms 15s427ms 17 24 0ms 9s85ms 3s145ms 3s853ms 8s103ms 35s674ms 18 33 0ms 34s381ms 4s260ms 3s769ms 9s652ms 55s709ms 19 26 0ms 10s991ms 2s420ms 3s26ms 8s468ms 10s991ms 20 37 0ms 5s294ms 1s576ms 3s830ms 5s294ms 7s84ms 21 30 0ms 33s261ms 2s755ms 2s260ms 8s129ms 36s105ms 22 65 0ms 17s758ms 2s302ms 5s796ms 17s255ms 25s14ms 23 29 0ms 4s191ms 1s520ms 2s931ms 4s191ms 7s162ms Oct 14 00 32 0ms 17m4s 35s747ms 13s591ms 50s352ms 17m11s 01 52 0ms 5s409ms 1s705ms 5s409ms 7s68ms 9s379ms 02 47 0ms 17s437ms 4s542ms 14s860ms 19s397ms 28s731ms 03 44 0ms 13s435ms 2s791ms 5s242ms 11s848ms 36s583ms 04 46 0ms 12s971ms 1s974ms 5s881ms 7s174ms 14s348ms 05 88 0ms 15s217ms 2s470ms 14s903ms 15s217ms 30s61ms 06 46 0ms 4m5s 9s457ms 13s654ms 42s799ms 4m5s 07 31 0ms 5s267ms 2s124ms 4s113ms 5s189ms 5s267ms 08 45 0ms 10s615ms 1s972ms 5s132ms 7s981ms 10s615ms 09 42 0ms 16s967ms 1s896ms 4s448ms 5s223ms 16s967ms 10 48 0ms 4m17s 9s897ms 16s74ms 42s923ms 4m20s 11 23 0ms 4s172ms 1s717ms 2s561ms 3s892ms 5s364ms 12 35 0ms 14s188ms 2s81ms 2s762ms 5s909ms 15s468ms 13 29 0ms 13s34ms 2s211ms 3s475ms 5s843ms 16s314ms 14 55 0ms 34s439ms 4s 12s697ms 18s790ms 54s637ms 15 34 0ms 1m6s 15s116ms 46s800ms 1m6s 1m7s 16 48 0ms 4m18s 7s16ms 5s29ms 6s510ms 4m21s 17 31 0ms 5s444ms 1s931ms 3s898ms 6s422ms 16s416ms 18 38 0ms 34s371ms 4s845ms 11s702ms 17s396ms 54s501ms 19 47 0ms 5s340ms 1s560ms 4s614ms 7s354ms 7s900ms 20 42 0ms 1s935ms 1s341ms 4s391ms 5s562ms 9s367ms 21 29 0ms 2s664ms 1s465ms 2s664ms 3s730ms 4s104ms 22 31 0ms 32s933ms 3s681ms 4s446ms 20s339ms 32s933ms 23 39 0ms 5s603ms 1s811ms 4s352ms 6s544ms 7s495ms Oct 15 00 28 0ms 17m6s 38s827ms 3s937ms 5s184ms 17m15s 01 54 0ms 14s441ms 2s220ms 5s549ms 10s810ms 17s663ms 02 45 0ms 17s551ms 2s233ms 3s965ms 5s215ms 18s734ms 03 60 0ms 6s782ms 1s930ms 5s656ms 7s319ms 8s145ms 04 59 0ms 6s269ms 2s28ms 6s629ms 8s499ms 9s304ms 05 101 0ms 6s699ms 1s901ms 5s812ms 16s530ms 30s130ms 06 66 0ms 34s436ms 3s83ms 4s969ms 13s687ms 55s951ms 07 48 0ms 12s836ms 2s249ms 2s963ms 15s590ms 19s743ms 08 59 0ms 6s442ms 1s942ms 7s82ms 9s789ms 25s739ms 09 26 0ms 13s509ms 2s381ms 4s111ms 6s558ms 14s959ms 10 37 0ms 34s350ms 4s240ms 6s935ms 10s902ms 56s98ms 11 53 0ms 15s82ms 2s206ms 8s547ms 10s823ms 15s82ms 12 66 0ms 2m23s 5s26ms 10s114ms 42s799ms 2m23s 13 60 0ms 2m7s 4s400ms 6s683ms 14s581ms 2m7s 14 77 0ms 34s496ms 3s102ms 13s291ms 26s365ms 1m 15 41 0ms 6s484ms 2s820ms 6s622ms 7s917ms 36s943ms 16 40 0ms 21m28s 34s606ms 5s238ms 16s438ms 21m28s 17 69 0ms 17s413ms 3s29ms 17s390ms 19s324ms 28s237ms 18 40 0ms 34s369ms 3s794ms 3s979ms 9s658ms 54s837ms 19 52 0ms 10s827ms 1s737ms 8s605ms 9s855ms 10s827ms 20 52 0ms 17s333ms 2s671ms 8s983ms 15s92ms 34s309ms 21 37 0ms 11s340ms 2s635ms 5s803ms 14s350ms 25s210ms 22 30 0ms 5s84ms 1s645ms 3s772ms 5s84ms 5s221ms 23 27 0ms 3s994ms 1s419ms 1s440ms 2s313ms 6s223ms Oct 16 00 43 0ms 17m6s 25s613ms 3s778ms 10s195ms 17m15s 01 55 0ms 15s467ms 1s975ms 5s865ms 7s396ms 16s623ms 02 26 0ms 15s219ms 2s206ms 2s975ms 5s340ms 16s410ms 03 39 0ms 24s584ms 2s747ms 6s431ms 9s436ms 25s785ms 04 39 0ms 9s136ms 2s602ms 3s309ms 8s546ms 48s860ms 05 101 0ms 11s867ms 2s178ms 16s218ms 18s613ms 39s894ms 06 67 0ms 34s395ms 3s254ms 7s67ms 10s988ms 1m5s 07 26 0ms 13s212ms 2s761ms 5s141ms 8s829ms 14s347ms 08 44 0ms 17s218ms 2s495ms 6s641ms 12s458ms 19s131ms 09 50 0ms 3s901ms 1s557ms 3s846ms 7s239ms 8s635ms 10 60 0ms 34s275ms 3s53ms 6s887ms 13s547ms 54s640ms 11 79 0ms 6s480ms 2s975ms 24s505ms 26s6ms 37s702ms 12 57 0ms 1m7s 3s17ms 6s942ms 8s874ms 1m10s 13 48 0ms 4s40ms 1s502ms 5s328ms 5s767ms 8s342ms 14 80 0ms 34s363ms 3s62ms 12s948ms 24s708ms 56s213ms 15 52 0ms 4s119ms 1s449ms 2s746ms 6s920ms 7s104ms 16 55 0ms 6s585ms 1s576ms 3s484ms 7s998ms 10s775ms 17 38 0ms 10m51s 35s534ms 4s637ms 9s17ms 10m51s 18 30 0ms 34s416ms 4s453ms 5s990ms 42s902ms 54s676ms 19 60 0ms 10s423ms 1s436ms 3s967ms 4s808ms 13s251ms 20 58 0ms 8s906ms 2s1ms 2s815ms 5s950ms 43s294ms 21 87 0ms 11s857ms 1s839ms 7s994ms 12s266ms 33s499ms 22 74 0ms 10s497ms 1s736ms 6s617ms 8s856ms 10s497ms 23 41 0ms 21s266ms 2s172ms 5s133ms 6s37ms 27s609ms Oct 17 00 67 0ms 17m7s 23s942ms 9s940ms 3m57s 17m16s 01 85 0ms 22s688ms 3s251ms 11s240ms 25s289ms 1m6s 02 49 0ms 14s525ms 2s806ms 9s569ms 14s525ms 16s594ms 03 68 0ms 11s342ms 2s894ms 9s368ms 20s172ms 27s5ms 04 118 0ms 7s309ms 1s459ms 11s210ms 18s507ms 23s539ms 05 152 0ms 11s930ms 4s61ms 26s24ms 30s562ms 40s970ms 06 32 0ms 34s391ms 5s82ms 7s278ms 13s777ms 47s756ms 07 59 0ms 17s548ms 3s665ms 15s7ms 17s388ms 18s573ms 08 47 0ms 3m54s 12s131ms 10s646ms 41s393ms 4m 09 60 0ms 17s319ms 2s120ms 10s938ms 14s454ms 20s516ms 10 43 0ms 34s314ms 3s861ms 6s238ms 17s170ms 48s60ms 11 32 0ms 15s422ms 2s289ms 2s609ms 5s300ms 17s781ms 12 36 0ms 17s583ms 2s682ms 7s555ms 12s695ms 17s583ms 13 64 0ms 17s244ms 2s702ms 10s513ms 15s280ms 26s88ms 14 43 0ms 34s617ms 4s377ms 11s988ms 17s490ms 54s567ms 15 36 0ms 1m16s 4s354ms 3s658ms 15s385ms 1m16s 16 51 0ms 6s433ms 2s81ms 5s141ms 9s815ms 30s331ms 17 51 0ms 4s83ms 1s524ms 4s83ms 6s944ms 9s271ms 18 43 0ms 34s346ms 4s228ms 9s673ms 24s713ms 55s996ms 19 55 0ms 1m 2s841ms 5s134ms 10s243ms 1m9s 20 38 0ms 4s68ms 1s270ms 3s464ms 3s549ms 4s875ms 21 29 0ms 45s550ms 3s333ms 3s33ms 4s192ms 45s550ms 22 33 0ms 5s296ms 1s716ms 3s910ms 5s296ms 9s903ms 23 33 0ms 3s815ms 1s336ms 2s772ms 3s989ms 5s814ms Oct 18 00 57 0ms 17m43s 20s222ms 5s149ms 8s832ms 17m48s 01 50 0ms 6s162ms 2s46ms 7s428ms 8s746ms 13s114ms 02 67 0ms 4s167ms 1s981ms 5s35ms 10s610ms 18s347ms 03 55 0ms 5s724ms 2s133ms 5s383ms 7s285ms 9s557ms 04 75 0ms 1m1s 2s926ms 7s555ms 9s294ms 1m1s 05 113 0ms 6s677ms 2s501ms 11s590ms 22s871ms 35s125ms 06 46 0ms 34s462ms 4s395ms 8s418ms 16s864ms 58s571ms 07 41 0ms 1m2s 3s394ms 4s573ms 11s125ms 1m2s 08 81 0ms 5s398ms 1s733ms 8s962ms 12s533ms 16s353ms 09 58 0ms 6s454ms 2s472ms 5s620ms 13s188ms 38s506ms 10 44 0ms 57s238ms 5s176ms 9s653ms 40s453ms 57s238ms 11 57 0ms 18s58ms 2s25ms 7s565ms 9s204ms 25s640ms 12 48 0ms 5s331ms 1s478ms 5s331ms 6s943ms 7s191ms 13 56 0ms 10s978ms 1s603ms 5s716ms 7s323ms 12s290ms 14 48 0ms 2h59m39s 3m48s 9s705ms 44s119ms 2h59m39s 15 52 0ms 6s721ms 1s789ms 7s360ms 7s799ms 14s86ms 16 36 0ms 3s862ms 1s457ms 3s391ms 5s110ms 9s4ms 17 46 0ms 10s347ms 1s570ms 5s230ms 5s688ms 13s835ms 18 34 0ms 34s533ms 4s40ms 3s521ms 9s663ms 54s540ms 19 40 0ms 11s662ms 1s704ms 3s401ms 5s717ms 12s799ms 20 54 0ms 18s596ms 2s833ms 8s262ms 17s432ms 33s281ms 21 64 0ms 1m 2s393ms 4s164ms 6s731ms 1m 22 67 0ms 11s34ms 1s454ms 4s408ms 8s515ms 11s34ms 23 63 0ms 10s909ms 2s118ms 5s822ms 13s296ms 36s565ms Oct 19 00 72 0ms 17m42s 16s138ms 4s641ms 5s741ms 17m52s 01 57 0ms 4s616ms 1s664ms 5s856ms 8s650ms 16s164ms 02 41 0ms 17s490ms 2s288ms 5s853ms 10s709ms 18s678ms 03 42 0ms 3s833ms 1s441ms 3s764ms 4s855ms 6s180ms 04 63 0ms 20s870ms 2s926ms 6s145ms 21s250ms 44s357ms 05 74 0ms 7s90ms 2s563ms 15s335ms 25s438ms 30s418ms 06 39 0ms 20s283ms 1s944ms 3s759ms 7s947ms 22s651ms 07 56 0ms 10s286ms 1s887ms 5s159ms 8s624ms 10s286ms 08 42 0ms 17s220ms 2s423ms 5s442ms 11s536ms 17s220ms 09 51 0ms 14s928ms 2s481ms 7s376ms 12s489ms 15s104ms 10 114 0ms 16s433ms 1s838ms 15s760ms 21s161ms 29s583ms 11 36 0ms 1m13s 3s455ms 2s587ms 8s145ms 1m18s 12 33 0ms 4s56ms 1s392ms 2s317ms 3s442ms 9s154ms 13 47 0ms 10s978ms 1s812ms 4s932ms 7s489ms 12s106ms 14 33 0ms 17s850ms 2s215ms 5s497ms 8s284ms 20s429ms 15 44 0ms 10s256ms 1s598ms 3s886ms 5s810ms 13s696ms 16 25 0ms 4s67ms 1s371ms 2s560ms 2s617ms 4s67ms 17 39 0ms 5s224ms 1s423ms 2s510ms 3s651ms 7s471ms 18 65 0ms 1m11s 7s480ms 57s904ms 1m4s 1m21s 19 112 0ms 23m42s 44s354ms 1m48s 7m19s 23m48s 20 22 0ms 10s885ms 1s707ms 2s335ms 2s820ms 12s16ms 21 29 0ms 2s49ms 1s270ms 1s426ms 2s558ms 5s967ms 22 45 0ms 3s984ms 1s303ms 3s525ms 5s185ms 7s126ms 23 27 0ms 11s714ms 1s736ms 2s408ms 3s689ms 12s907ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 13 00 26 0 40s740ms 1s425ms 2s976ms 17m3s 01 19 0 13s47ms 1s404ms 1s414ms 3m45s 02 20 0 2s192ms 2s389ms 4s72ms 5s414ms 03 25 0 1s642ms 1s408ms 2s371ms 11s911ms 04 23 0 1s402ms 1s407ms 2s295ms 3s755ms 05 68 0 2s226ms 3s229ms 8s450ms 31s156ms 06 28 10 4s46ms 2s412ms 6s402ms 54s527ms 07 26 0 1s561ms 1s409ms 2s612ms 6s567ms 08 22 0 1s578ms 1s426ms 2s441ms 4s354ms 09 50 0 1s581ms 2s384ms 3s830ms 13s219ms 10 52 10 4s292ms 5s827ms 17s537ms 40s394ms 11 94 0 1s754ms 5s605ms 8s118ms 10s322ms 12 46 0 1s589ms 2s311ms 5s510ms 8s901ms 13 23 0 1s673ms 1s498ms 2s905ms 6s581ms 14 13 10 5s635ms 2s529ms 5s207ms 54s648ms 15 36 0 1s630ms 1s620ms 3s577ms 11s570ms 16 76 0 1s686ms 4s425ms 7s652ms 11s774ms 17 24 0 3s145ms 1s417ms 3s853ms 35s674ms 18 23 10 4s260ms 1s931ms 3s769ms 54s516ms 19 26 0 2s420ms 1s414ms 3s26ms 10s991ms 20 37 0 1s576ms 1s964ms 3s830ms 7s84ms 21 30 0 2s755ms 1s418ms 2s260ms 36s105ms 22 64 0 2s307ms 2s758ms 5s796ms 17s758ms 23 29 0 1s520ms 1s419ms 2s931ms 7s162ms Oct 14 00 31 0 36s731ms 1s409ms 13s591ms 17m6s 01 52 0 1s705ms 3s956ms 5s409ms 9s379ms 02 47 0 4s542ms 4s859ms 14s860ms 22s524ms 03 44 0 2s791ms 2s529ms 5s242ms 13s435ms 04 46 0 1s974ms 3s379ms 5s881ms 14s348ms 05 84 0 2s483ms 6s770ms 14s903ms 30s61ms 06 36 10 9s457ms 3s600ms 11s61ms 54s835ms 07 31 0 2s124ms 2s553ms 4s113ms 5s215ms 08 45 0 1s972ms 3s187ms 5s132ms 10s615ms 09 42 0 1s896ms 2s582ms 4s448ms 16s967ms 10 38 10 9s897ms 2s740ms 16s74ms 54s682ms 11 23 0 1s717ms 1s419ms 2s561ms 5s364ms 12 35 0 2s81ms 1s412ms 2s762ms 6s408ms 13 29 0 2s211ms 1s416ms 3s475ms 13s34ms 14 45 10 4s 3s766ms 12s697ms 54s637ms 15 34 0 15s116ms 32s402ms 46s800ms 1m7s 16 48 0 7s16ms 2s764ms 5s29ms 8s622ms 17 31 0 1s931ms 1s420ms 3s898ms 16s416ms 18 28 10 4s845ms 1s919ms 11s702ms 42s812ms 19 47 0 1s560ms 3s24ms 4s614ms 7s900ms 20 42 0 1s341ms 1s417ms 4s391ms 9s367ms 21 29 0 1s465ms 1s417ms 2s664ms 4s104ms 22 31 0 3s681ms 1s421ms 4s446ms 21s496ms 23 39 0 1s811ms 2s648ms 4s352ms 6s761ms Oct 15 00 27 0 40s77ms 1s405ms 3s937ms 13s105ms 01 54 0 2s220ms 3s888ms 5s549ms 14s441ms 02 44 0 2s240ms 2s831ms 3s965ms 18s734ms 03 60 0 1s930ms 3s873ms 5s656ms 7s679ms 04 59 0 2s28ms 3s900ms 6s629ms 8s850ms 05 97 0 1s889ms 2s861ms 5s256ms 28s933ms 06 56 10 3s83ms 2s819ms 4s969ms 42s894ms 07 48 0 2s249ms 2s563ms 2s963ms 19s474ms 08 59 0 1s942ms 4s236ms 7s82ms 12s785ms 09 26 0 2s381ms 2s543ms 4s111ms 14s959ms 10 27 10 4s240ms 1s511ms 6s935ms 42s753ms 11 53 0 2s206ms 5s116ms 8s547ms 15s82ms 12 66 0 5s26ms 5s857ms 10s114ms 2m23s 13 60 0 4s400ms 3s106ms 6s683ms 43s42ms 14 65 10 3s125ms 4s860ms 13s291ms 54s685ms 15 41 0 2s820ms 1s705ms 6s622ms 36s943ms 16 40 0 34s606ms 3s963ms 5s238ms 21m28s 17 67 0 3s52ms 7s175ms 17s390ms 28s237ms 18 30 10 3s794ms 2s224ms 3s979ms 54s837ms 19 52 0 1s737ms 2s544ms 8s605ms 10s827ms 20 52 0 2s671ms 3s846ms 8s983ms 34s309ms 21 36 0 2s658ms 2s575ms 5s803ms 25s210ms 22 30 0 1s645ms 2s563ms 3s772ms 5s221ms 23 27 0 1s419ms 1s414ms 1s440ms 6s223ms Oct 16 00 42 0 26s101ms 1s774ms 3s778ms 17m10s 01 54 0 1s977ms 3s807ms 5s865ms 16s623ms 02 26 0 2s206ms 1s419ms 2s975ms 16s410ms 03 38 0 2s769ms 2s623ms 6s431ms 25s785ms 04 38 0 2s607ms 1s414ms 3s309ms 48s860ms 05 97 0 2s177ms 6s905ms 16s218ms 39s894ms 06 57 10 3s254ms 5s157ms 8s556ms 42s834ms 07 26 0 2s761ms 1s706ms 5s141ms 11s39ms 08 44 0 2s495ms 2s594ms 6s641ms 17s218ms 09 49 0 1s521ms 2s584ms 3s846ms 8s635ms 10 51 9 3s53ms 3s781ms 6s887ms 34s275ms 11 79 0 2s975ms 5s578ms 24s505ms 37s702ms 12 56 0 3s37ms 3s805ms 6s942ms 1m10s 13 48 0 1s502ms 3s33ms 5s328ms 8s342ms 14 70 10 3s62ms 5s124ms 12s740ms 54s810ms 15 50 0 1s428ms 2s327ms 2s746ms 7s87ms 16 55 0 1s576ms 2s481ms 3s484ms 10s197ms 17 38 0 35s534ms 2s339ms 4s637ms 10m51s 18 20 10 4s453ms 1s549ms 5s990ms 54s676ms 19 60 0 1s436ms 2s818ms 3s967ms 13s251ms 20 58 0 2s1ms 2s529ms 2s815ms 7s685ms 21 87 0 1s839ms 4s726ms 7s994ms 13s995ms 22 74 0 1s736ms 5s61ms 6s617ms 9s463ms 23 41 0 2s172ms 2s330ms 5s133ms 27s609ms Oct 17 00 66 0 24s226ms 3s737ms 9s940ms 17m11s 01 85 0 3s251ms 5s255ms 11s240ms 51s685ms 02 49 0 2s806ms 3s737ms 9s569ms 14s804ms 03 68 0 2s894ms 5s796ms 9s368ms 22s902ms 04 118 0 1s459ms 5s141ms 11s210ms 23s539ms 05 148 0 4s111ms 17s187ms 26s24ms 32s734ms 06 23 9 5s82ms 3s885ms 7s278ms 42s870ms 07 59 0 3s665ms 6s122ms 15s7ms 18s181ms 08 44 0 12s814ms 2s41ms 10s646ms 4m 09 59 0 2s124ms 3s568ms 10s938ms 20s516ms 10 34 9 3s861ms 2s879ms 6s430ms 42s765ms 11 32 0 2s289ms 2s189ms 2s609ms 17s781ms 12 36 0 2s682ms 2s267ms 7s555ms 17s583ms 13 63 0 2s694ms 9s82ms 10s513ms 26s88ms 14 33 10 4s377ms 2s510ms 9s677ms 54s567ms 15 36 0 4s354ms 2s480ms 3s658ms 1m16s 16 50 0 2s75ms 2s554ms 5s113ms 30s331ms 17 51 0 1s524ms 2s837ms 4s83ms 9s271ms 18 33 10 4s228ms 1s768ms 9s673ms 54s584ms 19 55 0 2s841ms 2s562ms 5s134ms 11s585ms 20 38 0 1s270ms 2s283ms 3s464ms 4s875ms 21 29 0 3s333ms 1s411ms 3s33ms 45s550ms 22 33 0 1s716ms 2s378ms 3s910ms 9s903ms 23 33 0 1s336ms 1s411ms 2s772ms 5s814ms Oct 18 00 56 0 20s493ms 3s193ms 5s149ms 17m43s 01 49 0 2s50ms 5s287ms 7s428ms 13s114ms 02 67 0 1s981ms 3s918ms 5s35ms 12s504ms 03 55 0 2s133ms 5s92ms 5s383ms 9s557ms 04 75 0 2s926ms 5s264ms 7s555ms 1m1s 05 109 0 2s513ms 7s662ms 10s9ms 27s717ms 06 36 10 4s395ms 4s20ms 8s418ms 42s943ms 07 40 0 3s394ms 1s421ms 4s573ms 1m2s 08 81 0 1s733ms 4s639ms 8s962ms 14s854ms 09 58 0 2s472ms 3s399ms 5s620ms 19s230ms 10 35 9 5s176ms 2s969ms 9s653ms 42s949ms 11 57 0 2s25ms 3s301ms 7s565ms 9s330ms 12 48 0 1s478ms 3s381ms 5s331ms 7s191ms 13 56 0 1s603ms 3s 5s716ms 10s860ms 14 36 10 3m57s 2s272ms 9s705ms 2h59m39s 15 52 0 1s789ms 3s460ms 7s360ms 14s86ms 16 36 0 1s457ms 2s185ms 3s391ms 9s4ms 17 46 0 1s570ms 2s447ms 5s230ms 13s835ms 18 24 10 4s40ms 1s421ms 3s521ms 54s540ms 19 40 0 1s704ms 2s300ms 3s401ms 12s799ms 20 54 0 2s833ms 3s581ms 8s262ms 33s281ms 21 64 0 2s393ms 3s801ms 4s164ms 7s136ms 22 67 0 1s454ms 2s945ms 4s408ms 10s290ms 23 63 0 2s118ms 3s531ms 5s822ms 36s565ms Oct 19 00 71 0 16s294ms 2s819ms 4s641ms 8s703ms 01 57 0 1s664ms 3s584ms 5s856ms 16s164ms 02 41 0 2s288ms 2s563ms 5s853ms 18s678ms 03 42 0 1s441ms 2s334ms 3s764ms 6s180ms 04 63 0 2s926ms 4s872ms 6s145ms 24s403ms 05 70 0 2s584ms 3s861ms 15s335ms 30s418ms 06 38 0 1s945ms 1s424ms 3s759ms 22s651ms 07 55 0 1s863ms 3s928ms 5s159ms 10s286ms 08 42 0 2s423ms 3s148ms 5s442ms 17s220ms 09 51 0 2s481ms 3s993ms 7s376ms 15s104ms 10 114 0 1s838ms 6s448ms 15s760ms 29s583ms 11 36 0 3s455ms 1s925ms 2s587ms 1m18s 12 33 0 1s392ms 1s580ms 2s317ms 9s154ms 13 47 0 1s812ms 2s311ms 4s932ms 11s680ms 14 33 0 2s215ms 1s754ms 5s497ms 20s429ms 15 44 0 1s598ms 2s452ms 3s886ms 13s696ms 16 25 0 1s371ms 1s410ms 2s560ms 4s67ms 17 39 0 1s423ms 2s350ms 2s510ms 7s471ms 18 40 25 7s480ms 5s673ms 54s590ms 1m11s 19 64 48 44s354ms 1m10s 1m45s 23m44s 20 22 0 1s707ms 1s410ms 2s335ms 12s16ms 21 29 0 1s270ms 1s399ms 1s426ms 5s967ms 22 45 0 1s303ms 2s387ms 3s525ms 7s126ms 23 27 0 1s736ms 1s407ms 2s408ms 12s907ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 13 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 14 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 15 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 16 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 17 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 18 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Oct 19 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 13 00 0 26 26.00 0.00% 01 0 19 19.00 0.00% 02 0 20 20.00 0.00% 03 0 25 25.00 0.00% 04 0 23 23.00 0.00% 05 0 73 73.00 0.00% 06 0 28 28.00 0.00% 07 0 27 27.00 0.00% 08 0 26 26.00 0.00% 09 0 50 50.00 0.00% 10 0 52 52.00 0.00% 11 0 94 94.00 0.00% 12 0 46 46.00 0.00% 13 0 23 23.00 0.00% 14 0 13 13.00 0.00% 15 0 36 36.00 0.00% 16 0 76 76.00 0.00% 17 0 24 24.00 0.00% 18 0 23 23.00 0.00% 19 0 26 26.00 0.00% 20 0 37 37.00 0.00% 21 0 30 30.00 0.00% 22 0 65 65.00 0.00% 23 0 29 29.00 0.00% Oct 14 00 0 30 30.00 0.00% 01 0 52 52.00 0.00% 02 0 47 47.00 0.00% 03 0 44 44.00 0.00% 04 0 46 46.00 0.00% 05 0 88 88.00 0.00% 06 0 38 38.00 0.00% 07 0 43 43.00 0.00% 08 0 45 45.00 0.00% 09 0 42 42.00 0.00% 10 0 42 42.00 0.00% 11 0 26 26.00 0.00% 12 0 37 37.00 0.00% 13 0 30 30.00 0.00% 14 0 46 46.00 0.00% 15 0 35 35.00 0.00% 16 0 50 50.00 0.00% 17 0 31 31.00 0.00% 18 0 28 28.00 0.00% 19 0 47 47.00 0.00% 20 0 42 42.00 0.00% 21 0 29 29.00 0.00% 22 0 32 32.00 0.00% 23 0 39 39.00 0.00% Oct 15 00 0 27 27.00 0.00% 01 0 54 54.00 0.00% 02 0 45 45.00 0.00% 03 0 60 60.00 0.00% 04 0 59 59.00 0.00% 05 0 101 101.00 0.00% 06 0 56 56.00 0.00% 07 0 58 58.00 0.00% 08 0 61 61.00 0.00% 09 0 26 26.00 0.00% 10 0 28 28.00 0.00% 11 0 55 55.00 0.00% 12 0 66 66.00 0.00% 13 0 61 61.00 0.00% 14 0 67 67.00 0.00% 15 0 41 41.00 0.00% 16 0 40 40.00 0.00% 17 0 69 69.00 0.00% 18 0 30 30.00 0.00% 19 0 52 52.00 0.00% 20 0 52 52.00 0.00% 21 0 37 37.00 0.00% 22 0 30 30.00 0.00% 23 0 27 27.00 0.00% Oct 16 00 0 41 41.00 0.00% 01 0 55 55.00 0.00% 02 0 26 26.00 0.00% 03 0 39 39.00 0.00% 04 0 39 39.00 0.00% 05 0 101 101.00 0.00% 06 0 69 69.00 0.00% 07 0 32 32.00 0.00% 08 0 49 49.00 0.00% 09 0 52 52.00 0.00% 10 0 56 56.00 0.00% 11 0 80 80.00 0.00% 12 0 58 58.00 0.00% 13 0 48 48.00 0.00% 14 0 70 70.00 0.00% 15 0 56 56.00 0.00% 16 0 67 67.00 0.00% 17 0 39 39.00 0.00% 18 0 20 20.00 0.00% 19 0 60 60.00 0.00% 20 0 58 58.00 0.00% 21 0 88 88.00 0.00% 22 0 74 74.00 0.00% 23 0 41 41.00 0.00% Oct 17 00 0 66 66.00 0.00% 01 0 85 85.00 0.00% 02 0 49 49.00 0.00% 03 0 68 68.00 0.00% 04 0 118 118.00 0.00% 05 0 158 158.00 0.00% 06 0 30 30.00 0.00% 07 0 60 60.00 0.00% 08 0 48 48.00 0.00% 09 0 60 60.00 0.00% 10 0 44 44.00 0.00% 11 0 35 35.00 0.00% 12 0 36 36.00 0.00% 13 0 64 64.00 0.00% 14 0 34 34.00 0.00% 15 0 36 36.00 0.00% 16 0 51 51.00 0.00% 17 0 51 51.00 0.00% 18 0 33 33.00 0.00% 19 0 55 55.00 0.00% 20 0 38 38.00 0.00% 21 0 29 29.00 0.00% 22 0 33 33.00 0.00% 23 0 33 33.00 0.00% Oct 18 00 0 56 56.00 0.00% 01 0 50 50.00 0.00% 02 0 67 67.00 0.00% 03 0 55 55.00 0.00% 04 0 75 75.00 0.00% 05 0 113 113.00 0.00% 06 0 40 40.00 0.00% 07 0 51 51.00 0.00% 08 0 82 82.00 0.00% 09 0 64 64.00 0.00% 10 0 41 41.00 0.00% 11 0 57 57.00 0.00% 12 0 48 48.00 0.00% 13 0 59 59.00 0.00% 14 0 38 38.00 0.00% 15 0 52 52.00 0.00% 16 0 36 36.00 0.00% 17 0 46 46.00 0.00% 18 0 24 24.00 0.00% 19 0 40 40.00 0.00% 20 0 54 54.00 0.00% 21 0 64 64.00 0.00% 22 0 67 67.00 0.00% 23 0 63 63.00 0.00% Oct 19 00 0 71 71.00 0.00% 01 0 57 57.00 0.00% 02 0 41 41.00 0.00% 03 0 42 42.00 0.00% 04 0 63 63.00 0.00% 05 0 74 74.00 0.00% 06 0 39 39.00 0.00% 07 0 56 56.00 0.00% 08 0 42 42.00 0.00% 09 0 51 51.00 0.00% 10 0 114 114.00 0.00% 11 0 36 36.00 0.00% 12 0 33 33.00 0.00% 13 0 47 47.00 0.00% 14 0 33 33.00 0.00% 15 0 44 44.00 0.00% 16 0 25 25.00 0.00% 17 0 39 39.00 0.00% 18 0 40 40.00 0.00% 19 0 64 64.00 0.00% 20 0 22 22.00 0.00% 21 0 29 29.00 0.00% 22 0 45 45.00 0.00% 23 0 27 27.00 0.00% Day Hour Count Average / Second Oct 13 00 95 0.03/s 01 86 0.02/s 02 78 0.02/s 03 84 0.02/s 04 82 0.02/s 05 93 0.03/s 06 125 0.03/s 07 83 0.02/s 08 82 0.02/s 09 88 0.02/s 10 107 0.03/s 11 147 0.04/s 12 112 0.03/s 13 82 0.02/s 14 76 0.02/s 15 91 0.03/s 16 133 0.04/s 17 82 0.02/s 18 88 0.02/s 19 88 0.02/s 20 86 0.02/s 21 96 0.03/s 22 122 0.03/s 23 96 0.03/s Oct 14 00 94 0.03/s 01 86 0.02/s 02 105 0.03/s 03 110 0.03/s 04 108 0.03/s 05 95 0.03/s 06 122 0.03/s 07 90 0.03/s 08 85 0.02/s 09 90 0.03/s 10 92 0.03/s 11 84 0.02/s 12 88 0.02/s 13 86 0.02/s 14 87 0.02/s 15 93 0.03/s 16 90 0.03/s 17 80 0.02/s 18 117 0.03/s 19 150 0.04/s 20 85 0.02/s 21 118 0.03/s 22 112 0.03/s 23 105 0.03/s Oct 15 00 98 0.03/s 01 104 0.03/s 02 92 0.03/s 03 356 0.10/s 04 118 0.03/s 05 113 0.03/s 06 101 0.03/s 07 130 0.04/s 08 160 0.04/s 09 98 0.03/s 10 102 0.03/s 11 138 0.04/s 12 143 0.04/s 13 155 0.04/s 14 146 0.04/s 15 109 0.03/s 16 84 0.02/s 17 124 0.03/s 18 91 0.03/s 19 128 0.04/s 20 97 0.03/s 21 93 0.03/s 22 89 0.02/s 23 86 0.02/s Oct 16 00 106 0.03/s 01 164 0.05/s 02 87 0.02/s 03 116 0.03/s 04 98 0.03/s 05 167 0.05/s 06 157 0.04/s 07 94 0.03/s 08 112 0.03/s 09 136 0.04/s 10 86 0.02/s 11 177 0.05/s 12 105 0.03/s 13 118 0.03/s 14 119 0.03/s 15 133 0.04/s 16 102 0.03/s 17 85 0.02/s 18 91 0.03/s 19 83 0.02/s 20 105 0.03/s 21 137 0.04/s 22 129 0.04/s 23 116 0.03/s Oct 17 00 114 0.03/s 01 117 0.03/s 02 167 0.05/s 03 113 0.03/s 04 90 0.03/s 05 131 0.04/s 06 93 0.03/s 07 122 0.03/s 08 109 0.03/s 09 97 0.03/s 10 93 0.03/s 11 90 0.03/s 12 108 0.03/s 13 159 0.04/s 14 100 0.03/s 15 93 0.03/s 16 110 0.03/s 17 105 0.03/s 18 106 0.03/s 19 115 0.03/s 20 95 0.03/s 21 82 0.02/s 22 108 0.03/s 23 84 0.02/s Oct 18 00 134 0.04/s 01 92 0.03/s 02 98 0.03/s 03 118 0.03/s 04 105 0.03/s 05 117 0.03/s 06 92 0.03/s 07 134 0.04/s 08 250 0.07/s 09 124 0.03/s 10 106 0.03/s 11 141 0.04/s 12 109 0.03/s 13 138 0.04/s 14 107 0.03/s 15 102 0.03/s 16 118 0.03/s 17 110 0.03/s 18 78 0.02/s 19 96 0.03/s 20 111 0.03/s 21 149 0.04/s 22 96 0.03/s 23 82 0.02/s Oct 19 00 106 0.03/s 01 151 0.04/s 02 79 0.02/s 03 81 0.02/s 04 99 0.03/s 05 103 0.03/s 06 101 0.03/s 07 88 0.02/s 08 90 0.03/s 09 87 0.02/s 10 96 0.03/s 11 87 0.02/s 12 94 0.03/s 13 77 0.02/s 14 99 0.03/s 15 81 0.02/s 16 80 0.02/s 17 83 0.02/s 18 85 0.02/s 19 86 0.02/s 20 88 0.02/s 21 75 0.02/s 22 111 0.03/s 23 83 0.02/s Day Hour Count Average Duration Average idle time Oct 13 00 95 25m5s 24m54s 01 86 28m50s 28m47s 02 78 30m3s 30m3s 03 84 28m25s 28m24s 04 82 29m37s 29m37s 05 93 25m43s 25m42s 06 125 20m39s 20m38s 07 83 28m26s 28m25s 08 82 29m1s 29m 09 88 26m13s 26m12s 10 107 23m29s 23m27s 11 147 16m54s 16m53s 12 112 21m48s 21m47s 13 82 28m19s 28m18s 14 76 29m13s 29m11s 15 91 27m55s 27m55s 16 133 17m22s 17m21s 17 82 28m24s 28m23s 18 88 28m32s 28m30s 19 88 27m45s 27m45s 20 86 28m11s 28m10s 21 96 23m17s 23m16s 22 122 19m3s 19m2s 23 96 25m24s 25m23s Oct 14 00 94 25m48s 25m36s 01 86 28m48s 28m47s 02 105 22m59s 22m57s 03 110 22m31s 22m29s 04 108 22m46s 22m45s 05 95 24m16s 24m14s 06 122 20m16s 20m12s 07 90 26m45s 26m44s 08 85 28m7s 28m6s 09 90 27m 26m59s 10 92 25m2s 24m57s 11 84 30m5s 30m5s 12 88 26m33s 26m33s 13 86 26m36s 26m35s 14 87 26m55s 26m52s 15 93 26m44s 26m39s 16 90 26m16s 26m12s 17 80 29m17s 29m16s 18 117 21m17s 21m15s 19 150 15m44s 15m44s 20 85 28m31s 28m30s 21 118 18m51s 18m51s 22 112 22m13s 22m12s 23 105 22m55s 22m54s Oct 15 00 98 24m45s 24m34s 01 104 23m46s 23m44s 02 92 26m32s 26m31s 03 356 6m59s 6m58s 04 118 19m52s 19m51s 05 113 21m32s 21m30s 06 101 24m11s 24m9s 07 130 18m57s 18m57s 08 160 15m14s 15m13s 09 98 23m49s 23m49s 10 102 23m39s 23m38s 11 138 18m4s 18m3s 12 143 15m32s 15m29s 13 153 15m11s 15m9s 14 146 15m52s 15m51s 15 108 21m22s 21m21s 16 85 29m2s 28m46s 17 124 19m4s 19m2s 18 91 26m15s 26m14s 19 128 19m21s 19m21s 20 97 25m10s 25m9s 21 93 26m9s 26m8s 22 89 26m22s 26m21s 23 86 28m22s 28m21s Oct 16 00 106 23m3s 22m53s 01 164 15m5s 15m5s 02 87 27m55s 27m54s 03 116 20m39s 20m38s 04 98 25m7s 25m6s 05 167 14m15s 14m14s 06 157 15m41s 15m40s 07 94 24m35s 24m34s 08 112 21m27s 21m26s 09 136 17m41s 17m41s 10 86 27m21s 27m19s 11 177 13m5s 13m3s 12 105 22m3s 22m1s 13 118 20m59s 20m58s 14 119 19m32s 19m30s 15 133 19m6s 19m6s 16 101 24m25s 24m24s 17 86 28m27s 28m12s 18 91 25m14s 25m13s 19 83 28m35s 28m34s 20 105 23m22s 23m21s 21 137 16m41s 16m40s 22 129 18m28s 18m27s 23 116 21m4s 21m3s Oct 17 00 114 21m47s 21m33s 01 117 20m41s 20m39s 02 167 14m20s 14m19s 03 113 21m40s 21m38s 04 90 26m53s 26m51s 05 131 17m52s 17m47s 06 93 25m36s 25m34s 07 122 20m33s 20m31s 08 109 23m18s 23m13s 09 97 23m47s 23m46s 10 93 22m22s 22m20s 11 90 26m48s 26m47s 12 108 21m3s 21m3s 13 159 15m50s 15m49s 14 100 23m47s 23m45s 15 93 26m31s 26m29s 16 110 22m32s 22m31s 17 105 22m54s 22m53s 18 106 23m19s 23m17s 19 115 20m15s 20m13s 20 95 25m52s 25m51s 21 82 27m23s 27m22s 22 108 23m6s 23m5s 23 84 29m12s 29m12s Oct 18 00 134 18m11s 18m2s 01 92 26m17s 26m15s 02 98 23m54s 23m52s 03 118 19m49s 19m48s 04 105 24m10s 24m8s 05 117 20m43s 20m40s 06 92 25m32s 25m30s 07 134 19m14s 19m13s 08 250 9m10s 9m9s 09 124 17m18s 17m17s 10 106 22m37s 22m35s 11 140 16m52s 16m51s 12 109 22m37s 22m36s 13 138 18m17s 18m16s 14 108 23m18s 21m37s 15 102 23m21s 23m20s 16 118 21m13s 21m12s 17 110 21m37s 21m37s 18 78 30m14s 30m12s 19 96 24m48s 24m47s 20 111 21m18s 21m16s 21 149 15m45s 15m44s 22 96 25m11s 25m10s 23 82 29m17s 29m16s Oct 19 00 106 23m18s 23m7s 01 151 16m19s 16m18s 02 79 29m57s 29m56s 03 81 30m24s 30m23s 04 99 23m57s 23m56s 05 103 24m13s 24m11s 06 101 24m36s 24m35s 07 88 26m44s 26m43s 08 90 24m55s 24m54s 09 87 27m8s 27m7s 10 96 25m20s 25m18s 11 87 27m19s 27m17s 12 94 25m34s 25m34s 13 77 30m13s 30m12s 14 99 25m31s 25m30s 15 81 30m7s 30m7s 16 80 30m21s 30m20s 17 83 28m27s 28m26s 18 84 28m48s 28m42s 19 87 29m14s 28m17s 20 88 27m11s 27m10s 21 75 30m30s 30m29s 22 111 21m21s 21m20s 23 83 28m51s 28m50s -
Connections
Established Connections
Key values
- 43 connections Connection Peak
- 2024-10-18 21:08:46 Date
Connections per database
Key values
- ctdprd51 Main Database
- 18,070 connections Total
Connections per user
Key values
- pubeu Main User
- 18,070 connections Total
-
Sessions
Simultaneous sessions
Key values
- 58 sessions Session Peak
- 2024-10-15 03:28:44 Date
Histogram of session times
Key values
- 11,819 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 18,068 sessions Total
Sessions per user
Key values
- pubeu Main User
- 18,068 sessions Total
Sessions per host
Key values
- 10.12.5.37 Main Host
- 18,068 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 202,744 buffers Checkpoint Peak
- 2024-10-16 06:35:07 Date
- 1620.036 seconds Highest write time
- 0.028 seconds Sync time
Checkpoints Wal files
Key values
- 68 files Wal files usage Peak
- 2024-10-15 23:35:05 Date
Checkpoints distance
Key values
- 2,170.01 Mo Distance Peak
- 2024-10-15 23:35:05 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Oct 13 00 3,777 378.564s 0.003s 378.645s 01 102 10.309s 0.001s 10.327s 02 56,853 1,740.381s 0.005s 1,740.914s 03 211 21.323s 0.002s 21.354s 04 181 18.316s 0.002s 18.346s 05 231 23.353s 0.002s 23.385s 06 9,805 979.99s 0.001s 980.501s 07 110,660 3,259.745s 0.004s 3,260.223s 08 3,285 329.137s 0.004s 329.233s 09 387 38.993s 0.003s 39.026s 10 249 25.148s 0.002s 25.179s 11 226 22.837s 0.002s 22.868s 12 253 25.526s 0.002s 25.557s 13 247 24.93s 0.002s 24.96s 14 253 25.539s 0.002s 25.568s 15 368 36.955s 0.002s 36.986s 16 168 17.014s 0.002s 17.044s 17 269 27.125s 0.002s 27.156s 18 164 16.616s 0.002s 16.647s 19 269 27.163s 0.002s 27.194s 20 166 16.821s 0.002s 16.853s 21 76 7.71s 0.001s 7.726s 22 184,156 2,527.857s 0.006s 2,528.469s 23 7,486 749.496s 0.003s 749.587s Oct 14 00 2,969 297.502s 0.003s 297.635s 01 153 15.509s 0.002s 15.54s 02 230 23.24s 0.002s 23.27s 03 6,304 631.601s 0.002s 631.707s 04 50,338 1,638.628s 0.002s 1,639.113s 05 1,011 101.551s 0.003s 101.588s 06 567 56.91s 0.003s 56.943s 07 216 21.737s 0.001s 21.753s 08 21,037 2,083.489s 0.004s 2,083.705s 09 8,730 874.519s 0.004s 874.607s 10 814 81.768s 0.002s 81.851s 11 424 42.675s 0.002s 42.709s 12 256 25.835s 0.002s 25.865s 13 441 44.384s 0.002s 44.415s 14 1,086 109.02s 0.002s 109.052s 15 480 48.197s 0.002s 48.228s 16 904 90.76s 0.002s 90.837s 17 5,734 574.463s 0.002s 574.572s 18 3,641 364.813s 0.002s 364.905s 19 186 18.818s 0.002s 18.852s 20 149 15.115s 0.002s 15.145s 21 296 29.85s 0.002s 29.881s 22 4,648 465.288s 0.002s 465.402s 23 279 28.143s 0.002s 28.178s Oct 15 00 5,473 548.332s 0.003s 548.465s 01 1,295 129.952s 0.003s 129.986s 02 225 22.635s 0.002s 22.714s 03 244 24.695s 0.003s 24.732s 04 1,593 159.844s 0.002s 159.876s 05 12,241 1,226.394s 0.001s 1,226.685s 06 21,957 1,748.978s 0.005s 1,749.05s 07 1,130 113.208s 0.001s 113.224s 08 106,123 3,253.037s 0.004s 3,253.957s 09 2,309 231.428s 0.003s 231.513s 10 78,296 1,633.51s 0.003s 1,633.985s 11 374 37.663s 0.002s 37.696s 12 303 30.58s 0.002s 30.61s 13 361 36.375s 0.003s 36.408s 14 195 19.734s 0.002s 19.766s 15 253 25.552s 0.003s 25.584s 16 1,586 159.196s 0.003s 159.275s 17 382 38.467s 0.002s 38.497s 18 1,241 124.425s 0.002s 124.502s 19 180 18.211s 0.002s 18.242s 20 137 13.914s 0.002s 13.944s 21 268 27.037s 0.002s 27.067s 22 158 16.014s 0.002s 16.045s 23 100,728 1,635.451s 0.003s 1,636.322s Oct 16 00 2,094 210.043s 0.003s 210.113s 01 196 19.825s 0.002s 19.854s 02 205 20.73s 0.002s 20.76s 03 1,587 159.216s 0.003s 159.295s 04 4,843 484.994s 0.002s 485.101s 05 6,488 650.27s 0.004s 650.425s 06 202,986 1,643.736s 0.003s 1,644.198s 07 4,054 406.406s 0.004s 406.533s 08 1,039 104.226s 0.003s 104.257s 09 3,012 301.756s 0.004s 301.836s 10 436 43.886s 0.003s 43.919s 11 1,796 180.133s 0.003s 180.211s 12 6,312 632.381s 0.003s 632.496s 13 228 22.938s 0.002s 22.968s 14 332 33.453s 0.003s 33.484s 15 441 44.364s 0.002s 44.395s 16 491 49.386s 0.003s 49.417s 17 285 28.746s 0.002s 28.776s 18 228 23.02s 0.002s 23.05s 19 272 27.441s 0.002s 27.47s 20 173 17.52s 0.002s 17.552s 21 203 20.422s 0.002s 20.453s 22 10,396 1,041.499s 0.003s 1,041.653s 23 87 8.806s 0.001s 8.821s Oct 17 00 35,815 1,732.502s 0.005s 1,732.871s 01 326 32.864s 0.002s 32.895s 02 159 16.044s 0.002s 16.077s 03 10,830 1,085.274s 0.003s 1,085.423s 04 3,135 314.297s 0.002s 314.329s 05 64,695 1,635.219s 0.002s 1,635.74s 06 687 68.937s 0.003s 68.968s 07 2,904 291.025s 0.003s 291.14s 08 10,593 1,061.912s 0.029s 1,064.923s 09 10,055 1,007.364s 0.003s 1,007.481s 10 4,335 434.442s 0.002s 434.531s 11 379 38.164s 0.002s 38.196s 12 508 50.996s 0.002s 51.029s 13 752 75.473s 0.002s 75.55s 14 876 87.763s 0.002s 87.794s 15 1,075 107.837s 0.003s 107.868s 16 876 87.761s 0.002s 87.838s 17 51,231 1,647.462s 0.003s 1,647.933s 18 1,393 139.561s 0.002s 139.592s 19 1,088 109.003s 0.002s 109.081s 20 1,106 110.809s 0.002s 110.84s 21 1,430 143.275s 0.004s 143.355s 22 1,265 126.836s 0.002s 126.866s 23 1,543 154.609s 0.003s 154.689s Oct 18 00 5,081 509.226s 0.003s 509.396s 01 633 63.407s 0.002s 63.437s 02 2,016 202.053s 0.002s 202.084s 03 848 84.947s 0.003s 85.025s 04 1,373 137.589s 0.002s 137.619s 05 3,621 362.829s 0.003s 362.922s 06 7,675 768.88s 0.002s 769.075s 07 11,110 1,112.73s 0.003s 1,112.787s 08 10,895 1,091.146s 0.003s 1,091.282s 09 8,602 861.561s 0.004s 861.687s 10 6,867 687.641s 0.002s 687.742s 11 1,537 154.03s 0.003s 154.061s 12 1,254 125.715s 0.002s 125.791s 13 1,797 180.171s 0.004s 180.201s 14 1,299 130.304s 0.003s 130.385s 15 2,929 293.26s 0.002s 293.303s 16 1,393 139.639s 0.003s 139.67s 17 2,204 220.802s 0.002s 220.877s 18 1,577 158.02s 0.003s 158.097s 19 3,655 366.158s 0.003s 366.236s 20 1,765 176.872s 0.003s 176.952s 21 2,774 277.987s 0.004s 278.065s 22 2,421 242.531s 0.002s 242.609s 23 1,959 196.253s 0.003s 196.285s Oct 19 00 8,268 918.351s 0.004s 918.553s 01 2,891 289.729s 0.004s 289.761s 02 1,070 107.19s 0.003s 107.267s 03 928 92.964s 0.003s 92.996s 04 1,066 106.905s 0.003s 106.981s 05 1,309 131.151s 0.004s 131.183s 06 1,198 120.024s 0.004s 120.055s 07 1,975 197.869s 0.003s 197.947s 08 1,143 114.631s 0.003s 114.711s 09 1,702 170.406s 0.003s 170.437s 10 1,569 157.213s 0.003s 157.291s 11 1,731 173.516s 0.004s 173.548s 12 3,859 386.541s 0.004s 386.665s 13 1,645 164.795s 0.004s 164.826s 14 1,497 149.968s 0.003s 150.047s 15 1,745 174.811s 0.004s 174.842s 16 2,238 224.229s 0.003s 224.305s 17 1,626 163.007s 0.003s 163.086s 18 2,008 201.053s 0.004s 201.086s 19 889 89.162s 0.001s 89.224s 20 69,395 1,797.558s 0.006s 1,797.651s 21 2,164 216.788s 0.004s 216.87s 22 2,401 240.413s 0.004s 240.493s 23 2,213 221.701s 0.004s 221.734s Day Hour Added Removed Recycled Synced files Longest sync Average sync Oct 13 00 0 0 1 90 0.001s 0.002s 01 0 0 0 18 0.001s 0.001s 02 0 0 38 77 0.001s 0.003s 03 0 0 0 35 0.001s 0.002s 04 0 0 0 30 0.001s 0.002s 05 0 0 0 32 0.001s 0.002s 06 0 0 39 43 0.001s 0.001s 07 0 0 35 165 0.001s 0.003s 08 0 0 2 95 0.001s 0.002s 09 0 0 0 119 0.001s 0.002s 10 0 0 0 36 0.001s 0.002s 11 0 0 0 29 0.001s 0.002s 12 0 0 0 27 0.001s 0.002s 13 0 0 0 28 0.001s 0.002s 14 0 0 0 24 0.001s 0.002s 15 0 0 0 40 0.001s 0.002s 16 0 0 0 21 0.001s 0.002s 17 0 0 0 29 0.001s 0.002s 18 0 0 0 20 0.001s 0.002s 19 0 0 0 30 0.001s 0.002s 20 0 0 0 22 0.001s 0.002s 21 0 0 0 10 0.001s 0.001s 22 0 0 41 97 0.001s 0.003s 23 0 0 4 35 0.001s 0.002s Oct 14 00 0 0 2 81 0.001s 0.002s 01 0 0 0 32 0.001s 0.002s 02 0 0 0 37 0.001s 0.002s 03 0 0 3 45 0.001s 0.002s 04 0 0 34 54 0.001s 0.002s 05 0 0 0 60 0.001s 0.002s 06 0 0 0 88 0.001s 0.002s 07 0 0 0 65 0.001s 0.001s 08 0 0 5 172 0.002s 0.003s 09 0 0 4 56 0.002s 0.002s 10 0 0 1 91 0.001s 0.002s 11 0 0 0 117 0.001s 0.002s 12 0 0 0 70 0.001s 0.002s 13 0 0 0 117 0.001s 0.002s 14 0 0 0 44 0.001s 0.002s 15 0 0 0 112 0.001s 0.002s 16 0 0 1 71 0.001s 0.002s 17 0 0 3 119 0.001s 0.002s 18 0 0 2 44 0.001s 0.002s 19 0 0 0 21 0.001s 0.002s 20 0 0 0 21 0.001s 0.002s 21 0 0 0 27 0.001s 0.002s 22 0 0 4 70 0.001s 0.002s 23 0 0 0 32 0.001s 0.002s Oct 15 00 0 0 2 96 0.001s 0.002s 01 0 0 0 48 0.001s 0.002s 02 0 0 1 35 0.001s 0.002s 03 0 0 0 34 0.002s 0.002s 04 0 0 0 48 0.001s 0.002s 05 0 0 20 31 0.001s 0.001s 06 0 0 1 90 0.001s 0.003s 07 0 0 0 32 0.001s 0.001s 08 0 0 71 186 0.001s 0.003s 09 0 0 1 46 0.002s 0.002s 10 0 0 34 60 0.001s 0.002s 11 0 0 0 116 0.001s 0.002s 12 0 0 0 72 0.001s 0.002s 13 0 0 0 106 0.001s 0.002s 14 0 0 0 63 0.001s 0.002s 15 0 0 0 29 0.001s 0.002s 16 0 0 1 36 0.001s 0.002s 17 0 0 0 42 0.001s 0.002s 18 0 0 1 128 0.001s 0.002s 19 0 0 0 22 0.001s 0.002s 20 0 0 0 20 0.001s 0.002s 21 0 0 0 26 0.001s 0.002s 22 0 0 0 20 0.001s 0.002s 23 0 0 68 43 0.001s 0.002s Oct 16 00 0 0 0 75 0.001s 0.002s 01 0 0 0 35 0.001s 0.002s 02 0 0 0 36 0.001s 0.002s 03 0 0 1 47 0.001s 0.002s 04 0 0 3 54 0.001s 0.002s 05 0 0 4 65 0.001s 0.002s 06 0 0 33 108 0.001s 0.002s 07 0 0 2 147 0.001s 0.002s 08 0 0 0 139 0.001s 0.002s 09 0 0 1 138 0.001s 0.002s 10 0 0 0 126 0.001s 0.002s 11 0 0 1 39 0.001s 0.002s 12 0 0 4 44 0.001s 0.002s 13 0 0 0 63 0.001s 0.002s 14 0 0 0 31 0.001s 0.002s 15 0 0 0 65 0.001s 0.002s 16 0 0 0 117 0.001s 0.002s 17 0 0 0 74 0.001s 0.002s 18 0 0 0 23 0.001s 0.002s 19 0 0 0 27 0.001s 0.002s 20 0 0 0 19 0.001s 0.002s 21 0 0 0 23 0.001s 0.002s 22 0 0 7 43 0.001s 0.002s 23 0 0 0 12 0.001s 0.001s Oct 17 00 0 0 21 99 0.001s 0.003s 01 0 0 0 36 0.001s 0.002s 02 0 0 0 27 0.001s 0.002s 03 0 0 7 68 0.001s 0.002s 04 0 0 0 48 0.001s 0.002s 05 0 0 39 67 0.001s 0.002s 06 0 0 0 133 0.001s 0.002s 07 0 0 4 89 0.002s 0.002s 08 0 0 4 99 0.027s 0.002s 09 0 0 4 94 0.001s 0.002s 10 0 0 2 142 0.001s 0.002s 11 0 0 0 115 0.001s 0.002s 12 0 0 0 38 0.001s 0.002s 13 0 0 1 39 0.001s 0.002s 14 0 0 0 89 0.001s 0.002s 15 0 0 0 127 0.001s 0.002s 16 0 0 1 42 0.001s 0.002s 17 0 0 34 42 0.001s 0.002s 18 0 0 0 47 0.001s 0.002s 19 0 0 1 30 0.001s 0.002s 20 0 0 0 27 0.001s 0.002s 21 0 0 1 29 0.001s 0.002s 22 0 0 0 30 0.001s 0.002s 23 0 0 1 29 0.001s 0.002s Oct 18 00 0 0 2 78 0.001s 0.002s 01 0 0 0 38 0.001s 0.002s 02 0 0 0 37 0.001s 0.002s 03 0 0 1 36 0.001s 0.002s 04 0 0 0 55 0.001s 0.002s 05 0 0 2 50 0.001s 0.002s 06 0 0 8 101 0.001s 0.002s 07 0 0 2 152 0.001s 0.002s 08 0 0 6 130 0.001s 0.002s 09 0 0 5 151 0.001s 0.002s 10 0 0 3 151 0.001s 0.002s 11 0 0 0 76 0.001s 0.002s 12 0 0 1 22 0.001s 0.002s 13 0 0 0 126 0.001s 0.002s 14 0 0 1 75 0.002s 0.002s 15 0 0 1 49 0.001s 0.002s 16 0 0 0 21 0.002s 0.002s 17 0 0 1 32 0.001s 0.002s 18 0 0 1 22 0.001s 0.002s 19 0 0 1 41 0.001s 0.002s 20 0 0 1 23 0.002s 0.002s 21 0 0 1 31 0.002s 0.002s 22 0 0 1 41 0.001s 0.002s 23 0 0 0 21 0.001s 0.002s Oct 19 00 0 0 5 85 0.001s 0.002s 01 0 0 0 46 0.001s 0.002s 02 0 0 1 51 0.001s 0.002s 03 0 0 0 36 0.001s 0.002s 04 0 0 1 43 0.001s 0.002s 05 0 0 0 41 0.001s 0.002s 06 0 0 0 32 0.001s 0.002s 07 0 0 1 43 0.001s 0.002s 08 0 0 1 29 0.001s 0.002s 09 0 0 0 44 0.001s 0.002s 10 0 0 1 45 0.001s 0.002s 11 0 0 0 44 0.001s 0.002s 12 0 0 2 52 0.001s 0.002s 13 0 0 0 28 0.001s 0.002s 14 0 0 1 20 0.001s 0.002s 15 0 0 0 27 0.001s 0.002s 16 0 0 1 29 0.001s 0.002s 17 0 0 1 20 0.001s 0.002s 18 0 0 0 36 0.001s 0.002s 19 0 0 1 12 0.001s 0.001s 20 0 0 1 43 0.001s 0.003s 21 0 0 1 34 0.001s 0.002s 22 0 0 1 29 0.001s 0.002s 23 0 0 0 30 0.001s 0.002s Day Hour Count Avg time (sec) Oct 13 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 Oct 14 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 Oct 15 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 Oct 16 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 Oct 17 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 Oct 18 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 Oct 19 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 Oct 13 00 13,400.00 kB 25,852.00 kB 01 376.00 kB 22,868.00 kB 02 206,533.67 kB 553,648.00 kB 03 418.00 kB 424,923.50 kB 04 316.00 kB 344,244.50 kB 05 373.00 kB 278,921.00 kB 06 101,966.00 kB 248,025.00 kB 07 369,142.67 kB 534,866.00 kB 08 10,714.00 kB 427,943.00 kB 09 946.00 kB 346,905.00 kB 10 540.00 kB 281,109.00 kB 11 533.50 kB 227,801.00 kB 12 557.50 kB 184,624.00 kB 13 522.50 kB 149,622.50 kB 14 459.50 kB 121,300.50 kB 15 1,000.00 kB 98,408.00 kB 16 301.50 kB 79,808.50 kB 17 535.00 kB 64,721.00 kB 18 275.00 kB 52,504.00 kB 19 616.50 kB 42,615.50 kB 20 328.00 kB 34,604.50 kB 21 348.00 kB 29,556.00 kB 22 221,056.67 kB 525,114.00 kB 23 36,744.50 kB 412,918.00 kB Oct 14 00 11,521.00 kB 336,580.50 kB 01 243.50 kB 272,747.00 kB 02 503.50 kB 221,014.50 kB 03 26,997.00 kB 184,148.50 kB 04 275,712.50 kB 522,899.50 kB 05 2,742.50 kB 424,031.50 kB 06 1,202.00 kB 343,722.00 kB 07 1,229.00 kB 293,252.00 kB 08 23,708.00 kB 244,423.33 kB 09 37,074.50 kB 192,616.00 kB 10 2,298.50 kB 158,653.50 kB 11 1,233.50 kB 128,734.50 kB 12 723.00 kB 104,459.00 kB 13 1,279.00 kB 84,824.00 kB 14 3,005.00 kB 69,309.50 kB 15 1,158.00 kB 56,332.00 kB 16 2,636.00 kB 45,961.00 kB 17 29,589.00 kB 48,929.00 kB 18 12,446.50 kB 51,182.00 kB 19 396.00 kB 42,596.50 kB 20 365.50 kB 34,572.00 kB 21 672.50 kB 28,132.00 kB 22 28,666.00 kB 40,467.50 kB 23 717.00 kB 48,757.50 kB Oct 15 00 19,327.00 kB 43,066.00 kB 01 4,012.50 kB 35,425.00 kB 02 548.00 kB 29,110.50 kB 03 625.50 kB 23,694.00 kB 04 4,973.50 kB 20,131.00 kB 05 121,388.00 kB 121,388.00 kB 06 72,291.67 kB 189,989.33 kB 07 7,703.00 kB 154,314.00 kB 08 387,868.00 kB 570,681.00 kB 09 8,516.50 kB 471,142.00 kB 10 275,016.00 kB 521,823.50 kB 11 848.50 kB 422,843.00 kB 12 781.00 kB 342,664.50 kB 13 896.50 kB 277,695.50 kB 14 460.50 kB 225,060.00 kB 15 619.00 kB 182,391.00 kB 16 4,536.50 kB 148,597.00 kB 17 996.00 kB 120,542.50 kB 18 3,556.00 kB 98,334.50 kB 19 407.00 kB 79,741.00 kB 20 342.00 kB 64,654.50 kB 21 603.00 kB 52,484.00 kB 22 379.00 kB 42,586.00 kB 23 556,013.50 kB 1,055,542.50 kB Oct 16 00 3,821.50 kB 855,653.00 kB 01 464.50 kB 693,253.00 kB 02 515.00 kB 561,630.00 kB 03 4,840.50 kB 455,835.00 kB 04 23,196.50 kB 371,613.00 kB 05 32,033.00 kB 308,900.00 kB 06 275,023.50 kB 521,134.50 kB 07 13,015.00 kB 423,704.50 kB 08 2,952.50 kB 344,643.00 kB 09 10,040.00 kB 281,057.00 kB 10 1,249.00 kB 227,910.50 kB 11 6,470.50 kB 185,894.50 kB 12 27,267.50 kB 155,727.50 kB 13 510.00 kB 126,263.50 kB 14 641.50 kB 102,368.50 kB 15 909.00 kB 83,087.50 kB 16 1,322.50 kB 67,516.50 kB 17 804.50 kB 54,904.50 kB 18 334.00 kB 44,536.00 kB 19 607.50 kB 36,165.50 kB 20 395.00 kB 29,392.00 kB 21 478.00 kB 23,894.00 kB 22 53,181.50 kB 62,939.50 kB 23 481.00 kB 94,894.00 kB Oct 17 00 113,583.67 kB 301,400.67 kB 01 729.00 kB 231,434.00 kB 02 324.00 kB 187,564.00 kB 03 53,447.00 kB 157,582.50 kB 04 10,167.00 kB 134,040.50 kB 05 315,843.00 kB 599,237.50 kB 06 1,581.00 kB 485,664.00 kB 07 8,912.50 kB 394,421.50 kB 08 46,520.00 kB 326,931.00 kB 09 42,785.50 kB 275,016.50 kB 10 15,266.00 kB 224,410.00 kB 11 1,093.50 kB 183,223.50 kB 12 1,536.50 kB 148,653.00 kB 13 2,347.50 kB 120,834.50 kB 14 2,601.00 kB 98,342.50 kB 15 3,159.50 kB 80,264.00 kB 16 2,762.50 kB 65,544.00 kB 17 279,334.50 kB 528,435.00 kB 18 3,802.50 kB 428,663.50 kB 19 3,112.00 kB 347,857.50 kB 20 3,376.50 kB 282,418.50 kB 21 3,682.50 kB 229,450.00 kB 22 3,734.00 kB 186,556.00 kB 23 3,931.50 kB 151,817.00 kB Oct 18 00 17,829.00 kB 126,247.00 kB 01 2,131.50 kB 102,877.50 kB 02 2,703.50 kB 83,836.00 kB 03 2,770.50 kB 68,412.00 kB 04 3,981.00 kB 56,071.50 kB 05 11,935.00 kB 46,980.00 kB 06 36,060.50 kB 52,623.50 kB 07 46,584.00 kB 73,166.50 kB 08 55,150.50 kB 100,470.50 kB 09 30,569.00 kB 85,229.00 kB 10 29,825.00 kB 76,657.50 kB 11 4,409.50 kB 62,945.00 kB 12 3,677.00 kB 51,722.00 kB 13 4,177.00 kB 42,641.00 kB 14 3,888.50 kB 35,305.50 kB 15 9,272.00 kB 29,936.50 kB 16 4,592.00 kB 25,516.00 kB 17 5,283.00 kB 21,632.50 kB 18 4,943.00 kB 18,484.50 kB 19 13,925.00 kB 21,647.00 kB 20 5,605.00 kB 18,577.00 kB 21 6,102.50 kB 16,189.50 kB 22 6,848.50 kB 14,346.50 kB 23 5,939.00 kB 12,820.50 kB Oct 19 00 31,710.50 kB 53,058.00 kB 01 9,880.00 kB 45,103.50 kB 02 3,275.00 kB 37,089.00 kB 03 2,821.00 kB 30,627.00 kB 04 3,237.00 kB 25,402.00 kB 05 3,627.50 kB 21,231.50 kB 06 3,894.50 kB 17,962.50 kB 07 4,909.50 kB 15,474.50 kB 08 3,668.50 kB 13,236.00 kB 09 4,363.00 kB 11,500.00 kB 10 4,926.50 kB 10,221.00 kB 11 5,060.00 kB 9,254.00 kB 12 11,130.00 kB 13,065.00 kB 13 4,827.50 kB 15,671.50 kB 14 4,800.50 kB 13,620.50 kB 15 5,101.00 kB 11,995.00 kB 16 5,574.00 kB 10,739.50 kB 17 5,371.50 kB 9,735.50 kB 18 5,847.50 kB 8,989.50 kB 19 5,738.00 kB 8,502.00 kB 20 6,287.00 kB 8,093.33 kB 21 6,818.00 kB 7,745.00 kB 22 6,486.50 kB 7,537.00 kB 23 6,617.00 kB 7,343.00 kB -
Temporary Files
Size of temporary files
Key values
- 5.86 GiB Temp Files size Peak
- 2024-10-14 16:06:31 Date
Number of temporary files
Key values
- 6 per second Temp Files Peak
- 2024-10-14 16:06:31 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Oct 13 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 Oct 14 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 6 5.86 GiB 999.72 MiB 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 Oct 15 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 Oct 16 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 Oct 17 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 Oct 18 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 Oct 19 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 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 6 5.86 GiB 878.34 MiB 1.00 GiB 999.72 MiB select distinct ;-
select distinct ;
Date: 2024-10-14 16:06:31 Duration: 0ms
Queries generating the largest temporary files
Rank Size Query 1 1.00 GiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
2 1.00 GiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
3 1.00 GiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
4 1.00 GiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
5 1.00 GiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
6 878.34 MiB select distinct ;[ Date: 2024-10-14 16:06:31 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 36.08 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2024-10-16 05:41:56 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 36.08 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2024-10-16 05:41:56 Date
Analyzes per table
Key values
- pubc.log_query (196) Main table analyzed (database ctdprd51)
- 210 analyzes Total
Vacuums per table
Key values
- pubc.log_query (48) Main table vacuumed on database ctdprd51
- 60 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pubc.log_query 48 27 47,629 0 8,986 0 2,355 11,804 1,115 8,666,006 ctdprd51.pub1.term_comp_agent 2 0 915 0 72 0 0 368 3 43,894 ctdprd51.pub1.term_set_enrichment_agent 2 0 634,479 0 276,619 0 0 316,982 13 18,803,237 ctdprd51.pub1.term_set_enrichment 2 0 12,364 0 5,825 0 0 6,076 4 386,010 ctdprd51.pg_toast.pg_toast_2619 2 2 8,132 0 2,289 0 19,888 6,631 2,104 1,176,552 ctdprd51.pg_catalog.pg_statistic 2 2 1,310 0 259 0 37 823 236 1,041,280 ctdprd51.pg_toast.pg_toast_486223 2 0 52 0 0 0 0 2 0 376 Total 60 31 704,881 1,397 294,050 0 22,280 342,686 3,475 30,117,355 Tuples removed per table
Key values
- pg_toast.pg_toast_2619 (8226) Main table with removed tuples on database ctdprd51
- 9392 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctdprd51.pg_toast.pg_toast_2619 2 2 8,226 39,281 0 0 25,184 ctdprd51.pg_catalog.pg_statistic 2 2 816 4,835 0 0 580 ctdprd51.pubc.log_query 48 27 350 822,528 0 0 34,061 ctdprd51.pub1.term_comp_agent 2 0 0 139,355 0 0 1,205 ctdprd51.pub1.term_set_enrichment_agent 2 0 0 139,050,815 0 0 1,580,123 ctdprd51.pub1.term_set_enrichment 2 0 0 1,882,944 0 0 31,150 ctdprd51.pg_toast.pg_toast_486223 2 0 0 0 0 0 0 Total 60 31 9,392 141,939,758 0 0 1,672,303 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 ctdprd51.pub1.term_comp_agent 2 0 0 0 ctdprd51.pub1.term_set_enrichment_agent 2 0 0 0 ctdprd51.pub1.term_set_enrichment 2 0 0 0 ctdprd51.pg_toast.pg_toast_2619 2 2 8226 0 ctdprd51.pg_catalog.pg_statistic 2 2 816 0 ctdprd51.pubc.log_query 48 27 350 0 ctdprd51.pg_toast.pg_toast_486223 2 0 0 0 Total 60 31 9,392 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Oct 13 00 0 3 01 0 4 02 0 1 03 0 1 04 0 1 05 0 3 06 0 2 07 0 1 08 0 1 09 0 2 10 0 1 11 0 1 12 0 0 13 0 1 14 0 0 15 0 1 16 0 0 17 0 1 18 0 0 19 0 1 20 0 0 21 0 3 22 0 0 23 0 0 Oct 14 00 0 2 01 0 2 02 0 3 03 0 2 04 0 3 05 0 3 06 0 1 07 0 2 08 0 1 09 0 1 10 0 1 11 0 1 12 0 1 13 0 0 14 0 0 15 0 1 16 0 0 17 0 1 18 0 0 19 0 0 20 0 1 21 0 0 22 0 1 23 0 0 Oct 15 00 0 2 01 0 4 02 0 1 03 0 3 04 0 1 05 0 3 06 0 1 07 0 2 08 0 1 09 0 0 10 0 2 11 0 1 12 0 0 13 0 1 14 0 0 15 0 1 16 0 0 17 0 1 18 0 0 19 0 0 20 0 1 21 0 0 22 0 0 23 0 1 Oct 16 00 0 2 01 0 2 02 0 1 03 0 2 04 0 2 05 0 5 06 0 1 07 0 1 08 0 1 09 0 1 10 0 1 11 0 0 12 0 1 13 0 0 14 0 1 15 0 0 16 0 1 17 0 0 18 0 0 19 0 1 20 0 0 21 0 1 22 0 0 23 0 0 Oct 17 00 0 1 01 0 4 02 0 2 03 0 3 04 0 3 05 0 4 06 0 0 07 0 2 08 0 0 09 0 1 10 0 1 11 0 1 12 0 4 13 0 3 14 0 3 15 0 3 16 0 2 17 0 2 18 0 1 19 0 1 20 0 1 21 0 1 22 0 1 23 0 1 Oct 18 00 0 3 01 0 4 02 0 3 03 0 3 04 0 2 05 0 1 06 0 2 07 0 1 08 0 1 09 0 1 10 0 1 11 0 1 12 0 0 13 0 1 14 0 0 15 0 1 16 0 0 17 0 1 18 0 1 19 0 1 20 0 1 21 0 0 22 0 1 23 0 0 Oct 19 00 0 4 01 0 4 02 0 3 03 0 2 04 0 2 05 0 1 06 0 2 07 0 1 08 0 1 09 0 1 10 0 1 11 0 0 12 0 1 13 0 1 14 0 1 15 0 0 16 0 1 17 0 1 18 0 0 19 0 1 20 0 0 21 0 1 22 0 0 23 0 1 - 36.08 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
- 7,978 Total read queries
- 364 Total write queries
Queries by database
Key values
- unknown Main database
- 5,282 Requests
- 7h52m37s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 12,022 Requests
User Request type Count Duration editeu Total 2 5s640ms select 2 5s640ms load Total 2 1m22s select 2 1m22s postgres Total 108 43m29s copy to 108 43m29s pubeu Total 6,636 13h42m28s cte 43 2m8s select 6,593 13h40m20s qaeu Total 84 3m42s cte 19 1m3s select 65 2m38s unknown Total 12,022 17h54m57s copy to 694 6h37m49s cte 64 1m35s others 9 46s157ms select 11,255 11h14m46s Duration by user
Key values
- 17h54m57s (unknown) Main time consuming user
User Request type Count Duration editeu Total 2 5s640ms select 2 5s640ms load Total 2 1m22s select 2 1m22s postgres Total 108 43m29s copy to 108 43m29s pubeu Total 6,636 13h42m28s cte 43 2m8s select 6,593 13h40m20s qaeu Total 84 3m42s cte 19 1m3s select 65 2m38s unknown Total 12,022 17h54m57s copy to 694 6h37m49s cte 64 1m35s others 9 46s157ms select 11,255 11h14m46s Queries by host
Key values
- unknown Main host
- 18,854 Requests
- 1d8h26m6s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 8,300 Requests
- 13h7m24s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-10-16 08:38:35 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 8,164 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 2h59m39s SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'MYOCARDIAL INFARCTION' AND t.object_type_id = 3)))) ORDER BY g.nm_sort, g.id LIMIT 50;[ Date: 2024-10-18 14:14:26 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
2 23m42s COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;[ Date: 2024-10-19 19:42:48 ]
3 23m41s COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;[ Date: 2024-10-19 19:00:39 ]
4 21m28s SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'HEART DISEASES' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0)))) ORDER BY g.nm_sort, g.id LIMIT 50;[ Date: 2024-10-15 16:16:17 - Bind query: yes ]
5 17m43s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-18 00:17:44 ]
6 17m42s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-19 00:17:43 ]
7 17m7s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-17 00:17:09 ]
8 17m6s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-16 00:17:08 ]
9 17m6s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-15 00:17:07 ]
10 17m4s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-14 00:17:06 ]
11 17m3s /* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();[ Date: 2024-10-13 00:17:05 ]
12 10m51s SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, gcr.chem_id, gcr.gene_id, gcr.taxon_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7));[ Date: 2024-10-16 17:01:51 - Bind query: yes ]
13 10m47s SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7))) ORDER BY g.nm_sort, g.id LIMIT 50;[ Date: 2024-10-16 17:12:02 - Bind query: yes ]
14 6m56s COPY pub1.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;[ Date: 2024-10-19 19:12:30 ]
15 6m48s COPY pub2.term_enrichment_agent (term_id, enriched_term_id, agent_term_id) TO stdout;[ Date: 2024-10-19 19:54:30 ]
16 4m18s 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 diseaseTerm.id = ANY (ARRAY ( select baseTerm.id from term baseTerm WHERE baseTerm.object_type_id = 3 and upper(baseTerm.nm) LIKE 'HYPERTENSION')) and viaChemPTR.phenotype_id = phenotypeTerm.id and viaChemPTR.term_object_type_id = 3 and viaChemPTR.term_id = diseaseTerm.id and viaChemPTR.via_term_object_type_id = 2 and viaChemPTR.via_term_id = chemTerm.id and viaChemPTR.term_id = viaGenePTR.term_id and viaChemPTR.phenotype_id = viaGenePTR.phenotype_id and viaGenePTR.via_term_object_type_id = 4 and viaGenePTR.via_term_id = geneTerm.id and exists ( select 1 from gene_chem_reference where gene_id = geneTerm.id and chem_id = chemTerm.id) GROUP BY phenotypeTerm.nm, phenotypeTerm.nm_html, phenotypeTerm.acc_txt, diseaseTerm.nm, diseaseTerm.nm_html, diseaseTerm.acc_txt, diseaseTerm.acc_db_cd, chemTerm.nm, chemTerm.nm_html, chemTerm.acc_txt, geneTerm.nm, geneTerm.nm_html, geneTerm.acc_txt order by chemTerm.nm LIMIT 50;[ Date: 2024-10-14 16:06:31 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
17 4m17s SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1248164') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-10-14 10:24:01 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
18 4m5s SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1236826') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-10-14 06:06:41 - Bind query: yes ]
19 3m57s SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;[ Date: 2024-10-17 00:49:35 - Bind query: yes ]
20 3m54s SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;[ Date: 2024-10-17 08:52:23 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2h59m39s 1 2h59m39s 2h59m39s 2h59m39s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and 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 = ?)))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 18 14 1 2h59m39s 2h59m39s [ User: pubeu - Total duration: 2h59m39s - Times executed: 1 ]
-
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'MYOCARDIAL INFARCTION' AND t.object_type_id = 3)))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-18 14:14:26 Duration: 2h59m39s Database: ctdprd51 User: pubeu Bind query: yes
2 2h53s 7 17m3s 17m43s 17m16s select maint_query_logs_archive ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 13 00 1 17m3s 17m3s Oct 14 00 1 17m4s 17m4s Oct 15 00 1 17m6s 17m6s Oct 16 00 1 17m6s 17m6s Oct 17 00 1 17m7s 17m7s Oct 18 00 1 17m43s 17m43s Oct 19 00 1 17m42s 17m42s -
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-18 00:17:44 Duration: 17m43s
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-19 00:17:43 Duration: 17m42s
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-17 00:17:09 Duration: 17m7s
3 37m51s 1,953 1s48ms 1s543ms 1s163ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where exposuremarkerterm.id = ? or receptorterm.id = ? group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 13 00 5 5s881ms 1s176ms 01 5 6s18ms 1s203ms 02 3 3s534ms 1s178ms 03 5 5s885ms 1s177ms 04 8 9s461ms 1s182ms 05 12 14s480ms 1s206ms 06 3 3s522ms 1s174ms 07 6 7s34ms 1s172ms 08 5 5s747ms 1s149ms 09 21 24s750ms 1s178ms 10 12 14s172ms 1s181ms 11 23 27s370ms 1s190ms 12 8 9s342ms 1s167ms 13 4 4s778ms 1s194ms 14 3 3s473ms 1s157ms 15 6 7s16ms 1s169ms 16 1 1s201ms 1s201ms 17 4 4s721ms 1s180ms 18 6 7s42ms 1s173ms 19 8 9s512ms 1s189ms 20 14 16s558ms 1s182ms 21 9 10s564ms 1s173ms 22 10 11s844ms 1s184ms 23 2 2s368ms 1s184ms Oct 14 00 8 9s424ms 1s178ms 01 13 15s317ms 1s178ms 02 3 3s467ms 1s155ms 03 7 8s135ms 1s162ms 04 7 8s263ms 1s180ms 05 11 13s252ms 1s204ms 06 2 2s335ms 1s167ms 07 3 3s602ms 1s200ms 08 8 9s369ms 1s171ms 09 11 13s183ms 1s198ms 10 6 7s72ms 1s178ms 11 5 5s905ms 1s181ms 12 7 8s314ms 1s187ms 13 4 4s627ms 1s156ms 14 13 15s403ms 1s184ms 15 6 7s146ms 1s191ms 16 16 19s74ms 1s192ms 17 5 5s875ms 1s175ms 18 3 3s366ms 1s122ms 19 9 10s437ms 1s159ms 20 8 9s327ms 1s165ms 21 6 6s947ms 1s157ms 22 5 5s976ms 1s195ms 23 11 13s17ms 1s183ms Oct 15 00 12 13s938ms 1s161ms 01 8 9s534ms 1s191ms 02 15 17s848ms 1s189ms 03 8 9s656ms 1s207ms 04 10 11s778ms 1s177ms 05 16 19s10ms 1s188ms 06 6 7s40ms 1s173ms 07 4 4s743ms 1s185ms 08 7 8s263ms 1s180ms 09 5 5s780ms 1s156ms 10 8 9s397ms 1s174ms 11 3 3s482ms 1s160ms 12 10 11s662ms 1s166ms 13 12 13s870ms 1s155ms 14 12 14s54ms 1s171ms 15 5 5s845ms 1s169ms 16 3 3s374ms 1s124ms 17 12 14s308ms 1s192ms 18 8 9s241ms 1s155ms 19 7 7s979ms 1s139ms 20 10 11s433ms 1s143ms 21 5 5s787ms 1s157ms 22 6 7s144ms 1s190ms 23 8 9s434ms 1s179ms Oct 16 00 9 10s677ms 1s186ms 01 9 10s705ms 1s189ms 02 8 9s491ms 1s186ms 03 12 14s279ms 1s189ms 04 8 9s391ms 1s173ms 05 10 11s735ms 1s173ms 06 4 4s745ms 1s186ms 07 3 3s524ms 1s174ms 08 12 14s79ms 1s173ms 09 12 14s22ms 1s168ms 10 13 15s28ms 1s156ms 11 7 8s241ms 1s177ms 12 8 9s459ms 1s182ms 13 6 6s944ms 1s157ms 14 21 24s390ms 1s161ms 15 15 17s205ms 1s147ms 16 28 32s225ms 1s150ms 17 21 24s182ms 1s151ms 18 8 9s136ms 1s142ms 19 19 21s687ms 1s141ms 20 16 18s218ms 1s138ms 21 23 26s229ms 1s140ms 22 24 28s43ms 1s168ms 23 15 17s404ms 1s160ms Oct 17 00 22 25s514ms 1s159ms 01 25 29s269ms 1s170ms 02 8 9s422ms 1s177ms 03 18 20s747ms 1s152ms 04 10 11s635ms 1s163ms 05 9 10s734ms 1s192ms 06 6 7s15ms 1s169ms 07 18 20s681ms 1s148ms 08 3 3s339ms 1s113ms 09 16 18s496ms 1s156ms 10 5 5s919ms 1s183ms 11 7 8s114ms 1s159ms 12 12 13s898ms 1s158ms 13 10 11s561ms 1s156ms 14 9 10s127ms 1s125ms 15 6 6s823ms 1s137ms 16 14 15s903ms 1s135ms 17 18 20s507ms 1s139ms 18 10 11s422ms 1s142ms 19 20 22s714ms 1s135ms 20 24 27s482ms 1s145ms 21 13 14s735ms 1s133ms 22 8 9s358ms 1s169ms 23 12 13s972ms 1s164ms Oct 18 00 14 16s403ms 1s171ms 01 13 15s105ms 1s161ms 02 19 22s82ms 1s162ms 03 7 8s194ms 1s170ms 04 21 24s568ms 1s169ms 05 17 20s219ms 1s189ms 06 12 13s907ms 1s158ms 07 5 5s818ms 1s163ms 08 9 10s486ms 1s165ms 09 5 5s699ms 1s139ms 10 7 8s153ms 1s164ms 11 10 11s326ms 1s132ms 12 7 7s882ms 1s126ms 13 15 17s267ms 1s151ms 14 11 12s536ms 1s139ms 15 13 14s907ms 1s146ms 16 7 7s872ms 1s124ms 17 16 18s549ms 1s159ms 18 13 14s772ms 1s136ms 19 19 21s660ms 1s140ms 20 16 18s168ms 1s135ms 21 26 29s112ms 1s119ms 22 33 38s278ms 1s159ms 23 37 42s984ms 1s161ms Oct 19 00 27 31s199ms 1s155ms 01 22 25s729ms 1s169ms 02 23 26s712ms 1s161ms 03 15 17s472ms 1s164ms 04 17 19s846ms 1s167ms 05 14 16s596ms 1s185ms 06 9 10s497ms 1s166ms 07 22 25s629ms 1s164ms 08 17 19s741ms 1s161ms 09 14 16s192ms 1s156ms 10 23 26s861ms 1s167ms 11 15 17s336ms 1s155ms 12 17 19s691ms 1s158ms 13 24 27s761ms 1s156ms 14 13 15s114ms 1s162ms 15 15 17s437ms 1s162ms 16 10 11s680ms 1s168ms 17 26 30s192ms 1s161ms 18 21 23s367ms 1s112ms 19 29 32s853ms 1s132ms 20 10 11s542ms 1s154ms 21 9 10s451ms 1s161ms 22 21 24s709ms 1s176ms 23 14 16s619ms 1s187ms [ User: pubeu - Total duration: 15m16s - Times executed: 788 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2022946' or receptorTerm.id = '2022946' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-14 16:06:08 Duration: 1s543ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '1736666' or receptorTerm.id = '1736666' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-17 02:11:06 Duration: 1s330ms Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '1439394' or receptorTerm.id = '1439394' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-13 05:38:40 Duration: 1s311ms Database: ctdprd51 User: pubeu Bind query: yes
4 29m35s 1,254 1s391ms 2s148ms 1s415ms select coalesce(d.abbr_display, d.nm_display) nm # ?, d.description # ?, coalesce(d.abbr, d.nm) anchor # ?, get_homepage_url (d.id) url # ? from db d # ? where d.id in (# ? select l.db_id # ? from db_link l # ? where l.type_cd = ? # ? and l.object_type_id = ?) # ? order by ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 13 00 4 5s660ms 1s415ms 01 8 11s300ms 1s412ms 02 6 8s469ms 1s411ms 03 14 19s750ms 1s410ms 04 9 12s739ms 1s415ms 05 13 18s365ms 1s412ms 06 4 5s632ms 1s408ms 07 5 7s81ms 1s416ms 08 6 8s513ms 1s418ms 09 9 12s710ms 1s412ms 10 9 12s716ms 1s412ms 11 10 14s173ms 1s417ms 12 5 7s66ms 1s413ms 13 8 11s313ms 1s414ms 14 3 4s227ms 1s409ms 15 8 11s290ms 1s411ms 16 9 12s728ms 1s414ms 17 9 12s708ms 1s412ms 18 7 9s883ms 1s411ms 19 5 7s80ms 1s416ms 20 6 8s445ms 1s407ms 21 8 11s493ms 1s436ms 22 10 14s121ms 1s412ms 23 9 12s678ms 1s408ms Oct 14 00 3 4s219ms 1s406ms 01 11 15s491ms 1s408ms 02 10 14s131ms 1s413ms 03 11 15s716ms 1s428ms 04 11 15s897ms 1s445ms 05 13 18s335ms 1s410ms 06 10 14s125ms 1s412ms 07 4 5s637ms 1s409ms 08 9 12s696ms 1s410ms 09 8 11s316ms 1s414ms 10 8 11s294ms 1s411ms 11 5 7s64ms 1s412ms 12 8 11s256ms 1s407ms 13 10 14s119ms 1s411ms 14 11 15s517ms 1s410ms 15 3 4s209ms 1s403ms 16 8 11s509ms 1s438ms 17 6 8s427ms 1s404ms 18 6 8s442ms 1s407ms 19 10 14s447ms 1s444ms 20 15 21s151ms 1s410ms 21 11 15s510ms 1s410ms 22 7 9s995ms 1s427ms 23 11 15s547ms 1s413ms Oct 15 00 6 8s533ms 1s422ms 01 13 18s502ms 1s423ms 02 14 19s760ms 1s411ms 03 13 19s937ms 1s533ms 04 19 27s42ms 1s423ms 05 29 41s105ms 1s417ms 06 34 48s4ms 1s411ms 07 16 22s620ms 1s413ms 08 10 14s132ms 1s413ms 09 9 12s723ms 1s413ms 10 6 8s592ms 1s432ms 11 8 11s287ms 1s410ms 12 9 12s685ms 1s409ms 13 10 14s79ms 1s407ms 14 13 18s371ms 1s413ms 15 9 12s708ms 1s412ms 16 12 16s937ms 1s411ms 17 8 11s308ms 1s413ms 18 4 5s660ms 1s415ms 19 8 11s276ms 1s409ms 20 11 15s592ms 1s417ms 21 7 9s902ms 1s414ms 22 6 8s498ms 1s416ms 23 7 9s920ms 1s417ms Oct 16 00 6 8s438ms 1s406ms 01 8 11s297ms 1s412ms 02 5 7s25ms 1s405ms 03 6 8s509ms 1s418ms 04 6 8s449ms 1s408ms 05 6 8s504ms 1s417ms 06 2 2s812ms 1s406ms 07 6 8s591ms 1s431ms 08 8 11s269ms 1s408ms 09 5 7s40ms 1s408ms 10 9 12s738ms 1s415ms 11 6 8s439ms 1s406ms 12 12 16s922ms 1s410ms 13 10 14s174ms 1s417ms 14 8 11s406ms 1s425ms 15 9 12s649ms 1s405ms 16 8 11s249ms 1s406ms 17 4 5s651ms 1s412ms 18 6 8s456ms 1s409ms 19 30 42s312ms 1s410ms 20 24 33s975ms 1s415ms 21 7 9s898ms 1s414ms 22 8 11s309ms 1s413ms 23 5 7s50ms 1s410ms Oct 17 00 6 8s863ms 1s477ms 01 7 9s864ms 1s409ms 02 4 5s646ms 1s411ms 03 11 15s542ms 1s412ms 04 1 1s413ms 1s413ms 05 5 7s112ms 1s422ms 06 1 1s405ms 1s405ms 07 8 11s352ms 1s419ms 08 4 5s659ms 1s414ms 09 4 5s633ms 1s408ms 11 5 7s74ms 1s414ms 12 4 5s687ms 1s421ms 13 6 8s475ms 1s412ms 14 2 2s831ms 1s415ms 15 8 11s288ms 1s411ms 16 9 12s742ms 1s415ms 17 6 8s455ms 1s409ms 18 6 8s481ms 1s413ms 19 10 14s90ms 1s409ms 20 5 7s87ms 1s417ms 21 3 4s230ms 1s410ms 22 7 9s881ms 1s411ms 23 7 9s883ms 1s411ms Oct 18 00 6 8s458ms 1s409ms 01 2 2s824ms 1s412ms 02 4 5s653ms 1s413ms 03 7 9s870ms 1s410ms 04 8 11s314ms 1s414ms 05 8 11s375ms 1s421ms 06 1 1s405ms 1s405ms 07 8 11s304ms 1s413ms 08 4 5s631ms 1s407ms 09 2 2s821ms 1s410ms 10 3 4s217ms 1s405ms 11 4 5s643ms 1s410ms 12 8 11s330ms 1s416ms 13 5 7s162ms 1s432ms 14 3 4s262ms 1s420ms 15 3 4s226ms 1s408ms 16 3 4s226ms 1s408ms 17 2 2s847ms 1s423ms 18 3 4s245ms 1s415ms 19 3 4s229ms 1s409ms 20 5 7s57ms 1s411ms 21 7 9s892ms 1s413ms 22 3 4s228ms 1s409ms 23 7 9s883ms 1s411ms Oct 19 00 17 23s934ms 1s407ms 01 6 8s455ms 1s409ms 02 5 7s72ms 1s414ms 03 6 8s462ms 1s410ms 04 6 8s451ms 1s408ms 05 6 8s435ms 1s405ms 06 6 8s487ms 1s414ms 07 2 2s816ms 1s408ms 08 6 8s504ms 1s417ms 09 4 5s625ms 1s406ms 10 7 9s842ms 1s406ms 11 4 5s647ms 1s411ms 12 2 2s822ms 1s411ms 13 3 4s243ms 1s414ms 14 6 8s443ms 1s407ms 15 7 9s916ms 1s416ms 16 6 8s486ms 1s414ms 17 2 2s814ms 1s407ms 18 7 9s854ms 1s407ms 19 4 5s634ms 1s408ms 20 7 9s883ms 1s411ms 21 7 9s896ms 1s413ms 22 8 11s279ms 1s409ms 23 4 5s640ms 1s410ms [ User: pubeu - Total duration: 13m4s - Times executed: 553 ]
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-15 03:28:54 Duration: 2s148ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-15 03:36:46 Duration: 2s108ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-17 00:46:17 Duration: 1s790ms Database: ctdprd51 User: pubeu Bind query: yes
5 26m29s 392 3s786ms 14s188ms 4s54ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 13 00 1 3s842ms 3s842ms 01 1 4s25ms 4s25ms 02 6 24s660ms 4s110ms 04 1 3s878ms 3s878ms 05 1 3s963ms 3s963ms 06 1 3s913ms 3s913ms 07 1 4s79ms 4s79ms 08 2 8s400ms 4s200ms 12 2 7s960ms 3s980ms 13 1 3s870ms 3s870ms 14 1 3s894ms 3s894ms 15 1 4s110ms 4s110ms 16 2 7s920ms 3s960ms 17 1 3s853ms 3s853ms 20 1 3s938ms 3s938ms 22 1 3s854ms 3s854ms 23 2 8s76ms 4s38ms Oct 14 01 5 20s109ms 4s21ms 02 2 8s206ms 4s103ms 03 2 7s814ms 3s907ms 04 4 16s176ms 4s44ms 05 4 15s966ms 3s991ms 06 2 7s881ms 3s940ms 07 6 24s140ms 4s23ms 08 2 8s61ms 4s30ms 09 1 3s811ms 3s811ms 11 3 11s991ms 3s997ms 12 3 22s953ms 7s651ms 13 2 7s823ms 3s911ms 15 1 4s1ms 4s1ms 16 3 11s985ms 3s995ms 17 2 8s105ms 4s52ms 18 1 3s962ms 3s962ms 19 1 3s916ms 3s916ms 23 4 15s492ms 3s873ms Oct 15 00 2 7s947ms 3s973ms 01 5 19s818ms 3s963ms 02 3 11s891ms 3s963ms 03 5 23s103ms 4s620ms 04 13 51s382ms 3s952ms 05 2 7s948ms 3s974ms 06 1 4s111ms 4s111ms 08 2 7s893ms 3s946ms 09 3 12s148ms 4s49ms 10 2 7s817ms 3s908ms 13 4 16s344ms 4s86ms 14 2 7s948ms 3s974ms 15 8 40s913ms 5s114ms 16 5 19s694ms 3s938ms 17 1 4s6ms 4s6ms 18 1 3s979ms 3s979ms 21 1 3s993ms 3s993ms 22 1 3s810ms 3s810ms 23 1 3s994ms 3s994ms Oct 16 00 1 3s955ms 3s955ms 01 5 19s581ms 3s916ms 02 1 3s941ms 3s941ms 03 3 11s891ms 3s963ms 04 1 3s840ms 3s840ms 05 3 12s78ms 4s26ms 06 1 3s941ms 3s941ms 07 2 8s298ms 4s149ms 08 1 3s933ms 3s933ms 09 3 11s625ms 3s875ms 10 1 5s693ms 5s693ms 11 3 13s887ms 4s629ms 13 2 8s64ms 4s32ms 14 4 15s861ms 3s965ms 15 2 8s85ms 4s42ms 21 4 16s89ms 4s22ms 22 5 19s898ms 3s979ms 23 3 12s310ms 4s103ms Oct 17 02 3 14s126ms 4s708ms 03 8 31s774ms 3s971ms 04 1 4s218ms 4s218ms 05 22 1m29s 4s54ms 06 4 16s114ms 4s28ms 07 2 7s826ms 3s913ms 08 4 16s99ms 4s24ms 09 1 3s979ms 3s979ms 10 1 3s901ms 3s901ms 11 1 3s943ms 3s943ms 13 2 7s835ms 3s917ms 14 1 4s25ms 4s25ms 15 1 3s903ms 3s903ms 16 4 15s881ms 3s970ms 17 4 15s739ms 3s934ms 19 1 3s976ms 3s976ms 20 1 4s68ms 4s68ms 21 2 8s289ms 4s144ms 22 2 7s713ms 3s856ms 23 1 3s815ms 3s815ms Oct 18 01 4 15s992ms 3s998ms 02 17 1m6s 3s924ms 03 15 59s385ms 3s959ms 04 23 1m31s 3s961ms 05 32 2m6s 3s965ms 06 10 39s374ms 3s937ms 08 3 11s897ms 3s965ms 09 4 15s926ms 3s981ms 13 1 4s135ms 4s135ms 15 1 4s67ms 4s67ms 16 1 3s862ms 3s862ms 21 3 11s913ms 3s971ms 23 3 11s815ms 3s938ms Oct 19 00 1 3s829ms 3s829ms 01 3 11s953ms 3s984ms 03 1 3s833ms 3s833ms 05 2 7s876ms 3s938ms 06 1 4s161ms 4s161ms 07 4 15s742ms 3s935ms 08 3 11s694ms 3s898ms 09 3 11s932ms 3s977ms 10 1 4s26ms 4s26ms 12 1 4s56ms 4s56ms 13 1 4s60ms 4s60ms 14 1 4s100ms 4s100ms 15 2 8s302ms 4s151ms 16 1 4s67ms 4s67ms 19 1 3s889ms 3s889ms 22 1 3s984ms 3s984ms 23 1 4s95ms 4s95ms [ User: pubeu - Total duration: 10m5s - Times executed: 150 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-14 12:05:18 Duration: 14s188ms Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-17 02:09:56 Duration: 6s110ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-15 15:05:17 Duration: 5s738ms Bind query: yes
6 23m42s 1 23m42s 23m42s 23m42s copy pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 19 19 1 23m42s 23m42s -
COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2024-10-19 19:42:48 Duration: 23m42s
7 23m41s 1 23m41s 23m41s 23m41s copy pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 19 19 1 23m41s 23m41s -
COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2024-10-19 19:00:39 Duration: 23m41s
8 21m28s 1 21m28s 21m28s 21m28s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and 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 gd.curated_reference_qty > ?)))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 15 16 1 21m28s 21m28s -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'HEART DISEASES' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0)))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-15 16:16:17 Duration: 21m28s Bind query: yes
9 19m34s 14 2s230ms 3m57s 1m23s select r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refacc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, count(*) over () fullrowcount from reference r where r.id in ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?)) order by r.sort_txt limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 16 00 1 2s548ms 2s548ms Oct 17 00 5 7m54s 1m34s 08 4 7m53s 1m58s 19 1 1m 1m 21 1 45s550ms 45s550ms Oct 18 10 1 57s238ms 57s238ms 21 1 1m 1m [ User: pubeu - Total duration: 7m34s - Times executed: 5 ]
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 00:49:35 Duration: 3m57s Bind query: yes
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 08:52:23 Duration: 3m54s Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 08:49:33 Duration: 1m20s Database: ctdprd51 User: pubeu Bind query: yes
10 17m40s 606 1s 7s186ms 1s749ms 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 associatedterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and ptr.term_object_type_id = ? group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 13 00 1 1s140ms 1s140ms 06 4 9s207ms 2s301ms 11 20 27s449ms 1s372ms 12 10 19s877ms 1s987ms 16 22 29s665ms 1s348ms 22 5 12s291ms 2s458ms 23 4 5s829ms 1s457ms Oct 14 00 4 9s295ms 2s323ms 06 4 5s901ms 1s475ms 18 5 7s91ms 1s418ms 19 4 5s886ms 1s471ms Oct 15 01 2 3s526ms 1s763ms 07 2 13s20ms 6s510ms 08 23 39s734ms 1s727ms 09 4 7s28ms 1s757ms 11 19 33s181ms 1s746ms 12 16 28s344ms 1s771ms 13 4 26s736ms 6s684ms 14 9 19s1ms 2s111ms 15 2 7s536ms 3s768ms 17 2 2s283ms 1s141ms 18 5 7s648ms 1s529ms 19 17 30s350ms 1s785ms 20 8 12s460ms 1s557ms Oct 16 00 8 12s870ms 1s608ms 01 8 13s454ms 1s681ms 04 4 7s119ms 1s779ms 05 10 14s936ms 1s493ms 06 4 7s106ms 1s776ms 08 8 12s293ms 1s536ms 09 1 1s4ms 1s4ms 10 5 7s192ms 1s438ms 11 8 27s670ms 3s458ms 12 11 18s514ms 1s683ms 13 16 23s201ms 1s450ms 14 14 27s148ms 1s939ms 15 9 12s824ms 1s424ms 16 1 6s585ms 6s585ms 20 1 1s138ms 1s138ms 21 17 32s709ms 1s924ms 22 12 21s507ms 1s792ms 23 3 5s483ms 1s827ms Oct 17 00 12 20s468ms 1s705ms 01 9 15s205ms 1s689ms 02 9 16s82ms 1s786ms 05 12 16s793ms 1s399ms 08 1 1s385ms 1s385ms 12 1 1s11ms 1s11ms 13 14 26s58ms 1s861ms 14 3 4s597ms 1s532ms 15 1 1s28ms 1s28ms 16 5 13s495ms 2s699ms 17 2 2s56ms 1s28ms 18 2 7s451ms 3s725ms 19 1 1s12ms 1s12ms 23 1 1s407ms 1s407ms Oct 18 00 14 19s326ms 1s380ms 01 3 3s406ms 1s135ms 02 8 10s759ms 1s344ms 03 1 1s288ms 1s288ms 05 3 3s903ms 1s301ms 07 4 5s705ms 1s426ms 08 33 53s626ms 1s625ms 09 10 23s31ms 2s303ms 10 5 12s977ms 2s595ms 11 10 14s269ms 1s426ms 12 11 16s454ms 1s495ms 13 18 26s834ms 1s490ms 14 4 5s930ms 1s482ms 15 9 16s683ms 1s853ms 16 7 11s275ms 1s610ms 17 9 12s653ms 1s405ms 20 10 14s184ms 1s418ms 21 6 8s99ms 1s349ms 22 2 3s474ms 1s737ms Oct 19 00 4 7s51ms 1s762ms 01 16 30s871ms 1s929ms 12 4 5s336ms 1s334ms 14 2 2s32ms 1s16ms 22 4 5s748ms 1s437ms [ User: pubeu - Total duration: 5m34s - Times executed: 194 ]
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-15 13:35:31 Duration: 7s186ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-18 10:39:27 Duration: 6s663ms Database: ctdprd51 User: pubeu Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-15 13:35:35 Duration: 6s636ms Bind query: yes
11 14m20s 25 34s275ms 34s617ms 34s415ms copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 13 06 1 34s411ms 34s411ms 10 1 34s422ms 34s422ms 14 1 34s324ms 34s324ms 18 1 34s381ms 34s381ms Oct 14 06 1 34s374ms 34s374ms 10 1 34s511ms 34s511ms 14 1 34s439ms 34s439ms 18 1 34s371ms 34s371ms Oct 15 06 1 34s436ms 34s436ms 10 1 34s350ms 34s350ms 14 1 34s496ms 34s496ms 18 1 34s369ms 34s369ms Oct 16 06 1 34s395ms 34s395ms 10 1 34s275ms 34s275ms 14 1 34s363ms 34s363ms 18 1 34s416ms 34s416ms Oct 17 06 1 34s391ms 34s391ms 10 1 34s314ms 34s314ms 14 1 34s617ms 34s617ms 18 1 34s346ms 34s346ms Oct 18 06 1 34s462ms 34s462ms 10 1 34s491ms 34s491ms 14 1 34s504ms 34s504ms 18 1 34s533ms 34s533ms Oct 19 19 1 34s391ms 34s391ms [ User: postgres - Total duration: 13m46s - Times executed: 24 ]
[ Application: pg_dump - Total duration: 13m46s - Times executed: 24 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-17 14:05:36 Duration: 34s617ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-18 18:05:36 Duration: 34s533ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-14 10:05:36 Duration: 34s511ms Database: ctdprd51 User: postgres Application: pg_dump
12 12m30s 17 1s278ms 4m17s 44s124ms select phenotypeterm.nm gonm, phenotypeterm.nm_html gonmhtml, phenotypeterm.acc_txt goacc, phenotypeterm.id goid, diseaseterm.nm diseasenm, diseaseterm.acc_txt diseaseacc, diseaseterm.acc_db_cd diseaseaccdbcd, diseaseterm.id diseaseid, via_gene_qty genenetworkcount, via_chem_qty chemnetworkcount, indirect_reference_qty referencecount, count(*) over () fullrowcount from phenotype_term pt inner join term phenotypeterm on pt.phenotype_id = phenotypeterm.id inner join term diseaseterm on pt.term_id = diseaseterm.id where phenotypeterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) and diseaseterm.object_type_id = ? order by chemnetworkcount desc, genenetworkcount desc limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 13 00 1 1s572ms 1s572ms 01 1 3m41s 3m41s 10 1 1s278ms 1s278ms 19 1 3s234ms 3s234ms Oct 14 06 1 4m5s 4m5s 10 2 4m18s 2m9s 20 1 1s378ms 1s378ms Oct 15 08 1 1s665ms 1s665ms Oct 16 06 1 3s212ms 3s212ms 10 1 1s430ms 1s430ms Oct 17 07 1 1s563ms 1s563ms 13 1 1s434ms 1s434ms Oct 18 07 1 1s547ms 1s547ms 11 1 1s595ms 1s595ms Oct 19 19 1 1s626ms 1s626ms 21 1 2s49ms 2s49ms [ User: pubeu - Total duration: 8m8s - Times executed: 7 ]
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1248164') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-14 10:24:01 Duration: 4m17s Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1236826') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-14 06:06:41 Duration: 4m5s Bind query: yes
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1249213') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-13 01:47:07 Duration: 3m41s Database: ctdprd51 User: pubeu Bind query: yes
13 10m51s 1 10m51s 10m51s 10m51s select gcr.ixn_id, gcr.chem_id, gcr.gene_id, gcr.taxon_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?) intersect ( select ai.gene_id from dag_path pi inner join gene_go_annot ai on pi.descendant_object_id = ai.go_term_id inner join db_link dbli on dbli.object_id = pi.ancestor_object_id where dbli.acc_txt = ? and dbli.type_cd = ? and dbli.object_type_id = ?) intersect ( 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 gd.curated_reference_qty > ?) intersect ( select tp.term_id from term_pathway tp where tp.object_type_id = ? and upper(tp.pathway_acc_txt) = ? and tp.pathway_acc_db_cd = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term t on t.id = dp.ancestor_object_id where upper(t.nm) like ? and t.object_type_id = ?)) and gcr.taxon_id = any (array ( select dp.descendant_object_id from dag_path dp inner join dag_node n on n.id = dp.ancestor_dag_node_id where n.acc_txt = ? and n.dag_id = ?));Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 16 17 1 10m51s 10m51s -
SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, gcr.chem_id, gcr.gene_id, gcr.taxon_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7));
Date: 2024-10-16 17:01:51 Duration: 10m51s Bind query: yes
14 10m47s 1 10m47s 10m47s 10m47s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?) intersect ( select ai.gene_id from dag_path pi inner join gene_go_annot ai on pi.descendant_object_id = ai.go_term_id inner join db_link dbli on dbli.object_id = pi.ancestor_object_id where dbli.acc_txt = ? and dbli.type_cd = ? and dbli.object_type_id = ?) intersect ( 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 gd.curated_reference_qty > ?) intersect ( select tp.term_id from term_pathway tp where tp.object_type_id = ? and upper(tp.pathway_acc_txt) = ? and tp.pathway_acc_db_cd = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term t on t.id = dp.ancestor_object_id where upper(t.nm) like ? and t.object_type_id = ?)) and gcr.taxon_id = any (array ( select dp.descendant_object_id from dag_path dp inner join dag_node n on n.id = dp.ancestor_dag_node_id where n.acc_txt = ? and n.dag_id = ?))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 16 17 1 10m47s 10m47s -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-16 17:12:02 Duration: 10m47s Bind query: yes
15 10m6s 157 1s18ms 11s930ms 3s862ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 13 00 2 2s391ms 1s195ms 03 1 1s98ms 1s98ms 06 2 2s412ms 1s206ms 07 3 3s684ms 1s228ms 08 1 1s34ms 1s34ms 10 5 20s157ms 4s31ms 11 5 19s189ms 3s837ms 13 1 5s193ms 5s193ms 15 2 11s248ms 5s624ms 16 1 1s26ms 1s26ms 21 3 16s130ms 5s376ms 22 1 10s271ms 10s271ms Oct 14 02 1 1s263ms 1s263ms 03 1 2s111ms 2s111ms 04 1 6s546ms 6s546ms 05 3 19s296ms 6s432ms 06 1 4s966ms 4s966ms 07 5 7s808ms 1s561ms 08 1 5s132ms 5s132ms 10 2 2s202ms 1s101ms 11 1 2s561ms 2s561ms 13 1 11s726ms 11s726ms 14 1 4s652ms 4s652ms 16 2 6s83ms 3s41ms 17 1 2s608ms 2s608ms 19 1 2s144ms 2s144ms 21 1 1s236ms 1s236ms 22 3 25s675ms 8s558ms 23 3 8s560ms 2s853ms Oct 15 03 1 2s144ms 2s144ms 04 2 8s441ms 4s220ms 07 1 1s304ms 1s304ms 09 1 1s265ms 1s265ms 10 1 10s113ms 10s113ms 12 3 16s375ms 5s458ms 13 1 5s537ms 5s537ms 16 5 6s323ms 1s264ms 18 1 2s224ms 2s224ms 21 1 11s340ms 11s340ms 22 2 4s119ms 2s59ms Oct 16 00 1 10s195ms 10s195ms 04 2 8s441ms 4s220ms 07 1 5s141ms 5s141ms 08 2 11s854ms 5s927ms 10 1 10s335ms 10s335ms 11 1 2s623ms 2s623ms 12 1 1s268ms 1s268ms 14 1 10s352ms 10s352ms 15 1 2s111ms 2s111ms 17 1 1s38ms 1s38ms 18 2 2s689ms 1s344ms 19 1 10s423ms 10s423ms 21 1 2s598ms 2s598ms 22 1 10s497ms 10s497ms 23 1 1s329ms 1s329ms Oct 17 01 2 8s106ms 4s53ms 02 3 13s307ms 4s435ms 03 2 2s515ms 1s257ms 04 4 14s630ms 3s657ms 05 4 26s740ms 6s685ms 06 1 2s698ms 2s698ms 07 3 8s278ms 2s759ms 09 1 1s186ms 1s186ms 12 2 20s812ms 10s406ms 13 4 18s632ms 4s658ms 14 1 1s49ms 1s49ms 16 1 1s320ms 1s320ms 23 1 1s339ms 1s339ms Oct 18 02 1 1s186ms 1s186ms 03 1 1s511ms 1s511ms 04 1 1s895ms 1s895ms 06 1 4s205ms 4s205ms 07 3 23s19ms 7s673ms 13 2 3s905ms 1s952ms 17 1 10s347ms 10s347ms 19 1 11s662ms 11s662ms 20 1 1s35ms 1s35ms 21 1 1s897ms 1s897ms 22 1 2s571ms 2s571ms Oct 19 00 4 5s41ms 1s260ms 01 1 4s616ms 4s616ms 02 1 1s166ms 1s166ms 03 2 4s753ms 2s376ms 07 2 11s529ms 5s764ms 08 1 2s557ms 2s557ms 11 2 2s971ms 1s485ms 12 1 1s580ms 1s580ms 13 1 1s19ms 1s19ms 14 1 2s641ms 2s641ms 15 1 10s256ms 10s256ms 17 2 2s349ms 1s174ms 18 1 2s210ms 2s210ms 20 1 1s280ms 1s280ms [ User: pubeu - Total duration: 3m58s - Times executed: 67 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-17 05:05:53 Duration: 11s930ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-14 13:22:58 Duration: 11s726ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-18 19:37:17 Duration: 11s662ms Database: ctdprd51 User: pubeu Bind query: yes
16 10m3s 301 1s20ms 5s303ms 2s5ms select e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, ( select string_agg(distinct stressorterm.nm || ? || ( select cd from object_type where id = stressorterm.object_type_id) || ? || stressorterm.nm_html || ? || stressorterm.acc_txt || ? || stressorterm.acc_db_cd, ?)) as stressoragents, ( select string_agg(distinct coalesce(receptorterm.nm, ?) || ? || coalesce(( select cd from object_type where id = receptorterm.object_type_id), ?) || ? || coalesce(receptorterm.nm_html, ?) || ? || coalesce(receptorterm.acc_txt, ?) || ? || coalesce(receptorterm.acc_db_cd, ?) || ? || receptor.description, ?)) as receptors, ( select string_agg(distinct country.nm, ?)) as studycountries, ( select string_agg(distinct location.locality_txt, ?)) as localities, ( select string_agg(distinct event.medium_nm || ? || coalesce(event.medium_term_acc_txt, ?), ?)) as assaymediums, ( select string_agg(distinct exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd, ?)) as assayedmarkers, ( select string_agg(distinct diseaseterm.nm || ? || ( select cd from object_type where id = diseaseterm.object_type_id) || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd, ?)) as diseases, ( select string_agg(distinct phenotypeterm.nm || ? || ( select cd from object_type where id = phenotypeterm.object_type_id) || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd, ?)) as phenotypes, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, re.author_summary summary, count(*) over () fullrowcount from exposure e inner join reference r on e.reference_id = r.id inner join exp_stressor stressor on e.exp_stressor_id = stressor.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join term receptorterm on receptor.term_id = receptorterm.id left outer join exp_event event on e.exp_event_id = event.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join exp_event_location location on e.exp_event_id = location.exp_event_id left outer join country on location.country_id = country.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id inner join reference_exp re on e.reference_id = re.reference_id left outer join exp_study_factor expstudyfactor on re.id = expstudyfactor.reference_exp_id where e.reference_id = any (array ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like ?) and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressoragents limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 13 00 3 4s997ms 1s665ms 03 1 1s284ms 1s284ms 06 2 3s167ms 1s583ms 07 1 1s629ms 1s629ms 10 1 1s310ms 1s310ms 11 8 17s799ms 2s224ms 12 4 5s326ms 1s331ms 14 1 2s604ms 2s604ms 15 3 4s292ms 1s430ms 16 15 30s410ms 2s27ms 22 2 6s315ms 3s157ms Oct 14 00 1 1s72ms 1s72ms 01 1 1s680ms 1s680ms 03 1 1s569ms 1s569ms 04 1 1s602ms 1s602ms 08 2 2s410ms 1s205ms 14 2 2s762ms 1s381ms 18 1 1s583ms 1s583ms 20 1 1s571ms 1s571ms 22 1 1s107ms 1s107ms Oct 15 01 1 1s559ms 1s559ms 03 1 1s279ms 1s279ms 07 2 3s355ms 1s677ms 08 3 8s762ms 2s920ms 09 1 1s135ms 1s135ms 10 2 3s198ms 1s599ms 11 2 2s688ms 1s344ms 13 3 8s378ms 2s792ms 14 7 15s816ms 2s259ms 15 3 8s722ms 2s907ms 16 1 1s113ms 1s113ms 17 2 2s192ms 1s96ms 18 1 1s850ms 1s850ms 20 3 5s199ms 1s733ms 21 1 1s591ms 1s591ms 22 1 1s532ms 1s532ms Oct 16 00 3 3s929ms 1s309ms 01 5 8s214ms 1s642ms 02 4 10s468ms 2s617ms 03 2 6s778ms 3s389ms 04 1 1s610ms 1s610ms 05 2 2s844ms 1s422ms 06 1 1s607ms 1s607ms 08 2 4s184ms 2s92ms 09 5 8s167ms 1s633ms 11 13 43s149ms 3s319ms 12 1 1s624ms 1s624ms 14 4 9s550ms 2s387ms 15 2 2s700ms 1s350ms 16 1 1s321ms 1s321ms 17 1 1s618ms 1s618ms 18 1 1s567ms 1s567ms 20 3 4s888ms 1s629ms 21 3 4s224ms 1s408ms 23 2 3s218ms 1s609ms Oct 17 01 1 1s876ms 1s876ms 02 4 8s543ms 2s135ms 03 4 13s830ms 3s457ms 04 1 1s737ms 1s737ms 05 3 7s761ms 2s587ms 08 1 1s459ms 1s459ms 09 1 1s537ms 1s537ms 11 2 4s962ms 2s481ms 12 4 5s843ms 1s460ms 13 8 15s453ms 1s931ms 14 4 6s222ms 1s555ms 15 3 8s541ms 2s847ms 16 2 6s741ms 3s370ms 17 7 12s130ms 1s732ms 18 3 8s332ms 2s777ms 19 7 12s121ms 1s731ms 22 1 1s737ms 1s737ms 23 3 3s865ms 1s288ms Oct 18 00 5 6s115ms 1s223ms 01 11 23s329ms 2s120ms 02 3 7s615ms 2s538ms 03 5 7s459ms 1s491ms 04 3 4s530ms 1s510ms 05 1 1s583ms 1s583ms 07 1 1s615ms 1s615ms 08 8 15s591ms 1s948ms 09 4 14s78ms 3s519ms 10 4 13s376ms 3s344ms 11 9 17s815ms 1s979ms 12 1 1s846ms 1s846ms 14 4 5s361ms 1s340ms 15 8 14s601ms 1s825ms 16 4 5s655ms 1s413ms 17 1 1s120ms 1s120ms 19 4 5s823ms 1s455ms 21 2 2s221ms 1s110ms 22 1 1s100ms 1s100ms Oct 19 00 1 3s613ms 3s613ms 01 1 1s61ms 1s61ms 02 3 4s744ms 1s581ms 03 1 1s289ms 1s289ms 06 1 1s707ms 1s707ms 07 2 2s773ms 1s386ms 11 1 5s89ms 5s89ms 12 1 2s610ms 2s610ms 13 1 1s546ms 1s546ms 14 1 1s732ms 1s732ms 16 2 2s717ms 1s358ms 18 1 1s629ms 1s629ms 19 5 14s996ms 2s999ms [ User: pubeu - Total duration: 4m29s - Times executed: 128 ]
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-16 11:13:00 Duration: 5s303ms Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-18 09:52:26 Duration: 5s285ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-15 15:20:13 Duration: 5s278ms Bind query: yes
17 8m7s 417 1s78ms 1s466ms 1s167ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where exposuremarkerterm.id = ? or receptorterm.id = ? group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 13 00 1 1s207ms 1s207ms 03 1 1s177ms 1s177ms 04 2 2s353ms 1s176ms 05 1 1s177ms 1s177ms 06 4 4s841ms 1s210ms 09 7 8s375ms 1s196ms 10 1 1s184ms 1s184ms 11 1 1s140ms 1s140ms 12 3 3s563ms 1s187ms 15 4 4s780ms 1s195ms 18 2 2s295ms 1s147ms 20 4 4s763ms 1s190ms 21 4 4s572ms 1s143ms 23 4 4s711ms 1s177ms Oct 14 00 5 5s823ms 1s164ms 01 13 15s306ms 1s177ms 02 1 1s197ms 1s197ms 03 5 5s887ms 1s177ms 04 8 9s385ms 1s173ms 05 5 5s903ms 1s180ms 06 2 2s398ms 1s199ms 08 3 3s519ms 1s173ms 09 5 5s770ms 1s154ms 11 3 3s502ms 1s167ms 12 1 1s209ms 1s209ms 13 10 11s599ms 1s159ms 14 4 4s632ms 1s158ms 15 2 2s375ms 1s187ms 16 4 4s736ms 1s184ms 17 4 4s641ms 1s160ms 19 2 2s299ms 1s149ms 20 9 10s464ms 1s162ms 22 5 5s957ms 1s191ms 23 2 2s432ms 1s216ms Oct 15 01 4 4s776ms 1s194ms 02 3 3s569ms 1s189ms 03 3 3s510ms 1s170ms 04 5 5s844ms 1s168ms 05 6 7s145ms 1s190ms 07 2 2s360ms 1s180ms 08 1 1s186ms 1s186ms 10 2 2s294ms 1s147ms 11 3 3s382ms 1s127ms 12 6 6s998ms 1s166ms 13 6 7s34ms 1s172ms 14 1 1s188ms 1s188ms 17 5 5s847ms 1s169ms 19 3 3s455ms 1s151ms 20 2 2s263ms 1s131ms 21 9 10s461ms 1s162ms 22 3 3s589ms 1s196ms Oct 16 01 4 4s765ms 1s191ms 03 4 4s744ms 1s186ms 05 5 5s868ms 1s173ms 06 3 3s425ms 1s141ms 09 1 1s136ms 1s136ms 10 3 3s398ms 1s132ms 11 8 10s103ms 1s262ms 14 1 1s139ms 1s139ms 15 4 4s602ms 1s150ms 19 2 2s228ms 1s114ms 20 6 6s824ms 1s137ms 21 2 2s289ms 1s144ms 22 2 2s350ms 1s175ms 23 5 5s797ms 1s159ms Oct 17 00 4 4s516ms 1s129ms 01 12 14s39ms 1s169ms 03 6 6s950ms 1s158ms 04 1 1s185ms 1s185ms 07 2 2s352ms 1s176ms 09 5 5s790ms 1s158ms 11 1 1s159ms 1s159ms 12 1 1s164ms 1s164ms 15 1 1s115ms 1s115ms 16 1 1s154ms 1s154ms 17 7 8s47ms 1s149ms 19 2 2s259ms 1s129ms 20 1 1s135ms 1s135ms 22 5 5s886ms 1s177ms 23 4 4s731ms 1s182ms Oct 18 00 3 3s541ms 1s180ms 02 7 8s243ms 1s177ms 03 2 2s299ms 1s149ms 04 6 7s22ms 1s170ms 07 3 3s420ms 1s140ms 09 3 3s504ms 1s168ms 10 1 1s156ms 1s156ms 12 2 2s279ms 1s139ms 13 2 2s169ms 1s84ms 16 3 3s428ms 1s142ms 18 3 3s327ms 1s109ms 19 4 4s608ms 1s152ms 20 7 7s843ms 1s120ms 22 8 9s161ms 1s145ms 23 4 4s677ms 1s169ms Oct 19 00 6 6s954ms 1s159ms 03 3 3s503ms 1s167ms 04 2 2s285ms 1s142ms 05 1 1s161ms 1s161ms 09 5 5s835ms 1s167ms 10 4 4s702ms 1s175ms 11 7 8s148ms 1s164ms 12 2 2s334ms 1s167ms 13 1 1s121ms 1s121ms 15 8 9s285ms 1s160ms 16 1 1s183ms 1s183ms 17 2 2s300ms 1s150ms 18 3 3s442ms 1s147ms 19 4 4s760ms 1s190ms 20 1 1s158ms 1s158ms 21 4 4s769ms 1s192ms 22 5 5s927ms 1s185ms 23 1 1s208ms 1s208ms [ User: pubeu - Total duration: 52s339ms - Times executed: 44 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:48 Duration: 1s466ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:52 Duration: 1s443ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:44 Duration: 1s351ms Database: ctdprd51 User: pubeu Bind query: yes
18 8m4s 35 2s709ms 16s865ms 13s853ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 13 10 2 30s286ms 15s143ms 19 1 3s26ms 3s26ms Oct 14 02 1 14s860ms 14s860ms 06 1 13s654ms 13s654ms 10 1 15s62ms 15s62ms 14 1 16s865ms 16s865ms 18 1 12s23ms 12s23ms 19 1 5s340ms 5s340ms Oct 15 02 1 15s238ms 15s238ms 07 1 12s836ms 12s836ms 11 1 15s82ms 15s82ms 16 1 15s221ms 15s221ms 17 2 29s436ms 14s718ms 20 2 29s662ms 14s831ms Oct 16 02 1 15s219ms 15s219ms 07 1 13s212ms 13s212ms 08 1 16s216ms 16s216ms 12 1 15s279ms 15s279ms Oct 17 07 3 47s409ms 15s803ms 09 1 12s693ms 12s693ms 12 1 15s193ms 15s193ms 13 1 15s280ms 15s280ms 14 1 15s118ms 15s118ms Oct 18 06 1 2s709ms 2s709ms 20 1 14s685ms 14s685ms Oct 19 02 1 15s203ms 15s203ms 08 1 13s271ms 13s271ms 09 1 14s928ms 14s928ms 10 1 15s207ms 15s207ms 18 1 14s655ms 14s655ms [ User: pubeu - Total duration: 3m46s - Times executed: 17 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2083109') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-14 14:55:35 Duration: 16s865ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2076354') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-17 07:37:53 Duration: 16s771ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2080523') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-16 08:35:19 Duration: 16s216ms Database: ctdprd51 User: pubeu Bind query: yes
19 7m52s 248 1s171ms 6s333ms 1s904ms 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 associatedterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and ptr.term_object_type_id = ? 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 Oct 13 05 1 1s938ms 1s938ms 06 1 2s145ms 2s145ms 11 8 12s151ms 1s518ms 12 4 7s6ms 1s751ms 16 6 7s298ms 1s216ms 19 1 1s925ms 1s925ms 22 2 7s548ms 3s774ms 23 1 1s333ms 1s333ms Oct 14 00 1 2s161ms 2s161ms 06 1 1s349ms 1s349ms 12 1 1s354ms 1s354ms 18 2 2s666ms 1s333ms 19 1 1s335ms 1s335ms Oct 15 01 1 1s642ms 1s642ms 06 1 1s875ms 1s875ms 07 3 13s723ms 4s574ms 08 6 13s295ms 2s215ms 09 1 1s649ms 1s649ms 11 8 12s677ms 1s584ms 12 6 9s640ms 1s606ms 13 1 6s65ms 6s65ms 14 4 10s389ms 2s597ms 15 1 6s146ms 6s146ms 18 2 2s952ms 1s476ms 19 7 11s523ms 1s646ms 20 3 4s784ms 1s594ms Oct 16 00 2 2s710ms 1s355ms 01 2 3s5ms 1s502ms 03 1 6s200ms 6s200ms 04 2 4s943ms 2s471ms 05 3 4s166ms 1s388ms 06 2 3s548ms 1s774ms 08 2 2s857ms 1s428ms 10 5 6s704ms 1s340ms 11 5 21s420ms 4s284ms 12 3 4s664ms 1s554ms 13 8 10s769ms 1s346ms 14 4 10s566ms 2s641ms 15 3 4s21ms 1s340ms 16 1 6s51ms 6s51ms 19 1 1s343ms 1s343ms 21 5 8s972ms 1s794ms 22 2 3s302ms 1s651ms 23 1 1s628ms 1s628ms Oct 17 00 3 4s721ms 1s573ms 01 5 7s696ms 1s539ms 02 4 7s443ms 1s860ms 05 3 3s809ms 1s269ms 08 1 1s171ms 1s171ms 11 2 2s588ms 1s294ms 13 6 13s30ms 2s171ms 14 2 3s351ms 1s675ms 16 3 9s114ms 3s38ms 18 1 6s106ms 6s106ms 19 1 1s340ms 1s340ms 23 1 1s364ms 1s364ms Oct 18 00 3 4s348ms 1s449ms 01 2 7s383ms 3s691ms 02 2 2s455ms 1s227ms 03 2 2s862ms 1s431ms 05 1 1s350ms 1s350ms 07 1 1s347ms 1s347ms 08 12 18s349ms 1s529ms 09 8 17s980ms 2s247ms 10 6 13s592ms 2s265ms 11 6 9s16ms 1s502ms 12 10 13s634ms 1s363ms 13 7 9s479ms 1s354ms 14 3 4s246ms 1s415ms 15 3 5s453ms 1s817ms 16 2 3s296ms 1s648ms 17 2 2s690ms 1s345ms 20 4 5s377ms 1s344ms 21 1 1s359ms 1s359ms 22 2 3s319ms 1s659ms Oct 19 00 1 1s651ms 1s651ms 01 4 7s122ms 1s780ms 03 1 1s655ms 1s655ms 12 1 1s206ms 1s206ms 19 5 16s586ms 3s317ms 22 1 1s356ms 1s356ms [ User: pubeu - Total duration: 2m58s - Times executed: 92 ]
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-19 19:25:26 Duration: 6s333ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-15 07:22:10 Duration: 6s238ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-13 22:25:05 Duration: 6s221ms Bind query: yes
20 7m36s 110 1s1ms 6s205ms 4s154ms 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 #20
Day Hour Count Duration Avg duration Oct 13 03 2 10s508ms 5s254ms 05 4 16s811ms 4s202ms 07 1 1s16ms 1s16ms 10 1 5s347ms 5s347ms 17 1 5s316ms 5s316ms 19 2 10s602ms 5s301ms 20 3 11s605ms 3s868ms 22 6 27s713ms 4s618ms Oct 14 00 1 5s204ms 5s204ms 02 1 5s288ms 5s288ms 05 2 6s155ms 3s77ms 06 2 6s192ms 3s96ms 07 1 5s267ms 5s267ms 10 3 11s559ms 3s853ms 12 3 11s628ms 3s876ms 14 1 1s44ms 1s44ms 16 1 5s215ms 5s215ms 17 2 10s807ms 5s403ms 18 1 1s22ms 1s22ms 19 1 5s210ms 5s210ms 22 1 1s9ms 1s9ms 23 2 2s93ms 1s46ms Oct 15 00 1 5s184ms 5s184ms 01 1 5s313ms 5s313ms 03 4 12s757ms 3s189ms 05 1 5s305ms 5s305ms 06 1 5s429ms 5s429ms 07 1 1s49ms 1s49ms 11 1 5s313ms 5s313ms 12 1 1s35ms 1s35ms 19 1 5s453ms 5s453ms 20 1 5s292ms 5s292ms Oct 16 03 3 15s953ms 5s317ms 05 1 5s106ms 5s106ms 06 1 5s157ms 5s157ms 08 1 5s232ms 5s232ms 11 2 10s455ms 5s227ms 12 1 5s278ms 5s278ms 17 1 5s404ms 5s404ms 21 1 5s228ms 5s228ms 22 1 5s203ms 5s203ms Oct 17 01 1 1s1ms 1s1ms 02 1 5s803ms 5s803ms 03 1 4s976ms 4s976ms 11 2 10s523ms 5s261ms 13 1 5s234ms 5s234ms 15 1 1s18ms 1s18ms 16 2 10s720ms 5s360ms 21 2 10s550ms 5s275ms 22 1 5s296ms 5s296ms Oct 18 00 2 10s386ms 5s193ms 06 1 5s709ms 5s709ms 09 1 5s479ms 5s479ms 11 1 6s154ms 6s154ms 12 2 6s376ms 3s188ms 16 2 2s21ms 1s10ms 17 1 5s230ms 5s230ms 19 2 10s661ms 5s330ms 22 1 1s15ms 1s15ms Oct 19 02 2 10s709ms 5s354ms 04 4 22s359ms 5s589ms 07 3 3s29ms 1s9ms 09 2 10s525ms 5s262ms 17 2 6s230ms 3s115ms 18 2 6s689ms 3s344ms 19 3 7s485ms 2s495ms [ User: pubeu - Total duration: 3m16s - Times executed: 52 ]
-
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 = '1396317' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-19 04:27:58 Duration: 6s205ms Database: ctdprd51 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 = '1438366' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-18 11:18:37 Duration: 6s154ms 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 = '1430593' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-17 02:57:59 Duration: 5s803ms Database: ctdprd51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,953 37m51s 1s48ms 1s543ms 1s163ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where exposuremarkerterm.id = ? or receptorterm.id = ? group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 13 00 5 5s881ms 1s176ms 01 5 6s18ms 1s203ms 02 3 3s534ms 1s178ms 03 5 5s885ms 1s177ms 04 8 9s461ms 1s182ms 05 12 14s480ms 1s206ms 06 3 3s522ms 1s174ms 07 6 7s34ms 1s172ms 08 5 5s747ms 1s149ms 09 21 24s750ms 1s178ms 10 12 14s172ms 1s181ms 11 23 27s370ms 1s190ms 12 8 9s342ms 1s167ms 13 4 4s778ms 1s194ms 14 3 3s473ms 1s157ms 15 6 7s16ms 1s169ms 16 1 1s201ms 1s201ms 17 4 4s721ms 1s180ms 18 6 7s42ms 1s173ms 19 8 9s512ms 1s189ms 20 14 16s558ms 1s182ms 21 9 10s564ms 1s173ms 22 10 11s844ms 1s184ms 23 2 2s368ms 1s184ms Oct 14 00 8 9s424ms 1s178ms 01 13 15s317ms 1s178ms 02 3 3s467ms 1s155ms 03 7 8s135ms 1s162ms 04 7 8s263ms 1s180ms 05 11 13s252ms 1s204ms 06 2 2s335ms 1s167ms 07 3 3s602ms 1s200ms 08 8 9s369ms 1s171ms 09 11 13s183ms 1s198ms 10 6 7s72ms 1s178ms 11 5 5s905ms 1s181ms 12 7 8s314ms 1s187ms 13 4 4s627ms 1s156ms 14 13 15s403ms 1s184ms 15 6 7s146ms 1s191ms 16 16 19s74ms 1s192ms 17 5 5s875ms 1s175ms 18 3 3s366ms 1s122ms 19 9 10s437ms 1s159ms 20 8 9s327ms 1s165ms 21 6 6s947ms 1s157ms 22 5 5s976ms 1s195ms 23 11 13s17ms 1s183ms Oct 15 00 12 13s938ms 1s161ms 01 8 9s534ms 1s191ms 02 15 17s848ms 1s189ms 03 8 9s656ms 1s207ms 04 10 11s778ms 1s177ms 05 16 19s10ms 1s188ms 06 6 7s40ms 1s173ms 07 4 4s743ms 1s185ms 08 7 8s263ms 1s180ms 09 5 5s780ms 1s156ms 10 8 9s397ms 1s174ms 11 3 3s482ms 1s160ms 12 10 11s662ms 1s166ms 13 12 13s870ms 1s155ms 14 12 14s54ms 1s171ms 15 5 5s845ms 1s169ms 16 3 3s374ms 1s124ms 17 12 14s308ms 1s192ms 18 8 9s241ms 1s155ms 19 7 7s979ms 1s139ms 20 10 11s433ms 1s143ms 21 5 5s787ms 1s157ms 22 6 7s144ms 1s190ms 23 8 9s434ms 1s179ms Oct 16 00 9 10s677ms 1s186ms 01 9 10s705ms 1s189ms 02 8 9s491ms 1s186ms 03 12 14s279ms 1s189ms 04 8 9s391ms 1s173ms 05 10 11s735ms 1s173ms 06 4 4s745ms 1s186ms 07 3 3s524ms 1s174ms 08 12 14s79ms 1s173ms 09 12 14s22ms 1s168ms 10 13 15s28ms 1s156ms 11 7 8s241ms 1s177ms 12 8 9s459ms 1s182ms 13 6 6s944ms 1s157ms 14 21 24s390ms 1s161ms 15 15 17s205ms 1s147ms 16 28 32s225ms 1s150ms 17 21 24s182ms 1s151ms 18 8 9s136ms 1s142ms 19 19 21s687ms 1s141ms 20 16 18s218ms 1s138ms 21 23 26s229ms 1s140ms 22 24 28s43ms 1s168ms 23 15 17s404ms 1s160ms Oct 17 00 22 25s514ms 1s159ms 01 25 29s269ms 1s170ms 02 8 9s422ms 1s177ms 03 18 20s747ms 1s152ms 04 10 11s635ms 1s163ms 05 9 10s734ms 1s192ms 06 6 7s15ms 1s169ms 07 18 20s681ms 1s148ms 08 3 3s339ms 1s113ms 09 16 18s496ms 1s156ms 10 5 5s919ms 1s183ms 11 7 8s114ms 1s159ms 12 12 13s898ms 1s158ms 13 10 11s561ms 1s156ms 14 9 10s127ms 1s125ms 15 6 6s823ms 1s137ms 16 14 15s903ms 1s135ms 17 18 20s507ms 1s139ms 18 10 11s422ms 1s142ms 19 20 22s714ms 1s135ms 20 24 27s482ms 1s145ms 21 13 14s735ms 1s133ms 22 8 9s358ms 1s169ms 23 12 13s972ms 1s164ms Oct 18 00 14 16s403ms 1s171ms 01 13 15s105ms 1s161ms 02 19 22s82ms 1s162ms 03 7 8s194ms 1s170ms 04 21 24s568ms 1s169ms 05 17 20s219ms 1s189ms 06 12 13s907ms 1s158ms 07 5 5s818ms 1s163ms 08 9 10s486ms 1s165ms 09 5 5s699ms 1s139ms 10 7 8s153ms 1s164ms 11 10 11s326ms 1s132ms 12 7 7s882ms 1s126ms 13 15 17s267ms 1s151ms 14 11 12s536ms 1s139ms 15 13 14s907ms 1s146ms 16 7 7s872ms 1s124ms 17 16 18s549ms 1s159ms 18 13 14s772ms 1s136ms 19 19 21s660ms 1s140ms 20 16 18s168ms 1s135ms 21 26 29s112ms 1s119ms 22 33 38s278ms 1s159ms 23 37 42s984ms 1s161ms Oct 19 00 27 31s199ms 1s155ms 01 22 25s729ms 1s169ms 02 23 26s712ms 1s161ms 03 15 17s472ms 1s164ms 04 17 19s846ms 1s167ms 05 14 16s596ms 1s185ms 06 9 10s497ms 1s166ms 07 22 25s629ms 1s164ms 08 17 19s741ms 1s161ms 09 14 16s192ms 1s156ms 10 23 26s861ms 1s167ms 11 15 17s336ms 1s155ms 12 17 19s691ms 1s158ms 13 24 27s761ms 1s156ms 14 13 15s114ms 1s162ms 15 15 17s437ms 1s162ms 16 10 11s680ms 1s168ms 17 26 30s192ms 1s161ms 18 21 23s367ms 1s112ms 19 29 32s853ms 1s132ms 20 10 11s542ms 1s154ms 21 9 10s451ms 1s161ms 22 21 24s709ms 1s176ms 23 14 16s619ms 1s187ms [ User: pubeu - Total duration: 15m16s - Times executed: 788 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2022946' or receptorTerm.id = '2022946' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-14 16:06:08 Duration: 1s543ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '1736666' or receptorTerm.id = '1736666' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-17 02:11:06 Duration: 1s330ms Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '1439394' or receptorTerm.id = '1439394' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-13 05:38:40 Duration: 1s311ms Database: ctdprd51 User: pubeu Bind query: yes
2 1,254 29m35s 1s391ms 2s148ms 1s415ms select coalesce(d.abbr_display, d.nm_display) nm # ?, d.description # ?, coalesce(d.abbr, d.nm) anchor # ?, get_homepage_url (d.id) url # ? from db d # ? where d.id in (# ? select l.db_id # ? from db_link l # ? where l.type_cd = ? # ? and l.object_type_id = ?) # ? order by ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 13 00 4 5s660ms 1s415ms 01 8 11s300ms 1s412ms 02 6 8s469ms 1s411ms 03 14 19s750ms 1s410ms 04 9 12s739ms 1s415ms 05 13 18s365ms 1s412ms 06 4 5s632ms 1s408ms 07 5 7s81ms 1s416ms 08 6 8s513ms 1s418ms 09 9 12s710ms 1s412ms 10 9 12s716ms 1s412ms 11 10 14s173ms 1s417ms 12 5 7s66ms 1s413ms 13 8 11s313ms 1s414ms 14 3 4s227ms 1s409ms 15 8 11s290ms 1s411ms 16 9 12s728ms 1s414ms 17 9 12s708ms 1s412ms 18 7 9s883ms 1s411ms 19 5 7s80ms 1s416ms 20 6 8s445ms 1s407ms 21 8 11s493ms 1s436ms 22 10 14s121ms 1s412ms 23 9 12s678ms 1s408ms Oct 14 00 3 4s219ms 1s406ms 01 11 15s491ms 1s408ms 02 10 14s131ms 1s413ms 03 11 15s716ms 1s428ms 04 11 15s897ms 1s445ms 05 13 18s335ms 1s410ms 06 10 14s125ms 1s412ms 07 4 5s637ms 1s409ms 08 9 12s696ms 1s410ms 09 8 11s316ms 1s414ms 10 8 11s294ms 1s411ms 11 5 7s64ms 1s412ms 12 8 11s256ms 1s407ms 13 10 14s119ms 1s411ms 14 11 15s517ms 1s410ms 15 3 4s209ms 1s403ms 16 8 11s509ms 1s438ms 17 6 8s427ms 1s404ms 18 6 8s442ms 1s407ms 19 10 14s447ms 1s444ms 20 15 21s151ms 1s410ms 21 11 15s510ms 1s410ms 22 7 9s995ms 1s427ms 23 11 15s547ms 1s413ms Oct 15 00 6 8s533ms 1s422ms 01 13 18s502ms 1s423ms 02 14 19s760ms 1s411ms 03 13 19s937ms 1s533ms 04 19 27s42ms 1s423ms 05 29 41s105ms 1s417ms 06 34 48s4ms 1s411ms 07 16 22s620ms 1s413ms 08 10 14s132ms 1s413ms 09 9 12s723ms 1s413ms 10 6 8s592ms 1s432ms 11 8 11s287ms 1s410ms 12 9 12s685ms 1s409ms 13 10 14s79ms 1s407ms 14 13 18s371ms 1s413ms 15 9 12s708ms 1s412ms 16 12 16s937ms 1s411ms 17 8 11s308ms 1s413ms 18 4 5s660ms 1s415ms 19 8 11s276ms 1s409ms 20 11 15s592ms 1s417ms 21 7 9s902ms 1s414ms 22 6 8s498ms 1s416ms 23 7 9s920ms 1s417ms Oct 16 00 6 8s438ms 1s406ms 01 8 11s297ms 1s412ms 02 5 7s25ms 1s405ms 03 6 8s509ms 1s418ms 04 6 8s449ms 1s408ms 05 6 8s504ms 1s417ms 06 2 2s812ms 1s406ms 07 6 8s591ms 1s431ms 08 8 11s269ms 1s408ms 09 5 7s40ms 1s408ms 10 9 12s738ms 1s415ms 11 6 8s439ms 1s406ms 12 12 16s922ms 1s410ms 13 10 14s174ms 1s417ms 14 8 11s406ms 1s425ms 15 9 12s649ms 1s405ms 16 8 11s249ms 1s406ms 17 4 5s651ms 1s412ms 18 6 8s456ms 1s409ms 19 30 42s312ms 1s410ms 20 24 33s975ms 1s415ms 21 7 9s898ms 1s414ms 22 8 11s309ms 1s413ms 23 5 7s50ms 1s410ms Oct 17 00 6 8s863ms 1s477ms 01 7 9s864ms 1s409ms 02 4 5s646ms 1s411ms 03 11 15s542ms 1s412ms 04 1 1s413ms 1s413ms 05 5 7s112ms 1s422ms 06 1 1s405ms 1s405ms 07 8 11s352ms 1s419ms 08 4 5s659ms 1s414ms 09 4 5s633ms 1s408ms 11 5 7s74ms 1s414ms 12 4 5s687ms 1s421ms 13 6 8s475ms 1s412ms 14 2 2s831ms 1s415ms 15 8 11s288ms 1s411ms 16 9 12s742ms 1s415ms 17 6 8s455ms 1s409ms 18 6 8s481ms 1s413ms 19 10 14s90ms 1s409ms 20 5 7s87ms 1s417ms 21 3 4s230ms 1s410ms 22 7 9s881ms 1s411ms 23 7 9s883ms 1s411ms Oct 18 00 6 8s458ms 1s409ms 01 2 2s824ms 1s412ms 02 4 5s653ms 1s413ms 03 7 9s870ms 1s410ms 04 8 11s314ms 1s414ms 05 8 11s375ms 1s421ms 06 1 1s405ms 1s405ms 07 8 11s304ms 1s413ms 08 4 5s631ms 1s407ms 09 2 2s821ms 1s410ms 10 3 4s217ms 1s405ms 11 4 5s643ms 1s410ms 12 8 11s330ms 1s416ms 13 5 7s162ms 1s432ms 14 3 4s262ms 1s420ms 15 3 4s226ms 1s408ms 16 3 4s226ms 1s408ms 17 2 2s847ms 1s423ms 18 3 4s245ms 1s415ms 19 3 4s229ms 1s409ms 20 5 7s57ms 1s411ms 21 7 9s892ms 1s413ms 22 3 4s228ms 1s409ms 23 7 9s883ms 1s411ms Oct 19 00 17 23s934ms 1s407ms 01 6 8s455ms 1s409ms 02 5 7s72ms 1s414ms 03 6 8s462ms 1s410ms 04 6 8s451ms 1s408ms 05 6 8s435ms 1s405ms 06 6 8s487ms 1s414ms 07 2 2s816ms 1s408ms 08 6 8s504ms 1s417ms 09 4 5s625ms 1s406ms 10 7 9s842ms 1s406ms 11 4 5s647ms 1s411ms 12 2 2s822ms 1s411ms 13 3 4s243ms 1s414ms 14 6 8s443ms 1s407ms 15 7 9s916ms 1s416ms 16 6 8s486ms 1s414ms 17 2 2s814ms 1s407ms 18 7 9s854ms 1s407ms 19 4 5s634ms 1s408ms 20 7 9s883ms 1s411ms 21 7 9s896ms 1s413ms 22 8 11s279ms 1s409ms 23 4 5s640ms 1s410ms [ User: pubeu - Total duration: 13m4s - Times executed: 553 ]
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-15 03:28:54 Duration: 2s148ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-15 03:36:46 Duration: 2s108ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT COALESCE(d.abbr_display, d.nm_display) nm # 015, d.description # 015, COALESCE(d.abbr, d.nm) anchor # 015, get_homepage_url (d.id) url # 015 FROM db d # 015 WHERE d.id IN (# 015 SELECT l.db_id # 015 FROM db_link l # 015 WHERE l.type_cd = 'X' # 015 AND l.object_type_id = 4) # 015 ORDER BY 1;
Date: 2024-10-17 00:46:17 Duration: 1s790ms Database: ctdprd51 User: pubeu Bind query: yes
3 606 17m40s 1s 7s186ms 1s749ms 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 associatedterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and ptr.term_object_type_id = ? group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 13 00 1 1s140ms 1s140ms 06 4 9s207ms 2s301ms 11 20 27s449ms 1s372ms 12 10 19s877ms 1s987ms 16 22 29s665ms 1s348ms 22 5 12s291ms 2s458ms 23 4 5s829ms 1s457ms Oct 14 00 4 9s295ms 2s323ms 06 4 5s901ms 1s475ms 18 5 7s91ms 1s418ms 19 4 5s886ms 1s471ms Oct 15 01 2 3s526ms 1s763ms 07 2 13s20ms 6s510ms 08 23 39s734ms 1s727ms 09 4 7s28ms 1s757ms 11 19 33s181ms 1s746ms 12 16 28s344ms 1s771ms 13 4 26s736ms 6s684ms 14 9 19s1ms 2s111ms 15 2 7s536ms 3s768ms 17 2 2s283ms 1s141ms 18 5 7s648ms 1s529ms 19 17 30s350ms 1s785ms 20 8 12s460ms 1s557ms Oct 16 00 8 12s870ms 1s608ms 01 8 13s454ms 1s681ms 04 4 7s119ms 1s779ms 05 10 14s936ms 1s493ms 06 4 7s106ms 1s776ms 08 8 12s293ms 1s536ms 09 1 1s4ms 1s4ms 10 5 7s192ms 1s438ms 11 8 27s670ms 3s458ms 12 11 18s514ms 1s683ms 13 16 23s201ms 1s450ms 14 14 27s148ms 1s939ms 15 9 12s824ms 1s424ms 16 1 6s585ms 6s585ms 20 1 1s138ms 1s138ms 21 17 32s709ms 1s924ms 22 12 21s507ms 1s792ms 23 3 5s483ms 1s827ms Oct 17 00 12 20s468ms 1s705ms 01 9 15s205ms 1s689ms 02 9 16s82ms 1s786ms 05 12 16s793ms 1s399ms 08 1 1s385ms 1s385ms 12 1 1s11ms 1s11ms 13 14 26s58ms 1s861ms 14 3 4s597ms 1s532ms 15 1 1s28ms 1s28ms 16 5 13s495ms 2s699ms 17 2 2s56ms 1s28ms 18 2 7s451ms 3s725ms 19 1 1s12ms 1s12ms 23 1 1s407ms 1s407ms Oct 18 00 14 19s326ms 1s380ms 01 3 3s406ms 1s135ms 02 8 10s759ms 1s344ms 03 1 1s288ms 1s288ms 05 3 3s903ms 1s301ms 07 4 5s705ms 1s426ms 08 33 53s626ms 1s625ms 09 10 23s31ms 2s303ms 10 5 12s977ms 2s595ms 11 10 14s269ms 1s426ms 12 11 16s454ms 1s495ms 13 18 26s834ms 1s490ms 14 4 5s930ms 1s482ms 15 9 16s683ms 1s853ms 16 7 11s275ms 1s610ms 17 9 12s653ms 1s405ms 20 10 14s184ms 1s418ms 21 6 8s99ms 1s349ms 22 2 3s474ms 1s737ms Oct 19 00 4 7s51ms 1s762ms 01 16 30s871ms 1s929ms 12 4 5s336ms 1s334ms 14 2 2s32ms 1s16ms 22 4 5s748ms 1s437ms [ User: pubeu - Total duration: 5m34s - Times executed: 194 ]
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-15 13:35:31 Duration: 7s186ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-18 10:39:27 Duration: 6s663ms Database: ctdprd51 User: pubeu Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort;
Date: 2024-10-15 13:35:35 Duration: 6s636ms Bind query: yes
4 417 8m7s 1s78ms 1s466ms 1s167ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where exposuremarkerterm.id = ? or receptorterm.id = ? group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 13 00 1 1s207ms 1s207ms 03 1 1s177ms 1s177ms 04 2 2s353ms 1s176ms 05 1 1s177ms 1s177ms 06 4 4s841ms 1s210ms 09 7 8s375ms 1s196ms 10 1 1s184ms 1s184ms 11 1 1s140ms 1s140ms 12 3 3s563ms 1s187ms 15 4 4s780ms 1s195ms 18 2 2s295ms 1s147ms 20 4 4s763ms 1s190ms 21 4 4s572ms 1s143ms 23 4 4s711ms 1s177ms Oct 14 00 5 5s823ms 1s164ms 01 13 15s306ms 1s177ms 02 1 1s197ms 1s197ms 03 5 5s887ms 1s177ms 04 8 9s385ms 1s173ms 05 5 5s903ms 1s180ms 06 2 2s398ms 1s199ms 08 3 3s519ms 1s173ms 09 5 5s770ms 1s154ms 11 3 3s502ms 1s167ms 12 1 1s209ms 1s209ms 13 10 11s599ms 1s159ms 14 4 4s632ms 1s158ms 15 2 2s375ms 1s187ms 16 4 4s736ms 1s184ms 17 4 4s641ms 1s160ms 19 2 2s299ms 1s149ms 20 9 10s464ms 1s162ms 22 5 5s957ms 1s191ms 23 2 2s432ms 1s216ms Oct 15 01 4 4s776ms 1s194ms 02 3 3s569ms 1s189ms 03 3 3s510ms 1s170ms 04 5 5s844ms 1s168ms 05 6 7s145ms 1s190ms 07 2 2s360ms 1s180ms 08 1 1s186ms 1s186ms 10 2 2s294ms 1s147ms 11 3 3s382ms 1s127ms 12 6 6s998ms 1s166ms 13 6 7s34ms 1s172ms 14 1 1s188ms 1s188ms 17 5 5s847ms 1s169ms 19 3 3s455ms 1s151ms 20 2 2s263ms 1s131ms 21 9 10s461ms 1s162ms 22 3 3s589ms 1s196ms Oct 16 01 4 4s765ms 1s191ms 03 4 4s744ms 1s186ms 05 5 5s868ms 1s173ms 06 3 3s425ms 1s141ms 09 1 1s136ms 1s136ms 10 3 3s398ms 1s132ms 11 8 10s103ms 1s262ms 14 1 1s139ms 1s139ms 15 4 4s602ms 1s150ms 19 2 2s228ms 1s114ms 20 6 6s824ms 1s137ms 21 2 2s289ms 1s144ms 22 2 2s350ms 1s175ms 23 5 5s797ms 1s159ms Oct 17 00 4 4s516ms 1s129ms 01 12 14s39ms 1s169ms 03 6 6s950ms 1s158ms 04 1 1s185ms 1s185ms 07 2 2s352ms 1s176ms 09 5 5s790ms 1s158ms 11 1 1s159ms 1s159ms 12 1 1s164ms 1s164ms 15 1 1s115ms 1s115ms 16 1 1s154ms 1s154ms 17 7 8s47ms 1s149ms 19 2 2s259ms 1s129ms 20 1 1s135ms 1s135ms 22 5 5s886ms 1s177ms 23 4 4s731ms 1s182ms Oct 18 00 3 3s541ms 1s180ms 02 7 8s243ms 1s177ms 03 2 2s299ms 1s149ms 04 6 7s22ms 1s170ms 07 3 3s420ms 1s140ms 09 3 3s504ms 1s168ms 10 1 1s156ms 1s156ms 12 2 2s279ms 1s139ms 13 2 2s169ms 1s84ms 16 3 3s428ms 1s142ms 18 3 3s327ms 1s109ms 19 4 4s608ms 1s152ms 20 7 7s843ms 1s120ms 22 8 9s161ms 1s145ms 23 4 4s677ms 1s169ms Oct 19 00 6 6s954ms 1s159ms 03 3 3s503ms 1s167ms 04 2 2s285ms 1s142ms 05 1 1s161ms 1s161ms 09 5 5s835ms 1s167ms 10 4 4s702ms 1s175ms 11 7 8s148ms 1s164ms 12 2 2s334ms 1s167ms 13 1 1s121ms 1s121ms 15 8 9s285ms 1s160ms 16 1 1s183ms 1s183ms 17 2 2s300ms 1s150ms 18 3 3s442ms 1s147ms 19 4 4s760ms 1s190ms 20 1 1s158ms 1s158ms 21 4 4s769ms 1s192ms 22 5 5s927ms 1s185ms 23 1 1s208ms 1s208ms [ User: pubeu - Total duration: 52s339ms - Times executed: 44 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:48 Duration: 1s466ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:52 Duration: 1s443ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where exposureMarkerTerm.id = '2042610' or receptorTerm.id = '2042610' GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort;
Date: 2024-10-16 11:37:44 Duration: 1s351ms Database: ctdprd51 User: pubeu Bind query: yes
5 392 26m29s 3s786ms 14s188ms 4s54ms select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 13 00 1 3s842ms 3s842ms 01 1 4s25ms 4s25ms 02 6 24s660ms 4s110ms 04 1 3s878ms 3s878ms 05 1 3s963ms 3s963ms 06 1 3s913ms 3s913ms 07 1 4s79ms 4s79ms 08 2 8s400ms 4s200ms 12 2 7s960ms 3s980ms 13 1 3s870ms 3s870ms 14 1 3s894ms 3s894ms 15 1 4s110ms 4s110ms 16 2 7s920ms 3s960ms 17 1 3s853ms 3s853ms 20 1 3s938ms 3s938ms 22 1 3s854ms 3s854ms 23 2 8s76ms 4s38ms Oct 14 01 5 20s109ms 4s21ms 02 2 8s206ms 4s103ms 03 2 7s814ms 3s907ms 04 4 16s176ms 4s44ms 05 4 15s966ms 3s991ms 06 2 7s881ms 3s940ms 07 6 24s140ms 4s23ms 08 2 8s61ms 4s30ms 09 1 3s811ms 3s811ms 11 3 11s991ms 3s997ms 12 3 22s953ms 7s651ms 13 2 7s823ms 3s911ms 15 1 4s1ms 4s1ms 16 3 11s985ms 3s995ms 17 2 8s105ms 4s52ms 18 1 3s962ms 3s962ms 19 1 3s916ms 3s916ms 23 4 15s492ms 3s873ms Oct 15 00 2 7s947ms 3s973ms 01 5 19s818ms 3s963ms 02 3 11s891ms 3s963ms 03 5 23s103ms 4s620ms 04 13 51s382ms 3s952ms 05 2 7s948ms 3s974ms 06 1 4s111ms 4s111ms 08 2 7s893ms 3s946ms 09 3 12s148ms 4s49ms 10 2 7s817ms 3s908ms 13 4 16s344ms 4s86ms 14 2 7s948ms 3s974ms 15 8 40s913ms 5s114ms 16 5 19s694ms 3s938ms 17 1 4s6ms 4s6ms 18 1 3s979ms 3s979ms 21 1 3s993ms 3s993ms 22 1 3s810ms 3s810ms 23 1 3s994ms 3s994ms Oct 16 00 1 3s955ms 3s955ms 01 5 19s581ms 3s916ms 02 1 3s941ms 3s941ms 03 3 11s891ms 3s963ms 04 1 3s840ms 3s840ms 05 3 12s78ms 4s26ms 06 1 3s941ms 3s941ms 07 2 8s298ms 4s149ms 08 1 3s933ms 3s933ms 09 3 11s625ms 3s875ms 10 1 5s693ms 5s693ms 11 3 13s887ms 4s629ms 13 2 8s64ms 4s32ms 14 4 15s861ms 3s965ms 15 2 8s85ms 4s42ms 21 4 16s89ms 4s22ms 22 5 19s898ms 3s979ms 23 3 12s310ms 4s103ms Oct 17 02 3 14s126ms 4s708ms 03 8 31s774ms 3s971ms 04 1 4s218ms 4s218ms 05 22 1m29s 4s54ms 06 4 16s114ms 4s28ms 07 2 7s826ms 3s913ms 08 4 16s99ms 4s24ms 09 1 3s979ms 3s979ms 10 1 3s901ms 3s901ms 11 1 3s943ms 3s943ms 13 2 7s835ms 3s917ms 14 1 4s25ms 4s25ms 15 1 3s903ms 3s903ms 16 4 15s881ms 3s970ms 17 4 15s739ms 3s934ms 19 1 3s976ms 3s976ms 20 1 4s68ms 4s68ms 21 2 8s289ms 4s144ms 22 2 7s713ms 3s856ms 23 1 3s815ms 3s815ms Oct 18 01 4 15s992ms 3s998ms 02 17 1m6s 3s924ms 03 15 59s385ms 3s959ms 04 23 1m31s 3s961ms 05 32 2m6s 3s965ms 06 10 39s374ms 3s937ms 08 3 11s897ms 3s965ms 09 4 15s926ms 3s981ms 13 1 4s135ms 4s135ms 15 1 4s67ms 4s67ms 16 1 3s862ms 3s862ms 21 3 11s913ms 3s971ms 23 3 11s815ms 3s938ms Oct 19 00 1 3s829ms 3s829ms 01 3 11s953ms 3s984ms 03 1 3s833ms 3s833ms 05 2 7s876ms 3s938ms 06 1 4s161ms 4s161ms 07 4 15s742ms 3s935ms 08 3 11s694ms 3s898ms 09 3 11s932ms 3s977ms 10 1 4s26ms 4s26ms 12 1 4s56ms 4s56ms 13 1 4s60ms 4s60ms 14 1 4s100ms 4s100ms 15 2 8s302ms 4s151ms 16 1 4s67ms 4s67ms 19 1 3s889ms 3s889ms 22 1 3s984ms 3s984ms 23 1 4s95ms 4s95ms [ User: pubeu - Total duration: 10m5s - Times executed: 150 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-14 12:05:18 Duration: 14s188ms Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-17 02:09:56 Duration: 6s110ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-15 15:05:17 Duration: 5s738ms Bind query: yes
6 306 6m31s 1s172ms 3s203ms 1s279ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where outcome.phenotype_id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) or receptorterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 13 01 2 2s575ms 1s287ms 02 1 1s304ms 1s304ms 03 1 1s350ms 1s350ms 04 1 1s303ms 1s303ms 05 2 2s835ms 1s417ms 07 1 1s291ms 1s291ms 09 1 1s274ms 1s274ms 10 1 1s242ms 1s242ms 11 3 3s959ms 1s319ms 12 1 1s510ms 1s510ms 13 3 3s914ms 1s304ms 14 2 2s528ms 1s264ms 15 2 2s585ms 1s292ms 16 4 5s73ms 1s268ms 17 3 3s906ms 1s302ms 19 2 2s550ms 1s275ms 20 2 2s545ms 1s272ms 22 2 2s533ms 1s266ms 23 2 2s607ms 1s303ms Oct 14 00 3 3s819ms 1s273ms 01 3 3s915ms 1s305ms 02 2 2s596ms 1s298ms 03 3 3s789ms 1s263ms 05 4 5s427ms 1s356ms 07 2 2s574ms 1s287ms 08 5 6s521ms 1s304ms 09 4 5s124ms 1s281ms 10 1 1s316ms 1s316ms 11 1 1s294ms 1s294ms 14 3 3s703ms 1s234ms 15 4 5s122ms 1s280ms 16 4 5s128ms 1s282ms 17 2 2s588ms 1s294ms 18 1 1s268ms 1s268ms 19 4 5s28ms 1s257ms 20 1 1s260ms 1s260ms 21 1 1s268ms 1s268ms 22 3 3s819ms 1s273ms 23 2 2s569ms 1s284ms Oct 15 01 3 3s938ms 1s312ms 02 2 2s542ms 1s271ms 03 3 3s864ms 1s288ms 04 1 1s248ms 1s248ms 05 5 6s696ms 1s339ms 06 4 5s99ms 1s274ms 07 3 3s752ms 1s250ms 10 1 1s201ms 1s201ms 11 2 2s411ms 1s205ms 12 3 4s34ms 1s344ms 13 1 1s264ms 1s264ms 14 2 2s589ms 1s294ms 16 1 1s257ms 1s257ms 17 4 5s103ms 1s275ms 18 2 2s461ms 1s230ms 19 3 3s645ms 1s215ms 20 1 1s233ms 1s233ms 21 1 1s234ms 1s234ms 22 4 5s145ms 1s286ms 23 1 1s284ms 1s284ms Oct 16 01 4 5s17ms 1s254ms 02 2 2s538ms 1s269ms 03 2 2s516ms 1s258ms 04 3 3s728ms 1s242ms 05 8 10s347ms 1s293ms 06 2 2s530ms 1s265ms 09 1 1s284ms 1s284ms 10 5 6s505ms 1s301ms 12 2 2s725ms 1s362ms 13 2 2s459ms 1s229ms 14 2 2s644ms 1s322ms 15 1 1s246ms 1s246ms 17 1 1s254ms 1s254ms 18 1 1s236ms 1s236ms 19 1 1s200ms 1s200ms 21 2 2s432ms 1s216ms 22 3 3s943ms 1s314ms 23 1 3s203ms 3s203ms Oct 17 01 6 7s578ms 1s263ms 02 2 2s447ms 1s223ms 04 2 2s576ms 1s288ms 05 3 3s989ms 1s329ms 06 2 2s521ms 1s260ms 07 2 2s386ms 1s193ms 09 6 7s621ms 1s270ms 10 4 4s955ms 1s238ms 11 2 2s497ms 1s248ms 12 2 2s441ms 1s220ms 13 1 1s232ms 1s232ms 14 2 2s510ms 1s255ms 15 1 1s242ms 1s242ms 17 1 1s238ms 1s238ms 18 1 1s231ms 1s231ms 20 4 4s951ms 1s237ms 21 3 3s730ms 1s243ms Oct 18 00 1 1s213ms 1s213ms 02 1 1s192ms 1s192ms 03 1 1s254ms 1s254ms 04 1 1s248ms 1s248ms 05 4 5s272ms 1s318ms 07 1 1s200ms 1s200ms 09 1 1s245ms 1s245ms 11 1 1s260ms 1s260ms 13 1 1s262ms 1s262ms 15 3 3s728ms 1s242ms 16 2 2s446ms 1s223ms 17 4 4s900ms 1s225ms 18 2 2s431ms 1s215ms 19 2 2s456ms 1s228ms 20 1 1s188ms 1s188ms 21 3 3s697ms 1s232ms 23 1 1s231ms 1s231ms Oct 19 00 2 2s615ms 1s307ms 03 6 7s551ms 1s258ms 04 3 3s756ms 1s252ms 05 4 5s310ms 1s327ms 06 3 3s789ms 1s263ms 07 3 3s819ms 1s273ms 08 3 3s597ms 1s199ms 10 8 10s110ms 1s263ms 12 1 1s282ms 1s282ms 13 4 4s911ms 1s227ms 14 1 1s229ms 1s229ms 15 2 2s560ms 1s280ms 16 2 2s560ms 1s280ms 17 1 1s265ms 1s265ms 19 3 4s140ms 1s380ms 21 3 3s648ms 1s216ms 23 4 5s5ms 1s251ms [ User: pubeu - Total duration: 2m40s - Times executed: 126 ]
[ User: qaeu - Total duration: 9s657ms - Times executed: 7 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.phenotype_id in ( select descendant_object_id from dag_path where ancestor_object_id = '1217863') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1217863') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-16 23:52:55 Duration: 3s203ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.phenotype_id in ( select descendant_object_id from dag_path where ancestor_object_id = '1232376') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1232376') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-13 12:27:17 Duration: 1s510ms Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.phenotype_id in ( select descendant_object_id from dag_path where ancestor_object_id = '1233066') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1233066') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-19 19:50:17 Duration: 1s500ms Bind query: yes
7 301 10m3s 1s20ms 5s303ms 2s5ms select e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, ( select string_agg(distinct stressorterm.nm || ? || ( select cd from object_type where id = stressorterm.object_type_id) || ? || stressorterm.nm_html || ? || stressorterm.acc_txt || ? || stressorterm.acc_db_cd, ?)) as stressoragents, ( select string_agg(distinct coalesce(receptorterm.nm, ?) || ? || coalesce(( select cd from object_type where id = receptorterm.object_type_id), ?) || ? || coalesce(receptorterm.nm_html, ?) || ? || coalesce(receptorterm.acc_txt, ?) || ? || coalesce(receptorterm.acc_db_cd, ?) || ? || receptor.description, ?)) as receptors, ( select string_agg(distinct country.nm, ?)) as studycountries, ( select string_agg(distinct location.locality_txt, ?)) as localities, ( select string_agg(distinct event.medium_nm || ? || coalesce(event.medium_term_acc_txt, ?), ?)) as assaymediums, ( select string_agg(distinct exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd, ?)) as assayedmarkers, ( select string_agg(distinct diseaseterm.nm || ? || ( select cd from object_type where id = diseaseterm.object_type_id) || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd, ?)) as diseases, ( select string_agg(distinct phenotypeterm.nm || ? || ( select cd from object_type where id = phenotypeterm.object_type_id) || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd, ?)) as phenotypes, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, re.author_summary summary, count(*) over () fullrowcount from exposure e inner join reference r on e.reference_id = r.id inner join exp_stressor stressor on e.exp_stressor_id = stressor.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join term receptorterm on receptor.term_id = receptorterm.id left outer join exp_event event on e.exp_event_id = event.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join exp_event_location location on e.exp_event_id = location.exp_event_id left outer join country on location.country_id = country.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id inner join reference_exp re on e.reference_id = re.reference_id left outer join exp_study_factor expstudyfactor on re.id = expstudyfactor.reference_exp_id where e.reference_id = any (array ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like ?) and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressoragents limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 13 00 3 4s997ms 1s665ms 03 1 1s284ms 1s284ms 06 2 3s167ms 1s583ms 07 1 1s629ms 1s629ms 10 1 1s310ms 1s310ms 11 8 17s799ms 2s224ms 12 4 5s326ms 1s331ms 14 1 2s604ms 2s604ms 15 3 4s292ms 1s430ms 16 15 30s410ms 2s27ms 22 2 6s315ms 3s157ms Oct 14 00 1 1s72ms 1s72ms 01 1 1s680ms 1s680ms 03 1 1s569ms 1s569ms 04 1 1s602ms 1s602ms 08 2 2s410ms 1s205ms 14 2 2s762ms 1s381ms 18 1 1s583ms 1s583ms 20 1 1s571ms 1s571ms 22 1 1s107ms 1s107ms Oct 15 01 1 1s559ms 1s559ms 03 1 1s279ms 1s279ms 07 2 3s355ms 1s677ms 08 3 8s762ms 2s920ms 09 1 1s135ms 1s135ms 10 2 3s198ms 1s599ms 11 2 2s688ms 1s344ms 13 3 8s378ms 2s792ms 14 7 15s816ms 2s259ms 15 3 8s722ms 2s907ms 16 1 1s113ms 1s113ms 17 2 2s192ms 1s96ms 18 1 1s850ms 1s850ms 20 3 5s199ms 1s733ms 21 1 1s591ms 1s591ms 22 1 1s532ms 1s532ms Oct 16 00 3 3s929ms 1s309ms 01 5 8s214ms 1s642ms 02 4 10s468ms 2s617ms 03 2 6s778ms 3s389ms 04 1 1s610ms 1s610ms 05 2 2s844ms 1s422ms 06 1 1s607ms 1s607ms 08 2 4s184ms 2s92ms 09 5 8s167ms 1s633ms 11 13 43s149ms 3s319ms 12 1 1s624ms 1s624ms 14 4 9s550ms 2s387ms 15 2 2s700ms 1s350ms 16 1 1s321ms 1s321ms 17 1 1s618ms 1s618ms 18 1 1s567ms 1s567ms 20 3 4s888ms 1s629ms 21 3 4s224ms 1s408ms 23 2 3s218ms 1s609ms Oct 17 01 1 1s876ms 1s876ms 02 4 8s543ms 2s135ms 03 4 13s830ms 3s457ms 04 1 1s737ms 1s737ms 05 3 7s761ms 2s587ms 08 1 1s459ms 1s459ms 09 1 1s537ms 1s537ms 11 2 4s962ms 2s481ms 12 4 5s843ms 1s460ms 13 8 15s453ms 1s931ms 14 4 6s222ms 1s555ms 15 3 8s541ms 2s847ms 16 2 6s741ms 3s370ms 17 7 12s130ms 1s732ms 18 3 8s332ms 2s777ms 19 7 12s121ms 1s731ms 22 1 1s737ms 1s737ms 23 3 3s865ms 1s288ms Oct 18 00 5 6s115ms 1s223ms 01 11 23s329ms 2s120ms 02 3 7s615ms 2s538ms 03 5 7s459ms 1s491ms 04 3 4s530ms 1s510ms 05 1 1s583ms 1s583ms 07 1 1s615ms 1s615ms 08 8 15s591ms 1s948ms 09 4 14s78ms 3s519ms 10 4 13s376ms 3s344ms 11 9 17s815ms 1s979ms 12 1 1s846ms 1s846ms 14 4 5s361ms 1s340ms 15 8 14s601ms 1s825ms 16 4 5s655ms 1s413ms 17 1 1s120ms 1s120ms 19 4 5s823ms 1s455ms 21 2 2s221ms 1s110ms 22 1 1s100ms 1s100ms Oct 19 00 1 3s613ms 3s613ms 01 1 1s61ms 1s61ms 02 3 4s744ms 1s581ms 03 1 1s289ms 1s289ms 06 1 1s707ms 1s707ms 07 2 2s773ms 1s386ms 11 1 5s89ms 5s89ms 12 1 2s610ms 2s610ms 13 1 1s546ms 1s546ms 14 1 1s732ms 1s732ms 16 2 2s717ms 1s358ms 18 1 1s629ms 1s629ms 19 5 14s996ms 2s999ms [ User: pubeu - Total duration: 4m29s - Times executed: 128 ]
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-16 11:13:00 Duration: 5s303ms Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-18 09:52:26 Duration: 5s285ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-15 15:20:13 Duration: 5s278ms Bind query: yes
8 248 7m52s 1s171ms 6s333ms 1s904ms 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 associatedterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and ptr.term_object_type_id = ? group by associatedterm, associatedtermnmsort, phenotype, casrn, ixnid, ixnprosehtml, ixnprose, ixnsort, associatedtermid, phenotypeid, inferredcount order by associatedtermnmsort limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 13 05 1 1s938ms 1s938ms 06 1 2s145ms 2s145ms 11 8 12s151ms 1s518ms 12 4 7s6ms 1s751ms 16 6 7s298ms 1s216ms 19 1 1s925ms 1s925ms 22 2 7s548ms 3s774ms 23 1 1s333ms 1s333ms Oct 14 00 1 2s161ms 2s161ms 06 1 1s349ms 1s349ms 12 1 1s354ms 1s354ms 18 2 2s666ms 1s333ms 19 1 1s335ms 1s335ms Oct 15 01 1 1s642ms 1s642ms 06 1 1s875ms 1s875ms 07 3 13s723ms 4s574ms 08 6 13s295ms 2s215ms 09 1 1s649ms 1s649ms 11 8 12s677ms 1s584ms 12 6 9s640ms 1s606ms 13 1 6s65ms 6s65ms 14 4 10s389ms 2s597ms 15 1 6s146ms 6s146ms 18 2 2s952ms 1s476ms 19 7 11s523ms 1s646ms 20 3 4s784ms 1s594ms Oct 16 00 2 2s710ms 1s355ms 01 2 3s5ms 1s502ms 03 1 6s200ms 6s200ms 04 2 4s943ms 2s471ms 05 3 4s166ms 1s388ms 06 2 3s548ms 1s774ms 08 2 2s857ms 1s428ms 10 5 6s704ms 1s340ms 11 5 21s420ms 4s284ms 12 3 4s664ms 1s554ms 13 8 10s769ms 1s346ms 14 4 10s566ms 2s641ms 15 3 4s21ms 1s340ms 16 1 6s51ms 6s51ms 19 1 1s343ms 1s343ms 21 5 8s972ms 1s794ms 22 2 3s302ms 1s651ms 23 1 1s628ms 1s628ms Oct 17 00 3 4s721ms 1s573ms 01 5 7s696ms 1s539ms 02 4 7s443ms 1s860ms 05 3 3s809ms 1s269ms 08 1 1s171ms 1s171ms 11 2 2s588ms 1s294ms 13 6 13s30ms 2s171ms 14 2 3s351ms 1s675ms 16 3 9s114ms 3s38ms 18 1 6s106ms 6s106ms 19 1 1s340ms 1s340ms 23 1 1s364ms 1s364ms Oct 18 00 3 4s348ms 1s449ms 01 2 7s383ms 3s691ms 02 2 2s455ms 1s227ms 03 2 2s862ms 1s431ms 05 1 1s350ms 1s350ms 07 1 1s347ms 1s347ms 08 12 18s349ms 1s529ms 09 8 17s980ms 2s247ms 10 6 13s592ms 2s265ms 11 6 9s16ms 1s502ms 12 10 13s634ms 1s363ms 13 7 9s479ms 1s354ms 14 3 4s246ms 1s415ms 15 3 5s453ms 1s817ms 16 2 3s296ms 1s648ms 17 2 2s690ms 1s345ms 20 4 5s377ms 1s344ms 21 1 1s359ms 1s359ms 22 2 3s319ms 1s659ms Oct 19 00 1 1s651ms 1s651ms 01 4 7s122ms 1s780ms 03 1 1s655ms 1s655ms 12 1 1s206ms 1s206ms 19 5 16s586ms 3s317ms 22 1 1s356ms 1s356ms [ User: pubeu - Total duration: 2m58s - Times executed: 92 ]
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-19 19:25:26 Duration: 6s333ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-15 07:22:10 Duration: 6s238ms Bind query: yes
-
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 associatedTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038'))) and ptr.term_object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-10-13 22:25:05 Duration: 6s221ms Bind query: yes
9 193 4m9s 1s180ms 1s486ms 1s294ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where outcome.disease_id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) or receptorterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by chemnmsort limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 13 05 3 4s112ms 1s370ms 07 1 1s329ms 1s329ms 08 2 2s657ms 1s328ms 09 5 6s685ms 1s337ms 11 4 5s405ms 1s351ms 12 3 3s917ms 1s305ms 13 1 1s281ms 1s281ms 14 1 1s277ms 1s277ms 16 1 1s250ms 1s250ms 17 1 1s207ms 1s207ms 18 2 2s518ms 1s259ms 21 1 1s326ms 1s326ms 22 1 1s295ms 1s295ms 23 2 2s758ms 1s379ms Oct 14 01 1 1s301ms 1s301ms 03 3 3s966ms 1s322ms 04 1 1s313ms 1s313ms 05 3 4s110ms 1s370ms 07 1 1s289ms 1s289ms 08 3 3s870ms 1s290ms 09 1 1s271ms 1s271ms 10 2 2s547ms 1s273ms 12 4 5s153ms 1s288ms 14 1 1s355ms 1s355ms 17 1 1s367ms 1s367ms 18 1 1s297ms 1s297ms 20 1 1s303ms 1s303ms Oct 15 00 1 1s433ms 1s433ms 01 1 1s313ms 1s313ms 02 2 2s605ms 1s302ms 03 2 2s649ms 1s324ms 04 3 3s922ms 1s307ms 05 3 4s235ms 1s411ms 06 2 2s652ms 1s326ms 13 5 6s612ms 1s322ms 16 1 1s182ms 1s182ms 17 1 1s416ms 1s416ms 18 3 3s757ms 1s252ms 19 3 3s747ms 1s249ms 20 2 2s708ms 1s354ms 21 4 4s905ms 1s226ms 22 1 1s294ms 1s294ms Oct 16 00 1 1s344ms 1s344ms 01 2 2s550ms 1s275ms 02 1 1s369ms 1s369ms 03 2 2s752ms 1s376ms 04 1 1s278ms 1s278ms 05 5 6s647ms 1s329ms 06 4 5s139ms 1s284ms 10 2 2s548ms 1s274ms 14 1 1s229ms 1s229ms 17 1 1s283ms 1s283ms 20 1 1s238ms 1s238ms 21 5 6s212ms 1s242ms 22 2 2s689ms 1s344ms Oct 17 00 2 2s415ms 1s207ms 01 1 1s281ms 1s281ms 02 2 2s510ms 1s255ms 03 1 1s432ms 1s432ms 04 6 7s652ms 1s275ms 05 2 2s778ms 1s389ms 08 3 3s876ms 1s292ms 09 3 3s925ms 1s308ms 10 1 1s232ms 1s232ms 11 1 1s325ms 1s325ms 14 3 3s729ms 1s243ms 15 5 6s125ms 1s225ms 17 1 1s260ms 1s260ms 18 3 3s878ms 1s292ms 20 1 1s248ms 1s248ms Oct 18 02 1 1s249ms 1s249ms 04 1 1s341ms 1s341ms 05 3 4s172ms 1s390ms 06 2 2s643ms 1s321ms 08 1 1s269ms 1s269ms 11 1 1s315ms 1s315ms 13 1 1s212ms 1s212ms 15 1 1s311ms 1s311ms 16 1 1s189ms 1s189ms 17 4 4s952ms 1s238ms 18 2 2s473ms 1s236ms 21 3 3s653ms 1s217ms 22 2 2s491ms 1s245ms 23 1 1s251ms 1s251ms Oct 19 00 1 1s192ms 1s192ms 02 1 1s322ms 1s322ms 03 1 1s328ms 1s328ms 04 1 1s304ms 1s304ms 05 3 4s60ms 1s353ms 06 1 1s253ms 1s253ms 07 4 4s929ms 1s232ms 09 3 3s818ms 1s272ms 10 1 1s288ms 1s288ms 15 2 2s466ms 1s233ms 17 2 2s535ms 1s267ms 21 1 1s335ms 1s335ms [ User: pubeu - Total duration: 1m27s - Times executed: 68 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.disease_id in ( select descendant_object_id from dag_path where ancestor_object_id = '2081813') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2081813') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-17 18:21:32 Duration: 1s486ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.disease_id in ( select descendant_object_id from dag_path where ancestor_object_id = '2077448') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2077448') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-13 23:05:17 Duration: 1s458ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where outcome.disease_id in ( select descendant_object_id from dag_path where ancestor_object_id = '2077448') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2077448') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by chemNmSort LIMIT 50;
Date: 2024-10-14 05:43:43 Duration: 1s457ms Bind query: yes
10 169 7m5s 1s18ms 5s806ms 2s518ms select e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, ( select string_agg(distinct stressorterm.nm || ? || ( select cd from object_type where id = stressorterm.object_type_id) || ? || stressorterm.nm_html || ? || stressorterm.acc_txt || ? || stressorterm.acc_db_cd, ?)) as stressoragents, ( select string_agg(distinct coalesce(receptorterm.nm, ?) || ? || coalesce(( select cd from object_type where id = receptorterm.object_type_id), ?) || ? || coalesce(receptorterm.nm_html, ?) || ? || coalesce(receptorterm.acc_txt, ?) || ? || coalesce(receptorterm.acc_db_cd, ?) || ? || receptor.description, ?)) as receptors, ( select string_agg(distinct country.nm, ?)) as studycountries, ( select string_agg(distinct location.locality_txt, ?)) as localities, ( select string_agg(distinct event.medium_nm || ? || coalesce(event.medium_term_acc_txt, ?), ?)) as assaymediums, ( select string_agg(distinct exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd, ?)) as assayedmarkers, ( select string_agg(distinct diseaseterm.nm || ? || ( select cd from object_type where id = diseaseterm.object_type_id) || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd, ?)) as diseases, ( select string_agg(distinct phenotypeterm.nm || ? || ( select cd from object_type where id = phenotypeterm.object_type_id) || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd, ?)) as phenotypes, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, re.author_summary summary, count(*) over () fullrowcount from exposure e inner join reference r on e.reference_id = r.id inner join exp_stressor stressor on e.exp_stressor_id = stressor.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join term receptorterm on receptor.term_id = receptorterm.id left outer join exp_event event on e.exp_event_id = event.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join exp_event_location location on e.exp_event_id = location.exp_event_id left outer join country on location.country_id = country.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id inner join reference_exp re on e.reference_id = re.reference_id left outer join exp_study_factor expstudyfactor on re.id = expstudyfactor.reference_exp_id where e.reference_id = any (array ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like ?) and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressoragents;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 13 00 1 1s546ms 1s546ms 06 4 5s83ms 1s270ms 11 6 9s430ms 1s571ms 12 2 2s131ms 1s65ms 14 1 2s602ms 2s602ms 15 4 4s390ms 1s97ms 16 9 21s440ms 2s382ms 22 5 9s738ms 1s947ms Oct 14 00 1 1s61ms 1s61ms 08 4 5s254ms 1s313ms 09 4 4s448ms 1s112ms 14 1 1s152ms 1s152ms 20 4 6s394ms 1s598ms Oct 15 01 4 6s207ms 1s551ms 07 2 10s158ms 5s79ms 08 1 5s148ms 5s148ms 10 1 1s533ms 1s533ms 13 1 5s41ms 5s41ms 14 1 5s259ms 5s259ms 15 1 5s199ms 5s199ms 23 4 6s223ms 1s555ms Oct 16 00 4 5s125ms 1s281ms 03 1 5s77ms 5s77ms 09 2 3s355ms 1s677ms 11 15 1m10s 4s692ms 12 4 6s368ms 1s592ms 14 1 5s46ms 5s46ms 21 3 4s508ms 1s502ms Oct 17 02 1 3s805ms 3s805ms 04 3 5s141ms 1s713ms 05 3 7s587ms 2s529ms 08 1 1s643ms 1s643ms 11 4 10s259ms 2s564ms 12 1 1s563ms 1s563ms 13 1 5s193ms 5s193ms 15 5 22s359ms 4s471ms 16 1 5s239ms 5s239ms 17 2 3s474ms 1s737ms 18 1 5s224ms 5s224ms 19 4 10s42ms 2s510ms Oct 18 00 2 3s383ms 1s691ms 01 6 13s631ms 2s271ms 02 1 2s437ms 2s437ms 03 5 5s941ms 1s188ms 04 4 5s119ms 1s279ms 09 9 35s543ms 3s949ms 10 4 17s308ms 4s327ms 11 3 7s770ms 2s590ms 15 4 10s935ms 2s733ms 16 1 2s353ms 2s353ms 22 4 4s558ms 1s139ms Oct 19 01 1 1s67ms 1s67ms 02 1 1s313ms 1s313ms 03 1 1s311ms 1s311ms 07 4 6s875ms 1s718ms 11 1 5s163ms 5s163ms [ User: pubeu - Total duration: 1m23s - Times executed: 25 ]
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-18 09:52:50 Duration: 5s806ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-16 11:15:16 Duration: 5s381ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-16 11:13:04 Duration: 5s329ms Bind query: yes
11 157 10m6s 1s18ms 11s930ms 3s862ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 13 00 2 2s391ms 1s195ms 03 1 1s98ms 1s98ms 06 2 2s412ms 1s206ms 07 3 3s684ms 1s228ms 08 1 1s34ms 1s34ms 10 5 20s157ms 4s31ms 11 5 19s189ms 3s837ms 13 1 5s193ms 5s193ms 15 2 11s248ms 5s624ms 16 1 1s26ms 1s26ms 21 3 16s130ms 5s376ms 22 1 10s271ms 10s271ms Oct 14 02 1 1s263ms 1s263ms 03 1 2s111ms 2s111ms 04 1 6s546ms 6s546ms 05 3 19s296ms 6s432ms 06 1 4s966ms 4s966ms 07 5 7s808ms 1s561ms 08 1 5s132ms 5s132ms 10 2 2s202ms 1s101ms 11 1 2s561ms 2s561ms 13 1 11s726ms 11s726ms 14 1 4s652ms 4s652ms 16 2 6s83ms 3s41ms 17 1 2s608ms 2s608ms 19 1 2s144ms 2s144ms 21 1 1s236ms 1s236ms 22 3 25s675ms 8s558ms 23 3 8s560ms 2s853ms Oct 15 03 1 2s144ms 2s144ms 04 2 8s441ms 4s220ms 07 1 1s304ms 1s304ms 09 1 1s265ms 1s265ms 10 1 10s113ms 10s113ms 12 3 16s375ms 5s458ms 13 1 5s537ms 5s537ms 16 5 6s323ms 1s264ms 18 1 2s224ms 2s224ms 21 1 11s340ms 11s340ms 22 2 4s119ms 2s59ms Oct 16 00 1 10s195ms 10s195ms 04 2 8s441ms 4s220ms 07 1 5s141ms 5s141ms 08 2 11s854ms 5s927ms 10 1 10s335ms 10s335ms 11 1 2s623ms 2s623ms 12 1 1s268ms 1s268ms 14 1 10s352ms 10s352ms 15 1 2s111ms 2s111ms 17 1 1s38ms 1s38ms 18 2 2s689ms 1s344ms 19 1 10s423ms 10s423ms 21 1 2s598ms 2s598ms 22 1 10s497ms 10s497ms 23 1 1s329ms 1s329ms Oct 17 01 2 8s106ms 4s53ms 02 3 13s307ms 4s435ms 03 2 2s515ms 1s257ms 04 4 14s630ms 3s657ms 05 4 26s740ms 6s685ms 06 1 2s698ms 2s698ms 07 3 8s278ms 2s759ms 09 1 1s186ms 1s186ms 12 2 20s812ms 10s406ms 13 4 18s632ms 4s658ms 14 1 1s49ms 1s49ms 16 1 1s320ms 1s320ms 23 1 1s339ms 1s339ms Oct 18 02 1 1s186ms 1s186ms 03 1 1s511ms 1s511ms 04 1 1s895ms 1s895ms 06 1 4s205ms 4s205ms 07 3 23s19ms 7s673ms 13 2 3s905ms 1s952ms 17 1 10s347ms 10s347ms 19 1 11s662ms 11s662ms 20 1 1s35ms 1s35ms 21 1 1s897ms 1s897ms 22 1 2s571ms 2s571ms Oct 19 00 4 5s41ms 1s260ms 01 1 4s616ms 4s616ms 02 1 1s166ms 1s166ms 03 2 4s753ms 2s376ms 07 2 11s529ms 5s764ms 08 1 2s557ms 2s557ms 11 2 2s971ms 1s485ms 12 1 1s580ms 1s580ms 13 1 1s19ms 1s19ms 14 1 2s641ms 2s641ms 15 1 10s256ms 10s256ms 17 2 2s349ms 1s174ms 18 1 2s210ms 2s210ms 20 1 1s280ms 1s280ms [ User: pubeu - Total duration: 3m58s - Times executed: 67 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-17 05:05:53 Duration: 11s930ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-14 13:22:58 Duration: 11s726ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-18 19:37:17 Duration: 11s662ms Database: ctdprd51 User: pubeu Bind query: yes
12 116 2m40s 1s302ms 1s502ms 1s384ms select t.nm, t.nm_html nmhtml, t.secondary_nm secondarynm, t.acc_txt acc, ? || t.nm accquerystr, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term t where t.object_type_id = ? and regexp_replace(upper(substring(t.nm, ?, ?)), ?, ?) = ? order by t.nm_sort limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 13 00 1 1s431ms 1s431ms 05 2 2s780ms 1s390ms 07 6 8s289ms 1s381ms 09 2 2s808ms 1s404ms 15 1 1s417ms 1s417ms 18 1 1s342ms 1s342ms 20 2 2s648ms 1s324ms 21 1 1s401ms 1s401ms 22 2 2s911ms 1s455ms Oct 14 00 1 1s399ms 1s399ms 02 3 4s161ms 1s387ms 04 5 6s850ms 1s370ms 05 5 6s975ms 1s395ms 06 1 1s353ms 1s353ms 08 2 2s817ms 1s408ms 09 1 1s359ms 1s359ms 10 1 1s403ms 1s403ms 12 1 1s367ms 1s367ms 23 1 1s409ms 1s409ms Oct 15 03 1 1s362ms 1s362ms 04 1 1s347ms 1s347ms 05 3 4s121ms 1s373ms 06 1 1s352ms 1s352ms 07 2 2s797ms 1s398ms 08 1 1s340ms 1s340ms 10 1 1s404ms 1s404ms 12 2 2s727ms 1s363ms 14 1 1s321ms 1s321ms 15 2 2s786ms 1s393ms 17 1 1s400ms 1s400ms Oct 16 00 2 2s619ms 1s309ms 01 3 4s110ms 1s370ms 04 2 2s813ms 1s406ms 05 2 2s825ms 1s412ms 09 6 8s315ms 1s385ms 11 1 1s344ms 1s344ms 13 1 1s347ms 1s347ms Oct 17 01 4 5s592ms 1s398ms 04 2 2s790ms 1s395ms 05 2 2s876ms 1s438ms 07 2 2s766ms 1s383ms 08 1 1s432ms 1s432ms 10 1 1s313ms 1s313ms 13 1 1s372ms 1s372ms 21 1 1s380ms 1s380ms 22 1 1s370ms 1s370ms Oct 18 00 1 1s333ms 1s333ms 01 3 4s153ms 1s384ms 03 1 1s416ms 1s416ms 04 2 2s658ms 1s329ms 05 5 6s914ms 1s382ms 08 3 4s287ms 1s429ms 09 1 1s377ms 1s377ms 11 2 2s723ms 1s361ms 15 1 1s416ms 1s416ms 22 1 1s392ms 1s392ms 23 1 1s397ms 1s397ms Oct 19 00 2 2s761ms 1s380ms 01 2 2s767ms 1s383ms 05 2 2s827ms 1s413ms 13 1 1s367ms 1s367ms 23 1 1s413ms 1s413ms [ User: pubeu - Total duration: 1m7s - Times executed: 49 ]
-
SELECT /* GeneBrowseTermsDAO */ t.nm, t.nm_html nmHtml, t.secondary_nm secondaryNm, t.acc_txt acc, 'name:' || t.nm accQueryStr, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term t WHERE t.object_type_id = '4' AND REGEXP_REPLACE(UPPER(SUBSTRING(t.nm, 1, 1)), '[^A-Z]', '#') = 'A' ORDER BY t.nm_sort LIMIT 100;
Date: 2024-10-17 05:37:09 Duration: 1s502ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GeneBrowseTermsDAO */ t.nm, t.nm_html nmHtml, t.secondary_nm secondaryNm, t.acc_txt acc, 'name:' || t.nm accQueryStr, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term t WHERE t.object_type_id = '4' AND REGEXP_REPLACE(UPPER(SUBSTRING(t.nm, 1, 1)), '[^A-Z]', '#') = 'A' ORDER BY t.nm_sort LIMIT 100;
Date: 2024-10-13 22:21:37 Duration: 1s492ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GeneBrowseTermsDAO */ t.nm, t.nm_html nmHtml, t.secondary_nm secondaryNm, t.acc_txt acc, 'name:' || t.nm accQueryStr, t.has_chems hasChems, t.has_diseases hasDiseases, t.has_exposures hasExposures, t.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term t WHERE t.object_type_id = '4' AND REGEXP_REPLACE(UPPER(SUBSTRING(t.nm, 1, 1)), '[^A-Z]', '#') = 'A' ORDER BY t.nm_sort LIMIT 100;
Date: 2024-10-18 08:31:04 Duration: 1s490ms Bind query: yes
13 110 7m36s 1s1ms 6s205ms 4s154ms 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 #13
Day Hour Count Duration Avg duration Oct 13 03 2 10s508ms 5s254ms 05 4 16s811ms 4s202ms 07 1 1s16ms 1s16ms 10 1 5s347ms 5s347ms 17 1 5s316ms 5s316ms 19 2 10s602ms 5s301ms 20 3 11s605ms 3s868ms 22 6 27s713ms 4s618ms Oct 14 00 1 5s204ms 5s204ms 02 1 5s288ms 5s288ms 05 2 6s155ms 3s77ms 06 2 6s192ms 3s96ms 07 1 5s267ms 5s267ms 10 3 11s559ms 3s853ms 12 3 11s628ms 3s876ms 14 1 1s44ms 1s44ms 16 1 5s215ms 5s215ms 17 2 10s807ms 5s403ms 18 1 1s22ms 1s22ms 19 1 5s210ms 5s210ms 22 1 1s9ms 1s9ms 23 2 2s93ms 1s46ms Oct 15 00 1 5s184ms 5s184ms 01 1 5s313ms 5s313ms 03 4 12s757ms 3s189ms 05 1 5s305ms 5s305ms 06 1 5s429ms 5s429ms 07 1 1s49ms 1s49ms 11 1 5s313ms 5s313ms 12 1 1s35ms 1s35ms 19 1 5s453ms 5s453ms 20 1 5s292ms 5s292ms Oct 16 03 3 15s953ms 5s317ms 05 1 5s106ms 5s106ms 06 1 5s157ms 5s157ms 08 1 5s232ms 5s232ms 11 2 10s455ms 5s227ms 12 1 5s278ms 5s278ms 17 1 5s404ms 5s404ms 21 1 5s228ms 5s228ms 22 1 5s203ms 5s203ms Oct 17 01 1 1s1ms 1s1ms 02 1 5s803ms 5s803ms 03 1 4s976ms 4s976ms 11 2 10s523ms 5s261ms 13 1 5s234ms 5s234ms 15 1 1s18ms 1s18ms 16 2 10s720ms 5s360ms 21 2 10s550ms 5s275ms 22 1 5s296ms 5s296ms Oct 18 00 2 10s386ms 5s193ms 06 1 5s709ms 5s709ms 09 1 5s479ms 5s479ms 11 1 6s154ms 6s154ms 12 2 6s376ms 3s188ms 16 2 2s21ms 1s10ms 17 1 5s230ms 5s230ms 19 2 10s661ms 5s330ms 22 1 1s15ms 1s15ms Oct 19 02 2 10s709ms 5s354ms 04 4 22s359ms 5s589ms 07 3 3s29ms 1s9ms 09 2 10s525ms 5s262ms 17 2 6s230ms 3s115ms 18 2 6s689ms 3s344ms 19 3 7s485ms 2s495ms [ User: pubeu - Total duration: 3m16s - Times executed: 52 ]
-
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 = '1396317' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-19 04:27:58 Duration: 6s205ms Database: ctdprd51 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 = '1438366' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-18 11:18:37 Duration: 6s154ms 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 = '1430593' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-17 02:57:59 Duration: 5s803ms Database: ctdprd51 User: pubeu Bind query: yes
14 84 5m37s 1s40ms 33s261ms 4s17ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 13 02 1 1s61ms 1s61ms 06 1 3s239ms 3s239ms 10 1 1s842ms 1s842ms 11 1 1s94ms 1s94ms 12 1 1s954ms 1s954ms 14 1 1s944ms 1s944ms 18 1 1s931ms 1s931ms 21 1 33s261ms 33s261ms 22 1 2s82ms 2s82ms Oct 14 01 1 1s827ms 1s827ms 02 1 12s735ms 12s735ms 04 2 16s625ms 8s312ms 09 1 1s880ms 1s880ms 13 1 13s34ms 13s34ms 18 1 1s290ms 1s290ms 21 5 9s933ms 1s986ms 22 1 32s933ms 32s933ms 23 1 5s603ms 5s603ms Oct 15 01 1 14s441ms 14s441ms 03 9 13s316ms 1s479ms 04 2 4s730ms 2s365ms 07 2 2s232ms 1s116ms 10 1 1s275ms 1s275ms 13 1 1s939ms 1s939ms 22 1 1s63ms 1s63ms Oct 16 01 1 15s467ms 15s467ms 02 1 1s901ms 1s901ms 03 1 24s584ms 24s584ms 07 1 1s956ms 1s956ms 08 1 2s162ms 2s162ms 09 1 2s91ms 2s91ms 10 1 1s82ms 1s82ms 12 1 1s605ms 1s605ms 23 1 2s194ms 2s194ms Oct 17 00 1 2s49ms 2s49ms 02 1 14s525ms 14s525ms 03 2 13s270ms 6s635ms 06 1 7s473ms 7s473ms 07 1 1s606ms 1s606ms 08 2 3s112ms 1s556ms 12 1 2s95ms 2s95ms 16 1 1s532ms 1s532ms 19 1 7s56ms 7s56ms 21 1 3s33ms 3s33ms 22 4 9s903ms 2s475ms Oct 18 03 1 2s213ms 2s213ms 06 2 2s116ms 1s58ms 09 2 3s590ms 1s795ms 22 2 2s148ms 1s74ms Oct 19 04 1 1s761ms 1s761ms 06 1 1s802ms 1s802ms 08 6 11s679ms 1s946ms 11 2 2s988ms 1s494ms 14 1 5s615ms 5s615ms 20 1 1s533ms 1s533ms [ User: pubeu - Total duration: 2m16s - Times executed: 36 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2087863') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-13 21:50:40 Duration: 33s261ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2087863') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-14 22:52:01 Duration: 32s933ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2077469') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-16 03:07:45 Duration: 24s584ms Bind query: yes
15 83 1m33s 1s1ms 1s207ms 1s128ms select distinct stressorterm.nm as chemnm, stressorterm.nm_html as chemnmhtml, stressorterm.nm_sort as chemnmsort, stressorterm.acc_txt as chemacc, ( select string_agg(distinct stressorsrctype.nm || ? || stressorsrctype.cd, ?)) as stressorsrctypenm, stressor.src_details as stressorsrcdetails, stressor.sample_qty as stressorsampleqty, stressor.note as stressornote, receptor.qty as nbrreceptors, receptor.description as receptors, receptor.note as receptornotes, receptorterm.nm || ? || ( select cd from object_type where id = receptor.object_type_id) || ? || receptorterm.nm_html || ? || receptorterm.acc_txt || ? || receptorterm.acc_db_cd as receptorterms, ( select string_agg(distinct receptortobaccouse.tobacco_use_nm || ? || receptortobaccouse.pct, ?)) as smokerstatus, receptor.age as agerange, receptor.age_uom_nm as ageuomnm, receptor.age_qualifier_nm as agequalifiernm, receptor.gender_nm as gendernmsearch, receptor.id receptorid, ( select string_agg(pct || ? || gender_nm || ? || gender_nm_html, ?) from exp_receptor_gender where exp_receptor_id = receptor.id) as genderdetails, ( select string_agg(distinct receptorrace.race_nm || ? || receptorrace.pct, ?)) as receptorrace, ( select string_agg(distinct eventassaymethod.nm, ?)) as assaymethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumacctxt, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, event.collection_start_yr || ? || event.collection_end_yr as collectionstartandendyr, event.detection_limit as detectionlimit, event.detection_limit_uom as detectionlimituom, event.detection_freq as detectionfreq, event.note as eventnote, ( select string_agg(distinct eventlocation.geographic_region_nm, ?)) as stateorprovince, ( select string_agg(distinct eventlocation.locality_txt, ?)) as localitytxt, ( select string_agg(distinct country.nm, ?)) as studycountries, exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd as assayedmarkers, event.exp_marker_lvl as assaylevel, assay_uom as measurement, assay_measurement_stat as measurementstat, assay_note as assaynote, eiot.description as outcomerltnp, diseaseterm.nm || ? || ? || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd as diseasefield, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotypefield, outcome.phenotype_action_degree_type_nm as phenotypeactiondegreetypenm, e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, r.abbr_authors_txt as abbrauthorstxt, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, outcome.note as outcomenote, eventlocation.exp_event_id as eventid, count(*) over () fullrowcount from exposure e inner join exp_stressor stressor on e.exp_stressor_id = stressor.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join exp_event event on e.exp_event_id = event.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot on outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id left outer join term receptorterm on receptor.term_id = receptorterm.id inner join reference r on e.reference_id = r.id left outer join exp_stressor_stressor_src esss on stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorsrctype on esss.exp_stressor_src_type_id = stressorsrctype.id left outer join exp_receptor_tobacco_use receptortobaccouse on receptor.id = receptortobaccouse.exp_receptor_id left outer join exp_receptor_race receptorrace on receptor.id = receptorrace.exp_receptor_id left outer join exp_event_assay_method eventassaymethod on event.id = eventassaymethod.exp_event_id left outer join exp_event_location eventlocation on event.id = eventlocation.exp_event_id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id left outer join country on eventlocation.country_id = country.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join reference_exp referenceexp on e.reference_acc_txt = referenceexp.reference_acc_txt and e.reference_acc_db_id = referenceexp.reference_acc_db_id left outer join exp_study_factor expstudyfactor on referenceexp.id = expstudyfactor.reference_exp_id where stressorterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) or exposuremarkerterm.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) group by chemnm, chemnmhtml, chemnmsort, chemacc, stressorsrcdetails, stressorsampleqty, stressornote, receptorterms, medium, mediumacctxt, assayedmarkers, assaylevel, measurement, measurementstat, assaynote, outcomerltnp, diseasefield, phenotypefield, phenotypeactiondegreetypenm, ref, r.abbr_authors_txt, collectionstartandendyr, receptorid, detectionlimit, detectionlimituom, detectionfreq, eventnote, outcomenote, eventid order by medium limit ? offset ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 16 01 1 1s87ms 1s87ms Oct 17 04 74 1m24s 1s138ms 05 2 2s219ms 1s109ms Oct 18 05 6 6s160ms 1s26ms [ User: pubeu - Total duration: 18s14ms - Times executed: 16 ]
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where stressorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by medium LIMIT 50 OFFSET 4150;
Date: 2024-10-17 04:59:00 Duration: 1s207ms Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where stressorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by medium LIMIT 50 OFFSET 3950;
Date: 2024-10-17 04:58:51 Duration: 1s187ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT DISTINCT stressorTerm.nm as chemNm, stressorTerm.nm_html as chemNmHtml, stressorTerm.nm_sort as chemNmSort, stressorTerm.acc_txt as chemAcc, ( SELECT STRING_AGG(distinct stressorSrcType.nm || '^' || stressorSrcType.cd, '|')) as stressorSrcTypeNm, stressor.src_details as stressorSrcDetails, stressor.sample_qty as stressorSampleQty, stressor.note as stressorNote, receptor.qty as nbrReceptors, receptor.description as receptors, receptor.note as receptorNotes, receptorTerm.nm || '^' || ( select cd from object_type where id = receptor.object_type_id) || '^' || receptorTerm.nm_html || '^' || receptorTerm.acc_txt || '^' || receptorTerm.acc_db_cd as receptorTerms, ( SELECT STRING_AGG(distinct receptorTobaccoUse.tobacco_use_nm || '^' || receptorTobaccoUse.pct, ' | ')) as smokerStatus, receptor.age as ageRange, receptor.age_uom_nm as ageUOMNm, receptor.age_qualifier_nm as ageQualifierNm, receptor.gender_nm as genderNmSearch, receptor.id receptorID, ( SELECT STRING_AGG(pct || '^' || gender_nm || '^' || gender_nm_html, '|') from exp_receptor_gender where exp_receptor_id = receptor.id) as genderDetails, ( SELECT STRING_AGG(DISTINCT receptorRace.race_nm || '^' || receptorRace.pct, ' | ')) as receptorRace, ( SELECT STRING_AGG(DISTINCT eventAssayMethod.nm, ' | ')) as assayMethods, event.medium_nm as medium, event.medium_term_acc_txt as mediumAccTxt, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, event.collection_start_yr || '-' || event.collection_end_yr as collectionStartAndEndYr, event.detection_limit as detectionLimit, event.detection_limit_uom as detectionLimitUOM, event.detection_freq as detectionFreq, event.note as eventNote, ( SELECT STRING_AGG(DISTINCT eventLocation.geographic_region_nm, ' | ')) as stateOrProvince, ( SELECT STRING_AGG(DISTINCT eventLocation.locality_txt, ' | ')) as localityTxt, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd as assayedMarkers, event.exp_marker_lvl as assayLevel, assay_uom as measurement, assay_measurement_stat as measurementStat, assay_note as assayNote, eiot.description as outcomeRltnp, diseaseTerm.nm || '^' || 'disease' || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd as diseaseField, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotypeField, outcome.phenotype_action_degree_type_nm as phenotypeActionDegreeTypeNm, e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, r.abbr_authors_txt as abbrAuthorsTxt, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, outcome.note as outcomeNote, eventLocation.exp_event_id as eventID, COUNT(*) OVER () fullRowCount FROM exposure e inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join exp_event event ON e.exp_event_id = event.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join exp_outcome_ixn_type eiot ON outcome.exp_outcome_ixn_type_id = eiot.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id inner join reference r ON e.reference_id = r.id left outer join exp_stressor_stressor_src esss ON stressor.id = esss.exp_stressor_id left outer join exp_stressor_src_type stressorSrcType ON esss.exp_stressor_src_type_id = stressorSrcType.id left outer join exp_receptor_tobacco_use receptorTobaccoUse ON receptor.id = receptorTobaccoUse.exp_receptor_id left outer join exp_receptor_race receptorRace ON receptor.id = receptorRace.exp_receptor_id left outer join exp_event_assay_method eventAssayMethod ON event.id = eventAssayMethod.exp_event_id left outer join exp_event_location eventLocation ON event.id = eventLocation.exp_event_id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id left outer join country ON eventLocation.country_id = country.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join reference_exp referenceExp on e.reference_acc_txt = referenceExp.reference_acc_txt and e.reference_acc_db_id = referenceExp.reference_acc_db_id left outer join exp_study_factor expStudyFactor on referenceExp.id = expStudyFactor.reference_exp_id where stressorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1287811') GROUP BY chemNm, chemNmHtml, chemNmSort, chemAcc, stressorSrcDetails, stressorSampleQty, stressorNote, receptorTerms, medium, mediumAccTxt, assayedMarkers, assayLevel, measurement, measurementStat, assayNote, outcomeRltnp, diseaseField, phenotypeField, phenotypeActionDegreeTypeNm, ref, r.abbr_authors_txt, collectionStartAndEndYr, receptorID, detectionLimit, detectionLimitUOM, detectionFreq, eventNote, outcomeNote, eventID order by medium LIMIT 50 OFFSET 150;
Date: 2024-10-17 04:50:19 Duration: 1s180ms Database: ctdprd51 User: pubeu Bind query: yes
16 66 1m12s 1s1ms 5s937ms 1s102ms select g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, i.id ixnid, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id where gcr.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ? offset ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 13 01 1 1s169ms 1s169ms 12 1 1s103ms 1s103ms 22 8 8s249ms 1s31ms Oct 15 01 1 1s119ms 1s119ms 12 1 1s114ms 1s114ms Oct 16 16 1 5s937ms 5s937ms Oct 19 10 52 52s920ms 1s17ms 19 1 1s122ms 1s122ms [ User: pubeu - Total duration: 7s307ms - Times executed: 7 ]
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1395038') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50 OFFSET 50;
Date: 2024-10-16 16:39:35 Duration: 5s937ms Bind query: yes
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1274499') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50 OFFSET 50;
Date: 2024-10-13 01:29:21 Duration: 1s169ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1274499') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50 OFFSET 50;
Date: 2024-10-19 19:32:27 Duration: 1s122ms Bind query: yes
17 61 4m23s 1s23ms 17s758ms 4s317ms select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort limit ? offset ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 13 05 1 2s581ms 2s581ms 06 1 2s616ms 2s616ms 08 1 1s239ms 1s239ms 09 1 6s857ms 6s857ms 11 1 10s322ms 10s322ms 20 1 1s918ms 1s918ms 22 1 17s758ms 17s758ms Oct 14 03 2 24s109ms 12s54ms 05 2 5s617ms 2s808ms 08 3 15s594ms 5s198ms 09 1 4s862ms 4s862ms 10 1 6s903ms 6s903ms 14 1 10s296ms 10s296ms 16 1 1s254ms 1s254ms 18 1 1s919ms 1s919ms 21 2 3s903ms 1s951ms 22 1 1s235ms 1s235ms Oct 15 01 2 5s177ms 2s588ms 06 1 4s887ms 4s887ms 07 1 1s36ms 1s36ms 09 1 6s664ms 6s664ms 16 2 2s734ms 1s367ms 17 1 1s891ms 1s891ms 20 2 5s46ms 2s523ms 21 1 2s575ms 2s575ms Oct 16 01 1 6s307ms 6s307ms 04 1 1s374ms 1s374ms 07 1 6s873ms 6s873ms 10 2 3s897ms 1s948ms 21 1 11s440ms 11s440ms Oct 17 04 2 4s438ms 2s219ms 07 1 10s299ms 10s299ms 08 1 1s175ms 1s175ms 15 1 10s334ms 10s334ms 19 1 10s243ms 10s243ms 21 1 2s696ms 2s696ms Oct 18 04 2 3s618ms 1s809ms 13 1 1s899ms 1s899ms 15 1 2s120ms 2s120ms 17 1 1s314ms 1s314ms 22 2 4s561ms 2s280ms Oct 19 03 3 6s193ms 2s64ms 04 1 1s215ms 1s215ms 13 1 10s403ms 10s403ms 22 2 2s265ms 1s132ms 23 1 11s714ms 11s714ms [ User: pubeu - Total duration: 1m51s - Times executed: 24 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081053') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 2260600;
Date: 2024-10-13 22:34:11 Duration: 17s758ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2080828') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1774900;
Date: 2024-10-14 03:28:59 Duration: 13s435ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 350;
Date: 2024-10-19 23:57:22 Duration: 11s714ms Database: ctdprd51 User: pubeu Bind query: yes
18 59 6m18s 1s4ms 9s136ms 6s413ms select sq.*, count(*) over () fullrowcount from ( select distinct gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid from dag_node gt inner join gene_go_annot gga on gt.object_id = gga.go_term_id inner join term g on gga.gene_id = g.id where gt.id in ( select p.descendant_dag_node_id from dag_path p where p.ancestor_object_id = ?) and gga.is_not = false) sq order by sq.gonmsort, sq.genesymbolsort;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 13 10 4 6s904ms 1s726ms 17 4 35s674ms 8s918ms Oct 14 03 4 35s171ms 8s792ms Oct 15 01 4 9s5ms 2s251ms 17 4 24s480ms 6s120ms 21 4 34s702ms 8s675ms Oct 16 04 4 35s500ms 8s875ms 20 4 35s119ms 8s779ms Oct 17 03 4 35s334ms 8s833ms 12 4 6s61ms 1s515ms Oct 18 03 4 5s306ms 1s326ms 20 4 35s151ms 8s787ms 23 4 35s153ms 8s788ms Oct 19 04 1 1s4ms 1s4ms 05 1 7s90ms 7s90ms 10 4 35s458ms 8s864ms 20 1 1s280ms 1s280ms [ User: pubeu - Total duration: 1m52s - Times executed: 14 ]
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-16 04:08:52 Duration: 9s136ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-13 17:39:20 Duration: 9s85ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-13 17:39:16 Duration: 9s67ms Bind query: yes
19 55 2m4s 1s7ms 3s438ms 2s260ms 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 #19
Day Hour Count Duration Avg duration Oct 13 05 5 10s710ms 2s142ms 22 1 1s992ms 1s992ms Oct 14 05 4 8s828ms 2s207ms Oct 15 02 1 1s900ms 1s900ms 05 4 8s796ms 2s199ms 14 2 4s436ms 2s218ms 17 2 4s486ms 2s243ms 21 1 1s822ms 1s822ms Oct 16 01 1 1s900ms 1s900ms 03 1 1s914ms 1s914ms 04 1 2s419ms 2s419ms 05 4 8s756ms 2s189ms 09 1 3s310ms 3s310ms 12 1 1s915ms 1s915ms 15 2 3s968ms 1s984ms Oct 17 05 4 8s858ms 2s214ms 08 3 6s351ms 2s117ms 09 1 1s894ms 1s894ms 13 1 3s185ms 3s185ms 16 1 2s404ms 2s404ms Oct 18 01 1 1s891ms 1s891ms 05 4 8s734ms 2s183ms 07 1 3s396ms 3s396ms 14 2 6s531ms 3s265ms Oct 19 05 4 8s786ms 2s196ms 06 1 1s890ms 1s890ms 07 1 3s229ms 3s229ms [ User: pubeu - Total duration: 53s158ms - Times executed: 18 ]
[ User: qaeu - Total duration: 26s977ms - Times executed: 8 ]
-
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 = '593015' 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-10-17 08:58:14 Duration: 3s438ms Database: ctdprd51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '593015' 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-10-17 05:40:12 Duration: 3s424ms Database: ctdprd51 User: qaeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '593015' 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-10-15 17:11:42 Duration: 3s411ms Database: ctdprd51 User: pubeu Bind query: yes
20 44 1m3s 1s40ms 1s921ms 1s450ms select fg.nm fromgenesymbol, fg.acc_txt fromgeneacc, tg.nm togenesymbol, tg.acc_txt togeneacc, ft.nm fromtaxonnm, ft.secondary_nm fromtaxoncommonnm, ft.acc_txt fromtaxonacc, tt.nm totaxonnm, tt.secondary_nm totaxoncommonnm, tt.acc_txt totaxonacc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( select string_agg(ggt.throughput_txt, ? order by ggt.throughput_txt) from gene_gene_ref_throughput ggt where ggt.gene_gene_reference_id = ggr.id) throughput, count(*) over () fullrowcount from gene_gene_reference ggr inner join term fg on ggr.from_gene_id = fg.id inner join term tg on ggr.to_gene_id = tg.id inner join term ft on ggr.from_taxon_id = ft.id inner join term tt on ggr.to_taxon_id = tt.id where ggr.reference_id = ? order by fg.nm_sort, tg.nm_sort limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 13 05 4 6s426ms 1s606ms 12 1 1s262ms 1s262ms 23 1 1s142ms 1s142ms Oct 14 05 4 6s489ms 1s622ms 16 1 1s282ms 1s282ms Oct 15 03 1 1s333ms 1s333ms 05 4 6s726ms 1s681ms 17 2 3s21ms 1s510ms Oct 16 04 1 1s297ms 1s297ms 05 4 5s588ms 1s397ms Oct 17 04 1 1s261ms 1s261ms 05 4 5s949ms 1s487ms 08 2 2s653ms 1s326ms Oct 18 05 5 7s632ms 1s526ms Oct 19 00 1 1s272ms 1s272ms 05 4 5s671ms 1s417ms 11 1 1s244ms 1s244ms 13 1 1s81ms 1s81ms 15 1 1s218ms 1s218ms 19 1 1s248ms 1s248ms [ User: pubeu - Total duration: 14s561ms - Times executed: 11 ]
[ User: qaeu - Total duration: 3s400ms - Times executed: 2 ]
-
SELECT /* ReferenceGeneGeneIxnsDAO */ fg.nm fromGeneSymbol, fg.acc_txt fromGeneAcc, tg.nm toGeneSymbol, tg.acc_txt toGeneAcc, ft.nm fromTaxonNm, ft.secondary_nm fromTaxonCommonNm, ft.acc_txt fromTaxonAcc, tt.nm toTaxonNm, tt.secondary_nm toTaxonCommonNm, tt.acc_txt toTaxonAcc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( SELECT STRING_AGG(ggt.throughput_txt, ', ' ORDER BY ggt.throughput_txt) FROM gene_gene_ref_throughput ggt WHERE ggt.gene_gene_reference_id = ggr.id) throughput, COUNT(*) OVER () fullRowCount FROM gene_gene_reference ggr INNER JOIN term fg ON ggr.from_gene_id = fg.id INNER JOIN term tg ON ggr.to_gene_id = tg.id INNER JOIN term ft ON ggr.from_taxon_id = ft.id INNER JOIN term tt ON ggr.to_taxon_id = tt.id WHERE ggr.reference_id = '111363' ORDER BY fg.nm_sort, tg.nm_sort LIMIT 50;
Date: 2024-10-15 05:43:10 Duration: 1s921ms Database: ctdprd51 User: qaeu Bind query: yes
-
SELECT /* ReferenceGeneGeneIxnsDAO */ fg.nm fromGeneSymbol, fg.acc_txt fromGeneAcc, tg.nm toGeneSymbol, tg.acc_txt toGeneAcc, ft.nm fromTaxonNm, ft.secondary_nm fromTaxonCommonNm, ft.acc_txt fromTaxonAcc, tt.nm toTaxonNm, tt.secondary_nm toTaxonCommonNm, tt.acc_txt toTaxonAcc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( SELECT STRING_AGG(ggt.throughput_txt, ', ' ORDER BY ggt.throughput_txt) FROM gene_gene_ref_throughput ggt WHERE ggt.gene_gene_reference_id = ggr.id) throughput, COUNT(*) OVER () fullRowCount FROM gene_gene_reference ggr INNER JOIN term fg ON ggr.from_gene_id = fg.id INNER JOIN term tg ON ggr.to_gene_id = tg.id INNER JOIN term ft ON ggr.from_taxon_id = ft.id INNER JOIN term tt ON ggr.to_taxon_id = tt.id WHERE ggr.reference_id = '111363' ORDER BY fg.nm_sort, tg.nm_sort LIMIT 50;
Date: 2024-10-13 05:38:07 Duration: 1s908ms Bind query: yes
-
SELECT /* ReferenceGeneGeneIxnsDAO */ fg.nm fromGeneSymbol, fg.acc_txt fromGeneAcc, tg.nm toGeneSymbol, tg.acc_txt toGeneAcc, ft.nm fromTaxonNm, ft.secondary_nm fromTaxonCommonNm, ft.acc_txt fromTaxonAcc, tt.nm toTaxonNm, tt.secondary_nm toTaxonCommonNm, tt.acc_txt toTaxonAcc, ggr.experimental_sys_nm, ggr.experimental_sys_type, ( SELECT STRING_AGG(ggt.throughput_txt, ', ' ORDER BY ggt.throughput_txt) FROM gene_gene_ref_throughput ggt WHERE ggt.gene_gene_reference_id = ggr.id) throughput, COUNT(*) OVER () fullRowCount FROM gene_gene_reference ggr INNER JOIN term fg ON ggr.from_gene_id = fg.id INNER JOIN term tg ON ggr.to_gene_id = tg.id INNER JOIN term ft ON ggr.from_taxon_id = ft.id INNER JOIN term tt ON ggr.to_taxon_id = tt.id WHERE ggr.reference_id = '111363' ORDER BY fg.nm_sort, tg.nm_sort LIMIT 50;
Date: 2024-10-18 05:43:09 Duration: 1s864ms Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2h59m39s 2h59m39s 2h59m39s 1 2h59m39s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and 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 = ?)))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 18 14 1 2h59m39s 2h59m39s [ User: pubeu - Total duration: 2h59m39s - Times executed: 1 ]
-
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'MYOCARDIAL INFARCTION' AND t.object_type_id = 3)))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-18 14:14:26 Duration: 2h59m39s Database: ctdprd51 User: pubeu Bind query: yes
2 23m42s 23m42s 23m42s 1 23m42s copy pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 19 19 1 23m42s 23m42s -
COPY pub2.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2024-10-19 19:42:48 Duration: 23m42s
3 23m41s 23m41s 23m41s 1 23m41s copy pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 19 19 1 23m41s 23m41s -
COPY pub1.gene_disease_reference (id, gene_id, disease_id, reference_id, source_acc_txt, source_acc_db_id, via_chem_id, ixn_id, network_score, source_cd, mod_tm) TO stdout;
Date: 2024-10-19 19:00:39 Duration: 23m41s
4 21m28s 21m28s 21m28s 1 21m28s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and 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 gd.curated_reference_qty > ?)))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 15 16 1 21m28s 21m28s -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'gene'))) AND 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 'HEART DISEASES' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0)))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-15 16:16:17 Duration: 21m28s Bind query: yes
5 17m3s 17m43s 17m16s 7 2h53s select maint_query_logs_archive ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 13 00 1 17m3s 17m3s Oct 14 00 1 17m4s 17m4s Oct 15 00 1 17m6s 17m6s Oct 16 00 1 17m6s 17m6s Oct 17 00 1 17m7s 17m7s Oct 18 00 1 17m43s 17m43s Oct 19 00 1 17m42s 17m42s -
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-18 00:17:44 Duration: 17m43s
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-19 00:17:43 Duration: 17m42s
-
/* * Run daily to prune LOG_QUERY, archive old queries to LOG_QUERY_ARCHIVE * and vacuum/analyze the tables. * * $Id: archive_query_logs.sql 10832 2012-03-19 15:27:11Z mcr $ */ SELECT maint_query_logs_archive ();
Date: 2024-10-17 00:17:09 Duration: 17m7s
6 10m51s 10m51s 10m51s 1 10m51s select gcr.ixn_id, gcr.chem_id, gcr.gene_id, gcr.taxon_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?) intersect ( select ai.gene_id from dag_path pi inner join gene_go_annot ai on pi.descendant_object_id = ai.go_term_id inner join db_link dbli on dbli.object_id = pi.ancestor_object_id where dbli.acc_txt = ? and dbli.type_cd = ? and dbli.object_type_id = ?) intersect ( 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 gd.curated_reference_qty > ?) intersect ( select tp.term_id from term_pathway tp where tp.object_type_id = ? and upper(tp.pathway_acc_txt) = ? and tp.pathway_acc_db_cd = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term t on t.id = dp.ancestor_object_id where upper(t.nm) like ? and t.object_type_id = ?)) and gcr.taxon_id = any (array ( select dp.descendant_object_id from dag_path dp inner join dag_node n on n.id = dp.ancestor_dag_node_id where n.acc_txt = ? and n.dag_id = ?));Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 16 17 1 10m51s 10m51s -
SELECT /* CIQH.getIxnCacheQuery */ gcr.ixn_id, gcr.chem_id, gcr.gene_id, gcr.taxon_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7));
Date: 2024-10-16 17:01:51 Duration: 10m51s Bind query: yes
7 10m47s 10m47s 10m47s 1 10m47s select g.id geneid, g.acc_txt acc, g.nm nm, g.nm nmhtml, g.secondary_nm secondarynm, g.has_chems haschems, g.has_diseases hasdiseases, g.has_exposures hasexposures, g.has_phenotypes hasphenotypes, count(*) over () fullrowcount from term g where g.id in ( select gcr.gene_id from gene_chem_reference gcr where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?) intersect ( select ai.gene_id from dag_path pi inner join gene_go_annot ai on pi.descendant_object_id = ai.go_term_id inner join db_link dbli on dbli.object_id = pi.ancestor_object_id where dbli.acc_txt = ? and dbli.type_cd = ? and dbli.object_type_id = ?) intersect ( 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 gd.curated_reference_qty > ?) intersect ( select tp.term_id from term_pathway tp where tp.object_type_id = ? and upper(tp.pathway_acc_txt) = ? and tp.pathway_acc_db_cd = ?))) and gcr.chem_id = any (array ( select dp.descendant_object_id from dag_path dp inner join term t on t.id = dp.ancestor_object_id where upper(t.nm) like ? and t.object_type_id = ?)) and gcr.taxon_id = any (array ( select dp.descendant_object_id from dag_path dp inner join dag_node n on n.id = dp.ancestor_dag_node_id where n.acc_txt = ? and n.dag_id = ?))) order by g.nm_sort, g.id limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 16 17 1 10m47s 10m47s -
SELECT /* AdvancedGeneQueryDAO.getData */ g.id geneId, g.acc_txt acc, g.nm nm, g.nm nmHtml, g.secondary_nm secondaryNm, g.has_chems hasChems, g.has_diseases hasDiseases, g.has_exposures hasExposures, g.has_phenotypes hasPhenotypes, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gcr.gene_id FROM gene_chem_reference gcr WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'COL4A4') INTERSECT ( SELECT /* IQH.getMasterGoWhereEquals.Gene */ ai.gene_id FROM dag_path pi INNER JOIN gene_go_annot ai ON pi.descendant_object_id = ai.go_term_id INNER JOIN db_link dbli ON dbli.object_id = pi.ancestor_object_id WHERE dbli.acc_txt = 'GO:0008150' AND dbli.type_cd = 'A' AND dbli.object_type_id = 5) INTERSECT ( 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 'RENAL FAILURE, PROGRESSIVE, WITH HYPERTENSION' AND t.object_type_id = 3 AND gd.curated_reference_qty > 0) INTERSECT ( SELECT /* IQH.getMasterPathwayWhereEquals.Acc */ tp.term_id FROM term_pathway tp WHERE tp.object_type_id = 4 AND UPPER(tp.pathway_acc_txt) = 'HSA05211' AND tp.pathway_acc_db_cd = 'KEGG'))) AND gcr.chem_id = ANY (ARRAY ( SELECT /* CIQH.getIxnChemWhereEquals.Name */ dp.descendant_object_id FROM dag_path dp INNER JOIN term t ON t.id = dp.ancestor_object_id WHERE UPPER(t.nm) LIKE '2'',3''-DIDEOXY-2''-FLUOROADENOSINE TRIPHOSPHATE' AND t.object_type_id = 2)) AND gcr.taxon_id = ANY (ARRAY ( SELECT /* CIQH.getIxnTaxonWhereEquals.Acc */ dp.descendant_object_id FROM dag_path dp INNER JOIN dag_node n ON n.id = dp.ancestor_dag_node_id WHERE n.acc_txt = '9606' AND n.dag_id = 7))) ORDER BY g.nm_sort, g.id LIMIT 50;
Date: 2024-10-16 17:12:02 Duration: 10m47s Bind query: yes
8 2s230ms 3m57s 1m23s 14 19m34s select r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refacc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, count(*) over () fullrowcount from reference r where r.id in ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?)) order by r.sort_txt limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 16 00 1 2s548ms 2s548ms Oct 17 00 5 7m54s 1m34s 08 4 7m53s 1m58s 19 1 1m 1m 21 1 45s550ms 45s550ms Oct 18 10 1 57s238ms 57s238ms 21 1 1m 1m [ User: pubeu - Total duration: 7m34s - Times executed: 5 ]
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 00:49:35 Duration: 3m57s Bind query: yes
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 08:52:23 Duration: 3m54s Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* RefsDAO */ r.id, r.abbr_authors_txt authors, r.title, r.core_citation_txt citation, r.pub_start_yr yr, r.acc_txt refAcc, r.has_diseases or r.has_ixns or r.has_exposures or r.has_phenotypes iscurated, r.has_exposures, COUNT(*) OVER () fullRowCount FROM reference r WHERE r.id IN ( select reference_id from term_reference where term_id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1395002')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-10-17 08:49:33 Duration: 1m20s Database: ctdprd51 User: pubeu Bind query: yes
9 1s278ms 4m17s 44s124ms 17 12m30s select phenotypeterm.nm gonm, phenotypeterm.nm_html gonmhtml, phenotypeterm.acc_txt goacc, phenotypeterm.id goid, diseaseterm.nm diseasenm, diseaseterm.acc_txt diseaseacc, diseaseterm.acc_db_cd diseaseaccdbcd, diseaseterm.id diseaseid, via_gene_qty genenetworkcount, via_chem_qty chemnetworkcount, indirect_reference_qty referencecount, count(*) over () fullrowcount from phenotype_term pt inner join term phenotypeterm on pt.phenotype_id = phenotypeterm.id inner join term diseaseterm on pt.term_id = diseaseterm.id where phenotypeterm.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) and diseaseterm.object_type_id = ? order by chemnetworkcount desc, genenetworkcount desc limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 13 00 1 1s572ms 1s572ms 01 1 3m41s 3m41s 10 1 1s278ms 1s278ms 19 1 3s234ms 3s234ms Oct 14 06 1 4m5s 4m5s 10 2 4m18s 2m9s 20 1 1s378ms 1s378ms Oct 15 08 1 1s665ms 1s665ms Oct 16 06 1 3s212ms 3s212ms 10 1 1s430ms 1s430ms Oct 17 07 1 1s563ms 1s563ms 13 1 1s434ms 1s434ms Oct 18 07 1 1s547ms 1s547ms 11 1 1s595ms 1s595ms Oct 19 19 1 1s626ms 1s626ms 21 1 2s49ms 2s49ms [ User: pubeu - Total duration: 8m8s - Times executed: 7 ]
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1248164') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-14 10:24:01 Duration: 4m17s Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1236826') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-14 06:06:41 Duration: 4m5s Bind query: yes
-
SELECT /* GoDiseasesDAO */ phenotypeTerm.nm goNm, phenotypeTerm.nm_html goNmHTML, phenotypeTerm.acc_txt goAcc, phenotypeTerm.id goId, diseaseTerm.nm diseaseNm, diseaseTerm.acc_txt diseaseAcc, diseaseTerm.acc_db_cd diseaseAccDBCd, diseaseTerm.id diseaseId, via_gene_qty geneNetworkCount, via_chem_qty chemNetworkCount, indirect_reference_qty referenceCount, COUNT(*) OVER () fullRowCount FROM phenotype_term pt inner join term phenotypeTerm on pt.phenotype_id = phenotypeTerm.id inner join term diseaseTerm on pt.term_id = diseaseTerm.id WHERE phenotypeTerm.id IN ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = '1249213') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-10-13 01:47:07 Duration: 3m41s Database: ctdprd51 User: pubeu Bind query: yes
10 34s275ms 34s617ms 34s415ms 25 14m20s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 13 06 1 34s411ms 34s411ms 10 1 34s422ms 34s422ms 14 1 34s324ms 34s324ms 18 1 34s381ms 34s381ms Oct 14 06 1 34s374ms 34s374ms 10 1 34s511ms 34s511ms 14 1 34s439ms 34s439ms 18 1 34s371ms 34s371ms Oct 15 06 1 34s436ms 34s436ms 10 1 34s350ms 34s350ms 14 1 34s496ms 34s496ms 18 1 34s369ms 34s369ms Oct 16 06 1 34s395ms 34s395ms 10 1 34s275ms 34s275ms 14 1 34s363ms 34s363ms 18 1 34s416ms 34s416ms Oct 17 06 1 34s391ms 34s391ms 10 1 34s314ms 34s314ms 14 1 34s617ms 34s617ms 18 1 34s346ms 34s346ms Oct 18 06 1 34s462ms 34s462ms 10 1 34s491ms 34s491ms 14 1 34s504ms 34s504ms 18 1 34s533ms 34s533ms Oct 19 19 1 34s391ms 34s391ms [ User: postgres - Total duration: 13m46s - Times executed: 24 ]
[ Application: pg_dump - Total duration: 13m46s - Times executed: 24 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-17 14:05:36 Duration: 34s617ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-18 18:05:36 Duration: 34s533ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2024-10-14 10:05:36 Duration: 34s511ms Database: ctdprd51 User: postgres Application: pg_dump
11 2s709ms 16s865ms 13s853ms 35 8m4s select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 13 10 2 30s286ms 15s143ms 19 1 3s26ms 3s26ms Oct 14 02 1 14s860ms 14s860ms 06 1 13s654ms 13s654ms 10 1 15s62ms 15s62ms 14 1 16s865ms 16s865ms 18 1 12s23ms 12s23ms 19 1 5s340ms 5s340ms Oct 15 02 1 15s238ms 15s238ms 07 1 12s836ms 12s836ms 11 1 15s82ms 15s82ms 16 1 15s221ms 15s221ms 17 2 29s436ms 14s718ms 20 2 29s662ms 14s831ms Oct 16 02 1 15s219ms 15s219ms 07 1 13s212ms 13s212ms 08 1 16s216ms 16s216ms 12 1 15s279ms 15s279ms Oct 17 07 3 47s409ms 15s803ms 09 1 12s693ms 12s693ms 12 1 15s193ms 15s193ms 13 1 15s280ms 15s280ms 14 1 15s118ms 15s118ms Oct 18 06 1 2s709ms 2s709ms 20 1 14s685ms 14s685ms Oct 19 02 1 15s203ms 15s203ms 08 1 13s271ms 13s271ms 09 1 14s928ms 14s928ms 10 1 15s207ms 15s207ms 18 1 14s655ms 14s655ms [ User: pubeu - Total duration: 3m46s - Times executed: 17 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2083109') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-14 14:55:35 Duration: 16s865ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2076354') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-17 07:37:53 Duration: 16s771ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2080523') ORDER BY g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-16 08:35:19 Duration: 16s216ms Database: ctdprd51 User: pubeu Bind query: yes
12 1s4ms 9s136ms 6s413ms 59 6m18s select sq.*, count(*) over () fullrowcount from ( select distinct gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid from dag_node gt inner join gene_go_annot gga on gt.object_id = gga.go_term_id inner join term g on gga.gene_id = g.id where gt.id in ( select p.descendant_dag_node_id from dag_path p where p.ancestor_object_id = ?) and gga.is_not = false) sq order by sq.gonmsort, sq.genesymbolsort;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 13 10 4 6s904ms 1s726ms 17 4 35s674ms 8s918ms Oct 14 03 4 35s171ms 8s792ms Oct 15 01 4 9s5ms 2s251ms 17 4 24s480ms 6s120ms 21 4 34s702ms 8s675ms Oct 16 04 4 35s500ms 8s875ms 20 4 35s119ms 8s779ms Oct 17 03 4 35s334ms 8s833ms 12 4 6s61ms 1s515ms Oct 18 03 4 5s306ms 1s326ms 20 4 35s151ms 8s787ms 23 4 35s153ms 8s788ms Oct 19 04 1 1s4ms 1s4ms 05 1 7s90ms 7s90ms 10 4 35s458ms 8s864ms 20 1 1s280ms 1s280ms [ User: pubeu - Total duration: 1m52s - Times executed: 14 ]
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-16 04:08:52 Duration: 9s136ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-13 17:39:20 Duration: 9s85ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* GoGenesDAO */ sq.*, COUNT(*) OVER () fullRowCount FROM ( SELECT DISTINCT gt.nm gonm, gt.nm_html gonmhtml, gt.nm_sort gonmsort, gt.acc_txt goacc, gt.object_id goid, g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid FROM dag_node gt INNER JOIN gene_go_annot gga ON gt.object_id = gga.go_term_id INNER JOIN term g ON gga.gene_id = g.id WHERE gt.id IN ( SELECT p.descendant_dag_node_id FROM dag_path p WHERE p.ancestor_object_id = '1259602') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort;
Date: 2024-10-13 17:39:16 Duration: 9s67ms Bind query: yes
13 1s23ms 17s758ms 4s317ms 61 4m23s select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort limit ? offset ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 13 05 1 2s581ms 2s581ms 06 1 2s616ms 2s616ms 08 1 1s239ms 1s239ms 09 1 6s857ms 6s857ms 11 1 10s322ms 10s322ms 20 1 1s918ms 1s918ms 22 1 17s758ms 17s758ms Oct 14 03 2 24s109ms 12s54ms 05 2 5s617ms 2s808ms 08 3 15s594ms 5s198ms 09 1 4s862ms 4s862ms 10 1 6s903ms 6s903ms 14 1 10s296ms 10s296ms 16 1 1s254ms 1s254ms 18 1 1s919ms 1s919ms 21 2 3s903ms 1s951ms 22 1 1s235ms 1s235ms Oct 15 01 2 5s177ms 2s588ms 06 1 4s887ms 4s887ms 07 1 1s36ms 1s36ms 09 1 6s664ms 6s664ms 16 2 2s734ms 1s367ms 17 1 1s891ms 1s891ms 20 2 5s46ms 2s523ms 21 1 2s575ms 2s575ms Oct 16 01 1 6s307ms 6s307ms 04 1 1s374ms 1s374ms 07 1 6s873ms 6s873ms 10 2 3s897ms 1s948ms 21 1 11s440ms 11s440ms Oct 17 04 2 4s438ms 2s219ms 07 1 10s299ms 10s299ms 08 1 1s175ms 1s175ms 15 1 10s334ms 10s334ms 19 1 10s243ms 10s243ms 21 1 2s696ms 2s696ms Oct 18 04 2 3s618ms 1s809ms 13 1 1s899ms 1s899ms 15 1 2s120ms 2s120ms 17 1 1s314ms 1s314ms 22 2 4s561ms 2s280ms Oct 19 03 3 6s193ms 2s64ms 04 1 1s215ms 1s215ms 13 1 10s403ms 10s403ms 22 2 2s265ms 1s132ms 23 1 11s714ms 11s714ms [ User: pubeu - Total duration: 1m51s - Times executed: 24 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081053') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 2260600;
Date: 2024-10-13 22:34:11 Duration: 17s758ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2080828') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 1774900;
Date: 2024-10-14 03:28:59 Duration: 13s435ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50 OFFSET 350;
Date: 2024-10-19 23:57:22 Duration: 11s714ms Database: ctdprd51 User: pubeu Bind query: yes
14 1s1ms 6s205ms 4s154ms 110 7m36s 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 #14
Day Hour Count Duration Avg duration Oct 13 03 2 10s508ms 5s254ms 05 4 16s811ms 4s202ms 07 1 1s16ms 1s16ms 10 1 5s347ms 5s347ms 17 1 5s316ms 5s316ms 19 2 10s602ms 5s301ms 20 3 11s605ms 3s868ms 22 6 27s713ms 4s618ms Oct 14 00 1 5s204ms 5s204ms 02 1 5s288ms 5s288ms 05 2 6s155ms 3s77ms 06 2 6s192ms 3s96ms 07 1 5s267ms 5s267ms 10 3 11s559ms 3s853ms 12 3 11s628ms 3s876ms 14 1 1s44ms 1s44ms 16 1 5s215ms 5s215ms 17 2 10s807ms 5s403ms 18 1 1s22ms 1s22ms 19 1 5s210ms 5s210ms 22 1 1s9ms 1s9ms 23 2 2s93ms 1s46ms Oct 15 00 1 5s184ms 5s184ms 01 1 5s313ms 5s313ms 03 4 12s757ms 3s189ms 05 1 5s305ms 5s305ms 06 1 5s429ms 5s429ms 07 1 1s49ms 1s49ms 11 1 5s313ms 5s313ms 12 1 1s35ms 1s35ms 19 1 5s453ms 5s453ms 20 1 5s292ms 5s292ms Oct 16 03 3 15s953ms 5s317ms 05 1 5s106ms 5s106ms 06 1 5s157ms 5s157ms 08 1 5s232ms 5s232ms 11 2 10s455ms 5s227ms 12 1 5s278ms 5s278ms 17 1 5s404ms 5s404ms 21 1 5s228ms 5s228ms 22 1 5s203ms 5s203ms Oct 17 01 1 1s1ms 1s1ms 02 1 5s803ms 5s803ms 03 1 4s976ms 4s976ms 11 2 10s523ms 5s261ms 13 1 5s234ms 5s234ms 15 1 1s18ms 1s18ms 16 2 10s720ms 5s360ms 21 2 10s550ms 5s275ms 22 1 5s296ms 5s296ms Oct 18 00 2 10s386ms 5s193ms 06 1 5s709ms 5s709ms 09 1 5s479ms 5s479ms 11 1 6s154ms 6s154ms 12 2 6s376ms 3s188ms 16 2 2s21ms 1s10ms 17 1 5s230ms 5s230ms 19 2 10s661ms 5s330ms 22 1 1s15ms 1s15ms Oct 19 02 2 10s709ms 5s354ms 04 4 22s359ms 5s589ms 07 3 3s29ms 1s9ms 09 2 10s525ms 5s262ms 17 2 6s230ms 3s115ms 18 2 6s689ms 3s344ms 19 3 7s485ms 2s495ms [ User: pubeu - Total duration: 3m16s - Times executed: 52 ]
-
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 = '1396317' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-19 04:27:58 Duration: 6s205ms Database: ctdprd51 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 = '1438366' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-18 11:18:37 Duration: 6s154ms 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 = '1430593' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-10-17 02:57:59 Duration: 5s803ms Database: ctdprd51 User: pubeu Bind query: yes
15 3s786ms 14s188ms 4s54ms 392 26m29s select coalesce(st.alt_nm, t.nm) slimtermnm, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.curated_reference_qty > ?) curatedcount, ( select count(*) from slim_term_mapping stm inner join chem_disease cd on cd.disease_id = stm.mapped_term_id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) and stm.slim_term_id = st.slim_term_id and cd.indirect_gene_qty > ?) inferredcount from slim_term st inner join term t on st.slim_term_id = t.id where st.slim_id = ? order by ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 13 00 1 3s842ms 3s842ms 01 1 4s25ms 4s25ms 02 6 24s660ms 4s110ms 04 1 3s878ms 3s878ms 05 1 3s963ms 3s963ms 06 1 3s913ms 3s913ms 07 1 4s79ms 4s79ms 08 2 8s400ms 4s200ms 12 2 7s960ms 3s980ms 13 1 3s870ms 3s870ms 14 1 3s894ms 3s894ms 15 1 4s110ms 4s110ms 16 2 7s920ms 3s960ms 17 1 3s853ms 3s853ms 20 1 3s938ms 3s938ms 22 1 3s854ms 3s854ms 23 2 8s76ms 4s38ms Oct 14 01 5 20s109ms 4s21ms 02 2 8s206ms 4s103ms 03 2 7s814ms 3s907ms 04 4 16s176ms 4s44ms 05 4 15s966ms 3s991ms 06 2 7s881ms 3s940ms 07 6 24s140ms 4s23ms 08 2 8s61ms 4s30ms 09 1 3s811ms 3s811ms 11 3 11s991ms 3s997ms 12 3 22s953ms 7s651ms 13 2 7s823ms 3s911ms 15 1 4s1ms 4s1ms 16 3 11s985ms 3s995ms 17 2 8s105ms 4s52ms 18 1 3s962ms 3s962ms 19 1 3s916ms 3s916ms 23 4 15s492ms 3s873ms Oct 15 00 2 7s947ms 3s973ms 01 5 19s818ms 3s963ms 02 3 11s891ms 3s963ms 03 5 23s103ms 4s620ms 04 13 51s382ms 3s952ms 05 2 7s948ms 3s974ms 06 1 4s111ms 4s111ms 08 2 7s893ms 3s946ms 09 3 12s148ms 4s49ms 10 2 7s817ms 3s908ms 13 4 16s344ms 4s86ms 14 2 7s948ms 3s974ms 15 8 40s913ms 5s114ms 16 5 19s694ms 3s938ms 17 1 4s6ms 4s6ms 18 1 3s979ms 3s979ms 21 1 3s993ms 3s993ms 22 1 3s810ms 3s810ms 23 1 3s994ms 3s994ms Oct 16 00 1 3s955ms 3s955ms 01 5 19s581ms 3s916ms 02 1 3s941ms 3s941ms 03 3 11s891ms 3s963ms 04 1 3s840ms 3s840ms 05 3 12s78ms 4s26ms 06 1 3s941ms 3s941ms 07 2 8s298ms 4s149ms 08 1 3s933ms 3s933ms 09 3 11s625ms 3s875ms 10 1 5s693ms 5s693ms 11 3 13s887ms 4s629ms 13 2 8s64ms 4s32ms 14 4 15s861ms 3s965ms 15 2 8s85ms 4s42ms 21 4 16s89ms 4s22ms 22 5 19s898ms 3s979ms 23 3 12s310ms 4s103ms Oct 17 02 3 14s126ms 4s708ms 03 8 31s774ms 3s971ms 04 1 4s218ms 4s218ms 05 22 1m29s 4s54ms 06 4 16s114ms 4s28ms 07 2 7s826ms 3s913ms 08 4 16s99ms 4s24ms 09 1 3s979ms 3s979ms 10 1 3s901ms 3s901ms 11 1 3s943ms 3s943ms 13 2 7s835ms 3s917ms 14 1 4s25ms 4s25ms 15 1 3s903ms 3s903ms 16 4 15s881ms 3s970ms 17 4 15s739ms 3s934ms 19 1 3s976ms 3s976ms 20 1 4s68ms 4s68ms 21 2 8s289ms 4s144ms 22 2 7s713ms 3s856ms 23 1 3s815ms 3s815ms Oct 18 01 4 15s992ms 3s998ms 02 17 1m6s 3s924ms 03 15 59s385ms 3s959ms 04 23 1m31s 3s961ms 05 32 2m6s 3s965ms 06 10 39s374ms 3s937ms 08 3 11s897ms 3s965ms 09 4 15s926ms 3s981ms 13 1 4s135ms 4s135ms 15 1 4s67ms 4s67ms 16 1 3s862ms 3s862ms 21 3 11s913ms 3s971ms 23 3 11s815ms 3s938ms Oct 19 00 1 3s829ms 3s829ms 01 3 11s953ms 3s984ms 03 1 3s833ms 3s833ms 05 2 7s876ms 3s938ms 06 1 4s161ms 4s161ms 07 4 15s742ms 3s935ms 08 3 11s694ms 3s898ms 09 3 11s932ms 3s977ms 10 1 4s26ms 4s26ms 12 1 4s56ms 4s56ms 13 1 4s60ms 4s60ms 14 1 4s100ms 4s100ms 15 2 8s302ms 4s151ms 16 1 4s67ms 4s67ms 19 1 3s889ms 3s889ms 22 1 3s984ms 3s984ms 23 1 4s95ms 4s95ms [ User: pubeu - Total duration: 10m5s - Times executed: 150 ]
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1434692') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-14 12:05:18 Duration: 14s188ms Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1263173') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-17 02:09:56 Duration: 6s110ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemDiseasesBySlimDAO */ COALESCE(st.alt_nm, t.nm) slimTermNm, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.curated_reference_qty > 0) curatedCount, ( SELECT COUNT(*) FROM slim_term_mapping stm INNER JOIN chem_disease cd ON cd.disease_id = stm.mapped_term_id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1290730') AND stm.slim_term_id = st.slim_term_id AND cd.indirect_gene_qty > 0) inferredCount FROM slim_term st INNER JOIN term t ON st.slim_term_id = t.id WHERE st.slim_id = 1 ORDER BY 1;
Date: 2024-10-15 15:05:17 Duration: 5s738ms Bind query: yes
16 1s40ms 33s261ms 4s17ms 84 5m37s select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 13 02 1 1s61ms 1s61ms 06 1 3s239ms 3s239ms 10 1 1s842ms 1s842ms 11 1 1s94ms 1s94ms 12 1 1s954ms 1s954ms 14 1 1s944ms 1s944ms 18 1 1s931ms 1s931ms 21 1 33s261ms 33s261ms 22 1 2s82ms 2s82ms Oct 14 01 1 1s827ms 1s827ms 02 1 12s735ms 12s735ms 04 2 16s625ms 8s312ms 09 1 1s880ms 1s880ms 13 1 13s34ms 13s34ms 18 1 1s290ms 1s290ms 21 5 9s933ms 1s986ms 22 1 32s933ms 32s933ms 23 1 5s603ms 5s603ms Oct 15 01 1 14s441ms 14s441ms 03 9 13s316ms 1s479ms 04 2 4s730ms 2s365ms 07 2 2s232ms 1s116ms 10 1 1s275ms 1s275ms 13 1 1s939ms 1s939ms 22 1 1s63ms 1s63ms Oct 16 01 1 15s467ms 15s467ms 02 1 1s901ms 1s901ms 03 1 24s584ms 24s584ms 07 1 1s956ms 1s956ms 08 1 2s162ms 2s162ms 09 1 2s91ms 2s91ms 10 1 1s82ms 1s82ms 12 1 1s605ms 1s605ms 23 1 2s194ms 2s194ms Oct 17 00 1 2s49ms 2s49ms 02 1 14s525ms 14s525ms 03 2 13s270ms 6s635ms 06 1 7s473ms 7s473ms 07 1 1s606ms 1s606ms 08 2 3s112ms 1s556ms 12 1 2s95ms 2s95ms 16 1 1s532ms 1s532ms 19 1 7s56ms 7s56ms 21 1 3s33ms 3s33ms 22 4 9s903ms 2s475ms Oct 18 03 1 2s213ms 2s213ms 06 2 2s116ms 1s58ms 09 2 3s590ms 1s795ms 22 2 2s148ms 1s74ms Oct 19 04 1 1s761ms 1s761ms 06 1 1s802ms 1s802ms 08 6 11s679ms 1s946ms 11 2 2s988ms 1s494ms 14 1 5s615ms 5s615ms 20 1 1s533ms 1s533ms [ User: pubeu - Total duration: 2m16s - Times executed: 36 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2087863') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-13 21:50:40 Duration: 33s261ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2087863') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-14 22:52:01 Duration: 32s933ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2077469') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-10-16 03:07:45 Duration: 24s584ms Bind query: yes
17 1s18ms 11s930ms 3s862ms 157 10m6s select d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, gd.network_score networkscore, gd.indirect_chem_qty inferredcount, gd.reference_qty referencecount, gd.exposure_reference_qty exposurereferencecount, case when gd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gd.gene_id and a.disease_id = gd.disease_id) else null end actiontypes from gene_disease gd inner join term g on gd.gene_id = g.id inner join term d on gd.disease_id = d.id where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, gd.network_score desc nulls last, g.nm_sort, d.nm_sort limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 13 00 2 2s391ms 1s195ms 03 1 1s98ms 1s98ms 06 2 2s412ms 1s206ms 07 3 3s684ms 1s228ms 08 1 1s34ms 1s34ms 10 5 20s157ms 4s31ms 11 5 19s189ms 3s837ms 13 1 5s193ms 5s193ms 15 2 11s248ms 5s624ms 16 1 1s26ms 1s26ms 21 3 16s130ms 5s376ms 22 1 10s271ms 10s271ms Oct 14 02 1 1s263ms 1s263ms 03 1 2s111ms 2s111ms 04 1 6s546ms 6s546ms 05 3 19s296ms 6s432ms 06 1 4s966ms 4s966ms 07 5 7s808ms 1s561ms 08 1 5s132ms 5s132ms 10 2 2s202ms 1s101ms 11 1 2s561ms 2s561ms 13 1 11s726ms 11s726ms 14 1 4s652ms 4s652ms 16 2 6s83ms 3s41ms 17 1 2s608ms 2s608ms 19 1 2s144ms 2s144ms 21 1 1s236ms 1s236ms 22 3 25s675ms 8s558ms 23 3 8s560ms 2s853ms Oct 15 03 1 2s144ms 2s144ms 04 2 8s441ms 4s220ms 07 1 1s304ms 1s304ms 09 1 1s265ms 1s265ms 10 1 10s113ms 10s113ms 12 3 16s375ms 5s458ms 13 1 5s537ms 5s537ms 16 5 6s323ms 1s264ms 18 1 2s224ms 2s224ms 21 1 11s340ms 11s340ms 22 2 4s119ms 2s59ms Oct 16 00 1 10s195ms 10s195ms 04 2 8s441ms 4s220ms 07 1 5s141ms 5s141ms 08 2 11s854ms 5s927ms 10 1 10s335ms 10s335ms 11 1 2s623ms 2s623ms 12 1 1s268ms 1s268ms 14 1 10s352ms 10s352ms 15 1 2s111ms 2s111ms 17 1 1s38ms 1s38ms 18 2 2s689ms 1s344ms 19 1 10s423ms 10s423ms 21 1 2s598ms 2s598ms 22 1 10s497ms 10s497ms 23 1 1s329ms 1s329ms Oct 17 01 2 8s106ms 4s53ms 02 3 13s307ms 4s435ms 03 2 2s515ms 1s257ms 04 4 14s630ms 3s657ms 05 4 26s740ms 6s685ms 06 1 2s698ms 2s698ms 07 3 8s278ms 2s759ms 09 1 1s186ms 1s186ms 12 2 20s812ms 10s406ms 13 4 18s632ms 4s658ms 14 1 1s49ms 1s49ms 16 1 1s320ms 1s320ms 23 1 1s339ms 1s339ms Oct 18 02 1 1s186ms 1s186ms 03 1 1s511ms 1s511ms 04 1 1s895ms 1s895ms 06 1 4s205ms 4s205ms 07 3 23s19ms 7s673ms 13 2 3s905ms 1s952ms 17 1 10s347ms 10s347ms 19 1 11s662ms 11s662ms 20 1 1s35ms 1s35ms 21 1 1s897ms 1s897ms 22 1 2s571ms 2s571ms Oct 19 00 4 5s41ms 1s260ms 01 1 4s616ms 4s616ms 02 1 1s166ms 1s166ms 03 2 4s753ms 2s376ms 07 2 11s529ms 5s764ms 08 1 2s557ms 2s557ms 11 2 2s971ms 1s485ms 12 1 1s580ms 1s580ms 13 1 1s19ms 1s19ms 14 1 2s641ms 2s641ms 15 1 10s256ms 10s256ms 17 2 2s349ms 1s174ms 18 1 2s210ms 2s210ms 20 1 1s280ms 1s280ms [ User: pubeu - Total duration: 3m58s - Times executed: 67 ]
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-17 05:05:53 Duration: 11s930ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-14 13:22:58 Duration: 11s726ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm, d.acc_txt diseaseAcc, d.acc_db_cd diseaseAccDbCd, d.id diseaseId, g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, gd.network_score networkScore, gd.indirect_chem_qty inferredCount, gd.reference_qty referenceCount, gd.exposure_reference_qty exposureReferenceCount, CASE WHEN gd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gd.gene_id AND a.disease_id = gd.disease_id) ELSE NULL END actionTypes FROM gene_disease gd INNER JOIN term g ON gd.gene_id = g.id INNER JOIN term d ON gd.disease_id = d.id WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2081060') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-10-18 19:37:17 Duration: 11s662ms Database: ctdprd51 User: pubeu Bind query: yes
18 1s18ms 5s806ms 2s518ms 169 7m5s select e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, ( select string_agg(distinct stressorterm.nm || ? || ( select cd from object_type where id = stressorterm.object_type_id) || ? || stressorterm.nm_html || ? || stressorterm.acc_txt || ? || stressorterm.acc_db_cd, ?)) as stressoragents, ( select string_agg(distinct coalesce(receptorterm.nm, ?) || ? || coalesce(( select cd from object_type where id = receptorterm.object_type_id), ?) || ? || coalesce(receptorterm.nm_html, ?) || ? || coalesce(receptorterm.acc_txt, ?) || ? || coalesce(receptorterm.acc_db_cd, ?) || ? || receptor.description, ?)) as receptors, ( select string_agg(distinct country.nm, ?)) as studycountries, ( select string_agg(distinct location.locality_txt, ?)) as localities, ( select string_agg(distinct event.medium_nm || ? || coalesce(event.medium_term_acc_txt, ?), ?)) as assaymediums, ( select string_agg(distinct exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd, ?)) as assayedmarkers, ( select string_agg(distinct diseaseterm.nm || ? || ( select cd from object_type where id = diseaseterm.object_type_id) || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd, ?)) as diseases, ( select string_agg(distinct phenotypeterm.nm || ? || ( select cd from object_type where id = phenotypeterm.object_type_id) || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd, ?)) as phenotypes, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, re.author_summary summary, count(*) over () fullrowcount from exposure e inner join reference r on e.reference_id = r.id inner join exp_stressor stressor on e.exp_stressor_id = stressor.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join term receptorterm on receptor.term_id = receptorterm.id left outer join exp_event event on e.exp_event_id = event.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join exp_event_location location on e.exp_event_id = location.exp_event_id left outer join country on location.country_id = country.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id inner join reference_exp re on e.reference_id = re.reference_id left outer join exp_study_factor expstudyfactor on re.id = expstudyfactor.reference_exp_id where e.reference_id = any (array ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like ?) and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressoragents;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 13 00 1 1s546ms 1s546ms 06 4 5s83ms 1s270ms 11 6 9s430ms 1s571ms 12 2 2s131ms 1s65ms 14 1 2s602ms 2s602ms 15 4 4s390ms 1s97ms 16 9 21s440ms 2s382ms 22 5 9s738ms 1s947ms Oct 14 00 1 1s61ms 1s61ms 08 4 5s254ms 1s313ms 09 4 4s448ms 1s112ms 14 1 1s152ms 1s152ms 20 4 6s394ms 1s598ms Oct 15 01 4 6s207ms 1s551ms 07 2 10s158ms 5s79ms 08 1 5s148ms 5s148ms 10 1 1s533ms 1s533ms 13 1 5s41ms 5s41ms 14 1 5s259ms 5s259ms 15 1 5s199ms 5s199ms 23 4 6s223ms 1s555ms Oct 16 00 4 5s125ms 1s281ms 03 1 5s77ms 5s77ms 09 2 3s355ms 1s677ms 11 15 1m10s 4s692ms 12 4 6s368ms 1s592ms 14 1 5s46ms 5s46ms 21 3 4s508ms 1s502ms Oct 17 02 1 3s805ms 3s805ms 04 3 5s141ms 1s713ms 05 3 7s587ms 2s529ms 08 1 1s643ms 1s643ms 11 4 10s259ms 2s564ms 12 1 1s563ms 1s563ms 13 1 5s193ms 5s193ms 15 5 22s359ms 4s471ms 16 1 5s239ms 5s239ms 17 2 3s474ms 1s737ms 18 1 5s224ms 5s224ms 19 4 10s42ms 2s510ms Oct 18 00 2 3s383ms 1s691ms 01 6 13s631ms 2s271ms 02 1 2s437ms 2s437ms 03 5 5s941ms 1s188ms 04 4 5s119ms 1s279ms 09 9 35s543ms 3s949ms 10 4 17s308ms 4s327ms 11 3 7s770ms 2s590ms 15 4 10s935ms 2s733ms 16 1 2s353ms 2s353ms 22 4 4s558ms 1s139ms Oct 19 01 1 1s67ms 1s67ms 02 1 1s313ms 1s313ms 03 1 1s311ms 1s311ms 07 4 6s875ms 1s718ms 11 1 5s163ms 5s163ms [ User: pubeu - Total duration: 1m23s - Times executed: 25 ]
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-18 09:52:50 Duration: 5s806ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-16 11:15:16 Duration: 5s381ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents;
Date: 2024-10-16 11:13:04 Duration: 5s329ms Bind query: yes
19 1s7ms 3s438ms 2s260ms 55 2m4s 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 #19
Day Hour Count Duration Avg duration Oct 13 05 5 10s710ms 2s142ms 22 1 1s992ms 1s992ms Oct 14 05 4 8s828ms 2s207ms Oct 15 02 1 1s900ms 1s900ms 05 4 8s796ms 2s199ms 14 2 4s436ms 2s218ms 17 2 4s486ms 2s243ms 21 1 1s822ms 1s822ms Oct 16 01 1 1s900ms 1s900ms 03 1 1s914ms 1s914ms 04 1 2s419ms 2s419ms 05 4 8s756ms 2s189ms 09 1 3s310ms 3s310ms 12 1 1s915ms 1s915ms 15 2 3s968ms 1s984ms Oct 17 05 4 8s858ms 2s214ms 08 3 6s351ms 2s117ms 09 1 1s894ms 1s894ms 13 1 3s185ms 3s185ms 16 1 2s404ms 2s404ms Oct 18 01 1 1s891ms 1s891ms 05 4 8s734ms 2s183ms 07 1 3s396ms 3s396ms 14 2 6s531ms 3s265ms Oct 19 05 4 8s786ms 2s196ms 06 1 1s890ms 1s890ms 07 1 3s229ms 3s229ms [ User: pubeu - Total duration: 53s158ms - Times executed: 18 ]
[ User: qaeu - Total duration: 26s977ms - Times executed: 8 ]
-
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 = '593015' 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-10-17 08:58:14 Duration: 3s438ms Database: ctdprd51 User: pubeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '593015' 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-10-17 05:40:12 Duration: 3s424ms Database: ctdprd51 User: qaeu Bind query: yes
-
WITH recursive sub_node ( object_id, id, path, lvl ) AS ( SELECT n.object_id, n.id, ARRAY[n.nm_sort], 1 FROM dag_node n WHERE n.object_id = '593015' 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-10-15 17:11:42 Duration: 3s411ms Database: ctdprd51 User: pubeu Bind query: yes
20 1s20ms 5s303ms 2s5ms 301 10m3s select e.reference_acc_txt || ? || r.abbr_authors_txt || ? || r.pub_start_yr as ref, ( select string_agg(distinct expstudyfactor.study_factor_nm, ?)) as studyfactornms, ( select string_agg(distinct eventproject.project_nm, ?)) as associatedstudytitles, ( select string_agg(distinct stressorterm.nm || ? || ( select cd from object_type where id = stressorterm.object_type_id) || ? || stressorterm.nm_html || ? || stressorterm.acc_txt || ? || stressorterm.acc_db_cd, ?)) as stressoragents, ( select string_agg(distinct coalesce(receptorterm.nm, ?) || ? || coalesce(( select cd from object_type where id = receptorterm.object_type_id), ?) || ? || coalesce(receptorterm.nm_html, ?) || ? || coalesce(receptorterm.acc_txt, ?) || ? || coalesce(receptorterm.acc_db_cd, ?) || ? || receptor.description, ?)) as receptors, ( select string_agg(distinct country.nm, ?)) as studycountries, ( select string_agg(distinct location.locality_txt, ?)) as localities, ( select string_agg(distinct event.medium_nm || ? || coalesce(event.medium_term_acc_txt, ?), ?)) as assaymediums, ( select string_agg(distinct exposuremarkerterm.nm || ? || ( select cd from object_type where id = exposuremarkerterm.object_type_id) || ? || exposuremarkerterm.nm_html || ? || exposuremarkerterm.acc_txt || ? || exposuremarkerterm.acc_db_cd, ?)) as assayedmarkers, ( select string_agg(distinct diseaseterm.nm || ? || ( select cd from object_type where id = diseaseterm.object_type_id) || ? || diseaseterm.nm_html || ? || diseaseterm.acc_txt || ? || diseaseterm.acc_db_cd, ?)) as diseases, ( select string_agg(distinct phenotypeterm.nm || ? || ( select cd from object_type where id = phenotypeterm.object_type_id) || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd, ?)) as phenotypes, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || anatomyterm.id || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, re.author_summary summary, count(*) over () fullrowcount from exposure e inner join reference r on e.reference_id = r.id inner join exp_stressor stressor on e.exp_stressor_id = stressor.id left outer join exp_receptor receptor on e.exp_receptor_id = receptor.id left outer join term receptorterm on receptor.term_id = receptorterm.id left outer join exp_event event on e.exp_event_id = event.id left outer join exp_event_project eventproject on event.id = eventproject.exp_event_id left outer join exp_event_location location on e.exp_event_id = location.exp_event_id left outer join country on location.country_id = country.id left outer join term exposuremarkerterm on event.exp_marker_term_id = exposuremarkerterm.id left outer join exp_outcome outcome on e.exp_outcome_id = outcome.id left outer join term diseaseterm on outcome.disease_id = diseaseterm.id left outer join term phenotypeterm on outcome.phenotype_id = phenotypeterm.id inner join term stressorterm on stressor.chem_id = stressorterm.id left outer join exp_anatomy expanatomy on outcome.id = expanatomy.exp_outcome_id left outer join term anatomyterm on expanatomy.anatomy_id = anatomyterm.id inner join reference_exp re on e.reference_id = re.reference_id left outer join exp_study_factor expstudyfactor on re.id = expstudyfactor.reference_exp_id where e.reference_id = any (array ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = ?) and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like ?) and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressoragents limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 13 00 3 4s997ms 1s665ms 03 1 1s284ms 1s284ms 06 2 3s167ms 1s583ms 07 1 1s629ms 1s629ms 10 1 1s310ms 1s310ms 11 8 17s799ms 2s224ms 12 4 5s326ms 1s331ms 14 1 2s604ms 2s604ms 15 3 4s292ms 1s430ms 16 15 30s410ms 2s27ms 22 2 6s315ms 3s157ms Oct 14 00 1 1s72ms 1s72ms 01 1 1s680ms 1s680ms 03 1 1s569ms 1s569ms 04 1 1s602ms 1s602ms 08 2 2s410ms 1s205ms 14 2 2s762ms 1s381ms 18 1 1s583ms 1s583ms 20 1 1s571ms 1s571ms 22 1 1s107ms 1s107ms Oct 15 01 1 1s559ms 1s559ms 03 1 1s279ms 1s279ms 07 2 3s355ms 1s677ms 08 3 8s762ms 2s920ms 09 1 1s135ms 1s135ms 10 2 3s198ms 1s599ms 11 2 2s688ms 1s344ms 13 3 8s378ms 2s792ms 14 7 15s816ms 2s259ms 15 3 8s722ms 2s907ms 16 1 1s113ms 1s113ms 17 2 2s192ms 1s96ms 18 1 1s850ms 1s850ms 20 3 5s199ms 1s733ms 21 1 1s591ms 1s591ms 22 1 1s532ms 1s532ms Oct 16 00 3 3s929ms 1s309ms 01 5 8s214ms 1s642ms 02 4 10s468ms 2s617ms 03 2 6s778ms 3s389ms 04 1 1s610ms 1s610ms 05 2 2s844ms 1s422ms 06 1 1s607ms 1s607ms 08 2 4s184ms 2s92ms 09 5 8s167ms 1s633ms 11 13 43s149ms 3s319ms 12 1 1s624ms 1s624ms 14 4 9s550ms 2s387ms 15 2 2s700ms 1s350ms 16 1 1s321ms 1s321ms 17 1 1s618ms 1s618ms 18 1 1s567ms 1s567ms 20 3 4s888ms 1s629ms 21 3 4s224ms 1s408ms 23 2 3s218ms 1s609ms Oct 17 01 1 1s876ms 1s876ms 02 4 8s543ms 2s135ms 03 4 13s830ms 3s457ms 04 1 1s737ms 1s737ms 05 3 7s761ms 2s587ms 08 1 1s459ms 1s459ms 09 1 1s537ms 1s537ms 11 2 4s962ms 2s481ms 12 4 5s843ms 1s460ms 13 8 15s453ms 1s931ms 14 4 6s222ms 1s555ms 15 3 8s541ms 2s847ms 16 2 6s741ms 3s370ms 17 7 12s130ms 1s732ms 18 3 8s332ms 2s777ms 19 7 12s121ms 1s731ms 22 1 1s737ms 1s737ms 23 3 3s865ms 1s288ms Oct 18 00 5 6s115ms 1s223ms 01 11 23s329ms 2s120ms 02 3 7s615ms 2s538ms 03 5 7s459ms 1s491ms 04 3 4s530ms 1s510ms 05 1 1s583ms 1s583ms 07 1 1s615ms 1s615ms 08 8 15s591ms 1s948ms 09 4 14s78ms 3s519ms 10 4 13s376ms 3s344ms 11 9 17s815ms 1s979ms 12 1 1s846ms 1s846ms 14 4 5s361ms 1s340ms 15 8 14s601ms 1s825ms 16 4 5s655ms 1s413ms 17 1 1s120ms 1s120ms 19 4 5s823ms 1s455ms 21 2 2s221ms 1s110ms 22 1 1s100ms 1s100ms Oct 19 00 1 3s613ms 3s613ms 01 1 1s61ms 1s61ms 02 3 4s744ms 1s581ms 03 1 1s289ms 1s289ms 06 1 1s707ms 1s707ms 07 2 2s773ms 1s386ms 11 1 5s89ms 5s89ms 12 1 2s610ms 2s610ms 13 1 1s546ms 1s546ms 14 1 1s732ms 1s732ms 16 2 2s717ms 1s358ms 18 1 1s629ms 1s629ms 19 5 14s996ms 2s999ms [ User: pubeu - Total duration: 4m29s - Times executed: 128 ]
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-16 11:13:00 Duration: 5s303ms Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-18 09:52:26 Duration: 5s285ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' || r.abbr_authors_txt || '^' || r.pub_start_yr as ref, ( SELECT STRING_AGG(DISTINCT expStudyFactor.study_factor_nm, ' | ')) as studyFactorNms, ( SELECT STRING_AGG(DISTINCT eventProject.project_nm, ' | ')) as associatedStudyTitles, ( SELECT STRING_AGG(distinct stressorTerm.nm || '^' || ( select cd from object_type where id = stressorTerm.object_type_id) || '^' || stressorTerm.nm_html || '^' || stressorTerm.acc_txt || '^' || stressorTerm.acc_db_cd, '|')) as stressorAgents, ( SELECT STRING_AGG(distinct COALESCE(receptorTerm.nm, '') || '^' || COALESCE(( select cd from object_type where id = receptorTerm.object_type_id), '') || '^' || COALESCE(receptorTerm.nm_html, '') || '^' || COALESCE(receptorTerm.acc_txt, '') || '^' || COALESCE(receptorTerm.acc_db_cd, '') || '^' || receptor.description, '|')) as receptors, ( SELECT STRING_AGG(distinct country.nm, ' | ')) as studyCountries, ( SELECT STRING_AGG(distinct location.locality_txt, ' | ')) as localities, ( SELECT STRING_AGG(distinct event.medium_nm || '^' || COALESCE(event.medium_term_acc_txt, ''), ' | ')) as assayMediums, ( SELECT STRING_AGG(distinct exposureMarkerTerm.nm || '^' || ( select cd from object_type where id = exposureMarkerTerm.object_type_id) || '^' || exposureMarkerTerm.nm_html || '^' || exposureMarkerTerm.acc_txt || '^' || exposureMarkerTerm.acc_db_cd, '|')) as assayedMarkers, ( SELECT STRING_AGG(distinct diseaseTerm.nm || '^' || ( select cd from object_type where id = diseaseTerm.object_type_id) || '^' || diseaseTerm.nm_html || '^' || diseaseTerm.acc_txt || '^' || diseaseTerm.acc_db_cd, '|')) as diseases, ( SELECT STRING_AGG(distinct phenotypeTerm.nm || '^' || ( select cd from object_type where id = phenotypeTerm.object_type_id) || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd, '|')) as phenotypes, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || anatomyTerm.id || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, re.author_summary summary, COUNT(*) OVER () fullRowCount FROM exposure e inner join reference r ON e.reference_id = r.id inner join exp_stressor stressor ON e.exp_stressor_id = stressor.id left outer join exp_receptor receptor ON e.exp_receptor_id = receptor.id left outer join term receptorTerm ON receptor.term_id = receptorTerm.id left outer join exp_event event ON e.exp_event_id = event.id left outer join exp_event_project eventProject ON event.id = eventProject.exp_event_id left outer join exp_event_location location ON e.exp_event_id = location.exp_event_id left outer join country ON location.country_id = country.id left outer join term exposureMarkerTerm ON event.exp_marker_term_id = exposureMarkerTerm.id left outer join exp_outcome outcome ON e.exp_outcome_id = outcome.id left outer join term diseaseTerm ON outcome.disease_id = diseaseTerm.id left outer join term phenotypeTerm ON outcome.phenotype_id = phenotypeTerm.id inner join term stressorTerm ON stressor.chem_id = stressorTerm.id left outer join exp_anatomy expAnatomy ON outcome.id = expAnatomy.exp_outcome_id Left outer join term anatomyTerm ON expAnatomy.anatomy_id = anatomyTerm.id inner join reference_exp re ON e.reference_id = re.reference_id left outer join exp_study_factor expStudyFactor on re.id = expStudyFactor.reference_exp_id where e.reference_id = ANY (ARRAY ( select reference_id from exposure e1, term chem, exp_stressor s1 where chem.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and chem.id = s1.chem_id and s1.id = e1.exp_stressor_id union select reference_id from exposure e1, term t, exp_event event1 where t.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1395038') and t.id = event1.exp_marker_term_id and event1.exp_marker_type_id in ( select id from exp_marker_type where nm like 'chem%') and event1.id = e1.exp_event_id)) group by e.reference_acc_txt, r.abbr_authors_txt, pub_start_yr, re.author_summary order by stressorAgents LIMIT 50;
Date: 2024-10-15 15:20:13 Duration: 5s278ms 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 1 0ms 244 0ms 0ms 0ms ;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Oct 13 00 1 0ms 0ms 07 2 0ms 0ms 08 4 0ms 0ms Oct 14 06 4 0ms 0ms 07 12 0ms 0ms 10 4 0ms 0ms 11 2 0ms 0ms 12 4 0ms 0ms 13 2 0ms 0ms 14 2 0ms 0ms 15 2 0ms 0ms 16 4 0ms 0ms Oct 15 00 1 0ms 0ms 07 12 0ms 0ms 08 2 0ms 0ms 10 2 0ms 0ms 11 2 0ms 0ms 13 2 0ms 0ms Oct 16 06 16 0ms 0ms 07 8 0ms 0ms 08 8 0ms 0ms 09 4 0ms 0ms 10 8 0ms 0ms 12 2 0ms 0ms 15 4 0ms 0ms 16 14 0ms 0ms 21 2 0ms 0ms Oct 17 05 6 0ms 0ms 06 12 0ms 0ms 08 2 0ms 0ms 10 16 0ms 0ms 11 2 0ms 0ms 14 2 0ms 0ms 15 2 0ms 0ms Oct 18 00 1 0ms 0ms 04 3 0ms 0ms 06 9 0ms 0ms 07 15 0ms 0ms 08 3 0ms 0ms 09 15 0ms 0ms 10 12 0ms 0ms 13 9 0ms 0ms Oct 19 00 2 0ms 0ms 11 3 0ms 0ms [ User: pubeu - Total duration: 3m17s - Times executed: 114 ]
-
;
Date: Duration: 0ms Database: postgres parameters: $1 = '1540027', $2 = '1540027'
-
Events
Log levels
Key values
- 185,414 Log entries
Events distribution
Key values
- 0 PANIC entries
- 1 FATAL entries
- 18 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 14 Max number of times the same event was reported
- 19 Total events found
Rank Times reported Error 1 14 ERROR: syntax error in ts"..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 13 12 1 Oct 14 09 1 Oct 15 10 1 Oct 16 16 1 Oct 18 04 1 07 1 12 1 20 1 21 1 22 2 Oct 19 01 1 12 1 13 1 - ERROR: syntax error in ts"東京慈恵会医科大学 野間健司"
- ERROR: syntax error in ts"LIVER INJURY"
- ERROR: syntax error in ts"IIE & SETTHE & WALL & TO & I000 & M & BONG & COMPANED & BO & THE & CYHNDER & RAD & US & &.20 & M & INTHE & MRSNERIEAL & MODEL,"
Statement: SELECT /* GeneBasicQueryDAO */ sq.* ,COUNT(*) OVER() fullRowCount FROM ( SELECT /* label */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm secondaryNm ,l.nm matchedNm ,lt.nm_display matchedType ,CASE WHEN lt.nm_display='Symbol' THEN true ELSE false END isNameMatch ,CASE WHEN lt.nm_display='Name' THEN true ELSE false END isSecondaryNameMatch ,t.has_chems hasChems ,t.has_diseases hasDiseases ,t.has_exposures hasExposures ,CASE WHEN UPPER(l.nm) = $1 THEN 1 ELSE 2 END relevance ,t.nm_sort ,t.id ,t.has_phenotypes hasPhenotypes FROM term t INNER JOIN term_label l ON l.term_id = t.id INNER JOIN term_label_type lt ON l.term_label_type_id = lt.id WHERE l.object_type_id = 4 AND t.object_type_id = 4 AND l.id IN( SELECT FIRST_VALUE(i.id) OVER(PARTITION BY i.term_id ORDER BY it.priority_seq, i.nm) FROM term_label i INNER JOIN term_label_type it ON i.term_label_type_id = it.id WHERE i.object_type_id = 4 AND i.nm_fts @@ to_tsquery('common.english_nostops', $2) ) UNION ALL SELECT /* acc */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm secondaryNm ,l.acc_txt matchednm ,'Accession' matchedtype ,false isNameMatch ,false isSecondaryNameMatch ,t.has_chems hasChems ,t.has_diseases hasDiseases ,t.has_exposures hasExposures ,1 relevance ,t.nm_sort ,t.id ,t.has_phenotypes hasPhenotypes FROM db_link l INNER JOIN term t ON l.object_id = t.id WHERE l.type_cd = 'A' AND l.object_type_id = 4 AND (upper( l.acc_txt ) = $3 ) ORDER BY 13,14 ) sq LIMIT 50
Date: 2024-10-13 12:45:35 Database: ctdprd51 Application: User: pubeu Remote:
Statement: SELECT /* MeshBasicQueryDAO */ sq.* ,COUNT(*) OVER() fullRowCount FROM ( SELECT /* label */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm casRN ,l.nm matchedNm ,lt.nm_display matchedType ,CASE WHEN lt.nm_display='Name' THEN true ELSE false END isNameMatch ,t.has_genes hasGenes ,t.has_chems hasChems ,t.has_diseases hasDiseases ,t.has_phenotypes hasPhenotypes ,CASE WHEN UPPER(l.nm) = $1 THEN 1 ELSE 2 END relevance ,t.nm_sort ,t.id ,t.acc_db_cd accdbcd ,t.has_exposures hasExposures FROM term t INNER JOIN term_label l ON l.term_id = t.id INNER JOIN term_label_type lt ON l.term_label_type_id = lt.id WHERE t.object_type_id = 3 AND l.object_type_id = 3 AND l.id IN( SELECT FIRST_VALUE(i.id) OVER(PARTITION BY i.term_id ORDER BY it.priority_seq, i.nm) FROM term_label i INNER JOIN term_label_type it ON i.term_label_type_id = it.id WHERE i.object_type_id = 3 AND i.nm_fts @@ to_tsquery('common.english_nostops', $2) ) UNION ALL SELECT /* term acc */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm casRN ,l.acc_txt matchednm ,'Accession' matchedtype ,false isNameMatch ,t.has_genes hasgenes ,t.has_chems haschems ,t.has_diseases hasdiseases ,t.has_phenotypes hasPhenotypes ,1 relevance ,t.nm_sort ,t.id ,t.acc_db_cd accdbcd ,t.has_exposures hasexposures FROM db_link l INNER JOIN term t ON l.object_id = t.id WHERE l.type_cd = 'A' AND l.object_type_id = 3 AND (upper( l.acc_txt ) = $3 ) ORDER BY 13,14 ) sq LIMIT 50
Date: 2024-10-14 09:23:57
Statement: SELECT /* GeneBasicQueryDAO */ sq.* ,COUNT(*) OVER() fullRowCount FROM ( SELECT /* label */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm secondaryNm ,l.nm matchedNm ,lt.nm_display matchedType ,CASE WHEN lt.nm_display='Symbol' THEN true ELSE false END isNameMatch ,CASE WHEN lt.nm_display='Name' THEN true ELSE false END isSecondaryNameMatch ,t.has_chems hasChems ,t.has_diseases hasDiseases ,t.has_exposures hasExposures ,CASE WHEN UPPER(l.nm) = $1 THEN 1 ELSE 2 END relevance ,t.nm_sort ,t.id ,t.has_phenotypes hasPhenotypes FROM term t INNER JOIN term_label l ON l.term_id = t.id INNER JOIN term_label_type lt ON l.term_label_type_id = lt.id WHERE l.object_type_id = 4 AND t.object_type_id = 4 AND l.id IN( SELECT FIRST_VALUE(i.id) OVER(PARTITION BY i.term_id ORDER BY it.priority_seq, i.nm) FROM term_label i INNER JOIN term_label_type it ON i.term_label_type_id = it.id WHERE i.object_type_id = 4 AND i.nm_fts @@ to_tsquery('common.english_nostops', $2) ) UNION ALL SELECT /* acc */ t.acc_txt acc ,'name:' || t.nm accQueryStr ,t.nm ,t.nm_html nmHtml ,t.secondary_nm secondaryNm ,l.acc_txt matchednm ,'Accession' matchedtype ,false isNameMatch ,false isSecondaryNameMatch ,t.has_chems hasChems ,t.has_diseases hasDiseases ,t.has_exposures hasExposures ,1 relevance ,t.nm_sort ,t.id ,t.has_phenotypes hasPhenotypes FROM db_link l INNER JOIN term t ON l.object_id = t.id WHERE l.type_cd = 'A' AND l.object_type_id = 4 AND (upper( l.acc_txt ) = $3 OR upper( l.acc_txt ) = $4 OR upper( l.acc_txt ) = $5 OR upper( l.acc_txt ) = $6 OR upper( l.acc_txt ) = $7 OR upper( l.acc_txt ) = $8 OR upper( l.acc_txt ) = $9 OR upper( l.acc_txt ) = $10 OR upper( l.acc_txt ) = $11 OR upper( l.acc_txt ) = $12 OR upper( l.acc_txt ) = $13 OR upper( l.acc_txt ) = $14 OR upper( l.acc_txt ) = $15 OR upper( l.acc_txt ) = $16 OR upper( l.acc_txt ) = $17 OR upper( l.acc_txt ) = $18 OR upper( l.acc_txt ) = $19 OR upper( l.acc_txt ) = $20 OR upper( l.acc_txt ) = $21 ) ORDER BY 13,14 ) sq LIMIT 50
Date: 2024-10-15 10:42:35 Database: ctdprd51 Application: User: pubeu Remote:
2 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Oct 14 07 1 Oct 15 07 1 - ERROR: duplicate key value violates unique constraint "ixn_action_pk"
- ERROR: duplicate key value violates unique constraint "term_label_ak1"
Detail: Key (ixn_id, action_type_id, action_degree_type_id)=(8839164, 1, 1) already exists.
Context: SQL statement "INSERT INTO edit.ixn_action (ixn_id ,action_type_id ,action_degree_type_id ,position_seq ,create_by ,mod_by ,create_tm ,mod_tm ) VALUES (p_ixn_id ,p_action_type_id ,p_action_degree_type_id ,p_position_seq ,p_create_by ,p_mod_by ,p_create_tm ,p_mod_tm )" PL/pgSQL function ins_ixn_action(integer,integer,integer,smallint,character varying,character varying,timestamp without time zone,timestamp without time zone) line 9 at SQL statementPL/pgSQL function del_ixn_by_root_id(integer) line 14 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 21 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 31 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 43 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 50 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 55 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 14 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 21 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 31 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 43 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 50 at RAISEPL/pgSQL function del_ixn_by_root_id(integer) line 55 at RAISEPL/pgSQL function ins_ixn(integer,smallint,integer,character varying,character varying,integer,timestamp without time zone,timestamp without time zone) line 32 at RAISEPL/pgSQL function upd_ixn_root_id(integer,integer) line 14 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_action(integer,integer,integer,smallint,character varying,character varying,timestamp without time zone,timestamp without time zone) line 30 at RAISEPL/pgSQL function ins_ixn(integer,smallint,integer,character varying,character varying,integer,timestamp without time zone,timestamp without time zone) line 32 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_actor(integer,smallint,integer,character varying,integer,character varying,integer,integer,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 40 at RAISEPL/pgSQL function ins_ixn_action(integer,integer,integer,smallint,character varying,character varying,timestamp without time zone,timestamp without time zone) line 30 at RAISEPL/pgSQL function ins_reference_ixn(character varying,integer,integer,character varying,integer,character varying,character varying,character varying,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone) line 42 at RAISE
Statement: select * from edit.ins_ixn_action($1, $2, $3, $4, $5, $6, $7, $8) as resultDate: 2024-10-14 07:42:38
Detail: Key (acc_txt, synonym, term_label_type_id)=(C097240, 87893-55-8, 34) already exists.
Statement: insert into edit.TERM_LABEL ( acc_txt ,nm ,acc_db_id ,synonym ,object_type_id ,term_label_type_id ,reference_acc_txt ,reference_acc_db_id ,notes ,create_by ,mod_by ) values ( 'C097240' ,'15-deoxy-delta(12,14)-prostaglandin J2' ,21 ,'87893-55-8' ,2 ,34 ,'38685157' ,16 ,'' ,'dsciaky' ,'dsciaky' )Date: 2024-10-15 07:54:02
3 1 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #3
Day Hour Count Oct 18 14 1 4 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #4
Day Hour Count Oct 15 12 1 5 1 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #5
Day Hour Count Oct 18 14 1