-
Global information
- Generated on Sun Apr 21 04:15:20 2024
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20240420
- Parsed 1,026,804 log entries in 19s
- Log start from 2024-04-14 00:00:01 to 2024-04-20 23:59:44
-
Overview
Global Stats
- 458 Number of unique normalized queries
- 25,640 Number of queries
- 2d5h32m30s Total query duration
- 2024-04-14 00:02:04 First query
- 2024-04-20 23:57:09 Last query
- 16 queries/s at 2024-04-14 18:54:05 Query peak
- 2d5h32m30s Total query duration
- 8s504ms Prepare/parse total duration
- 1m29s Bind total duration
- 2d5h30m52s Execute total duration
- 173 Number of events
- 13 Number of unique normalized events
- 58 Max number of times the same event was reported
- 0 Number of cancellation
- 36 Total number of automatic vacuums
- 157 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 107,026 Total number of sessions
- 89 sessions at 2024-04-14 20:30:50 Session peak
- 505d3h30m29s Total duration of sessions
- 6m47s Average duration of sessions
- 0 Average queries per session
- 1s800ms Average queries duration per session
- 6m45s Average idle time per session
- 107,026 Total number of connections
- 89 connections/s at 2024-04-18 02:11:03 Connection peak
- 3 Total number of databases
SQL Traffic
Key values
- 16 queries/s Query Peak
- 2024-04-14 18:54:05 Date
SELECT Traffic
Key values
- 16 queries/s Query Peak
- 2024-04-14 18:54:05 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 5 queries/s Query Peak
- 2024-04-14 05:47:38 Date
Queries duration
Key values
- 2d5h32m30s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 14 00 156 0ms 15m41s 17s333ms 4m28s 4m52s 15m46s 01 80 0ms 9m1s 12s890ms 34s459ms 2m11s 9m1s 02 2,354 0ms 5m26s 6s555ms 37m21s 39m34s 40m59s 03 334 0ms 39s972ms 4s118ms 6s990ms 34s601ms 20m18s 04 903 0ms 3m15s 6s547ms 1m59s 36m32s 41m51s 05 504 0ms 33m16s 16s754ms 1m43s 23m20s 1h6m16s 06 148 0ms 31s965ms 3s911ms 38s506ms 45s725ms 5m1s 07 8 0ms 4s872ms 2s754ms 2s319ms 3s979ms 6s395ms 08 415 0ms 35s874ms 6s277ms 50s135ms 6m42s 24m47s 09 441 0ms 11m17s 10s115ms 1m53s 11m17s 29m56s 10 109 0ms 20m16s 15s214ms 31s860ms 1m19s 20m16s 11 11 0ms 4s84ms 1s687ms 1s772ms 2s5ms 4s84ms 12 13 0ms 12s734ms 4s670ms 4s54ms 10s653ms 13s433ms 13 11 0ms 5s612ms 3s903ms 4s49ms 4s94ms 16s404ms 14 19 0ms 31s870ms 8s22ms 18s752ms 42s710ms 52s238ms 15 1,614 0ms 48s904ms 5s7ms 21m11s 33m54s 34m7s 16 98 0ms 10s257ms 2s889ms 10s257ms 1m45s 1m50s 17 3 0ms 1s230ms 1s148ms 0ms 1s144ms 1s230ms 18 1,487 0ms 43s932ms 5s123ms 52s227ms 25m55s 39m55s 19 572 0ms 54s243ms 5s576ms 6s84ms 17m20s 34m54s 20 1,090 0ms 43s971ms 5s189ms 3m58s 35m38s 38m49s 21 793 0ms 44s346ms 5s245ms 15s842ms 7m32s 34m19s 22 61 0ms 5s468ms 2s63ms 6s907ms 7s344ms 13s287ms 23 78 0ms 53s482ms 4s607ms 47s514ms 52s67ms 53s482ms Apr 15 00 85 0ms 15m42s 14s326ms 25s912ms 32s393ms 15m47s 01 109 0ms 28s419ms 1s518ms 7s5ms 8s912ms 28s419ms 02 140 0ms 19s890ms 1s885ms 11s208ms 15s363ms 47s379ms 03 199 0ms 9m50s 16s646ms 1m37s 9m42s 10m7s 04 842 0ms 17m50s 5s280ms 2m17s 7m25s 26m25s 05 185 0ms 4s201ms 1s442ms 10s279ms 20s202ms 23s611ms 06 236 0ms 32s98ms 2s683ms 38s669ms 49s897ms 1m19s 07 290 0ms 16s374ms 2s735ms 28s974ms 1m36s 4m25s 08 141 0ms 14s55ms 1s501ms 8s220ms 9s292ms 18s903ms 09 163 0ms 2m16s 4s454ms 27s597ms 1m2s 4m37s 10 258 0ms 1m58s 3s716ms 36s2ms 1m32s 4m14s 11 138 0ms 4s759ms 1s335ms 7s100ms 9s407ms 9s500ms 12 111 0ms 19s635ms 2s46ms 7s29ms 9s506ms 59s155ms 13 101 0ms 42s741ms 3s404ms 8s959ms 44s478ms 1m31s 14 129 0ms 32s283ms 2s697ms 17s90ms 38s551ms 52s487ms 15 146 0ms 12s768ms 1s445ms 10s605ms 14s965ms 17s573ms 16 124 0ms 3s516ms 1s183ms 6s866ms 9s261ms 9s489ms 17 177 0ms 5s985ms 1s488ms 10s280ms 16s100ms 25s523ms 18 165 0ms 31s976ms 1s853ms 10s599ms 12s873ms 57s558ms 19 133 0ms 4s844ms 1s316ms 7s874ms 8s58ms 11s202ms 20 151 0ms 17m9s 8s159ms 7s973ms 9s990ms 17m14s 21 185 0ms 11s281ms 1s555ms 12s882ms 29s220ms 31s946ms 22 113 0ms 7s280ms 1s651ms 7s129ms 11s902ms 16s771ms 23 122 0ms 48s522ms 4s362ms 21s579ms 47s447ms 1m33s Apr 16 00 288 0ms 15m57s 8s41ms 41s934ms 5m 16m3s 01 119 0ms 6m18s 4s429ms 6s541ms 8s910ms 6m27s 02 163 0ms 52s996ms 3s867ms 46s902ms 55s848ms 1m45s 03 97 0ms 5s11ms 1s342ms 4s917ms 8s343ms 13s704ms 04 128 0ms 5s636ms 1s430ms 6s916ms 10s681ms 16s175ms 05 299 0ms 7m34s 6s513ms 36s775ms 5m38s 7m49s 06 141 0ms 17m58s 17s842ms 13s53ms 52s240ms 35m33s 07 81 0ms 12s176ms 1s906ms 6s373ms 9s737ms 12s176ms 08 301 0ms 12s182ms 2s482ms 28s687ms 1m18s 3m47s 09 123 0ms 2m1s 4s665ms 40s121ms 1m10s 2m7s 10 42 0ms 32s177ms 4s583ms 9s448ms 17s641ms 54s591ms 11 17 0ms 12s699ms 2s520ms 3s949ms 4s921ms 12s699ms 12 26 0ms 4s99ms 1s795ms 4s28ms 4s99ms 6s312ms 13 27 0ms 4s957ms 1s811ms 4s88ms 4s957ms 8s455ms 14 18 0ms 31s912ms 6s266ms 2s193ms 8s313ms 53s508ms 15 22 0ms 14s468ms 2s952ms 4s914ms 9s78ms 14s872ms 16 16 0ms 5s567ms 2s613ms 4s24ms 4s93ms 11s717ms 17 132 0ms 12s620ms 2s78ms 8s744ms 55s634ms 1m25s 18 47 0ms 52s796ms 5s665ms 18s991ms 48s666ms 52s796ms 19 18 0ms 52s335ms 12s959ms 12s631ms 51s94ms 52s335ms 20 158 0ms 8m45s 13s711ms 1m54s 3m8s 17m11s 21 22 0ms 8s540ms 2s375ms 4s424ms 5s154ms 8s540ms 22 8 0ms 3s516ms 1s913ms 1s637ms 2s756ms 3s516ms 23 10 0ms 12s350ms 3s585ms 1s871ms 5s132ms 12s972ms Apr 17 00 17 0ms 15m48s 57s716ms 2s633ms 4s789ms 15m53s 01 28 0ms 6s623ms 2s96ms 4s564ms 5s529ms 6s623ms 02 18 0ms 3s596ms 1s428ms 2s196ms 2s232ms 3s596ms 03 26 0ms 28s101ms 3s527ms 4s46ms 4s370ms 28s101ms 04 46 0ms 4s849ms 2s943ms 8s39ms 12s125ms 14s247ms 05 59 0ms 13s131ms 2s205ms 13s131ms 19s328ms 23s506ms 06 27 0ms 32s65ms 5s141ms 7s22ms 9s360ms 53s394ms 07 19 0ms 6s454ms 1s405ms 2s228ms 2s244ms 6s454ms 08 18 0ms 11s342ms 2s137ms 4s210ms 5s873ms 11s342ms 09 21 0ms 1m9s 7s928ms 2s483ms 4s13ms 1m13s 10 43 0ms 31s966ms 3s628ms 6s367ms 9s380ms 54s729ms 11 20 0ms 4s765ms 1s807ms 3s308ms 4s59ms 7s106ms 12 5 0ms 2s590ms 1s431ms 1s95ms 2s187ms 2s590ms 13 23 0ms 8s408ms 2s998ms 4s767ms 5s19ms 30s993ms 14 28 0ms 32s163ms 5s401ms 3s954ms 8s291ms 1m2s 15 40 0ms 29s339ms 2s831ms 4s859ms 9s790ms 33s376ms 16 41 0ms 49s983ms 7s139ms 25s283ms 31s610ms 1m4s 17 23 0ms 17s128ms 6s32ms 16s556ms 16s794ms 17s128ms 18 30 0ms 31s904ms 4s427ms 3s450ms 9s348ms 52s318ms 19 20 0ms 4s836ms 1s486ms 2s389ms 3s504ms 4s836ms 20 15 0ms 12s693ms 1s964ms 2s192ms 2s245ms 12s693ms 21 16 0ms 4s801ms 2s130ms 3s468ms 3s965ms 4s801ms 22 13 0ms 4s794ms 1s809ms 1s750ms 3s24ms 4s794ms 23 35 0ms 5s551ms 1s622ms 3s362ms 3s489ms 5s551ms Apr 18 00 31 0ms 15m46s 32s249ms 2s448ms 6s906ms 15m51s 01 1,392 0ms 14m36s 8s951ms 17m2s 20m40s 26m31s 02 341 0ms 20m21s 22s946ms 12m48s 17m30s 20m21s 03 34 0ms 10s973ms 2s477ms 4s61ms 5s205ms 33s566ms 04 19 0ms 12s740ms 3s28ms 3s517ms 6s162ms 12s740ms 05 76 0ms 5s788ms 2s204ms 13s924ms 17s872ms 29s242ms 06 37 0ms 31s941ms 4s259ms 4s196ms 12s450ms 1m1s 07 33 0ms 20s421ms 6s878ms 11s281ms 38s965ms 1m3s 08 23 0ms 35s100ms 6s151ms 5s421ms 29s327ms 36s658ms 09 25 0ms 4s187ms 1s866ms 3s82ms 3s985ms 6s654ms 10 24 0ms 31s898ms 6s590ms 9s313ms 30s408ms 52s284ms 11 24 0ms 3m4s 9s653ms 2s404ms 8s388ms 3m4s 12 26 0ms 6s786ms 2s33ms 4s127ms 5s248ms 7s877ms 13 42 0ms 49s930ms 6s387ms 16s366ms 18s423ms 49s930ms 14 34 0ms 2m 8s351ms 19s311ms 46s497ms 2m 15 47 0ms 6s238ms 1s803ms 4s787ms 6s208ms 12s320ms 16 27 0ms 3s931ms 1s560ms 3s247ms 3s702ms 4s606ms 17 25 0ms 6s873ms 2s50ms 4s538ms 4s827ms 7s302ms 18 18 0ms 31s898ms 6s567ms 5s270ms 38s493ms 52s421ms 19 14 0ms 4s20ms 1s423ms 1s984ms 2s186ms 4s20ms 20 19 0ms 7s586ms 2s980ms 3s740ms 6s360ms 7s586ms 21 26 0ms 4s286ms 1s445ms 2s471ms 4s64ms 5s487ms 22 19 0ms 7s878ms 2s81ms 2s485ms 4s9ms 9s107ms 23 22 0ms 5s955ms 1s711ms 2s435ms 5s49ms 6s392ms Apr 19 00 14 0ms 15m48s 1m10s 4s8ms 5s587ms 15m54s 01 21 0ms 8s236ms 2s428ms 4s128ms 4s224ms 8s257ms 02 56 0ms 7s81ms 2s971ms 5s377ms 9s444ms 48s581ms 03 26 0ms 11s646ms 3s356ms 4s125ms 10s728ms 22s979ms 04 28 0ms 12s774ms 2s70ms 4s86ms 6s194ms 12s774ms 05 62 0ms 5s656ms 2s130ms 5s656ms 17s930ms 23s408ms 06 34 0ms 16m58s 34s273ms 7s78ms 38s516ms 16m58s 07 22 0ms 4s237ms 1s585ms 2s397ms 3s944ms 8s267ms 08 25 0ms 11s411ms 5s247ms 10s442ms 11s411ms 45s272ms 09 22 0ms 4s813ms 1s746ms 4s31ms 4s813ms 5s670ms 10 26 0ms 31s976ms 5s101ms 4s791ms 9s291ms 52s430ms 11 19 0ms 5s992ms 2s580ms 2s689ms 4s113ms 16s678ms 12 18 0ms 5s552ms 1s796ms 2s490ms 4s144ms 6s494ms 13 28 0ms 5s573ms 1s752ms 2s478ms 3s285ms 10s919ms 14 25 0ms 32s125ms 4s183ms 2s778ms 9s302ms 38s832ms 15 18 0ms 8s536ms 2s313ms 3s299ms 4s51ms 10s763ms 16 333 0ms 9m26s 11s302ms 3m52s 7m13s 18m41s 17 383 0ms 4m57s 9s166ms 3m42s 5m15s 28m8s 18 303 0ms 18m43s 8s885ms 1m41s 5m4s 18m43s 19 45 0ms 26s643ms 2s917ms 9s527ms 12s533ms 46s58ms 20 63 0ms 4m23s 31s364ms 1m32s 6m52s 12m28s 21 19 0ms 2m8s 8s179ms 2s549ms 2s775ms 2m8s 22 58 0ms 6s512ms 2s218ms 7s937ms 20s178ms 22s647ms 23 24 0ms 37s998ms 3s741ms 3s471ms 10s561ms 39s64ms Apr 20 00 41 0ms 15m36s 26s388ms 16s114ms 31s874ms 15m41s 01 22 0ms 4s800ms 1s953ms 3s467ms 4s796ms 6s358ms 02 22 0ms 8m23s 47s668ms 4s860ms 8s201ms 8m23s 03 17 0ms 5s685ms 1s651ms 2s225ms 3s492ms 5s685ms 04 13 0ms 12s394ms 3s431ms 3s333ms 4s123ms 12s978ms 05 64 0ms 5s918ms 2s7ms 7s40ms 17s852ms 24s662ms 06 15 0ms 4s56ms 1s567ms 2s451ms 3s963ms 4s56ms 07 24 0ms 18s21ms 2s905ms 3s787ms 10s99ms 18s21ms 08 546 0ms 13m42s 12s475ms 11m52s 13m42s 22m27s 09 21 0ms 12s730ms 2s254ms 3s497ms 3s999ms 14s968ms 10 9 0ms 10s680ms 4s343ms 5s324ms 8s203ms 10s680ms 11 27 0ms 8s151ms 1s889ms 2s542ms 4s12ms 8s151ms 12 28 0ms 19s48ms 5s187ms 16s261ms 17s235ms 19s48ms 13 454 0ms 11m2s 13s829ms 9m57s 19m30s 25m36s 14 337 0ms 19m50s 42s341ms 19m27s 35m10s 59m10s 15 14 0ms 12s508ms 2s907ms 4s45ms 4s145ms 14s841ms 16 424 0ms 1m43s 5s116ms 41s503ms 3m53s 19m46s 17 46 0ms 25s806ms 2s92ms 4s391ms 7s489ms 25s806ms 18 630 0ms 18m53s 12s917ms 9m19s 17m49s 19m32s 19 74 0ms 23m39s 1m4s 2m1s 7m1s 23m45s 20 27 0ms 5s219ms 1s615ms 2s446ms 4s53ms 7s268ms 21 24 0ms 12s419ms 2s287ms 4s92ms 5s40ms 12s419ms 22 14 0ms 3s276ms 1s339ms 2s470ms 3s276ms 3s431ms 23 18 0ms 12s530ms 2s712ms 2s821ms 10s492ms 12s530ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 14 00 154 0 17s518ms 14s675ms 4m28s 15m41s 01 80 0 12s890ms 1s423ms 34s459ms 9m1s 02 2,254 0 6s676ms 1m55s 37m4s 40m40s 03 331 0 4s131ms 1s295ms 6s990ms 41s846ms 04 889 0 6s614ms 6s864ms 1m59s 41m33s 05 446 0 18s424ms 14s1ms 1m43s 1h6m16s 06 138 10 3s911ms 2s647ms 38s506ms 5m1s 07 8 0 2s754ms 0ms 2s319ms 6s395ms 08 410 0 6s333ms 4s20ms 50s135ms 24m47s 09 432 0 10s285ms 4s10ms 1m53s 29m53s 10 99 10 15s214ms 9s476ms 38s588ms 20m16s 11 10 0 1s655ms 1s177ms 1s722ms 4s84ms 12 11 0 5s171ms 1s430ms 4s54ms 13s433ms 13 11 0 3s903ms 0ms 4s49ms 16s404ms 14 9 10 8s22ms 1s776ms 18s752ms 52s238ms 15 1,588 0 5s57ms 1m50s 21m3s 33m48s 16 98 0 2s889ms 2s377ms 10s257ms 1m50s 17 3 0 1s148ms 0ms 0ms 1s230ms 18 1,462 10 5s157ms 8s892ms 52s227ms 39m47s 19 565 0 5s619ms 3s244ms 6s84ms 34m48s 20 1,071 0 5s249ms 9s80ms 3m53s 38m42s 21 784 0 5s285ms 4s341ms 15s842ms 34m12s 22 61 0 2s63ms 6s92ms 6s907ms 13s287ms 23 78 0 4s607ms 5s278ms 47s514ms 53s482ms Apr 15 00 84 0 14s435ms 6s331ms 25s912ms 32s768ms 01 109 0 1s518ms 4s699ms 7s5ms 28s419ms 02 140 0 1s885ms 6s334ms 11s208ms 28s151ms 03 199 0 16s646ms 10s740ms 1m37s 9m43s 04 836 0 5s306ms 48s828ms 2m17s 18m3s 05 181 0 1s425ms 6s727ms 10s279ms 23s430ms 06 226 10 2s683ms 15s812ms 38s669ms 52s350ms 07 290 0 2s735ms 7s195ms 28s974ms 2m1s 08 141 0 1s501ms 6s614ms 8s220ms 14s62ms 09 163 0 4s454ms 10s241ms 27s597ms 1m49s 10 248 10 3s716ms 19s516ms 38s571ms 1m39s 11 138 0 1s335ms 4s890ms 7s100ms 9s456ms 12 111 0 2s46ms 4s802ms 7s29ms 38s475ms 13 101 0 3s404ms 4s682ms 8s959ms 44s885ms 14 119 10 2s697ms 7s274ms 17s90ms 38s854ms 15 146 0 1s445ms 6s474ms 10s605ms 17s228ms 16 124 0 1s183ms 4s605ms 6s866ms 9s301ms 17 177 0 1s488ms 7s142ms 10s280ms 20s568ms 18 155 10 1s853ms 7s379ms 9s526ms 38s537ms 19 133 0 1s316ms 5s947ms 7s874ms 8s748ms 20 151 0 8s159ms 4s963ms 7s973ms 19s7ms 21 185 0 1s555ms 6s988ms 12s882ms 30s445ms 22 110 0 1s605ms 5s301ms 6s431ms 11s902ms 23 122 0 4s362ms 16s318ms 21s579ms 55s80ms Apr 16 00 287 0 8s50ms 9s295ms 41s934ms 7m29s 01 119 0 4s429ms 4s720ms 6s541ms 8s990ms 02 163 0 3s867ms 17s862ms 46s902ms 59s461ms 03 97 0 1s342ms 4s494ms 4s917ms 13s704ms 04 126 0 1s407ms 4s751ms 6s280ms 11s104ms 05 295 0 6s572ms 25s268ms 36s775ms 7m7s 06 133 8 17s842ms 10s116ms 13s53ms 1m42s 07 81 0 1s906ms 4s805ms 6s373ms 9s951ms 08 301 0 2s482ms 16s618ms 28s687ms 1m38s 09 123 0 4s665ms 9s164ms 40s121ms 2m7s 10 32 10 4s583ms 2s648ms 9s448ms 38s763ms 11 17 0 2s520ms 1s197ms 3s949ms 12s699ms 12 26 0 1s795ms 2s279ms 4s28ms 6s312ms 13 27 0 1s811ms 1s772ms 4s88ms 8s455ms 14 9 9 6s266ms 0ms 2s193ms 38s481ms 15 22 0 2s952ms 1s728ms 4s914ms 14s872ms 16 16 0 2s613ms 1s216ms 4s24ms 11s717ms 17 132 0 2s78ms 2s264ms 8s744ms 1m25s 18 37 10 5s665ms 4s122ms 18s991ms 52s796ms 19 18 0 12s959ms 1s250ms 12s631ms 52s335ms 20 158 0 13s711ms 5s874ms 1m54s 17m11s 21 22 0 2s375ms 2s380ms 4s424ms 8s540ms 22 8 0 1s913ms 1s109ms 1s637ms 3s516ms 23 10 0 3s585ms 0ms 1s871ms 12s972ms Apr 17 00 16 0 1m1s 1s806ms 2s633ms 15m48s 01 28 0 2s96ms 2s444ms 4s564ms 6s623ms 02 18 0 1s428ms 1s256ms 2s196ms 3s596ms 03 26 0 3s527ms 3s982ms 4s46ms 28s101ms 04 46 0 2s943ms 4s128ms 8s39ms 12s164ms 05 55 0 2s205ms 2s414ms 13s131ms 23s506ms 06 17 10 5s141ms 2s311ms 7s22ms 52s271ms 07 19 0 1s405ms 1s131ms 2s228ms 6s454ms 08 18 0 2s137ms 1s429ms 4s210ms 11s342ms 09 21 0 7s928ms 2s203ms 2s483ms 1m13s 10 33 10 3s628ms 2s851ms 6s367ms 52s306ms 11 19 0 1s728ms 1s549ms 2s423ms 7s106ms 12 5 0 1s431ms 0ms 1s95ms 2s590ms 13 23 0 2s998ms 2s214ms 4s767ms 30s993ms 14 19 9 5s401ms 2s386ms 5s347ms 52s346ms 15 40 0 2s831ms 3s560ms 4s859ms 33s376ms 16 41 0 7s139ms 9s852ms 25s283ms 1m4s 17 23 0 6s32ms 9s456ms 16s556ms 17s128ms 18 20 10 4s427ms 2s197ms 3s450ms 52s318ms 19 20 0 1s486ms 2s181ms 2s389ms 4s836ms 20 15 0 1s964ms 1s161ms 2s192ms 12s693ms 21 16 0 2s130ms 2s190ms 3s468ms 4s801ms 22 13 0 1s809ms 1s95ms 1s750ms 4s794ms 23 35 0 1s622ms 2s283ms 3s362ms 5s551ms Apr 18 00 30 0 33s153ms 2s226ms 2s448ms 15m46s 01 1,384 0 8s994ms 8m35s 17m2s 26m31s 02 340 0 23s3ms 5m16s 12m48s 20m21s 03 34 0 2s477ms 2s210ms 4s61ms 33s566ms 04 19 0 3s28ms 2s421ms 3s517ms 12s740ms 05 72 0 2s202ms 5s881ms 13s924ms 29s242ms 06 28 9 4s259ms 3s986ms 4s796ms 52s698ms 07 33 0 6s878ms 2s446ms 11s281ms 1m3s 08 23 0 6s151ms 2s468ms 5s421ms 36s658ms 09 25 0 1s866ms 2s128ms 3s82ms 5s458ms 10 14 10 6s590ms 1s268ms 9s313ms 52s284ms 11 24 0 9s653ms 1s411ms 2s404ms 3m4s 12 26 0 2s33ms 2s197ms 4s127ms 7s877ms 13 41 0 6s496ms 10s981ms 16s366ms 49s930ms 14 24 10 8s351ms 2s390ms 11s359ms 2m 15 47 0 1s803ms 2s755ms 4s787ms 7s232ms 16 27 0 1s560ms 2s199ms 3s247ms 4s606ms 17 25 0 2s50ms 2s197ms 4s538ms 7s302ms 18 8 10 6s567ms 1s543ms 5s270ms 52s421ms 19 14 0 1s423ms 1s98ms 1s984ms 4s20ms 20 19 0 2s980ms 2s226ms 3s740ms 7s550ms 21 26 0 1s445ms 1s250ms 2s471ms 5s487ms 22 19 0 2s81ms 1s165ms 2s485ms 9s107ms 23 22 0 1s711ms 1s262ms 2s435ms 6s392ms Apr 19 00 13 0 1m15s 1s502ms 4s8ms 15m48s 01 21 0 2s428ms 2s235ms 4s128ms 8s257ms 02 56 0 2s971ms 4s6ms 5s377ms 48s481ms 03 26 0 3s356ms 2s225ms 4s125ms 12s57ms 04 27 0 2s80ms 1s815ms 4s86ms 7s92ms 05 58 0 2s124ms 3s928ms 5s656ms 23s408ms 06 24 10 34s273ms 2s683ms 7s78ms 16m58s 07 22 0 1s585ms 1s470ms 2s397ms 8s267ms 08 25 0 5s247ms 2s249ms 10s442ms 45s272ms 09 22 0 1s746ms 1s606ms 4s31ms 5s670ms 10 16 10 5s101ms 1s329ms 4s791ms 52s430ms 11 19 0 2s580ms 1s128ms 2s689ms 16s678ms 12 18 0 1s796ms 1s416ms 2s490ms 6s494ms 13 28 0 1s752ms 2s386ms 2s478ms 10s919ms 14 17 8 4s183ms 2s132ms 2s778ms 38s832ms 15 18 0 2s313ms 2s119ms 3s299ms 10s763ms 16 333 0 11s302ms 45s967ms 3m52s 7m30s 17 380 0 9s229ms 16s398ms 3m41s 28m8s 18 292 10 8s911ms 1m3s 1m24s 5m54s 19 45 0 2s917ms 3s43ms 9s527ms 46s58ms 20 63 0 31s364ms 4s811ms 1m32s 12m28s 21 19 0 8s179ms 2s180ms 2s549ms 2m8s 22 57 0 2s198ms 2s683ms 7s937ms 22s647ms 23 24 0 3s741ms 2s252ms 3s471ms 39s64ms Apr 20 00 40 0 26s921ms 2s242ms 16s114ms 15m36s 01 22 0 1s953ms 2s403ms 3s467ms 6s358ms 02 22 0 47s668ms 2s430ms 4s860ms 8m23s 03 17 0 1s651ms 1s141ms 2s225ms 5s685ms 04 13 0 3s431ms 1s224ms 3s333ms 12s978ms 05 60 0 1s993ms 2s532ms 7s40ms 24s662ms 06 15 0 1s567ms 1s301ms 2s451ms 4s56ms 07 24 0 2s905ms 2s464ms 3s787ms 18s21ms 08 542 0 12s555ms 3m51s 11m52s 22m27s 09 21 0 2s254ms 1s257ms 3s497ms 14s968ms 10 9 0 4s343ms 1s113ms 5s324ms 10s680ms 11 27 0 1s889ms 2s212ms 2s542ms 7s506ms 12 28 0 5s187ms 2s756ms 16s261ms 19s48ms 13 450 0 13s932ms 1m7s 9m57s 25m34s 14 336 0 42s453ms 2m37s 19m27s 59m10s 15 14 0 2s907ms 2s210ms 4s45ms 14s841ms 16 420 0 5s139ms 28s10ms 41s503ms 19m41s 17 46 0 2s92ms 2s532ms 4s391ms 25s806ms 18 603 25 12s947ms 2m39s 9m19s 17m49s 19 27 47 1m4s 1m19s 2m1s 23m42s 20 27 0 1s615ms 2s190ms 2s446ms 7s268ms 21 24 0 2s287ms 2s217ms 4s92ms 12s419ms 22 14 0 1s339ms 2s240ms 2s470ms 3s431ms 23 18 0 2s712ms 2s242ms 2s821ms 12s530ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 20 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Apr 14 00 0 154 154.00 0.00% 01 0 80 80.00 0.00% 02 0 2,370 2,370.00 0.00% 03 0 336 336.00 0.00% 04 0 909 909.00 0.00% 05 0 505 505.00 0.00% 06 0 139 139.00 0.00% 07 0 8 8.00 0.00% 08 0 419 419.00 0.00% 09 0 443 443.00 0.00% 10 0 99 99.00 0.00% 11 0 11 11.00 0.00% 12 0 11 11.00 0.00% 13 0 11 11.00 0.00% 14 0 9 9.00 0.00% 15 0 1,628 1,628.00 0.00% 16 0 98 98.00 0.00% 17 0 3 3.00 0.00% 18 0 1,485 1,485.00 0.00% 19 0 575 575.00 0.00% 20 0 1,095 1,095.00 0.00% 21 0 794 794.00 0.00% 22 0 61 61.00 0.00% 23 0 78 78.00 0.00% Apr 15 00 0 83 83.00 0.00% 01 0 109 109.00 0.00% 02 0 140 140.00 0.00% 03 0 200 200.00 0.00% 04 0 843 843.00 0.00% 05 0 186 186.00 0.00% 06 0 226 226.00 0.00% 07 0 290 290.00 0.00% 08 0 141 141.00 0.00% 09 0 163 163.00 0.00% 10 0 250 250.00 0.00% 11 0 145 145.00 0.00% 12 0 117 117.00 0.00% 13 0 116 116.00 0.00% 14 0 134 134.00 0.00% 15 0 155 155.00 0.00% 16 0 124 124.00 0.00% 17 0 177 177.00 0.00% 18 0 155 155.00 0.00% 19 0 133 133.00 0.00% 20 0 151 151.00 0.00% 21 0 185 185.00 0.00% 22 0 113 113.00 0.00% 23 0 122 122.00 0.00% Apr 16 00 0 286 286.00 0.00% 01 0 120 120.00 0.00% 02 0 164 164.00 0.00% 03 0 97 97.00 0.00% 04 0 128 128.00 0.00% 05 0 299 299.00 0.00% 06 0 145 145.00 0.00% 07 0 85 85.00 0.00% 08 0 301 301.00 0.00% 09 0 123 123.00 0.00% 10 0 33 33.00 0.00% 11 0 19 19.00 0.00% 12 0 27 27.00 0.00% 13 0 31 31.00 0.00% 14 0 11 11.00 0.00% 15 0 22 22.00 0.00% 16 0 16 16.00 0.00% 17 0 132 132.00 0.00% 18 0 37 37.00 0.00% 19 0 18 18.00 0.00% 20 0 158 158.00 0.00% 21 0 22 22.00 0.00% 22 0 8 8.00 0.00% 23 0 10 10.00 0.00% Apr 17 00 0 15 15.00 0.00% 01 0 28 28.00 0.00% 02 0 18 18.00 0.00% 03 0 26 26.00 0.00% 04 0 46 46.00 0.00% 05 0 59 59.00 0.00% 06 0 17 17.00 0.00% 07 0 19 19.00 0.00% 08 0 18 18.00 0.00% 09 0 21 21.00 0.00% 10 0 33 33.00 0.00% 11 0 20 20.00 0.00% 12 0 5 5.00 0.00% 13 0 23 23.00 0.00% 14 0 19 19.00 0.00% 15 0 40 40.00 0.00% 16 0 42 42.00 0.00% 17 0 23 23.00 0.00% 18 0 20 20.00 0.00% 19 0 20 20.00 0.00% 20 0 15 15.00 0.00% 21 0 16 16.00 0.00% 22 0 13 13.00 0.00% 23 0 35 35.00 0.00% Apr 18 00 0 29 29.00 0.00% 01 1 1,395 1,395.00 0.07% 02 0 341 341.00 0.00% 03 0 34 34.00 0.00% 04 0 19 19.00 0.00% 05 0 76 76.00 0.00% 06 0 29 29.00 0.00% 07 0 35 35.00 0.00% 08 0 23 23.00 0.00% 09 0 25 25.00 0.00% 10 0 14 14.00 0.00% 11 0 24 24.00 0.00% 12 0 26 26.00 0.00% 13 0 42 42.00 0.00% 14 0 24 24.00 0.00% 15 0 48 48.00 0.00% 16 0 28 28.00 0.00% 17 0 25 25.00 0.00% 18 0 8 8.00 0.00% 19 0 14 14.00 0.00% 20 0 19 19.00 0.00% 21 0 28 28.00 0.00% 22 0 19 19.00 0.00% 23 0 23 23.00 0.00% Apr 19 00 0 12 12.00 0.00% 01 0 21 21.00 0.00% 02 0 56 56.00 0.00% 03 0 26 26.00 0.00% 04 0 28 28.00 0.00% 05 0 62 62.00 0.00% 06 0 24 24.00 0.00% 07 0 22 22.00 0.00% 08 0 25 25.00 0.00% 09 0 22 22.00 0.00% 10 0 16 16.00 0.00% 11 0 20 20.00 0.00% 12 0 18 18.00 0.00% 13 0 31 31.00 0.00% 14 0 17 17.00 0.00% 15 0 19 19.00 0.00% 16 0 334 334.00 0.00% 17 0 383 383.00 0.00% 18 0 293 293.00 0.00% 19 0 45 45.00 0.00% 20 0 63 63.00 0.00% 21 0 19 19.00 0.00% 22 0 58 58.00 0.00% 23 0 24 24.00 0.00% Apr 20 00 0 39 39.00 0.00% 01 0 22 22.00 0.00% 02 0 22 22.00 0.00% 03 0 17 17.00 0.00% 04 0 13 13.00 0.00% 05 0 64 64.00 0.00% 06 0 15 15.00 0.00% 07 0 24 24.00 0.00% 08 0 547 547.00 0.00% 09 0 21 21.00 0.00% 10 0 9 9.00 0.00% 11 0 27 27.00 0.00% 12 0 28 28.00 0.00% 13 0 456 456.00 0.00% 14 0 339 339.00 0.00% 15 0 14 14.00 0.00% 16 0 424 424.00 0.00% 17 0 46 46.00 0.00% 18 0 605 605.00 0.00% 19 0 27 27.00 0.00% 20 0 27 27.00 0.00% 21 0 24 24.00 0.00% 22 0 14 14.00 0.00% 23 0 18 18.00 0.00% Day Hour Count Average / Second Apr 14 00 676 0.19/s 01 900 0.25/s 02 1,460 0.41/s 03 742 0.21/s 04 629 0.17/s 05 691 0.19/s 06 661 0.18/s 07 529 0.15/s 08 921 0.26/s 09 2,071 0.58/s 10 751 0.21/s 11 526 0.15/s 12 531 0.15/s 13 525 0.15/s 14 529 0.15/s 15 1,342 0.37/s 16 534 0.15/s 17 522 0.14/s 18 675 0.19/s 19 606 0.17/s 20 689 0.19/s 21 1,178 0.33/s 22 550 0.15/s 23 555 0.15/s Apr 15 00 532 0.15/s 01 529 0.15/s 02 647 0.18/s 03 548 0.15/s 04 1,439 0.40/s 05 569 0.16/s 06 876 0.24/s 07 881 0.24/s 08 593 0.16/s 09 674 0.19/s 10 842 0.23/s 11 540 0.15/s 12 538 0.15/s 13 583 0.16/s 14 547 0.15/s 15 567 0.16/s 16 551 0.15/s 17 584 0.16/s 18 538 0.15/s 19 536 0.15/s 20 581 0.16/s 21 546 0.15/s 22 574 0.16/s 23 554 0.15/s Apr 16 00 960 0.27/s 01 551 0.15/s 02 663 0.18/s 03 542 0.15/s 04 634 0.18/s 05 983 0.27/s 06 703 0.20/s 07 578 0.16/s 08 982 0.27/s 09 935 0.26/s 10 580 0.16/s 11 523 0.15/s 12 523 0.15/s 13 519 0.14/s 14 522 0.14/s 15 515 0.14/s 16 521 0.14/s 17 659 0.18/s 18 525 0.15/s 19 522 0.14/s 20 893 0.25/s 21 517 0.14/s 22 525 0.15/s 23 523 0.15/s Apr 17 00 524 0.15/s 01 524 0.15/s 02 527 0.15/s 03 525 0.15/s 04 536 0.15/s 05 539 0.15/s 06 525 0.15/s 07 526 0.15/s 08 522 0.14/s 09 533 0.15/s 10 523 0.15/s 11 521 0.14/s 12 522 0.14/s 13 530 0.15/s 14 525 0.15/s 15 529 0.15/s 16 530 0.15/s 17 524 0.15/s 18 520 0.14/s 19 521 0.14/s 20 523 0.15/s 21 518 0.14/s 22 525 0.15/s 23 543 0.15/s Apr 18 00 516 0.14/s 01 3,161 0.88/s 02 1,208 0.34/s 03 528 0.15/s 04 527 0.15/s 05 537 0.15/s 06 522 0.14/s 07 525 0.15/s 08 527 0.15/s 09 534 0.15/s 10 522 0.14/s 11 525 0.15/s 12 523 0.15/s 13 529 0.15/s 14 520 0.14/s 15 525 0.15/s 16 519 0.14/s 17 520 0.14/s 18 525 0.15/s 19 521 0.14/s 20 536 0.15/s 21 517 0.14/s 22 523 0.15/s 23 528 0.15/s Apr 19 00 518 0.14/s 01 530 0.15/s 02 550 0.15/s 03 531 0.15/s 04 530 0.15/s 05 535 0.15/s 06 521 0.14/s 07 521 0.14/s 08 524 0.15/s 09 520 0.14/s 10 520 0.14/s 11 523 0.15/s 12 515 0.14/s 13 525 0.15/s 14 534 0.15/s 15 518 0.14/s 16 1,233 0.34/s 17 876 0.24/s 18 977 0.27/s 19 534 0.15/s 20 542 0.15/s 21 517 0.14/s 22 530 0.15/s 23 519 0.14/s Apr 20 00 524 0.15/s 01 521 0.14/s 02 547 0.15/s 03 529 0.15/s 04 518 0.14/s 05 543 0.15/s 06 519 0.14/s 07 527 0.15/s 08 1,138 0.32/s 09 519 0.14/s 10 527 0.15/s 11 549 0.15/s 12 557 0.15/s 13 755 0.21/s 14 759 0.21/s 15 525 0.15/s 16 956 0.27/s 17 525 0.15/s 18 1,114 0.31/s 19 535 0.15/s 20 518 0.14/s 21 519 0.14/s 22 523 0.15/s 23 523 0.15/s Day Hour Count Average Duration Average idle time Apr 14 00 675 7m5s 7m1s 01 901 2m36s 2m35s 02 1,458 2m6s 1m56s 03 702 3m25s 3m23s 04 665 4m 3m51s 05 697 4m24s 4m12s 06 661 3m41s 3m40s 07 529 4m39s 4m39s 08 921 2m37s 2m34s 09 2,057 1m15s 1m13s 10 765 3m12s 3m10s 11 526 4m23s 4m23s 12 531 4m36s 4m36s 13 525 4m29s 4m29s 14 529 4m33s 4m33s 15 1,334 2m3s 1m56s 16 542 3m53s 3m53s 17 522 4m27s 4m27s 18 675 5m15s 5m4s 19 606 3m47s 3m41s 20 689 3m34s 3m26s 21 1,178 2m6s 2m2s 22 550 4m24s 4m24s 23 555 4m30s 4m30s Apr 15 00 532 4m12s 4m10s 01 529 4m48s 4m48s 02 643 3m56s 3m55s 03 552 4m16s 4m10s 04 1,439 1m47s 1m44s 05 569 4m13s 4m13s 06 876 2m51s 2m50s 07 881 2m39s 2m38s 08 592 4m16s 4m16s 09 675 7h28m6s 7h28m5s 10 838 3m9s 3m8s 11 540 4m15s 4m15s 12 538 4m32s 4m32s 13 584 4m20s 4m20s 14 550 6m7s 6m7s 15 567 4m4s 4m4s 16 551 4m12s 4m12s 17 583 4m2s 4m2s 18 539 4m11s 4m10s 19 536 4m18s 4m17s 20 581 4m13s 4m11s 21 546 4m1s 4m1s 22 574 4m18s 4m18s 23 554 4m15s 4m14s Apr 16 00 959 2m45s 2m43s 01 552 4m4s 4m3s 02 663 4m 3m59s 03 542 4m11s 4m11s 04 634 4m2s 4m1s 05 983 3m38s 3m36s 06 703 3m38s 3m34s 07 578 3m59s 3m59s 08 982 2m35s 2m34s 09 935 2m33s 2m32s 10 580 3m59s 3m59s 11 523 4m11s 4m11s 12 523 4m48s 4m48s 13 519 4m42s 4m42s 14 522 4m37s 4m36s 15 515 4m27s 4m27s 16 521 4m41s 4m41s 17 659 3m36s 3m36s 18 525 4m17s 4m17s 19 522 4m15s 4m14s 20 892 4m19s 4m17s 21 518 3m52s 3m52s 22 525 4m48s 4m48s 23 523 4m13s 4m13s Apr 17 00 524 4m44s 4m42s 01 524 4m39s 4m39s 02 526 4m51s 4m51s 03 526 4m27s 4m26s 04 536 4m27s 4m27s 05 539 4m38s 4m37s 06 525 4m17s 4m16s 07 526 4m52s 4m52s 08 522 4m21s 4m21s 09 533 4m38s 4m38s 10 523 4m31s 4m31s 11 521 4m36s 4m36s 12 522 4m44s 4m44s 13 530 4m29s 4m29s 14 525 4m28s 4m28s 15 529 4m38s 4m38s 16 530 4m18s 4m18s 17 524 4m39s 4m39s 18 520 4m6s 4m6s 19 521 4m48s 4m47s 20 523 4m57s 4m57s 21 518 4m26s 4m26s 22 525 4m36s 4m36s 23 543 4m31s 4m31s Apr 18 00 516 4m5s 4m3s 01 3,152 3m20s 3m16s 02 1,217 1m56s 1m50s 03 528 4m16s 4m15s 04 527 4m46s 4m46s 05 537 4m36s 4m36s 06 522 4m6s 4m5s 07 525 4m50s 4m50s 08 527 4m26s 4m25s 09 534 5m 5m 10 522 4m27s 4m26s 11 525 4m38s 4m37s 12 523 4m29s 4m29s 13 529 4m43s 4m43s 14 520 3m55s 3m54s 15 525 4m53s 4m53s 16 519 4m25s 4m25s 17 520 4m40s 4m40s 18 525 4m44s 4m43s 19 521 4m39s 4m39s 20 536 4m26s 4m26s 21 517 4m13s 4m13s 22 523 4m28s 4m28s 23 528 4m55s 4m55s Apr 19 00 518 4m7s 4m5s 01 530 4m37s 4m37s 02 550 10m26s 10m25s 03 531 4m36s 4m36s 04 530 4m41s 4m41s 05 535 4m25s 4m25s 06 521 4m8s 4m5s 07 521 4m41s 4m41s 08 524 4m39s 4m39s 09 520 4m34s 4m34s 10 520 4m13s 4m12s 11 523 5m5s 5m5s 12 515 4m10s 4m10s 13 525 4m43s 4m43s 14 534 4m52s 4m52s 15 518 4m22s 4m22s 16 1,233 3m31s 3m27s 17 870 3m12s 3m8s 18 983 2m14s 2m11s 19 534 4m29s 4m29s 20 542 4m28s 4m24s 21 517 3m55s 3m55s 22 530 4m34s 4m34s 23 519 3m56s 3m56s Apr 20 00 524 5m34s 5m32s 01 521 4m40s 4m40s 02 547 4m28s 4m26s 03 529 4m44s 4m44s 04 518 4m3s 4m3s 05 543 5m11s 5m11s 06 519 4m16s 4m16s 07 527 4m37s 4m37s 08 1,138 3m9s 3m3s 09 519 4m10s 4m10s 10 527 4m49s 4m49s 11 549 4m23s 4m23s 12 557 4m19s 4m19s 13 748 3m23s 3m15s 14 766 3m44s 3m25s 15 525 4m46s 4m46s 16 956 2m51s 2m49s 17 525 4m15s 4m14s 18 1,113 2m35s 2m27s 19 536 4m8s 3m59s 20 518 4m25s 4m25s 21 519 4m19s 4m19s 22 523 4m2s 4m2s 23 523 5m12s 5m12s -
Connections
Established Connections
Key values
- 89 connections Connection Peak
- 2024-04-18 02:11:03 Date
Connections per database
Key values
- postgres Main Database
- 107,026 connections Total
Connections per user
Key values
- postgres Main User
- 107,026 connections Total
-
Sessions
Simultaneous sessions
Key values
- 89 sessions Session Peak
- 2024-04-14 20:30:50 Date
Histogram of session times
Key values
- 80,914 0-500ms duration
Sessions per database
Key values
- postgres Main Database
- 107,026 sessions Total
Sessions per user
Key values
- postgres Main User
- 107,026 sessions Total
Sessions per host
Key values
- [local] Main Host
- 107,026 sessions Total
Host Count Total Duration Average Duration 10.12.5.122 39 207d22h34m37s 5d7h57m48s 10.12.5.37 20,787 58d11h22m20s 4m3s 10.12.5.38 2,624 56d24m21s 30m44s 10.12.5.39 2,577 55d22h53m55s 31m15s 10.12.5.45 2,665 56d3m57s 30m15s 10.12.5.46 2,632 56d1h17m18s 30m40s 192.168.201.6 1 9s359ms 9s359ms 192.168.202.5 9 15h39m57s 1h44m26s ::1 426 14d1h9m33s 47m29s [local] 75,266 4m18s 3ms Sessions per application
Key values
- psql Main Application
- 107,026 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 197,476 buffers Checkpoint Peak
- 2024-04-17 04:50:44 Date
- 1619.893 seconds Highest write time
- 0.024 seconds Sync time
Checkpoints Wal files
Key values
- 67 files Wal files usage Peak
- 2024-04-15 10:50:39 Date
Checkpoints distance
Key values
- 1,198.12 Mo Distance Peak
- 2024-04-17 04:50:44 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Apr 14 00 144,437 1,619.893s 0.003s 1,619.982s 01 570 57.253s 0.004s 57.287s 02 143 14.517s 0.002s 14.549s 03 217 21.94s 0.002s 22.015s 04 5,508 552.135s 0.003s 552.242s 05 95 9.631s 0.001s 9.647s 06 3,802 381.963s 0.003s 382.017s 07 280 28.27s 0.003s 28.301s 08 3,231 323.866s 0.003s 323.946s 09 1,546 155.106s 0.004s 155.181s 10 399 40.17s 0.002s 40.2s 11 317 31.854s 0.002s 31.885s 12 633 63.718s 0.004s 63.86s 13 671 67.426s 0.002s 67.457s 14 171 17.329s 0.002s 17.359s 15 151 15.318s 0.002s 15.348s 16 4,449 445.703s 0.001s 445.788s 17 41,255 1,625.438s 0.004s 1,625.841s 18 67 8.238s 0.025s 8.553s 19 177 17.929s 0.002s 17.96s 20 281 28.349s 0.002s 28.378s 21 2,225 223.142s 0.004s 223.22s 22 1,404 140.772s 0.002s 140.804s 23 455 45.821s 0.002s 45.855s Apr 15 00 646 64.95s 0.003s 65.065s 01 160 16.033s 0.001s 16.048s 02 14,773 1,479.926s 0.005s 1,480.117s 03 2,230 223.548s 0.002s 223.623s 04 6,296 631.599s 0.004s 631.858s 05 643 64.543s 0.003s 64.574s 06 617 61.994s 0.002s 62.096s 07 452 45.515s 0.003s 45.545s 08 1,044 104.775s 0.003s 104.806s 09 5,333 534.434s 0.013s 534.558s 10 55,034 1,619.485s 0.002s 1,620.365s 11 69,568 1,702.061s 0.006s 1,702.187s 12 1,457 146.202s 0.004s 146.234s 13 33,896 1,661.053s 0.004s 1,661.384s 14 1,250 125.392s 0.004s 125.47s 15 942 94.603s 0.003s 94.634s 16 868 87.074s 0.004s 87.105s 17 816 82.014s 0.002s 82.048s 18 577 57.916s 0.002s 57.995s 19 688 69.047s 0.003s 69.079s 20 667 66.971s 0.002s 66.986s 21 54,650 1,635.378s 0.003s 1,635.869s 22 6,393 640.574s 0.005s 640.705s 23 610 61.217s 0.003s 61.25s Apr 16 00 835 83.924s 0.004s 84.004s 01 189 18.936s 0.001s 18.952s 02 56,952 2,199.544s 0.005s 2,200.078s 03 205 20.646s 0.001s 20.661s 04 6,044 605.806s 0.005s 605.938s 05 13,489 1,351.444s 0.007s 1,351.597s 06 10,463 1,048.553s 0.004s 1,048.713s 07 1,699 170.342s 0.003s 170.373s 08 966 97.123s 0.003s 97.214s 09 397 39.976s 0.002s 40.005s 10 729 73.243s 0.003s 73.274s 11 427 42.888s 0.002s 42.919s 12 357 35.971s 0.002s 36.002s 13 485 48.85s 0.002s 48.93s 14 2,233 223.813s 0.003s 223.888s 15 322 32.449s 0.002s 32.48s 16 315 31.755s 0.002s 31.784s 17 241 24.346s 0.003s 24.376s 18 208 21.031s 0.002s 21.062s 19 251 25.34s 0.002s 25.37s 20 206 20.834s 0.002s 20.865s 21 293 29.555s 0.002s 29.585s 22 164 16.521s 0.002s 16.551s 23 193 19.528s 0.002s 19.558s Apr 17 00 1,561 156.511s 0.003s 156.582s 01 10,584 1,060.528s 0.004s 1,060.701s 02 354 35.665s 0.002s 35.696s 03 15,714 1,574.379s 0.004s 1,574.97s 04 197,476 1,619.81s 0.002s 1,619.957s 05 4,736 474.564s 0.002s 474.595s 06 47,790 1,643.649s 0.004s 1,644.108s 07 1,933 193.868s 0.003s 193.913s 08 326 32.858s 0.002s 32.889s 09 228 23.061s 0.003s 23.091s 10 5,766 577.773s 0.002s 577.873s 11 286 28.843s 0.002s 28.873s 12 214 21.529s 0.002s 21.56s 13 240 24.24s 0.002s 24.271s 14 329 33.159s 0.003s 33.19s 15 2,866 287.404s 0.004s 287.485s 16 389 39.176s 0.002s 39.206s 17 171 17.33s 0.002s 17.362s 18 116 11.805s 0.002s 11.837s 19 70 7.209s 0.002s 7.242s 20 76 7.794s 0.002s 7.825s 21 50,679 1,690.092s 0.004s 1,690.56s 22 127 12.912s 0.002s 13.149s 23 130 13.209s 0.002s 13.239s Apr 18 00 6,231 624.453s 0.004s 624.567s 01 472 48.968s 0.003s 49.193s 02 1,131 113.516s 0.004s 113.549s 03 204 20.647s 0.002s 20.729s 04 194 19.538s 0.001s 19.552s 05 39,341 1,638.683s 0.004s 1,639.062s 06 272 27.449s 0.002s 27.479s 07 162 16.424s 0.002s 16.456s 08 2,094 210.013s 0.003s 210.089s 09 417 42.006s 0.002s 42.036s 10 2,705 271.348s 0.003s 271.438s 11 335 33.77s 0.003s 33.8s 12 46 4.703s 0.001s 4.717s 13 58,450 1,622.429s 0.003s 1,622.933s 14 17,218 1,724.798s 0.004s 1,725.031s 15 32,345 1,625.83s 0.003s 1,625.931s 16 328 33.055s 0.002s 33.088s 17 61 6.302s 0.002s 6.332s 18 89 9.104s 0.002s 9.135s 19 138 14.021s 0.002s 14.052s 20 75 7.714s 0.002s 7.745s 21 282 28.447s 0.002s 28.521s 22 1,762 176.776s 0.004s 176.807s 23 1,463 146.79s 0.004s 146.868s Apr 19 00 517 52.014s 0.004s 52.087s 01 5,331 534.247s 0.003s 534.376s 02 155 15.724s 0.002s 15.757s 03 80 8.113s 0.001s 8.129s 04 7,499 751.547s 0.005s 751.712s 05 155 15.736s 0.002s 15.765s 06 1,005 100.903s 0.003s 100.934s 07 201 20.333s 0.002s 20.365s 08 69 7.095s 0.002s 7.126s 09 83 8.41s 0.001s 8.426s 10 4,934 494.695s 0.003s 494.778s 11 315 31.769s 0.002s 31.799s 12 235 23.742s 0.002s 23.775s 13 281 28.351s 0.002s 28.381s 14 305 30.753s 0.002s 30.784s 15 39 4s 0.001s 4.014s 16 49,834 1,645.654s 0.025s 1,648.523s 17 151 15.324s 0.002s 15.355s 18 262 26.453s 0.002s 26.485s 19 142 14.424s 0.002s 14.456s 20 93 9.506s 0.002s 9.584s 21 966 96.878s 0.003s 96.909s 22 150 15.217s 0.002s 15.247s 23 75 7.702s 0.002s 7.732s Apr 20 00 410 41.284s 0.004s 41.357s 01 74 7.599s 0.002s 7.63s 02 114 11.612s 0.002s 11.643s 03 218 22.035s 0.002s 22.067s 04 100 10.204s 0.002s 10.235s 05 191 19.337s 0.002s 19.368s 06 1,379 138.354s 0.003s 138.399s 07 119 12.113s 0.002s 12.142s 08 144 15.101s 0.006s 15.376s 09 1,100 110.405s 0.003s 110.437s 10 4,528 453.671s 0.003s 453.74s 11 191 19.333s 0.002s 19.363s 12 75 7.704s 0.002s 7.736s 13 41 4.202s 0.001s 4.217s 14 74,347 3,253.109s 0.005s 3,253.777s 15 78 8.005s 0.002s 8.035s 16 200 20.333s 0.002s 20.364s 17 516 51.891s 0.003s 51.921s 18 498 50.176s 0.002s 50.209s 19 112,568 1,619.528s 0.002s 1,619.545s 20 5,914 592.747s 0.002s 592.859s 21 203 20.532s 0.002s 20.562s 22 90 9.201s 0.002s 9.232s 23 72 7.404s 0.002s 7.433s Day Hour Added Removed Recycled Synced files Longest sync Average sync Apr 14 00 0 0 3 39 0.001s 0.001s 01 0 0 0 63 0.001s 0.002s 02 0 0 0 27 0.001s 0.002s 03 0 0 1 32 0.001s 0.002s 04 0 0 3 42 0.001s 0.002s 05 0 0 0 18 0.001s 0.001s 06 0 0 2 81 0.001s 0.002s 07 0 0 0 113 0.001s 0.002s 08 0 0 1 132 0.001s 0.002s 09 0 0 1 135 0.001s 0.002s 10 0 0 0 26 0.001s 0.002s 11 0 0 0 27 0.001s 0.002s 12 0 0 2 172 0.001s 0.003s 13 0 0 0 77 0.001s 0.002s 14 0 0 0 60 0.001s 0.002s 15 0 0 0 28 0.001s 0.002s 16 0 0 3 19 0.001s 0.001s 17 0 0 27 38 0.001s 0.003s 18 0 0 0 19 0.012s 0.004s 19 0 0 0 28 0.001s 0.002s 20 0 0 0 20 0.001s 0.002s 21 0 0 1 50 0.001s 0.002s 22 0 0 0 40 0.001s 0.002s 23 0 0 0 37 0.001s 0.002s Apr 15 00 0 0 1 74 0.001s 0.002s 01 0 0 0 18 0.001s 0.001s 02 0 0 8 70 0.002s 0.003s 03 0 0 1 29 0.001s 0.001s 04 0 0 4 73 0.001s 0.003s 05 0 0 0 38 0.001s 0.002s 06 0 0 1 44 0.001s 0.002s 07 0 0 0 26 0.001s 0.002s 08 0 0 0 54 0.001s 0.002s 09 0 0 4 173 0.004s 0.002s 10 0 0 67 149 0.001s 0.001s 11 0 0 4 253 0.001s 0.003s 12 0 0 0 90 0.001s 0.002s 13 0 0 22 131 0.001s 0.002s 14 0 0 1 129 0.001s 0.002s 15 0 0 0 121 0.001s 0.002s 16 0 0 0 106 0.001s 0.002s 17 0 0 0 122 0.001s 0.002s 18 0 0 1 27 0.001s 0.002s 19 0 0 0 25 0.001s 0.002s 20 0 0 0 55 0.001s 0.001s 21 0 0 36 76 0.001s 0.002s 22 0 0 4 48 0.001s 0.003s 23 0 0 0 19 0.001s 0.002s Apr 16 00 0 0 1 77 0.001s 0.002s 01 0 0 0 15 0.001s 0.001s 02 0 0 38 77 0.001s 0.003s 03 0 0 0 11 0.001s 0.001s 04 0 0 4 58 0.001s 0.003s 05 0 0 7 60 0.004s 0.002s 06 0 0 6 138 0.001s 0.002s 07 0 0 0 124 0.001s 0.002s 08 0 0 1 79 0.001s 0.002s 09 0 0 0 31 0.001s 0.002s 10 0 0 0 123 0.001s 0.002s 11 0 0 0 119 0.001s 0.002s 12 0 0 0 72 0.001s 0.002s 13 0 0 1 169 0.001s 0.002s 14 0 0 1 120 0.001s 0.002s 15 0 0 0 103 0.001s 0.002s 16 0 0 0 104 0.001s 0.002s 17 0 0 0 63 0.001s 0.002s 18 0 0 0 21 0.001s 0.002s 19 0 0 0 57 0.001s 0.002s 20 0 0 0 21 0.001s 0.002s 21 0 0 0 25 0.001s 0.002s 22 0 0 0 24 0.001s 0.002s 23 0 0 0 18 0.001s 0.002s Apr 17 00 0 0 1 57 0.001s 0.001s 01 0 0 5 69 0.001s 0.003s 02 0 0 0 37 0.001s 0.002s 03 0 0 41 59 0.001s 0.002s 04 0 0 8 33 0.001s 0.001s 05 0 0 0 33 0.001s 0.002s 06 0 0 32 108 0.001s 0.003s 07 0 0 1 85 0.001s 0.002s 08 0 0 0 34 0.001s 0.002s 09 0 0 0 28 0.001s 0.002s 10 0 0 3 46 0.001s 0.002s 11 0 0 0 33 0.001s 0.002s 12 0 0 0 20 0.001s 0.002s 13 0 0 0 71 0.001s 0.002s 14 0 0 0 75 0.001s 0.002s 15 0 0 1 127 0.001s 0.002s 16 0 0 0 120 0.001s 0.002s 17 0 0 0 55 0.001s 0.002s 18 0 0 0 26 0.001s 0.002s 19 0 0 0 16 0.001s 0.002s 20 0 0 0 16 0.001s 0.002s 21 0 0 34 53 0.001s 0.002s 22 0 0 0 19 0.001s 0.002s 23 0 0 0 19 0.001s 0.002s Apr 18 00 0 0 4 77 0.001s 0.002s 01 0 0 0 35 0.001s 0.002s 02 0 0 0 42 0.001s 0.002s 03 0 0 1 25 0.001s 0.002s 04 0 0 0 19 0.001s 0.001s 05 0 0 25 57 0.001s 0.003s 06 0 0 0 69 0.001s 0.002s 07 0 0 0 62 0.001s 0.002s 08 0 0 1 37 0.001s 0.002s 09 0 0 0 105 0.001s 0.002s 10 0 0 2 47 0.001s 0.002s 11 0 0 0 101 0.001s 0.002s 12 0 0 0 13 0.001s 0.001s 13 0 0 37 83 0.001s 0.002s 14 0 0 10 187 0.001s 0.003s 15 0 0 3 171 0.001s 0.002s 16 0 0 0 110 0.001s 0.002s 17 0 0 0 17 0.001s 0.002s 18 0 0 0 30 0.001s 0.002s 19 0 0 0 62 0.001s 0.002s 20 0 0 0 18 0.001s 0.002s 21 0 0 1 108 0.001s 0.002s 22 0 0 0 42 0.001s 0.002s 23 0 0 1 92 0.001s 0.002s Apr 19 00 0 0 0 63 0.001s 0.002s 01 0 0 2 48 0.001s 0.002s 02 0 0 0 33 0.001s 0.002s 03 0 0 0 17 0.001s 0.001s 04 0 0 4 77 0.001s 0.003s 05 0 0 0 27 0.001s 0.002s 06 0 0 0 116 0.001s 0.002s 07 0 0 0 66 0.001s 0.002s 08 0 0 0 18 0.001s 0.002s 09 0 0 0 15 0.001s 0.001s 10 0 0 3 97 0.001s 0.003s 11 0 0 0 118 0.001s 0.002s 12 0 0 0 110 0.001s 0.002s 13 0 0 0 73 0.001s 0.002s 14 0 0 0 70 0.001s 0.002s 15 0 0 0 10 0.001s 0.001s 16 0 0 33 180 0.011s 0.003s 17 0 0 0 26 0.001s 0.002s 18 0 0 0 31 0.001s 0.002s 19 0 0 0 25 0.001s 0.002s 20 0 0 1 18 0.001s 0.002s 21 0 0 0 32 0.001s 0.002s 22 0 0 0 25 0.001s 0.002s 23 0 0 0 18 0.001s 0.002s Apr 20 00 0 0 0 68 0.001s 0.002s 01 0 0 0 21 0.001s 0.002s 02 0 0 0 27 0.001s 0.002s 03 0 0 0 25 0.001s 0.002s 04 0 0 0 26 0.001s 0.002s 05 0 0 0 35 0.001s 0.002s 06 0 0 1 33 0.001s 0.002s 07 0 0 0 24 0.001s 0.002s 08 0 0 0 26 0.004s 0.002s 09 0 0 0 36 0.001s 0.002s 10 0 0 3 30 0.001s 0.002s 11 0 0 0 26 0.001s 0.002s 12 0 0 0 19 0.001s 0.002s 13 0 0 0 10 0.001s 0.001s 14 0 0 48 177 0.001s 0.003s 15 0 0 0 17 0.001s 0.002s 16 0 0 0 24 0.001s 0.002s 17 0 0 0 28 0.001s 0.002s 18 0 0 0 39 0.001s 0.002s 19 0 0 0 14 0.001s 0.001s 20 0 0 4 36 0.001s 0.002s 21 0 0 0 26 0.001s 0.002s 22 0 0 0 17 0.001s 0.002s 23 0 0 0 17 0.001s 0.002s Day Hour Count Avg time (sec) Apr 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 20 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Apr 14 00 50,735.00 kB 50,735.00 kB 01 939.00 kB 43,543.50 kB 02 195.50 kB 35,318.00 kB 03 363.00 kB 28,663.00 kB 04 29,090.00 kB 55,209.00 kB 05 591.00 kB 47,135.00 kB 06 13,608.00 kB 42,865.50 kB 07 678.00 kB 34,848.50 kB 08 10,342.50 kB 30,169.00 kB 09 4,588.00 kB 25,322.50 kB 10 289.00 kB 20,593.50 kB 11 373.00 kB 16,747.00 kB 12 9,930.00 kB 15,430.33 kB 13 1,400.00 kB 15,488.00 kB 14 392.50 kB 12,692.50 kB 15 351.50 kB 10,368.50 kB 16 45,574.00 kB 45,574.00 kB 17 148,433.00 kB 402,055.00 kB 18 124.50 kB 308,268.00 kB 19 350.50 kB 249,761.50 kB 20 151.50 kB 202,336.00 kB 21 6,554.00 kB 164,798.50 kB 22 4,271.00 kB 134,270.00 kB 23 1,185.00 kB 109,312.50 kB Apr 15 00 2,749.50 kB 89,075.50 kB 01 875.00 kB 76,074.00 kB 02 47,522.67 kB 126,675.33 kB 03 14,734.00 kB 103,820.00 kB 04 20,631.67 kB 89,878.67 kB 05 1,683.50 kB 69,257.50 kB 06 1,443.00 kB 56,404.00 kB 07 1,117.50 kB 45,897.50 kB 08 2,504.00 kB 37,637.00 kB 09 25,133.00 kB 44,610.50 kB 10 594,622.00 kB 594,622.00 kB 11 193,498.67 kB 535,683.00 kB 12 4,367.00 kB 411,618.50 kB 13 180,132.50 kB 367,595.50 kB 14 2,477.00 kB 298,242.50 kB 15 2,254.50 kB 242,004.00 kB 16 2,361.00 kB 196,494.00 kB 17 2,106.00 kB 159,540.00 kB 18 1,539.00 kB 129,560.00 kB 19 1,847.00 kB 105,263.50 kB 20 2,473.00 kB 90,105.00 kB 21 297,340.50 kB 563,148.50 kB 22 21,112.00 kB 439,409.33 kB 23 1,730.00 kB 337,276.50 kB Apr 16 00 7,928.00 kB 274,723.50 kB 01 1,027.00 kB 234,398.00 kB 02 206,009.00 kB 507,653.33 kB 03 756.00 kB 411,598.00 kB 04 20,587.33 kB 340,099.00 kB 05 57,670.50 kB 270,860.00 kB 06 48,265.50 kB 229,424.50 kB 07 5,027.00 kB 186,500.50 kB 08 2,424.00 kB 151,829.00 kB 09 1,017.50 kB 123,229.50 kB 10 2,038.00 kB 100,095.50 kB 11 1,323.50 kB 81,399.00 kB 12 1,015.00 kB 66,128.50 kB 13 1,141.50 kB 53,784.00 kB 14 8,108.00 kB 44,478.50 kB 15 966.50 kB 36,850.00 kB 16 937.50 kB 30,041.50 kB 17 632.50 kB 24,473.50 kB 18 457.00 kB 19,902.50 kB 19 615.50 kB 16,222.00 kB 20 399.50 kB 13,237.50 kB 21 709.00 kB 10,851.00 kB 22 379.00 kB 8,868.00 kB 23 465.50 kB 7,265.00 kB Apr 17 00 8,521.00 kB 8,521.00 kB 01 27,374.33 kB 52,640.67 kB 02 914.50 kB 41,986.00 kB 03 73,736.00 kB 125,279.50 kB 04 613,438.00 kB 613,438.00 kB 05 23,137.50 kB 528,860.50 kB 06 172,886.33 kB 467,490.33 kB 07 6,660.50 kB 359,170.50 kB 08 846.50 kB 291,578.00 kB 09 474.50 kB 236,320.50 kB 10 24,432.50 kB 196,061.50 kB 11 826.00 kB 158,949.00 kB 12 389.50 kB 128,827.50 kB 13 618.50 kB 104,464.00 kB 14 768.50 kB 84,778.50 kB 15 9,048.00 kB 69,957.50 kB 16 1,000.50 kB 57,244.50 kB 17 425.00 kB 46,494.00 kB 18 190.50 kB 37,701.00 kB 19 151.50 kB 30,567.00 kB 20 159.00 kB 24,787.50 kB 21 275,998.00 kB 520,816.00 kB 22 270.50 kB 422,079.50 kB 23 273.00 kB 341,935.50 kB Apr 18 00 32,330.00 kB 283,119.00 kB 01 606.00 kB 229,405.00 kB 02 2,709.50 kB 186,188.00 kB 03 397.50 kB 151,065.50 kB 04 1,047.00 kB 128,916.00 kB 05 139,528.67 kB 377,063.00 kB 06 640.00 kB 289,226.00 kB 07 438.00 kB 234,389.00 kB 08 6,816.50 kB 191,151.00 kB 09 1,193.00 kB 155,035.50 kB 10 10,885.50 kB 127,653.50 kB 11 898.00 kB 103,536.00 kB 12 236.00 kB 88,366.00 kB 13 302,567.50 kB 574,645.00 kB 14 54,503.00 kB 455,717.00 kB 15 29,947.50 kB 356,798.50 kB 16 842.50 kB 289,160.50 kB 17 125.50 kB 234,264.00 kB 18 161.00 kB 189,784.50 kB 19 340.50 kB 153,772.50 kB 20 121.00 kB 124,598.00 kB 21 735.00 kB 101,040.00 kB 22 5,260.00 kB 82,717.00 kB 23 4,260.00 kB 67,739.50 kB Apr 19 00 2,572.00 kB 55,579.50 kB 01 18,264.00 kB 47,715.50 kB 02 339.00 kB 39,473.50 kB 03 374.00 kB 33,711.00 kB 04 18,178.67 kB 38,986.67 kB 05 414.00 kB 30,429.00 kB 06 636.00 kB 24,766.00 kB 07 475.50 kB 20,181.50 kB 08 116.50 kB 16,369.50 kB 09 414.00 kB 14,004.00 kB 10 15,475.67 kB 40,816.00 kB 11 804.50 kB 31,456.00 kB 12 555.00 kB 25,608.00 kB 13 780.00 kB 20,909.00 kB 14 833.00 kB 17,096.00 kB 15 123.00 kB 14,598.00 kB 16 181,585.00 kB 490,918.67 kB 17 352.00 kB 376,486.00 kB 18 441.00 kB 305,035.00 kB 19 351.50 kB 247,127.00 kB 20 134.50 kB 200,214.50 kB 21 2,852.00 kB 162,717.50 kB 22 367.00 kB 131,850.00 kB 23 148.50 kB 106,849.50 kB Apr 20 00 1,771.00 kB 86,877.50 kB 01 154.50 kB 70,399.50 kB 02 186.50 kB 57,057.00 kB 03 424.00 kB 46,275.50 kB 04 173.50 kB 37,548.50 kB 05 504.50 kB 30,482.50 kB 06 3,900.50 kB 25,459.50 kB 07 245.50 kB 20,654.50 kB 08 282.00 kB 16,781.00 kB 09 4,175.00 kB 14,036.50 kB 10 23,037.00 kB 43,681.50 kB 11 418.00 kB 35,461.50 kB 12 140.00 kB 28,748.00 kB 13 133.00 kB 24,532.00 kB 14 260,620.67 kB 529,152.67 kB 15 155.50 kB 411,713.50 kB 16 374.00 kB 333,539.00 kB 17 1,428.50 kB 270,461.50 kB 18 635.50 kB 219,185.00 kB 19 406.00 kB 186,939.00 kB 20 28,552.50 kB 165,254.50 kB 21 395.50 kB 133,925.00 kB 22 132.50 kB 108,508.00 kB 23 146.50 kB 87,917.50 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Apr 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 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 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 Apr 20 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 33.43 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2024-04-17 03:57:14 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 33.43 sec Highest CPU-cost vacuum
Table pub1.term_set_enrichment_agent
Database ctdprd51 - 2024-04-17 03:57:14 Date
Analyzes per table
Key values
- pubc.log_query (145) Main table analyzed (database ctdprd51)
- 157 analyzes Total
Vacuums per table
Key values
- pubc.log_query (27) Main table vacuumed on database ctdprd51
- 36 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pubc.log_query 27 22 13,673 0 2,436 0 249 3,866 707 5,179,255 ctdprd51.pg_catalog.pg_statistic 2 2 1,254 0 229 0 68 679 203 870,068 ctdprd51.pub1.term_set_enrichment_agent 2 0 607,999 0 281,612 0 0 303,716 14 18,025,564 ctdprd51.pub1.term_set_enrichment 2 0 13,982 0 6,261 0 0 6,884 4 430,506 ctdprd51.pub1.term_comp_agent 1 0 1,790 0 103 0 0 862 2 63,033 ctdprd51.pg_toast.pg_toast_2619 1 1 4,302 0 1,090 0 9,988 3,348 1,050 551,632 ctdprd51.pg_toast.pg_toast_486223 1 0 26 0 0 0 0 1 0 188 Total 36 25 643,026 511 291,731 0 10,305 319,356 1,980 25,120,246 Tuples removed per table
Key values
- pg_toast.pg_toast_2619 (4135) Main table with removed tuples on database ctdprd51
- 5241 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctdprd51.pg_toast.pg_toast_2619 1 1 4,135 19,667 0 0 12,592 ctdprd51.pg_catalog.pg_statistic 2 2 852 5,088 0 0 580 ctdprd51.pubc.log_query 27 22 254 123,685 1 0 4,935 ctdprd51.pub1.term_set_enrichment_agent 2 0 0 142,033,279 0 0 1,614,017 ctdprd51.pub1.term_comp_agent 1 0 0 155,741 0 0 1,308 ctdprd51.pg_toast.pg_toast_486223 1 0 0 0 0 0 0 ctdprd51.pub1.term_set_enrichment 2 0 0 2,181,182 0 0 36,077 Total 36 25 5,241 144,518,642 1 0 1,669,509 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.pg_catalog.pg_statistic 2 2 852 0 ctdprd51.pub1.term_set_enrichment_agent 2 0 0 0 ctdprd51.pub1.term_comp_agent 1 0 0 0 ctdprd51.pg_toast.pg_toast_2619 1 1 4135 0 ctdprd51.pg_toast.pg_toast_486223 1 0 0 0 ctdprd51.pubc.log_query 27 22 254 0 ctdprd51.pub1.term_set_enrichment 2 0 0 0 Total 36 25 5,241 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Apr 14 00 0 2 01 0 1 02 0 2 03 0 1 04 0 1 05 0 3 06 0 1 07 0 1 08 0 0 09 0 1 10 0 0 11 0 1 12 0 1 13 0 0 14 0 0 15 0 1 16 0 0 17 0 0 18 0 0 19 0 1 20 0 0 21 0 1 22 0 2 23 0 2 Apr 15 00 0 3 01 0 4 02 0 3 03 0 3 04 0 2 05 0 2 06 0 2 07 0 1 08 0 1 09 0 2 10 0 3 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 0 Apr 16 00 0 5 01 0 3 02 0 3 03 0 2 04 0 1 05 0 2 06 0 1 07 0 1 08 0 0 09 0 1 10 0 0 11 0 0 12 0 0 13 0 1 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 1 22 0 0 23 0 0 Apr 17 00 0 1 01 0 3 02 0 1 03 0 4 04 0 2 05 0 2 06 0 1 07 0 1 08 0 1 09 0 1 10 0 1 11 0 1 12 0 0 13 0 0 14 0 1 15 0 0 16 0 1 17 0 0 18 0 0 19 0 0 20 0 0 21 0 1 22 0 0 23 0 0 Apr 18 00 0 0 01 0 7 02 0 3 03 0 0 04 0 1 05 0 2 06 0 0 07 0 0 08 0 1 09 0 0 10 0 1 11 0 0 12 0 1 13 0 1 14 0 2 15 0 0 16 0 1 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 1 Apr 19 00 0 0 01 0 1 02 0 2 03 0 2 04 0 1 05 0 3 06 0 0 07 0 1 08 0 0 09 0 1 10 0 1 11 0 1 12 0 0 13 0 0 14 0 1 15 0 0 16 0 0 17 0 1 18 0 1 19 0 0 20 0 0 21 0 0 22 0 1 23 0 0 Apr 20 00 0 1 01 0 1 02 0 1 03 0 1 04 0 1 05 0 4 06 0 0 07 0 1 08 0 1 09 0 1 10 0 1 11 0 0 12 0 0 13 0 2 14 0 2 15 0 0 16 0 1 17 0 0 18 0 1 19 0 0 20 0 1 21 0 1 22 0 0 23 0 0 - 33.43 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
- 24,992 Total read queries
- 641 Total write queries
Queries by database
Key values
- unknown Main database
- 18,589 Requests
- 1d10h29m7s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 37,417 Requests
User Request type Count Duration editeu Total 28 1m45s select 28 1m45s postgres Total 112 41m59s copy to 108 41m32s select 4 26s866ms pubeu Total 14,793 1d16h1m14s cte 173 7m42s select 14,620 1d15h53m31s qaeu Total 79 3m cte 17 57s793ms select 62 2m2s unknown Total 37,417 3d2h26m56s copy to 683 6h26m5s cte 573 30m55s others 9 46s189ms select 36,152 2d19h29m9s zbx_monitor Total 13 20s292ms select 13 20s292ms Duration by user
Key values
- 3d2h26m56s (unknown) Main time consuming user
User Request type Count Duration editeu Total 28 1m45s select 28 1m45s postgres Total 112 41m59s copy to 108 41m32s select 4 26s866ms pubeu Total 14,793 1d16h1m14s cte 173 7m42s select 14,620 1d15h53m31s qaeu Total 79 3m cte 17 57s793ms select 62 2m2s unknown Total 37,417 3d2h26m56s copy to 683 6h26m5s cte 573 30m55s others 9 46s189ms select 36,152 2d19h29m9s zbx_monitor Total 13 20s292ms select 13 20s292ms Queries by host
Key values
- unknown Main host
- 52,442 Requests
- 4d19h15m17s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 25,589 Requests
- 2d5h11m48s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-04-14 02:54:24 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 22,748 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 33m16s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2024-04-14 05:08:54 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
2 32m59s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;[ Date: 2024-04-14 05:08:54 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
3 23m39s 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-04-20 19:00:26 ]
4 22m56s 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-04-20 19:41:13 ]
5 20m21s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-18 02:18:49 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
6 20m16s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-14 10:07:34 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
7 19m50s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:02:30 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
8 19m43s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:02:14 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
9 19m38s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:01:59 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
10 19m36s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:02:27 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
11 19m27s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:03:40 - Bind query: yes ]
12 18m53s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 18:32:47 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
13 18m43s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-19 18:18:46 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
14 17m58s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-16 06:57:47 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
15 17m50s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-15 04:39:11 - Bind query: yes ]
16 17m49s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 18:48:59 - Bind query: yes ]
17 17m49s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:28:50 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
18 17m49s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 18:38:29 - Bind query: yes ]
19 17m48s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:26:43 - Bind query: yes ]
20 17m44s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;[ Date: 2024-04-20 14:26:49 - Database: ctdprd51 - User: pubeu - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 12h33m56s 182 1s214ms 20m21s 4m8s 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 #1
Day Hour Count Duration Avg duration Apr 14 09 4 22m47s 5m41s 10 1 20m16s 20m16s 21 1 3s206ms 3s206ms Apr 15 02 1 3s348ms 3s348ms 04 3 18m44s 6m14s 05 2 3s546ms 1s773ms 20 1 17m9s 17m9s 22 1 1s765ms 1s765ms Apr 16 06 3 35m34s 11m51s 16 1 3s17ms 3s17ms Apr 17 03 1 2s41ms 2s41ms 09 2 2m18s 1m9s Apr 18 01 49 1h27m34s 1m47s 02 24 1h34m8s 3m55s 07 1 3s346ms 3s346ms 10 1 2s897ms 2s897ms 11 1 3m4s 3m4s 16 1 1s434ms 1s434ms 19 1 1s567ms 1s567ms 20 1 1s516ms 1s516ms Apr 19 06 1 16m58s 16m58s 10 1 1s507ms 1s507ms 18 6 18m59s 3m9s 19 2 2s895ms 1s447ms 20 14 28m33s 2m2s 21 1 2m8s 2m8s Apr 20 02 2 16m47s 8m23s 08 3 17m7s 5m42s 09 1 1s586ms 1s586ms 13 7 44m8s 6m18s 14 24 3h37m42s 9m4s 18 19 1h29m17s 4m41s 23 1 1s422ms 1s422ms [ User: pubeu - Total duration: 6h25m34s - Times executed: 81 ]
-
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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-18 02:18:49 Duration: 20m21s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-14 10:07:34 Duration: 20m16s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-20 14:02:30 Duration: 19m50s Database: ctdprd51 User: pubeu Bind query: yes
2 6h30m19s 2,887 1s1ms 50s498ms 8s111ms 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 #2
Day Hour Count Duration Avg duration Apr 14 00 30 2m41s 5s388ms 01 6 16s269ms 2s711ms 02 247 57m22s 13s936ms 03 49 7m12s 8s825ms 04 152 34m27s 13s603ms 05 42 6m4s 8s682ms 06 27 1m59s 4s443ms 07 3 9s552ms 3s184ms 08 100 14m41s 8s816ms 09 60 9m12s 9s215ms 10 28 1m55s 4s113ms 11 1 1s772ms 1s772ms 12 3 10s254ms 3s418ms 14 1 1s5ms 1s5ms 15 292 44m6s 9s62ms 16 37 1m58s 3s211ms 18 226 43m57s 11s668ms 19 88 16m53s 11s521ms 20 165 31m23s 11s415ms 21 158 23m41s 8s995ms 22 3 3s724ms 1s241ms 23 1 1s116ms 1s116ms Apr 15 00 1 1s6ms 1s6ms 01 1 2s617ms 2s617ms 03 3 5s402ms 1s800ms 04 170 18m32s 6s545ms 06 23 1m8s 2s982ms 07 67 4m10s 3s734ms 08 1 2s86ms 2s86ms 09 15 1m1s 4s126ms 10 17 1m22s 4s860ms 13 1 4s892ms 4s892ms 16 1 3s516ms 3s516ms 17 11 24s304ms 2s209ms 18 1 3s560ms 3s560ms 19 2 5s854ms 2s927ms 21 5 19s820ms 3s964ms 23 1 1s254ms 1s254ms Apr 16 00 29 2m44s 5s669ms 02 9 24s989ms 2s776ms 05 36 2m46s 4s634ms 07 2 4s828ms 2s414ms 08 27 1m31s 3s372ms 09 13 38s894ms 2s991ms 10 3 6s134ms 2s44ms 11 1 1s197ms 1s197ms 13 2 7s673ms 3s836ms 15 4 11s489ms 2s872ms 16 2 4s720ms 2s360ms 17 25 1m5s 2s603ms 18 1 1s504ms 1s504ms 19 1 2s175ms 2s175ms 20 16 54s553ms 3s409ms 21 3 8s599ms 2s866ms 22 3 7s795ms 2s598ms Apr 17 00 1 4s789ms 4s789ms 01 1 1s243ms 1s243ms 02 3 7s231ms 2s410ms 03 1 1s254ms 1s254ms 04 3 7s678ms 2s559ms 06 2 3s813ms 1s906ms 08 1 1s39ms 1s39ms 09 1 2s657ms 2s657ms 11 1 4s765ms 4s765ms 12 1 2s590ms 2s590ms 13 4 13s524ms 3s381ms 14 5 6s927ms 1s385ms 15 1 3s501ms 3s501ms 16 2 4s685ms 2s342ms 17 2 2s444ms 1s222ms 18 2 4s657ms 2s328ms 19 1 4s836ms 4s836ms 21 4 13s102ms 3s275ms 22 3 7s250ms 2s416ms 23 2 2s875ms 1s437ms Apr 18 00 2 6s358ms 3s179ms 01 100 9m5s 5s454ms 02 23 53s196ms 2s312ms 03 1 4s783ms 4s783ms 04 1 3s517ms 3s517ms 05 2 4s703ms 2s351ms 06 1 4s796ms 4s796ms 07 1 3s582ms 3s582ms 08 2 9s622ms 4s811ms 09 2 4s368ms 2s184ms 10 1 1s253ms 1s253ms 11 1 1s218ms 1s218ms 12 1 2s613ms 2s613ms 15 4 15s108ms 3s777ms 16 2 5s905ms 2s952ms 17 3 10s908ms 3s636ms 18 1 4s815ms 4s815ms 19 1 1s295ms 1s295ms 20 3 12s370ms 4s123ms 21 2 3s884ms 1s942ms 22 4 11s819ms 2s954ms 23 1 2s663ms 2s663ms Apr 19 00 2 5s976ms 2s988ms 01 2 3s765ms 1s882ms 02 16 56s673ms 3s542ms 03 1 1s77ms 1s77ms 04 3 8s205ms 2s735ms 05 1 4s726ms 4s726ms 06 2 8s280ms 4s140ms 07 1 1s470ms 1s470ms 09 2 6s420ms 3s210ms 10 4 14s275ms 3s568ms 11 3 10s992ms 3s664ms 12 1 1s205ms 1s205ms 14 2 3s780ms 1s890ms 15 3 7s163ms 2s387ms 16 31 2m1s 3s919ms 17 67 11m32s 10s333ms 18 56 4m11s 4s499ms 19 6 20s694ms 3s449ms 20 2 6s258ms 3s129ms 22 14 30s973ms 2s212ms 23 3 7s181ms 2s393ms Apr 20 00 2 3s896ms 1s948ms 01 4 15s794ms 3s948ms 02 1 2s672ms 2s672ms 03 1 1s78ms 1s78ms 04 2 2s471ms 1s235ms 05 1 4s829ms 4s829ms 07 2 7s127ms 3s563ms 08 43 5m9s 7s206ms 09 1 3s497ms 3s497ms 10 2 4s714ms 2s357ms 13 31 2m26s 4s728ms 14 34 1m30s 2s672ms 16 41 4m45s 6s959ms 17 2 4s725ms 2s362ms 18 74 3m34s 2s895ms 19 2 4s603ms 2s301ms 20 2 7s560ms 3s780ms 21 2 7s560ms 3s780ms 23 2 6s164ms 3s82ms [ User: pubeu - Total duration: 1h33m49s - Times executed: 921 ]
-
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 = '1381425') 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 = '1381425') 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-04-14 04:00:27 Duration: 50s498ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:29 Duration: 49s588ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:59 Duration: 49s468ms Bind query: yes
3 5h32m3s 2,888 1s1ms 44s555ms 6s898ms 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 #3
Day Hour Count Duration Avg duration Apr 14 00 20 2m3s 6s164ms 01 2 9s478ms 4s739ms 02 325 51m23s 9s487ms 03 54 5m2s 5s595ms 04 187 28m25s 9s122ms 05 29 4m9s 8s610ms 06 24 1m31s 3s812ms 08 80 11m36s 8s703ms 09 72 9m41s 8s79ms 10 28 1m56s 4s153ms 15 330 41m21s 7s519ms 16 40 1m58s 2s969ms 18 299 38m57s 7s817ms 19 104 12m 6s926ms 20 191 25m9s 7s904ms 21 168 22m5s 7s888ms Apr 15 04 196 17m26s 5s340ms 06 30 1m33s 3s101ms 07 71 4m8s 3s506ms 08 1 1s845ms 1s845ms 09 15 55s272ms 3s684ms 10 17 56s741ms 3s337ms 17 3 6s293ms 2s97ms 21 5 14s402ms 2s880ms 22 1 2s813ms 2s813ms Apr 16 00 22 1m33s 4s262ms 02 5 15s705ms 3s141ms 05 27 1m52s 4s169ms 08 42 2m4s 2s971ms 09 13 39s220ms 3s16ms 11 2 7s875ms 3s937ms 15 1 1s194ms 1s194ms 17 20 56s678ms 2s833ms 20 16 42s799ms 2s674ms 23 1 1s871ms 1s871ms Apr 17 04 1 1s798ms 1s798ms 10 1 1s835ms 1s835ms 14 1 1s746ms 1s746ms 15 3 6s932ms 2s310ms 18 1 1s324ms 1s324ms 22 1 1s750ms 1s750ms 23 1 3s258ms 3s258ms Apr 18 01 69 5m19s 4s635ms 02 14 48s885ms 3s491ms 06 1 1s740ms 1s740ms 07 4 21s52ms 5s263ms 08 1 1s723ms 1s723ms 09 1 2s6ms 2s6ms 11 1 5s843ms 5s843ms 16 1 3s247ms 3s247ms 17 1 1s986ms 1s986ms 19 1 1s984ms 1s984ms 20 1 3s266ms 3s266ms 23 3 8s777ms 2s925ms Apr 19 02 9 30s772ms 3s419ms 03 1 1s769ms 1s769ms 04 3 5s820ms 1s940ms 06 1 5s977ms 5s977ms 07 1 1s736ms 1s736ms 11 1 5s992ms 5s992ms 14 1 2s778ms 2s778ms 15 1 3s299ms 3s299ms 16 46 3m20s 4s358ms 17 60 9m18s 9s314ms 18 33 2m40s 4s869ms 19 4 7s552ms 1s888ms 22 8 25s587ms 3s198ms 23 1 1s220ms 1s220ms Apr 20 03 1 1s968ms 1s968ms 05 2 7s559ms 3s779ms 08 39 5m9s 7s926ms 10 1 6s17ms 6s17ms 13 23 2m27s 6s415ms 14 13 57s259ms 4s404ms 15 1 2s779ms 2s779ms 16 39 5m6s 7s863ms 17 1 1s304ms 1s304ms 18 48 2m29s 3s122ms 22 1 3s276ms 3s276ms 23 1 2s821ms 2s821ms [ User: pubeu - Total duration: 1h12m42s - Times executed: 809 ]
-
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 = '1381425'))) 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-04-14 04:00:20 Duration: 44s555ms 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 = '1381425'))) 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-04-14 02:56:25 Duration: 43s777ms 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 = '1381425'))) 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-04-14 04:00:10 Duration: 43s405ms Database: ctdprd51 User: pubeu Bind query: yes
4 4h37m13s 244 1s1ms 13m42s 1m8s 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 #4
Day Hour Count Duration Avg duration Apr 14 00 8 15m47s 1m58s 01 4 12m58s 3m14s 02 25 11m24s 27s368ms 03 3 4s205ms 1s401ms 04 6 5m10s 51s676ms 05 3 3s776ms 1s258ms 06 2 7s135ms 3s567ms 08 4 7s673ms 1s918ms 09 5 16s16ms 3s203ms 15 8 12s129ms 1s516ms 18 19 23s756ms 1s250ms 19 2 2s208ms 1s104ms 20 5 6s995ms 1s399ms 21 5 6s173ms 1s234ms 23 5 4m7s 49s533ms Apr 15 00 5 2m21s 28s384ms 01 2 35s356ms 17s678ms 03 1 1m37s 1m37s 04 5 1m28s 17s674ms 06 2 4s969ms 2s484ms 07 1 2s267ms 2s267ms 09 2 4m28s 2m14s 10 3 3m58s 1m19s 14 3 3s884ms 1s294ms 23 6 4m37s 46s199ms Apr 16 00 4 5m42s 1m25s 01 1 6m18s 6m18s 02 8 5m44s 43s76ms 05 7 14m45s 2m6s 08 2 3s541ms 1s770ms 09 2 4m 2m 18 3 2m 40s151ms 19 4 3m24s 51s143ms 20 8 27m14s 3m24s Apr 17 03 1 28s101ms 28s101ms Apr 18 01 8 6m14s 46s758ms 02 4 10m16s 2m34s 17 1 2s297ms 2s297ms Apr 19 16 11 41m6s 3m44s 17 9 15m33s 1m43s 18 4 5m26s 1m21s 19 1 26s643ms 26s643ms Apr 20 00 1 18s332ms 18s332ms 08 20 44m53s 2m14s 13 2 2s420ms 1s210ms 16 5 3m28s 41s647ms 17 1 25s806ms 25s806ms 18 3 8m58s 2m59s [ User: pubeu - Total duration: 2h30m22s - Times executed: 81 ]
-
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 = '1420575')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-20 08:33:03 Duration: 13m42s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:24 Duration: 9m26s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:00 Duration: 9m15s Bind query: yes
5 1h58m52s 2,510 1s 27s550ms 2s841ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, count(gcr.ixn_id) ixncount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join term g on gcr.gene_id = g.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.id, g.acc_txt, g.acc_db_cd, g.nm_sort order by count(gcr.ixn_id) desc, g.nm_sort limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 14 00 13 30s292ms 2s330ms 01 2 4s129ms 2s64ms 02 480 25m14s 3s154ms 03 58 2m37s 2s715ms 04 174 9m50s 3s393ms 05 21 1m14s 3s524ms 06 9 12s488ms 1s387ms 08 61 2m42s 2s670ms 09 48 2m20s 2s926ms 10 5 8s683ms 1s736ms 15 379 17m39s 2s795ms 16 2 3s876ms 1s938ms 18 347 16m22s 2s830ms 19 89 4m13s 2s852ms 20 243 11m40s 2s884ms 21 145 6m28s 2s677ms Apr 15 04 111 4m36s 2s493ms 06 1 1s363ms 1s363ms 07 14 22s830ms 1s630ms 09 4 7s418ms 1s854ms 10 5 8s591ms 1s718ms 21 1 1s457ms 1s457ms Apr 16 00 14 33s456ms 2s389ms 05 8 16s847ms 2s105ms 08 12 17s134ms 1s427ms 09 2 2s509ms 1s254ms 17 2 3s705ms 1s852ms 20 4 6s856ms 1s714ms Apr 18 01 64 2m28s 2s321ms 02 2 2s655ms 1s327ms 09 1 1s433ms 1s433ms Apr 19 02 4 7s172ms 1s793ms 16 24 43s394ms 1s808ms 17 42 2m15s 3s215ms 18 24 36s341ms 1s514ms Apr 20 08 38 2m14s 3s533ms 13 26 1m8s 2s629ms 14 5 11s338ms 2s267ms 16 19 51s950ms 2s734ms 18 7 9s98ms 1s299ms [ User: pubeu - Total duration: 22m38s - Times executed: 536 ]
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 02:57:51 Duration: 27s550ms Bind query: yes
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 02:57:16 Duration: 26s349ms Bind query: yes
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 18:54:29 Duration: 19s772ms Bind query: yes
6 1h56m8s 587 1s17ms 45s287ms 11s871ms select * from ( select g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, count(*) over () fullrowcount from term g where g.id in ( select gt.gene_id from dag_path dp inner join gene_taxon gt on dp.descendant_object_id = gt.taxon_id where dp.ancestor_object_id = ? union all select gcr.gene_id from dag_path dp inner join gene_chem_reference gcr on dp.descendant_object_id = gcr.taxon_id where dp.ancestor_object_id = ?) offset ?) mq order by mq.genesymbolsort limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 14 02 274 59m43s 13s76ms 05 212 48m57s 13s857ms 20 1 5s137ms 5s137ms Apr 15 03 8 15s765ms 1s970ms 15 1 5s359ms 5s359ms 18 3 11s176ms 3s725ms Apr 16 05 4 23s209ms 5s802ms 08 1 2s65ms 2s65ms Apr 18 01 20 2m6s 6s329ms 02 15 34s746ms 2s316ms Apr 19 22 1 5s482ms 5s482ms Apr 20 08 1 2s788ms 2s788ms 13 17 2m4s 7s346ms 14 8 20s699ms 2s587ms 16 11 42s827ms 3s893ms 18 9 25s781ms 2s864ms 22 1 1s123ms 1s123ms [ User: pubeu - Total duration: 24m24s - Times executed: 144 ]
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '573835' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '573835') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:20:31 Duration: 45s287ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 05:48:15 Duration: 35s440ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:19:57 Duration: 34s925ms Database: ctdprd51 User: pubeu Bind query: yes
7 1h50m21s 7 15m36s 15m57s 15m45s select maint_query_logs_archive ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 14 00 1 15m41s 15m41s Apr 15 00 1 15m42s 15m42s Apr 16 00 1 15m57s 15m57s Apr 17 00 1 15m48s 15m48s Apr 18 00 1 15m46s 15m46s Apr 19 00 1 15m48s 15m48s Apr 20 00 1 15m36s 15m36s -
/* * 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-04-16 00:15:59 Duration: 15m57s
-
/* * 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-04-19 00:15:50 Duration: 15m48s
-
/* * 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-04-17 00:15:50 Duration: 15m48s
8 1h46m32s 1,946 1s1ms 14s624ms 3s284ms select c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposurereferencecount, case when cd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from chem_disease_axn a where a.chem_id = cd.chem_id and a.disease_id = cd.disease_id) else null end actiontypes from chem_disease cd inner join term c on cd.chem_id = c.id inner join term d on cd.disease_id = d.id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, cd.network_score desc nulls last, d.nm_sort, c.nm_sort limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 14 00 13 32s824ms 2s524ms 01 2 2s898ms 1s449ms 02 229 16m39s 4s365ms 03 55 2m48s 3s54ms 04 149 9m30s 3s827ms 05 19 1m16s 4s 06 8 16s734ms 2s91ms 08 54 3m34s 3s974ms 09 43 1m55s 2s692ms 10 10 19s773ms 1s977ms 11 1 1s238ms 1s238ms 12 1 1s795ms 1s795ms 14 1 1s776ms 1s776ms 15 219 12m34s 3s447ms 16 12 19s614ms 1s634ms 17 1 1s230ms 1s230ms 18 214 12m58s 3s636ms 19 76 4m41s 3s700ms 20 154 9m17s 3s621ms 21 134 7m59s 3s575ms Apr 15 02 1 1s800ms 1s800ms 04 80 3m47s 2s849ms 06 12 18s633ms 1s552ms 07 15 32s636ms 2s175ms 08 2 3s681ms 1s840ms 09 4 7s97ms 1s774ms 10 7 11s348ms 1s621ms 13 2 2s478ms 1s239ms 16 1 1s297ms 1s297ms 17 1 1s274ms 1s274ms 18 1 1s778ms 1s778ms 21 1 1s883ms 1s883ms 23 2 3s150ms 1s575ms Apr 16 00 11 23s75ms 2s97ms 02 3 5s129ms 1s709ms 05 15 40s56ms 2s670ms 06 1 1s809ms 1s809ms 08 14 24s59ms 1s718ms 09 3 5s244ms 1s748ms 11 1 1s246ms 1s246ms 13 2 3s546ms 1s773ms 14 1 1s785ms 1s785ms 15 2 3s575ms 1s787ms 16 1 1s823ms 1s823ms 17 6 11s309ms 1s884ms 18 2 2s455ms 1s227ms 20 8 13s379ms 1s672ms Apr 17 00 3 5s403ms 1s801ms 01 1 1s225ms 1s225ms 02 1 1s256ms 1s256ms 04 1 1s811ms 1s811ms 05 1 1s237ms 1s237ms 06 1 1s802ms 1s802ms 08 1 1s259ms 1s259ms 10 1 1s223ms 1s223ms 11 2 3s8ms 1s504ms 14 2 3s128ms 1s564ms 18 1 1s806ms 1s806ms 19 2 3s30ms 1s515ms 20 2 3s586ms 1s793ms 22 2 3s24ms 1s512ms Apr 18 00 2 3s 1s500ms 01 34 1m31s 2s705ms 02 13 19s800ms 1s523ms 03 1 1s843ms 1s843ms 05 1 1s238ms 1s238ms 06 1 1s783ms 1s783ms 07 2 3s1ms 1s500ms 08 1 1s797ms 1s797ms 09 1 1s826ms 1s826ms 11 1 1s226ms 1s226ms 12 1 1s787ms 1s787ms 13 4 6s624ms 1s656ms 14 1 1s236ms 1s236ms 15 1 1s260ms 1s260ms 16 1 1s795ms 1s795ms 17 1 1s779ms 1s779ms 18 1 1s784ms 1s784ms 19 1 1s246ms 1s246ms 22 1 1s775ms 1s775ms 23 2 2s465ms 1s232ms Apr 19 00 1 1s780ms 1s780ms 01 1 1s780ms 1s780ms 02 4 7s470ms 1s867ms 03 1 1s238ms 1s238ms 04 4 6s712ms 1s678ms 07 2 2s439ms 1s219ms 09 2 3s54ms 1s527ms 10 2 3s102ms 1s551ms 11 1 1s255ms 1s255ms 12 1 1s763ms 1s763ms 13 2 2s484ms 1s242ms 15 1 1s246ms 1s246ms 16 27 54s606ms 2s22ms 17 45 3m8s 4s190ms 18 35 1m7s 1s941ms 19 1 1s783ms 1s783ms 20 1 1s232ms 1s232ms 21 2 3s43ms 1s521ms 22 4 6s237ms 1s559ms 23 1 1s247ms 1s247ms Apr 20 04 2 3s14ms 1s507ms 05 1 1s803ms 1s803ms 07 1 1s236ms 1s236ms 08 33 1m48s 3s280ms 09 1 1s242ms 1s242ms 11 2 3s78ms 1s539ms 13 18 40s289ms 2s238ms 14 13 25s474ms 1s959ms 15 1 1s780ms 1s780ms 16 29 1m24s 2s906ms 18 16 28s24ms 1s751ms 19 2 2s461ms 1s230ms 20 2 2s476ms 1s238ms 23 1 1s232ms 1s232ms [ User: pubeu - Total duration: 19m11s - Times executed: 467 ]
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 15:04:22 Duration: 14s624ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 04:00:09 Duration: 14s495ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 02:54:11 Duration: 14s232ms Database: ctdprd51 User: pubeu Bind query: yes
9 1h20m5s 562 1s 38s374ms 8s550ms 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 #9
Day Hour Count Duration Avg duration Apr 14 00 5 45s480ms 9s96ms 01 5 39s583ms 7s916ms 02 6 1m18s 13s121ms 03 5 31s135ms 6s227ms 04 2 13s238ms 6s619ms 05 9 38s636ms 4s292ms 06 5 36s848ms 7s369ms 08 15 3m59s 15s966ms 09 14 4m22s 18s736ms 10 5 36s303ms 7s260ms 13 5 22s515ms 4s503ms 15 4 53s751ms 13s437ms 16 1 5s541ms 5s541ms 18 8 2m1s 15s215ms 20 5 23s298ms 4s659ms 21 3 29s799ms 9s933ms 22 3 11s788ms 3s929ms 23 3 12s194ms 4s64ms Apr 15 02 2 2s326ms 1s163ms 03 1 5s749ms 5s749ms 04 9 45s95ms 5s10ms 05 6 6s175ms 1s29ms 06 3 12s652ms 4s217ms 07 3 12s393ms 4s131ms 08 2 11s603ms 5s801ms 09 8 38s245ms 4s780ms 10 7 39s474ms 5s639ms 13 1 1s10ms 1s10ms 14 2 11s459ms 5s729ms 15 2 2s77ms 1s38ms 17 4 23s45ms 5s761ms 19 2 2s103ms 1s51ms 20 2 11s37ms 5s518ms 21 7 26s50ms 3s721ms 22 2 2s86ms 1s43ms Apr 16 00 18 2m15s 7s502ms 01 1 6s490ms 6s490ms 02 5 29s190ms 5s838ms 04 2 6s671ms 3s335ms 05 16 1m41s 6s326ms 06 4 19s271ms 4s817ms 08 17 1m55s 6s809ms 09 6 33s666ms 5s611ms 10 3 17s40ms 5s680ms 16 3 16s222ms 5s407ms 17 4 25s510ms 6s377ms 20 12 1m28s 7s383ms Apr 17 01 1 5s529ms 5s529ms 05 5 5s131ms 1s26ms 22 1 1s84ms 1s84ms 23 1 5s551ms 5s551ms Apr 18 01 106 19m39s 11s130ms 02 10 55s608ms 5s560ms 05 6 10s970ms 1s828ms 07 1 5s642ms 5s642ms 08 1 5s421ms 5s421ms 11 1 5s412ms 5s412ms 12 1 5s305ms 5s305ms 14 1 5s83ms 5s83ms Apr 19 00 1 5s619ms 5s619ms 02 3 18s995ms 6s331ms 05 6 10s826ms 1s804ms 08 1 5s584ms 5s584ms 12 2 6s604ms 3s302ms 13 2 10s919ms 5s459ms 16 32 5m42s 10s701ms 17 16 2m57s 11s92ms 18 20 2m13s 6s698ms 19 7 33s126ms 4s732ms 20 2 12s330ms 6s165ms 21 1 1s22ms 1s22ms 22 4 19s74ms 4s768ms Apr 20 02 1 4s860ms 4s860ms 03 1 5s685ms 5s685ms 04 2 11s186ms 5s593ms 05 5 9s835ms 1s967ms 07 1 5s338ms 5s338ms 08 34 8m54s 15s732ms 10 1 5s324ms 5s324ms 11 1 1s21ms 1s21ms 13 3 1m2s 20s771ms 14 2 13s318ms 6s659ms 16 5 38s39ms 7s607ms 18 15 1m29s 5s951ms 20 1 5s219ms 5s219ms 21 1 1s46ms 1s46ms [ User: pubeu - Total duration: 37m13s - Times executed: 265 ]
[ User: qaeu - Total duration: 4s138ms - Times executed: 4 ]
-
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 = '1346978' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 02:55:45 Duration: 38s374ms 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 = '1327102' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-20 08:20:08 Duration: 35s642ms 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 = '1296974' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 18:53:31 Duration: 35s27ms Bind query: yes
10 1h15m39s 263 1s1ms 1m27s 17s262ms 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 limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 14 01 1 4s101ms 4s101ms 09 12 8m26s 42s222ms 19 1 3s152ms 3s152ms Apr 15 01 1 1s223ms 1s223ms 02 3 58s743ms 19s581ms 04 7 1m34s 13s460ms 12 3 57s126ms 19s42ms 18 1 3s212ms 3s212ms 23 1 18s83ms 18s83ms Apr 16 00 1 6s241ms 6s241ms 02 1 1s39ms 1s39ms 03 2 3s896ms 1s948ms 06 6 1m5s 10s955ms 07 2 2s820ms 1s410ms 15 2 16s196ms 8s98ms Apr 17 07 3 3s283ms 1s94ms 12 1 1s283ms 1s283ms 15 1 1s594ms 1s594ms Apr 18 01 53 15m56s 18s38ms 02 21 5m31s 15s800ms 03 1 1s41ms 1s41ms 04 1 6s162ms 6s162ms 07 7 1m42s 14s576ms 14 1 1s276ms 1s276ms 23 1 2s818ms 2s818ms Apr 19 02 1 2s724ms 2s724ms 09 1 1s34ms 1s34ms 10 1 1s42ms 1s42ms 14 2 2s71ms 1s35ms 17 1 2s802ms 2s802ms 18 11 1m27s 7s910ms 20 13 2m5s 9s662ms Apr 20 03 1 1s39ms 1s39ms 05 2 2s261ms 1s130ms 07 1 18s21ms 18s21ms 08 3 35s810ms 11s936ms 12 1 19s48ms 19s48ms 13 38 23m26s 37s14ms 14 20 3m53s 11s672ms 16 1 2s744ms 2s744ms 18 32 5m48s 10s902ms [ User: pubeu - Total duration: 24m31s - Times executed: 102 ]
-
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 = '1206427') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:06 Duration: 1m27s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:10 Duration: 1m25s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:19 Duration: 1m25s Bind query: yes
11 1h15m33s 140 1s4ms 33m16s 32s381ms 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 #11
Day Hour Count Duration Avg duration Apr 14 02 1 34s100ms 34s100ms 03 1 34s601ms 34s601ms 04 4 2m25s 36s354ms 05 2 1h6m16s 33m8s 07 1 1s859ms 1s859ms 09 4 8s189ms 2s47ms 21 1 1s643ms 1s643ms 22 1 1s602ms 1s602ms Apr 15 02 3 15s92ms 5s30ms 03 1 1s855ms 1s855ms 04 11 16s781ms 1s525ms 06 6 20s448ms 3s408ms 08 6 22s94ms 3s682ms 10 2 4s230ms 2s115ms 13 6 13s712ms 2s285ms 15 6 14s242ms 2s373ms 20 6 21s64ms 3s510ms 23 1 1s172ms 1s172ms Apr 16 01 6 12s284ms 2s47ms 02 6 18s464ms 3s77ms 04 6 20s51ms 3s341ms 07 7 26s569ms 3s795ms 10 1 7s652ms 7s652ms 17 3 6s568ms 2s189ms 18 3 6s424ms 2s141ms 19 1 1s160ms 1s160ms Apr 17 02 2 3s207ms 1s603ms 04 3 3s738ms 1s246ms 23 7 14s978ms 2s139ms Apr 18 01 1 1s370ms 1s370ms 03 1 1s748ms 1s748ms 04 1 7s462ms 7s462ms 05 1 1s420ms 1s420ms 08 2 2s632ms 1s316ms 11 1 1s539ms 1s539ms 20 2 15s137ms 7s568ms Apr 19 03 1 3s313ms 3s313ms 04 1 1s115ms 1s115ms 13 4 8s531ms 2s132ms 14 6 12s985ms 2s164ms 15 1 2s119ms 2s119ms 21 1 1s525ms 1s525ms Apr 20 02 6 12s144ms 2s24ms 03 1 1s85ms 1s85ms 07 1 1s934ms 1s934ms 10 1 1s991ms 1s991ms [ User: pubeu - Total duration: 1h9m54s - Times executed: 66 ]
-
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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 05:08:54 Duration: 33m16s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 05:08:54 Duration: 32m59s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 04:11:32 Duration: 37s158ms Database: ctdprd51 User: pubeu Bind query: yes
12 1h9m2s 3,374 1s29ms 9s645ms 1s227ms 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 #12
Day Hour Count Duration Avg duration Apr 14 00 3 3s324ms 1s108ms 01 4 4s452ms 1s113ms 03 4 4s554ms 1s138ms 05 3 3s605ms 1s201ms 06 1 1s104ms 1s104ms 07 1 1s126ms 1s126ms 09 3 3s350ms 1s116ms 14 2 2s268ms 1s134ms 15 2 2s363ms 1s181ms 16 1 1s120ms 1s120ms 17 2 2s214ms 1s107ms 19 1 1s114ms 1s114ms 20 4 4s530ms 1s132ms 21 1 1s134ms 1s134ms 22 34 38s304ms 1s126ms 23 37 41s953ms 1s133ms Apr 15 00 41 46s3ms 1s122ms 01 73 1m22s 1s123ms 02 84 1m37s 1s160ms 03 77 1m37s 1s265ms 04 102 2m 1s180ms 05 91 1m42s 1s128ms 06 79 1m29s 1s128ms 07 64 1m12s 1s137ms 08 69 1m18s 1s139ms 09 46 53s702ms 1s167ms 10 59 1m8s 1s156ms 11 71 1m20s 1s128ms 12 55 1m1s 1s116ms 13 45 50s499ms 1s122ms 14 68 1m17s 1s136ms 15 72 1m21s 1s128ms 16 74 1m23s 1s129ms 17 70 1m19s 1s132ms 18 90 1m40s 1s121ms 19 65 1m12s 1s120ms 20 86 1m36s 1s124ms 21 84 1m32s 1s105ms 22 56 1m3s 1s126ms 23 65 1m13s 1s129ms Apr 16 00 78 1m34s 1s213ms 01 55 1m1s 1s122ms 02 64 1m12s 1s131ms 03 42 47s191ms 1s123ms 04 64 1m12s 1s125ms 05 30 36s620ms 1s220ms 06 47 52s828ms 1s124ms 07 34 38s547ms 1s133ms 08 56 1m3s 1s129ms 09 6 6s613ms 1s102ms 10 9 10s147ms 1s127ms 11 5 5s652ms 1s130ms 12 11 12s470ms 1s133ms 13 8 9s32ms 1s129ms 14 7 7s709ms 1s101ms 15 5 5s494ms 1s98ms 16 3 3s229ms 1s76ms 17 18 19s781ms 1s98ms 18 8 8s765ms 1s95ms 19 5 5s571ms 1s114ms 20 10 11s340ms 1s134ms 21 9 9s935ms 1s103ms 22 2 2s228ms 1s114ms 23 4 4s478ms 1s119ms Apr 17 00 6 6s748ms 1s124ms 01 11 12s425ms 1s129ms 02 8 8s822ms 1s102ms 03 6 6s676ms 1s112ms 05 5 5s841ms 1s168ms 06 6 6s797ms 1s132ms 07 8 9s51ms 1s131ms 08 6 6s580ms 1s96ms 09 7 7s820ms 1s117ms 10 6 6s616ms 1s102ms 11 7 7s745ms 1s106ms 12 2 2s187ms 1s93ms 13 10 11s83ms 1s108ms 14 1 1s98ms 1s98ms 15 10 10s959ms 1s95ms 16 6 6s622ms 1s103ms 17 2 2s203ms 1s101ms 18 14 15s337ms 1s95ms 19 8 9s15ms 1s126ms 20 11 12s31ms 1s93ms 21 4 4s371ms 1s92ms 23 20 22s420ms 1s121ms Apr 18 00 15 16s710ms 1s114ms 01 174 7m7s 2s457ms 02 30 44s300ms 1s476ms 03 12 13s456ms 1s121ms 04 3 3s385ms 1s128ms 05 8 9s183ms 1s147ms 06 9 10s159ms 1s128ms 07 4 4s550ms 1s137ms 08 4 4s418ms 1s104ms 09 8 8s918ms 1s114ms 10 1 1s84ms 1s84ms 11 11 12s48ms 1s95ms 12 11 12s21ms 1s92ms 13 9 9s923ms 1s102ms 14 15 16s513ms 1s100ms 15 16 17s640ms 1s102ms 16 16 17s399ms 1s87ms 17 12 13s210ms 1s100ms 18 2 2s137ms 1s68ms 19 9 9s818ms 1s90ms 20 5 5s500ms 1s100ms 21 11 12s125ms 1s102ms 22 8 9s19ms 1s127ms 23 8 8s888ms 1s111ms Apr 19 00 3 3s375ms 1s125ms 01 10 11s273ms 1s127ms 02 9 10s91ms 1s121ms 03 10 11s211ms 1s121ms 04 4 4s509ms 1s127ms 05 11 12s566ms 1s142ms 06 11 12s322ms 1s120ms 07 3 3s323ms 1s107ms 08 8 8s855ms 1s106ms 09 11 12s43ms 1s94ms 10 4 4s362ms 1s90ms 11 9 9s997ms 1s110ms 12 2 2s129ms 1s64ms 13 1 1s90ms 1s90ms 14 3 3s264ms 1s88ms 15 5 5s419ms 1s83ms 16 10 10s959ms 1s95ms 17 8 10s158ms 1s269ms 18 8 8s753ms 1s94ms 19 2 2s266ms 1s133ms 20 4 6s239ms 1s559ms 21 5 5s526ms 1s105ms 22 7 7s820ms 1s117ms 23 4 4s490ms 1s122ms Apr 20 00 4 4s462ms 1s115ms 01 5 5s551ms 1s110ms 02 6 6s842ms 1s140ms 03 5 5s633ms 1s126ms 05 13 14s897ms 1s145ms 06 8 8s975ms 1s121ms 07 5 5s548ms 1s109ms 08 12 13s450ms 1s120ms 09 11 12s471ms 1s133ms 10 1 1s113ms 1s113ms 11 8 9s9ms 1s126ms 12 6 6s768ms 1s128ms 13 26 1m3s 2s450ms 14 19 34s259ms 1s803ms 15 4 4s565ms 1s141ms 16 5 5s578ms 1s115ms 17 17 18s994ms 1s117ms 18 86 2m3s 1s433ms 19 14 15s477ms 1s105ms 20 9 10s36ms 1s115ms 21 11 12s178ms 1s107ms 22 8 9s461ms 1s182ms 23 5 5s559ms 1s111ms [ User: pubeu - Total duration: 19m12s - Times executed: 843 ]
[ User: qaeu - Total duration: 2s414ms - Times executed: 2 ]
-
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 = '2030257' or receptorTerm.id = '2030257' 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-04-20 13:43:07 Duration: 9s645ms 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 = '1442306' or receptorTerm.id = '1442306' 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-04-20 13:43:02 Duration: 8s384ms 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 = '2008051' or receptorTerm.id = '2008051' 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-04-18 01:54:18 Duration: 7s774ms Database: ctdprd51 User: pubeu Bind query: yes
13 57m16s 493 1s8ms 54s243ms 6s970ms 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 #13
Day Hour Count Duration Avg duration Apr 14 00 2 15s506ms 7s753ms 01 1 1s196ms 1s196ms 02 1 10s592ms 10s592ms 04 2 24s117ms 12s58ms 05 1 1s387ms 1s387ms 06 23 1m29s 3s909ms 09 1 1s400ms 1s400ms 10 1 1s136ms 1s136ms 11 1 1s951ms 1s951ms 12 3 25s922ms 8s640ms 13 1 5s187ms 5s187ms 16 1 1s426ms 1s426ms 19 21 6m29s 18s570ms 20 19 4m27s 14s77ms 22 2 5s695ms 2s847ms Apr 15 02 1 8s922ms 8s922ms 03 1 2s752ms 2s752ms 04 2 22s219ms 11s109ms 05 1 1s264ms 1s264ms 07 1 5s63ms 5s63ms 11 4 7s518ms 1s879ms 13 2 3s895ms 1s947ms 14 1 2s701ms 2s701ms 15 1 12s768ms 12s768ms 18 1 1s420ms 1s420ms 19 2 3s452ms 1s726ms 20 1 1s671ms 1s671ms 21 10 44s500ms 4s450ms 22 1 2s868ms 2s868ms Apr 16 00 1 12s985ms 12s985ms 02 2 5s479ms 2s739ms 03 2 5s118ms 2s559ms 07 7 24s567ms 3s509ms 09 2 3s877ms 1s938ms 10 1 2s648ms 2s648ms 11 2 16s718ms 8s359ms 13 4 8s381ms 2s95ms 15 2 10s216ms 5s108ms 17 2 14s272ms 7s136ms 18 3 6s862ms 2s287ms 19 3 14s898ms 4s966ms 20 1 2s294ms 2s294ms 21 1 1s12ms 1s12ms 23 3 24s177ms 8s59ms Apr 17 00 2 6s261ms 3s130ms 01 6 17s575ms 2s929ms 03 1 4s370ms 4s370ms 04 1 1s416ms 1s416ms 05 2 14s793ms 7s396ms 06 1 5s672ms 5s672ms 07 1 6s454ms 6s454ms 08 2 12s605ms 6s302ms 09 1 1s78ms 1s78ms 13 1 2s826ms 2s826ms 14 2 13s537ms 6s768ms 15 2 12s236ms 6s118ms 18 1 8s299ms 8s299ms 19 1 2s146ms 2s146ms 20 1 12s693ms 12s693ms 22 1 1s483ms 1s483ms 23 2 4s929ms 2s464ms Apr 18 01 57 9m7s 9s600ms 02 12 4m9s 20s808ms 03 5 35s945ms 7s189ms 04 2 15s394ms 7s697ms 08 1 1s71ms 1s71ms 09 2 4s369ms 2s184ms 11 1 11s262ms 11s262ms 12 2 9s421ms 4s710ms 13 2 9s825ms 4s912ms 15 2 4s30ms 2s15ms 17 1 6s873ms 6s873ms 18 1 5s270ms 5s270ms 20 4 11s430ms 2s857ms 22 1 7s878ms 7s878ms Apr 19 00 1 2s624ms 2s624ms 01 1 8s236ms 8s236ms 02 4 15s109ms 3s777ms 03 5 31s604ms 6s320ms 04 1 12s774ms 12s774ms 05 1 4s758ms 4s758ms 06 1 2s267ms 2s267ms 07 1 1s312ms 1s312ms 08 4 43s816ms 10s954ms 10 1 1s261ms 1s261ms 12 2 2s283ms 1s141ms 15 1 8s536ms 8s536ms 16 4 7s269ms 1s817ms 17 1 2s732ms 2s732ms 18 3 32s952ms 10s984ms 19 4 14s269ms 3s567ms 20 1 2s24ms 2s24ms 21 2 7s219ms 3s609ms 22 2 7s840ms 3s920ms 23 5 25s652ms 5s130ms Apr 20 00 22 1m39s 4s508ms 03 1 1s222ms 1s222ms 04 1 12s394ms 12s394ms 06 1 1s301ms 1s301ms 07 1 12s552ms 12s552ms 08 14 1m57s 8s361ms 09 1 12s730ms 12s730ms 10 2 18s883ms 9s441ms 11 3 6s407ms 2s135ms 13 42 4m17s 6s120ms 14 38 4m13s 6s678ms 15 2 14s841ms 7s420ms 16 1 2s518ms 2s518ms 17 3 15s146ms 5s48ms 18 41 2m36s 3s805ms 19 2 6s834ms 3s417ms 20 1 1s87ms 1s87ms 21 3 22s15ms 7s338ms 23 3 25s557ms 8s519ms [ User: pubeu - Total duration: 23m40s - Times executed: 194 ]
-
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 = '2052979') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-14 19:39:33 Duration: 54s243ms 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 01:55:42 Duration: 41s69ms 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 = '2061611') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 02:30:51 Duration: 38s859ms Database: ctdprd51 User: pubeu Bind query: yes
14 52m4s 10 41s198ms 9m50s 5m12s 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 phenotypeterm.nm_sort, diseaseterm.nm_sort limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 15 03 5 48m34s 9m42s 13 5 3m29s 41s967ms [ User: pubeu - Total duration: 21m25s - Times executed: 5 ]
-
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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:05:50 Duration: 9m50s 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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:09:44 Duration: 9m42s 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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:08:48 Duration: 9m42s Bind query: yes
15 38m54s 1,650 1s 3s125ms 1s414ms select count(*) from chem_disease cd where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 14 00 2 2s632ms 1s316ms 02 472 11m38s 1s480ms 03 53 1m19s 1s504ms 04 149 3m38s 1s467ms 05 19 28s14ms 1s474ms 08 18 25s970ms 1s442ms 09 38 51s145ms 1s345ms 15 204 4m49s 1s420ms 18 235 5m23s 1s375ms 19 81 1m46s 1s317ms 20 162 3m40s 1s364ms 21 92 2m2s 1s336ms Apr 15 04 35 43s83ms 1s230ms Apr 16 05 1 1s564ms 1s564ms Apr 18 01 16 18s908ms 1s181ms Apr 19 16 5 6s266ms 1s253ms 17 20 33s53ms 1s652ms 18 1 1s32ms 1s32ms Apr 20 08 38 50s691ms 1s333ms 13 5 6s473ms 1s294ms 16 4 4s903ms 1s225ms [ User: pubeu - Total duration: 1m36s - Times executed: 79 ]
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425');
Date: 2024-04-14 15:04:24 Duration: 3s125ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425');
Date: 2024-04-14 02:58:07 Duration: 2s900ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1420577');
Date: 2024-04-14 03:59:52 Duration: 2s856ms Bind query: yes
16 31m46s 486 1s2ms 44s346ms 3s923ms 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 chemnmsort limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 14 00 10 2m15s 13s528ms 01 5 32s328ms 6s465ms 02 26 2m4s 4s785ms 03 6 14s880ms 2s480ms 04 12 53s77ms 4s423ms 05 4 23s913ms 5s978ms 06 4 18s117ms 4s529ms 08 13 46s817ms 3s601ms 09 15 1m9s 4s603ms 10 1 2s2ms 2s2ms 13 1 1s219ms 1s219ms 15 29 1m54s 3s949ms 18 21 1m21s 3s898ms 19 9 29s903ms 3s322ms 20 18 1m7s 3s771ms 21 16 2m 7s510ms 23 2 5s278ms 2s639ms Apr 15 03 5 11s963ms 2s392ms 04 12 29s69ms 2s422ms 09 7 42s298ms 6s42ms 10 5 36s8ms 7s201ms 17 1 5s234ms 5s234ms Apr 16 00 5 41s264ms 8s252ms 02 3 21s703ms 7s234ms 05 10 1m2s 6s201ms 08 5 22s283ms 4s456ms 09 4 31s213ms 7s803ms 17 3 3s913ms 1s304ms 20 9 58s817ms 6s535ms Apr 18 01 133 4m39s 2s100ms 02 4 7s64ms 1s766ms Apr 19 02 1 1s263ms 1s263ms 04 1 1s964ms 1s964ms 16 20 43s760ms 2s188ms 17 16 53s340ms 3s333ms 18 6 18s470ms 3s78ms 19 1 1s723ms 1s723ms Apr 20 08 24 2m16s 5s700ms 13 3 7s405ms 2s468ms 14 5 16s574ms 3s314ms 16 6 22s588ms 3s764ms 18 5 9s653ms 1s930ms [ User: pubeu - Total duration: 12m26s - Times executed: 203 ]
-
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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:28 Duration: 44s346ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:15 Duration: 40s981ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-18 01:43:20 Duration: 24s182ms Database: ctdprd51 User: pubeu Bind query: yes
17 30m26s 145 1s18ms 1m18s 12s597ms 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 phenotypeterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and associatedterm.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 #17
Day Hour Count Duration Avg duration Apr 14 09 7 2m48s 24s74ms Apr 15 04 3 9s936ms 3s312ms Apr 16 02 2 2s96ms 1s48ms 06 6 37s320ms 6s220ms 09 1 1s18ms 1s18ms Apr 17 19 1 1s67ms 1s67ms Apr 18 01 39 8m39s 13s321ms 02 19 3m35s 11s357ms 16 1 3s702ms 3s702ms 20 1 3s740ms 3s740ms Apr 19 16 1 2s142ms 2s142ms 17 1 28s990ms 28s990ms 18 6 49s218ms 8s203ms 20 9 1m17s 8s566ms 22 1 2s108ms 2s108ms Apr 20 04 1 3s333ms 3s333ms 08 1 15s403ms 15s403ms 13 18 7m47s 25s965ms 14 9 1m34s 10s455ms 18 18 2m4s 6s892ms [ User: pubeu - Total duration: 14m41s - Times executed: 62 ]
-
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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-14 09:48:43 Duration: 1m18s 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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-14 09:48:48 Duration: 1m13s 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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-20 13:44:08 Duration: 1m11s Bind query: yes
18 23m39s 1 23m39s 23m39s 23m39s 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 #18
Day Hour Count Duration Avg duration Apr 20 19 1 23m39s 23m39s -
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-04-20 19:00:26 Duration: 23m39s
19 22m56s 1 22m56s 22m56s 22m56s 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 #19
Day Hour Count Duration Avg duration Apr 20 19 1 22m56s 22m56s -
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-04-20 19:41:13 Duration: 22m56s
20 22m25s 303 3s826ms 46s859ms 4s440ms 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 #20
Day Hour Count Duration Avg duration Apr 14 00 1 3s878ms 3s878ms 01 1 5s645ms 5s645ms 03 3 26s559ms 8s853ms 07 2 7s976ms 3s988ms 08 2 8s823ms 4s411ms 09 2 7s994ms 3s997ms 10 2 8s90ms 4s45ms 11 1 4s84ms 4s84ms 12 1 4s54ms 4s54ms 13 3 12s215ms 4s71ms 14 2 8s388ms 4s194ms 15 2 50s914ms 25s457ms 18 4 15s913ms 3s978ms 19 2 8s92ms 4s46ms 21 15 1m2s 4s144ms 22 15 1m1s 4s71ms 23 1 3s958ms 3s958ms Apr 15 00 11 44s748ms 4s68ms 01 2 8s42ms 4s21ms 02 2 8s568ms 4s284ms 03 7 28s886ms 4s126ms 04 3 12s299ms 4s99ms 06 1 4s406ms 4s406ms 07 1 4s128ms 4s128ms 08 2 8s186ms 4s93ms 09 1 3s938ms 3s938ms 10 2 8s38ms 4s19ms 11 1 3s999ms 3s999ms 12 1 4s91ms 4s91ms 13 3 12s227ms 4s75ms 14 1 4s259ms 4s259ms 17 1 4s115ms 4s115ms 19 2 8s284ms 4s142ms 22 9 36s735ms 4s81ms 23 4 16s484ms 4s121ms Apr 16 02 4 17s2ms 4s250ms 03 1 3s998ms 3s998ms 04 1 3s969ms 3s969ms 05 1 3s982ms 3s982ms 07 4 16s446ms 4s111ms 08 2 8s507ms 4s253ms 09 6 25s594ms 4s265ms 10 1 3s917ms 3s917ms 11 1 3s949ms 3s949ms 12 5 20s208ms 4s41ms 13 2 8s292ms 4s146ms 14 1 4s97ms 4s97ms 15 1 3s990ms 3s990ms 16 2 8s57ms 4s28ms 20 1 4s389ms 4s389ms 23 1 4s32ms 4s32ms Apr 17 01 4 15s827ms 3s956ms 03 10 41s601ms 4s160ms 04 26 1m45s 4s49ms 05 1 4s130ms 4s130ms 08 2 8s361ms 4s180ms 09 1 4s13ms 4s13ms 10 3 12s27ms 4s9ms 11 2 8s622ms 4s311ms 14 2 8s203ms 4s101ms 15 2 7s988ms 3s994ms 16 1 4s178ms 4s178ms 21 2 7s949ms 3s974ms 22 1 4s136ms 4s136ms Apr 18 01 3 27s699ms 9s233ms 02 6 30s569ms 5s94ms 03 3 12s104ms 4s34ms 05 5 20s678ms 4s135ms 06 7 28s754ms 4s107ms 07 3 25s160ms 8s386ms 08 2 8s95ms 4s47ms 09 4 16s275ms 4s68ms 10 2 8s417ms 4s208ms 12 2 8s183ms 4s91ms 13 1 4s78ms 4s78ms 15 2 7s987ms 3s993ms 16 1 3s931ms 3s931ms 19 1 4s20ms 4s20ms 21 2 8s350ms 4s175ms 22 1 4s224ms 4s224ms 23 1 4s15ms 4s15ms Apr 19 00 2 9s596ms 4s798ms 02 2 8s29ms 4s14ms 03 1 4s125ms 4s125ms 04 1 4s86ms 4s86ms 05 3 11s839ms 3s946ms 06 1 4s23ms 4s23ms 07 3 12s212ms 4s70ms 09 3 12s121ms 4s40ms 10 1 4s58ms 4s58ms 12 2 8s155ms 4s77ms 13 1 4s37ms 4s37ms 14 1 4s38ms 4s38ms 15 2 8s91ms 4s45ms 16 1 3s976ms 3s976ms Apr 20 01 2 7s999ms 3s999ms 04 2 8s116ms 4s58ms 06 2 8s20ms 4s10ms 07 1 4s54ms 4s54ms 09 3 12s36ms 4s12ms 11 1 4s12ms 4s12ms 13 3 11s828ms 3s942ms 14 5 20s372ms 4s74ms 15 3 12s160ms 4s53ms 16 3 12s197ms 4s65ms 17 1 4s20ms 4s20ms 18 1 17s620ms 17s620ms 20 1 4s53ms 4s53ms 21 1 4s92ms 4s92ms [ User: pubeu - Total duration: 7m27s - Times executed: 102 ]
-
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 = '1272350') 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 = '1272350') 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-04-14 15:03:49 Duration: 46s859ms 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 = '1283855') 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 = '1283855') 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-04-18 01:54:11 Duration: 17s635ms 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 = '1326972') 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 = '1326972') 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-04-20 18:43:29 Duration: 17s620ms Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 3,374 1h9m2s 1s29ms 9s645ms 1s227ms 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 Apr 14 00 3 3s324ms 1s108ms 01 4 4s452ms 1s113ms 03 4 4s554ms 1s138ms 05 3 3s605ms 1s201ms 06 1 1s104ms 1s104ms 07 1 1s126ms 1s126ms 09 3 3s350ms 1s116ms 14 2 2s268ms 1s134ms 15 2 2s363ms 1s181ms 16 1 1s120ms 1s120ms 17 2 2s214ms 1s107ms 19 1 1s114ms 1s114ms 20 4 4s530ms 1s132ms 21 1 1s134ms 1s134ms 22 34 38s304ms 1s126ms 23 37 41s953ms 1s133ms Apr 15 00 41 46s3ms 1s122ms 01 73 1m22s 1s123ms 02 84 1m37s 1s160ms 03 77 1m37s 1s265ms 04 102 2m 1s180ms 05 91 1m42s 1s128ms 06 79 1m29s 1s128ms 07 64 1m12s 1s137ms 08 69 1m18s 1s139ms 09 46 53s702ms 1s167ms 10 59 1m8s 1s156ms 11 71 1m20s 1s128ms 12 55 1m1s 1s116ms 13 45 50s499ms 1s122ms 14 68 1m17s 1s136ms 15 72 1m21s 1s128ms 16 74 1m23s 1s129ms 17 70 1m19s 1s132ms 18 90 1m40s 1s121ms 19 65 1m12s 1s120ms 20 86 1m36s 1s124ms 21 84 1m32s 1s105ms 22 56 1m3s 1s126ms 23 65 1m13s 1s129ms Apr 16 00 78 1m34s 1s213ms 01 55 1m1s 1s122ms 02 64 1m12s 1s131ms 03 42 47s191ms 1s123ms 04 64 1m12s 1s125ms 05 30 36s620ms 1s220ms 06 47 52s828ms 1s124ms 07 34 38s547ms 1s133ms 08 56 1m3s 1s129ms 09 6 6s613ms 1s102ms 10 9 10s147ms 1s127ms 11 5 5s652ms 1s130ms 12 11 12s470ms 1s133ms 13 8 9s32ms 1s129ms 14 7 7s709ms 1s101ms 15 5 5s494ms 1s98ms 16 3 3s229ms 1s76ms 17 18 19s781ms 1s98ms 18 8 8s765ms 1s95ms 19 5 5s571ms 1s114ms 20 10 11s340ms 1s134ms 21 9 9s935ms 1s103ms 22 2 2s228ms 1s114ms 23 4 4s478ms 1s119ms Apr 17 00 6 6s748ms 1s124ms 01 11 12s425ms 1s129ms 02 8 8s822ms 1s102ms 03 6 6s676ms 1s112ms 05 5 5s841ms 1s168ms 06 6 6s797ms 1s132ms 07 8 9s51ms 1s131ms 08 6 6s580ms 1s96ms 09 7 7s820ms 1s117ms 10 6 6s616ms 1s102ms 11 7 7s745ms 1s106ms 12 2 2s187ms 1s93ms 13 10 11s83ms 1s108ms 14 1 1s98ms 1s98ms 15 10 10s959ms 1s95ms 16 6 6s622ms 1s103ms 17 2 2s203ms 1s101ms 18 14 15s337ms 1s95ms 19 8 9s15ms 1s126ms 20 11 12s31ms 1s93ms 21 4 4s371ms 1s92ms 23 20 22s420ms 1s121ms Apr 18 00 15 16s710ms 1s114ms 01 174 7m7s 2s457ms 02 30 44s300ms 1s476ms 03 12 13s456ms 1s121ms 04 3 3s385ms 1s128ms 05 8 9s183ms 1s147ms 06 9 10s159ms 1s128ms 07 4 4s550ms 1s137ms 08 4 4s418ms 1s104ms 09 8 8s918ms 1s114ms 10 1 1s84ms 1s84ms 11 11 12s48ms 1s95ms 12 11 12s21ms 1s92ms 13 9 9s923ms 1s102ms 14 15 16s513ms 1s100ms 15 16 17s640ms 1s102ms 16 16 17s399ms 1s87ms 17 12 13s210ms 1s100ms 18 2 2s137ms 1s68ms 19 9 9s818ms 1s90ms 20 5 5s500ms 1s100ms 21 11 12s125ms 1s102ms 22 8 9s19ms 1s127ms 23 8 8s888ms 1s111ms Apr 19 00 3 3s375ms 1s125ms 01 10 11s273ms 1s127ms 02 9 10s91ms 1s121ms 03 10 11s211ms 1s121ms 04 4 4s509ms 1s127ms 05 11 12s566ms 1s142ms 06 11 12s322ms 1s120ms 07 3 3s323ms 1s107ms 08 8 8s855ms 1s106ms 09 11 12s43ms 1s94ms 10 4 4s362ms 1s90ms 11 9 9s997ms 1s110ms 12 2 2s129ms 1s64ms 13 1 1s90ms 1s90ms 14 3 3s264ms 1s88ms 15 5 5s419ms 1s83ms 16 10 10s959ms 1s95ms 17 8 10s158ms 1s269ms 18 8 8s753ms 1s94ms 19 2 2s266ms 1s133ms 20 4 6s239ms 1s559ms 21 5 5s526ms 1s105ms 22 7 7s820ms 1s117ms 23 4 4s490ms 1s122ms Apr 20 00 4 4s462ms 1s115ms 01 5 5s551ms 1s110ms 02 6 6s842ms 1s140ms 03 5 5s633ms 1s126ms 05 13 14s897ms 1s145ms 06 8 8s975ms 1s121ms 07 5 5s548ms 1s109ms 08 12 13s450ms 1s120ms 09 11 12s471ms 1s133ms 10 1 1s113ms 1s113ms 11 8 9s9ms 1s126ms 12 6 6s768ms 1s128ms 13 26 1m3s 2s450ms 14 19 34s259ms 1s803ms 15 4 4s565ms 1s141ms 16 5 5s578ms 1s115ms 17 17 18s994ms 1s117ms 18 86 2m3s 1s433ms 19 14 15s477ms 1s105ms 20 9 10s36ms 1s115ms 21 11 12s178ms 1s107ms 22 8 9s461ms 1s182ms 23 5 5s559ms 1s111ms [ User: pubeu - Total duration: 19m12s - Times executed: 843 ]
[ User: qaeu - Total duration: 2s414ms - Times executed: 2 ]
-
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 = '2030257' or receptorTerm.id = '2030257' 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-04-20 13:43:07 Duration: 9s645ms 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 = '1442306' or receptorTerm.id = '1442306' 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-04-20 13:43:02 Duration: 8s384ms 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 = '2008051' or receptorTerm.id = '2008051' 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-04-18 01:54:18 Duration: 7s774ms Database: ctdprd51 User: pubeu Bind query: yes
2 2,888 5h32m3s 1s1ms 44s555ms 6s898ms 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 #2
Day Hour Count Duration Avg duration Apr 14 00 20 2m3s 6s164ms 01 2 9s478ms 4s739ms 02 325 51m23s 9s487ms 03 54 5m2s 5s595ms 04 187 28m25s 9s122ms 05 29 4m9s 8s610ms 06 24 1m31s 3s812ms 08 80 11m36s 8s703ms 09 72 9m41s 8s79ms 10 28 1m56s 4s153ms 15 330 41m21s 7s519ms 16 40 1m58s 2s969ms 18 299 38m57s 7s817ms 19 104 12m 6s926ms 20 191 25m9s 7s904ms 21 168 22m5s 7s888ms Apr 15 04 196 17m26s 5s340ms 06 30 1m33s 3s101ms 07 71 4m8s 3s506ms 08 1 1s845ms 1s845ms 09 15 55s272ms 3s684ms 10 17 56s741ms 3s337ms 17 3 6s293ms 2s97ms 21 5 14s402ms 2s880ms 22 1 2s813ms 2s813ms Apr 16 00 22 1m33s 4s262ms 02 5 15s705ms 3s141ms 05 27 1m52s 4s169ms 08 42 2m4s 2s971ms 09 13 39s220ms 3s16ms 11 2 7s875ms 3s937ms 15 1 1s194ms 1s194ms 17 20 56s678ms 2s833ms 20 16 42s799ms 2s674ms 23 1 1s871ms 1s871ms Apr 17 04 1 1s798ms 1s798ms 10 1 1s835ms 1s835ms 14 1 1s746ms 1s746ms 15 3 6s932ms 2s310ms 18 1 1s324ms 1s324ms 22 1 1s750ms 1s750ms 23 1 3s258ms 3s258ms Apr 18 01 69 5m19s 4s635ms 02 14 48s885ms 3s491ms 06 1 1s740ms 1s740ms 07 4 21s52ms 5s263ms 08 1 1s723ms 1s723ms 09 1 2s6ms 2s6ms 11 1 5s843ms 5s843ms 16 1 3s247ms 3s247ms 17 1 1s986ms 1s986ms 19 1 1s984ms 1s984ms 20 1 3s266ms 3s266ms 23 3 8s777ms 2s925ms Apr 19 02 9 30s772ms 3s419ms 03 1 1s769ms 1s769ms 04 3 5s820ms 1s940ms 06 1 5s977ms 5s977ms 07 1 1s736ms 1s736ms 11 1 5s992ms 5s992ms 14 1 2s778ms 2s778ms 15 1 3s299ms 3s299ms 16 46 3m20s 4s358ms 17 60 9m18s 9s314ms 18 33 2m40s 4s869ms 19 4 7s552ms 1s888ms 22 8 25s587ms 3s198ms 23 1 1s220ms 1s220ms Apr 20 03 1 1s968ms 1s968ms 05 2 7s559ms 3s779ms 08 39 5m9s 7s926ms 10 1 6s17ms 6s17ms 13 23 2m27s 6s415ms 14 13 57s259ms 4s404ms 15 1 2s779ms 2s779ms 16 39 5m6s 7s863ms 17 1 1s304ms 1s304ms 18 48 2m29s 3s122ms 22 1 3s276ms 3s276ms 23 1 2s821ms 2s821ms [ User: pubeu - Total duration: 1h12m42s - Times executed: 809 ]
-
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 = '1381425'))) 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-04-14 04:00:20 Duration: 44s555ms 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 = '1381425'))) 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-04-14 02:56:25 Duration: 43s777ms 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 = '1381425'))) 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-04-14 04:00:10 Duration: 43s405ms Database: ctdprd51 User: pubeu Bind query: yes
3 2,887 6h30m19s 1s1ms 50s498ms 8s111ms 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 #3
Day Hour Count Duration Avg duration Apr 14 00 30 2m41s 5s388ms 01 6 16s269ms 2s711ms 02 247 57m22s 13s936ms 03 49 7m12s 8s825ms 04 152 34m27s 13s603ms 05 42 6m4s 8s682ms 06 27 1m59s 4s443ms 07 3 9s552ms 3s184ms 08 100 14m41s 8s816ms 09 60 9m12s 9s215ms 10 28 1m55s 4s113ms 11 1 1s772ms 1s772ms 12 3 10s254ms 3s418ms 14 1 1s5ms 1s5ms 15 292 44m6s 9s62ms 16 37 1m58s 3s211ms 18 226 43m57s 11s668ms 19 88 16m53s 11s521ms 20 165 31m23s 11s415ms 21 158 23m41s 8s995ms 22 3 3s724ms 1s241ms 23 1 1s116ms 1s116ms Apr 15 00 1 1s6ms 1s6ms 01 1 2s617ms 2s617ms 03 3 5s402ms 1s800ms 04 170 18m32s 6s545ms 06 23 1m8s 2s982ms 07 67 4m10s 3s734ms 08 1 2s86ms 2s86ms 09 15 1m1s 4s126ms 10 17 1m22s 4s860ms 13 1 4s892ms 4s892ms 16 1 3s516ms 3s516ms 17 11 24s304ms 2s209ms 18 1 3s560ms 3s560ms 19 2 5s854ms 2s927ms 21 5 19s820ms 3s964ms 23 1 1s254ms 1s254ms Apr 16 00 29 2m44s 5s669ms 02 9 24s989ms 2s776ms 05 36 2m46s 4s634ms 07 2 4s828ms 2s414ms 08 27 1m31s 3s372ms 09 13 38s894ms 2s991ms 10 3 6s134ms 2s44ms 11 1 1s197ms 1s197ms 13 2 7s673ms 3s836ms 15 4 11s489ms 2s872ms 16 2 4s720ms 2s360ms 17 25 1m5s 2s603ms 18 1 1s504ms 1s504ms 19 1 2s175ms 2s175ms 20 16 54s553ms 3s409ms 21 3 8s599ms 2s866ms 22 3 7s795ms 2s598ms Apr 17 00 1 4s789ms 4s789ms 01 1 1s243ms 1s243ms 02 3 7s231ms 2s410ms 03 1 1s254ms 1s254ms 04 3 7s678ms 2s559ms 06 2 3s813ms 1s906ms 08 1 1s39ms 1s39ms 09 1 2s657ms 2s657ms 11 1 4s765ms 4s765ms 12 1 2s590ms 2s590ms 13 4 13s524ms 3s381ms 14 5 6s927ms 1s385ms 15 1 3s501ms 3s501ms 16 2 4s685ms 2s342ms 17 2 2s444ms 1s222ms 18 2 4s657ms 2s328ms 19 1 4s836ms 4s836ms 21 4 13s102ms 3s275ms 22 3 7s250ms 2s416ms 23 2 2s875ms 1s437ms Apr 18 00 2 6s358ms 3s179ms 01 100 9m5s 5s454ms 02 23 53s196ms 2s312ms 03 1 4s783ms 4s783ms 04 1 3s517ms 3s517ms 05 2 4s703ms 2s351ms 06 1 4s796ms 4s796ms 07 1 3s582ms 3s582ms 08 2 9s622ms 4s811ms 09 2 4s368ms 2s184ms 10 1 1s253ms 1s253ms 11 1 1s218ms 1s218ms 12 1 2s613ms 2s613ms 15 4 15s108ms 3s777ms 16 2 5s905ms 2s952ms 17 3 10s908ms 3s636ms 18 1 4s815ms 4s815ms 19 1 1s295ms 1s295ms 20 3 12s370ms 4s123ms 21 2 3s884ms 1s942ms 22 4 11s819ms 2s954ms 23 1 2s663ms 2s663ms Apr 19 00 2 5s976ms 2s988ms 01 2 3s765ms 1s882ms 02 16 56s673ms 3s542ms 03 1 1s77ms 1s77ms 04 3 8s205ms 2s735ms 05 1 4s726ms 4s726ms 06 2 8s280ms 4s140ms 07 1 1s470ms 1s470ms 09 2 6s420ms 3s210ms 10 4 14s275ms 3s568ms 11 3 10s992ms 3s664ms 12 1 1s205ms 1s205ms 14 2 3s780ms 1s890ms 15 3 7s163ms 2s387ms 16 31 2m1s 3s919ms 17 67 11m32s 10s333ms 18 56 4m11s 4s499ms 19 6 20s694ms 3s449ms 20 2 6s258ms 3s129ms 22 14 30s973ms 2s212ms 23 3 7s181ms 2s393ms Apr 20 00 2 3s896ms 1s948ms 01 4 15s794ms 3s948ms 02 1 2s672ms 2s672ms 03 1 1s78ms 1s78ms 04 2 2s471ms 1s235ms 05 1 4s829ms 4s829ms 07 2 7s127ms 3s563ms 08 43 5m9s 7s206ms 09 1 3s497ms 3s497ms 10 2 4s714ms 2s357ms 13 31 2m26s 4s728ms 14 34 1m30s 2s672ms 16 41 4m45s 6s959ms 17 2 4s725ms 2s362ms 18 74 3m34s 2s895ms 19 2 4s603ms 2s301ms 20 2 7s560ms 3s780ms 21 2 7s560ms 3s780ms 23 2 6s164ms 3s82ms [ User: pubeu - Total duration: 1h33m49s - Times executed: 921 ]
-
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 = '1381425') 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 = '1381425') 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-04-14 04:00:27 Duration: 50s498ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:29 Duration: 49s588ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:59 Duration: 49s468ms Bind query: yes
4 2,510 1h58m52s 1s 27s550ms 2s841ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, count(gcr.ixn_id) ixncount, count(distinct gcr.taxon_id) taxoncount, count(*) over () fullrowcount from gene_chem_reference gcr inner join term g on gcr.gene_id = g.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.id, g.acc_txt, g.acc_db_cd, g.nm_sort order by count(gcr.ixn_id) desc, g.nm_sort limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 14 00 13 30s292ms 2s330ms 01 2 4s129ms 2s64ms 02 480 25m14s 3s154ms 03 58 2m37s 2s715ms 04 174 9m50s 3s393ms 05 21 1m14s 3s524ms 06 9 12s488ms 1s387ms 08 61 2m42s 2s670ms 09 48 2m20s 2s926ms 10 5 8s683ms 1s736ms 15 379 17m39s 2s795ms 16 2 3s876ms 1s938ms 18 347 16m22s 2s830ms 19 89 4m13s 2s852ms 20 243 11m40s 2s884ms 21 145 6m28s 2s677ms Apr 15 04 111 4m36s 2s493ms 06 1 1s363ms 1s363ms 07 14 22s830ms 1s630ms 09 4 7s418ms 1s854ms 10 5 8s591ms 1s718ms 21 1 1s457ms 1s457ms Apr 16 00 14 33s456ms 2s389ms 05 8 16s847ms 2s105ms 08 12 17s134ms 1s427ms 09 2 2s509ms 1s254ms 17 2 3s705ms 1s852ms 20 4 6s856ms 1s714ms Apr 18 01 64 2m28s 2s321ms 02 2 2s655ms 1s327ms 09 1 1s433ms 1s433ms Apr 19 02 4 7s172ms 1s793ms 16 24 43s394ms 1s808ms 17 42 2m15s 3s215ms 18 24 36s341ms 1s514ms Apr 20 08 38 2m14s 3s533ms 13 26 1m8s 2s629ms 14 5 11s338ms 2s267ms 16 19 51s950ms 2s734ms 18 7 9s98ms 1s299ms [ User: pubeu - Total duration: 22m38s - Times executed: 536 ]
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 02:57:51 Duration: 27s550ms Bind query: yes
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 02:57:16 Duration: 26s349ms Bind query: yes
-
SELECT /* ChemGenesDAO */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, COUNT(gcr.ixn_id) ixnCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN term g ON gcr.gene_id = g.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') GROUP BY g.nm, g.id, g.acc_txt, g.acc_db_cd, g.nm_sort ORDER BY COUNT(gcr.ixn_id) DESC, g.nm_sort LIMIT 50;
Date: 2024-04-14 18:54:29 Duration: 19s772ms Bind query: yes
5 1,946 1h46m32s 1s1ms 14s624ms 3s284ms select c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposurereferencecount, case when cd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from chem_disease_axn a where a.chem_id = cd.chem_id and a.disease_id = cd.disease_id) else null end actiontypes from chem_disease cd inner join term c on cd.chem_id = c.id inner join term d on cd.disease_id = d.id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, cd.network_score desc nulls last, d.nm_sort, c.nm_sort limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 14 00 13 32s824ms 2s524ms 01 2 2s898ms 1s449ms 02 229 16m39s 4s365ms 03 55 2m48s 3s54ms 04 149 9m30s 3s827ms 05 19 1m16s 4s 06 8 16s734ms 2s91ms 08 54 3m34s 3s974ms 09 43 1m55s 2s692ms 10 10 19s773ms 1s977ms 11 1 1s238ms 1s238ms 12 1 1s795ms 1s795ms 14 1 1s776ms 1s776ms 15 219 12m34s 3s447ms 16 12 19s614ms 1s634ms 17 1 1s230ms 1s230ms 18 214 12m58s 3s636ms 19 76 4m41s 3s700ms 20 154 9m17s 3s621ms 21 134 7m59s 3s575ms Apr 15 02 1 1s800ms 1s800ms 04 80 3m47s 2s849ms 06 12 18s633ms 1s552ms 07 15 32s636ms 2s175ms 08 2 3s681ms 1s840ms 09 4 7s97ms 1s774ms 10 7 11s348ms 1s621ms 13 2 2s478ms 1s239ms 16 1 1s297ms 1s297ms 17 1 1s274ms 1s274ms 18 1 1s778ms 1s778ms 21 1 1s883ms 1s883ms 23 2 3s150ms 1s575ms Apr 16 00 11 23s75ms 2s97ms 02 3 5s129ms 1s709ms 05 15 40s56ms 2s670ms 06 1 1s809ms 1s809ms 08 14 24s59ms 1s718ms 09 3 5s244ms 1s748ms 11 1 1s246ms 1s246ms 13 2 3s546ms 1s773ms 14 1 1s785ms 1s785ms 15 2 3s575ms 1s787ms 16 1 1s823ms 1s823ms 17 6 11s309ms 1s884ms 18 2 2s455ms 1s227ms 20 8 13s379ms 1s672ms Apr 17 00 3 5s403ms 1s801ms 01 1 1s225ms 1s225ms 02 1 1s256ms 1s256ms 04 1 1s811ms 1s811ms 05 1 1s237ms 1s237ms 06 1 1s802ms 1s802ms 08 1 1s259ms 1s259ms 10 1 1s223ms 1s223ms 11 2 3s8ms 1s504ms 14 2 3s128ms 1s564ms 18 1 1s806ms 1s806ms 19 2 3s30ms 1s515ms 20 2 3s586ms 1s793ms 22 2 3s24ms 1s512ms Apr 18 00 2 3s 1s500ms 01 34 1m31s 2s705ms 02 13 19s800ms 1s523ms 03 1 1s843ms 1s843ms 05 1 1s238ms 1s238ms 06 1 1s783ms 1s783ms 07 2 3s1ms 1s500ms 08 1 1s797ms 1s797ms 09 1 1s826ms 1s826ms 11 1 1s226ms 1s226ms 12 1 1s787ms 1s787ms 13 4 6s624ms 1s656ms 14 1 1s236ms 1s236ms 15 1 1s260ms 1s260ms 16 1 1s795ms 1s795ms 17 1 1s779ms 1s779ms 18 1 1s784ms 1s784ms 19 1 1s246ms 1s246ms 22 1 1s775ms 1s775ms 23 2 2s465ms 1s232ms Apr 19 00 1 1s780ms 1s780ms 01 1 1s780ms 1s780ms 02 4 7s470ms 1s867ms 03 1 1s238ms 1s238ms 04 4 6s712ms 1s678ms 07 2 2s439ms 1s219ms 09 2 3s54ms 1s527ms 10 2 3s102ms 1s551ms 11 1 1s255ms 1s255ms 12 1 1s763ms 1s763ms 13 2 2s484ms 1s242ms 15 1 1s246ms 1s246ms 16 27 54s606ms 2s22ms 17 45 3m8s 4s190ms 18 35 1m7s 1s941ms 19 1 1s783ms 1s783ms 20 1 1s232ms 1s232ms 21 2 3s43ms 1s521ms 22 4 6s237ms 1s559ms 23 1 1s247ms 1s247ms Apr 20 04 2 3s14ms 1s507ms 05 1 1s803ms 1s803ms 07 1 1s236ms 1s236ms 08 33 1m48s 3s280ms 09 1 1s242ms 1s242ms 11 2 3s78ms 1s539ms 13 18 40s289ms 2s238ms 14 13 25s474ms 1s959ms 15 1 1s780ms 1s780ms 16 29 1m24s 2s906ms 18 16 28s24ms 1s751ms 19 2 2s461ms 1s230ms 20 2 2s476ms 1s238ms 23 1 1s232ms 1s232ms [ User: pubeu - Total duration: 19m11s - Times executed: 467 ]
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 15:04:22 Duration: 14s624ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 04:00:09 Duration: 14s495ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 02:54:11 Duration: 14s232ms Database: ctdprd51 User: pubeu Bind query: yes
6 1,650 38m54s 1s 3s125ms 1s414ms select count(*) from chem_disease cd where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 14 00 2 2s632ms 1s316ms 02 472 11m38s 1s480ms 03 53 1m19s 1s504ms 04 149 3m38s 1s467ms 05 19 28s14ms 1s474ms 08 18 25s970ms 1s442ms 09 38 51s145ms 1s345ms 15 204 4m49s 1s420ms 18 235 5m23s 1s375ms 19 81 1m46s 1s317ms 20 162 3m40s 1s364ms 21 92 2m2s 1s336ms Apr 15 04 35 43s83ms 1s230ms Apr 16 05 1 1s564ms 1s564ms Apr 18 01 16 18s908ms 1s181ms Apr 19 16 5 6s266ms 1s253ms 17 20 33s53ms 1s652ms 18 1 1s32ms 1s32ms Apr 20 08 38 50s691ms 1s333ms 13 5 6s473ms 1s294ms 16 4 4s903ms 1s225ms [ User: pubeu - Total duration: 1m36s - Times executed: 79 ]
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425');
Date: 2024-04-14 15:04:24 Duration: 3s125ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425');
Date: 2024-04-14 02:58:07 Duration: 2s900ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO.rowCount */ COUNT(*) FROM chem_disease cd WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1420577');
Date: 2024-04-14 03:59:52 Duration: 2s856ms Bind query: yes
7 796 17m12s 1s146ms 8s889ms 1s296ms 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 #7
Day Hour Count Duration Avg duration Apr 14 01 1 1s243ms 1s243ms 02 1 1s247ms 1s247ms 03 1 1s220ms 1s220ms 05 2 2s703ms 1s351ms 09 1 1s191ms 1s191ms 20 1 1s209ms 1s209ms 22 2 2s622ms 1s311ms 23 8 9s948ms 1s243ms Apr 15 00 10 12s188ms 1s218ms 01 8 9s797ms 1s224ms 02 2 2s437ms 1s218ms 03 27 34s487ms 1s277ms 04 21 41s167ms 1s960ms 05 23 28s485ms 1s238ms 06 16 19s650ms 1s228ms 07 18 22s92ms 1s227ms 08 25 30s974ms 1s238ms 09 9 10s932ms 1s214ms 10 21 26s351ms 1s254ms 11 28 34s116ms 1s218ms 12 19 23s80ms 1s214ms 13 19 23s139ms 1s217ms 14 20 24s667ms 1s233ms 15 18 22s546ms 1s252ms 16 22 26s639ms 1s210ms 17 25 31s2ms 1s240ms 18 14 17s336ms 1s238ms 19 22 26s604ms 1s209ms 20 20 24s70ms 1s203ms 21 34 41s24ms 1s206ms 22 13 15s803ms 1s215ms 23 14 17s13ms 1s215ms Apr 16 00 24 29s375ms 1s223ms 01 16 19s359ms 1s209ms 02 17 21s497ms 1s264ms 03 32 39s257ms 1s226ms 04 14 17s197ms 1s228ms 05 14 17s428ms 1s244ms 06 20 24s409ms 1s220ms 07 9 11s82ms 1s231ms 08 12 14s815ms 1s234ms 09 2 3s248ms 1s624ms 10 2 2s454ms 1s227ms 11 2 2s455ms 1s227ms 15 2 2s346ms 1s173ms 16 4 4s741ms 1s185ms 18 4 4s735ms 1s183ms 19 2 2s397ms 1s198ms 20 4 4s701ms 1s175ms 21 3 3s574ms 1s191ms 22 1 1s279ms 1s279ms Apr 17 01 4 4s865ms 1s216ms 03 3 3s708ms 1s236ms 04 1 1s257ms 1s257ms 05 7 8s758ms 1s251ms 08 2 2s437ms 1s218ms 09 6 7s298ms 1s216ms 10 7 8s487ms 1s212ms 11 4 4s728ms 1s182ms 14 2 2s386ms 1s193ms 15 3 3s532ms 1s177ms 16 3 3s542ms 1s180ms 21 2 2s358ms 1s179ms Apr 18 00 2 2s420ms 1s210ms 01 10 38s275ms 3s827ms 02 4 11s855ms 2s963ms 04 3 3s626ms 1s208ms 05 4 5s203ms 1s300ms 06 2 2s569ms 1s284ms 07 2 2s446ms 1s223ms 12 2 2s394ms 1s197ms 13 2 2s405ms 1s202ms 18 1 1s167ms 1s167ms 21 1 1s171ms 1s171ms 23 2 2s435ms 1s217ms Apr 19 04 4 4s903ms 1s225ms 05 4 5s124ms 1s281ms 08 2 2s399ms 1s199ms 09 1 1s242ms 1s242ms 12 2 2s485ms 1s242ms 13 6 7s210ms 1s201ms 15 1 1s188ms 1s188ms 16 2 2s367ms 1s183ms 18 2 2s396ms 1s198ms 19 2 2s376ms 1s188ms 20 1 2s188ms 2s188ms 22 2 2s445ms 1s222ms 23 2 2s570ms 1s285ms Apr 20 00 3 3s649ms 1s216ms 05 2 2s645ms 1s322ms 06 2 2s451ms 1s225ms 11 1 1s227ms 1s227ms 14 2 4s961ms 2s480ms 15 1 1s266ms 1s266ms 16 2 2s451ms 1s225ms 17 6 7s404ms 1s234ms 18 6 10s43ms 1s673ms 19 1 1s159ms 1s159ms 20 7 8s559ms 1s222ms 21 2 2s343ms 1s171ms 22 2 2s470ms 1s235ms [ User: pubeu - Total duration: 3m57s - Times executed: 176 ]
[ User: qaeu - Total duration: 5s366ms - Times executed: 4 ]
-
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 = '1207444') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1207444') 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-04-18 01:55:55 Duration: 8s889ms 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 = '1210784') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1210784') 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-04-18 02:30:42 Duration: 7s734ms 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 = '1218912') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1218912') 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-04-15 04:21:21 Duration: 6s549ms Bind query: yes
8 587 1h56m8s 1s17ms 45s287ms 11s871ms select * from ( select g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, count(*) over () fullrowcount from term g where g.id in ( select gt.gene_id from dag_path dp inner join gene_taxon gt on dp.descendant_object_id = gt.taxon_id where dp.ancestor_object_id = ? union all select gcr.gene_id from dag_path dp inner join gene_chem_reference gcr on dp.descendant_object_id = gcr.taxon_id where dp.ancestor_object_id = ?) offset ?) mq order by mq.genesymbolsort limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 14 02 274 59m43s 13s76ms 05 212 48m57s 13s857ms 20 1 5s137ms 5s137ms Apr 15 03 8 15s765ms 1s970ms 15 1 5s359ms 5s359ms 18 3 11s176ms 3s725ms Apr 16 05 4 23s209ms 5s802ms 08 1 2s65ms 2s65ms Apr 18 01 20 2m6s 6s329ms 02 15 34s746ms 2s316ms Apr 19 22 1 5s482ms 5s482ms Apr 20 08 1 2s788ms 2s788ms 13 17 2m4s 7s346ms 14 8 20s699ms 2s587ms 16 11 42s827ms 3s893ms 18 9 25s781ms 2s864ms 22 1 1s123ms 1s123ms [ User: pubeu - Total duration: 24m24s - Times executed: 144 ]
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '573835' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '573835') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:20:31 Duration: 45s287ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 05:48:15 Duration: 35s440ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:19:57 Duration: 34s925ms Database: ctdprd51 User: pubeu Bind query: yes
9 562 1h20m5s 1s 38s374ms 8s550ms 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 #9
Day Hour Count Duration Avg duration Apr 14 00 5 45s480ms 9s96ms 01 5 39s583ms 7s916ms 02 6 1m18s 13s121ms 03 5 31s135ms 6s227ms 04 2 13s238ms 6s619ms 05 9 38s636ms 4s292ms 06 5 36s848ms 7s369ms 08 15 3m59s 15s966ms 09 14 4m22s 18s736ms 10 5 36s303ms 7s260ms 13 5 22s515ms 4s503ms 15 4 53s751ms 13s437ms 16 1 5s541ms 5s541ms 18 8 2m1s 15s215ms 20 5 23s298ms 4s659ms 21 3 29s799ms 9s933ms 22 3 11s788ms 3s929ms 23 3 12s194ms 4s64ms Apr 15 02 2 2s326ms 1s163ms 03 1 5s749ms 5s749ms 04 9 45s95ms 5s10ms 05 6 6s175ms 1s29ms 06 3 12s652ms 4s217ms 07 3 12s393ms 4s131ms 08 2 11s603ms 5s801ms 09 8 38s245ms 4s780ms 10 7 39s474ms 5s639ms 13 1 1s10ms 1s10ms 14 2 11s459ms 5s729ms 15 2 2s77ms 1s38ms 17 4 23s45ms 5s761ms 19 2 2s103ms 1s51ms 20 2 11s37ms 5s518ms 21 7 26s50ms 3s721ms 22 2 2s86ms 1s43ms Apr 16 00 18 2m15s 7s502ms 01 1 6s490ms 6s490ms 02 5 29s190ms 5s838ms 04 2 6s671ms 3s335ms 05 16 1m41s 6s326ms 06 4 19s271ms 4s817ms 08 17 1m55s 6s809ms 09 6 33s666ms 5s611ms 10 3 17s40ms 5s680ms 16 3 16s222ms 5s407ms 17 4 25s510ms 6s377ms 20 12 1m28s 7s383ms Apr 17 01 1 5s529ms 5s529ms 05 5 5s131ms 1s26ms 22 1 1s84ms 1s84ms 23 1 5s551ms 5s551ms Apr 18 01 106 19m39s 11s130ms 02 10 55s608ms 5s560ms 05 6 10s970ms 1s828ms 07 1 5s642ms 5s642ms 08 1 5s421ms 5s421ms 11 1 5s412ms 5s412ms 12 1 5s305ms 5s305ms 14 1 5s83ms 5s83ms Apr 19 00 1 5s619ms 5s619ms 02 3 18s995ms 6s331ms 05 6 10s826ms 1s804ms 08 1 5s584ms 5s584ms 12 2 6s604ms 3s302ms 13 2 10s919ms 5s459ms 16 32 5m42s 10s701ms 17 16 2m57s 11s92ms 18 20 2m13s 6s698ms 19 7 33s126ms 4s732ms 20 2 12s330ms 6s165ms 21 1 1s22ms 1s22ms 22 4 19s74ms 4s768ms Apr 20 02 1 4s860ms 4s860ms 03 1 5s685ms 5s685ms 04 2 11s186ms 5s593ms 05 5 9s835ms 1s967ms 07 1 5s338ms 5s338ms 08 34 8m54s 15s732ms 10 1 5s324ms 5s324ms 11 1 1s21ms 1s21ms 13 3 1m2s 20s771ms 14 2 13s318ms 6s659ms 16 5 38s39ms 7s607ms 18 15 1m29s 5s951ms 20 1 5s219ms 5s219ms 21 1 1s46ms 1s46ms [ User: pubeu - Total duration: 37m13s - Times executed: 265 ]
[ User: qaeu - Total duration: 4s138ms - Times executed: 4 ]
-
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 = '1346978' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 02:55:45 Duration: 38s374ms 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 = '1327102' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-20 08:20:08 Duration: 35s642ms 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 = '1296974' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 18:53:31 Duration: 35s27ms Bind query: yes
10 493 57m16s 1s8ms 54s243ms 6s970ms 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 #10
Day Hour Count Duration Avg duration Apr 14 00 2 15s506ms 7s753ms 01 1 1s196ms 1s196ms 02 1 10s592ms 10s592ms 04 2 24s117ms 12s58ms 05 1 1s387ms 1s387ms 06 23 1m29s 3s909ms 09 1 1s400ms 1s400ms 10 1 1s136ms 1s136ms 11 1 1s951ms 1s951ms 12 3 25s922ms 8s640ms 13 1 5s187ms 5s187ms 16 1 1s426ms 1s426ms 19 21 6m29s 18s570ms 20 19 4m27s 14s77ms 22 2 5s695ms 2s847ms Apr 15 02 1 8s922ms 8s922ms 03 1 2s752ms 2s752ms 04 2 22s219ms 11s109ms 05 1 1s264ms 1s264ms 07 1 5s63ms 5s63ms 11 4 7s518ms 1s879ms 13 2 3s895ms 1s947ms 14 1 2s701ms 2s701ms 15 1 12s768ms 12s768ms 18 1 1s420ms 1s420ms 19 2 3s452ms 1s726ms 20 1 1s671ms 1s671ms 21 10 44s500ms 4s450ms 22 1 2s868ms 2s868ms Apr 16 00 1 12s985ms 12s985ms 02 2 5s479ms 2s739ms 03 2 5s118ms 2s559ms 07 7 24s567ms 3s509ms 09 2 3s877ms 1s938ms 10 1 2s648ms 2s648ms 11 2 16s718ms 8s359ms 13 4 8s381ms 2s95ms 15 2 10s216ms 5s108ms 17 2 14s272ms 7s136ms 18 3 6s862ms 2s287ms 19 3 14s898ms 4s966ms 20 1 2s294ms 2s294ms 21 1 1s12ms 1s12ms 23 3 24s177ms 8s59ms Apr 17 00 2 6s261ms 3s130ms 01 6 17s575ms 2s929ms 03 1 4s370ms 4s370ms 04 1 1s416ms 1s416ms 05 2 14s793ms 7s396ms 06 1 5s672ms 5s672ms 07 1 6s454ms 6s454ms 08 2 12s605ms 6s302ms 09 1 1s78ms 1s78ms 13 1 2s826ms 2s826ms 14 2 13s537ms 6s768ms 15 2 12s236ms 6s118ms 18 1 8s299ms 8s299ms 19 1 2s146ms 2s146ms 20 1 12s693ms 12s693ms 22 1 1s483ms 1s483ms 23 2 4s929ms 2s464ms Apr 18 01 57 9m7s 9s600ms 02 12 4m9s 20s808ms 03 5 35s945ms 7s189ms 04 2 15s394ms 7s697ms 08 1 1s71ms 1s71ms 09 2 4s369ms 2s184ms 11 1 11s262ms 11s262ms 12 2 9s421ms 4s710ms 13 2 9s825ms 4s912ms 15 2 4s30ms 2s15ms 17 1 6s873ms 6s873ms 18 1 5s270ms 5s270ms 20 4 11s430ms 2s857ms 22 1 7s878ms 7s878ms Apr 19 00 1 2s624ms 2s624ms 01 1 8s236ms 8s236ms 02 4 15s109ms 3s777ms 03 5 31s604ms 6s320ms 04 1 12s774ms 12s774ms 05 1 4s758ms 4s758ms 06 1 2s267ms 2s267ms 07 1 1s312ms 1s312ms 08 4 43s816ms 10s954ms 10 1 1s261ms 1s261ms 12 2 2s283ms 1s141ms 15 1 8s536ms 8s536ms 16 4 7s269ms 1s817ms 17 1 2s732ms 2s732ms 18 3 32s952ms 10s984ms 19 4 14s269ms 3s567ms 20 1 2s24ms 2s24ms 21 2 7s219ms 3s609ms 22 2 7s840ms 3s920ms 23 5 25s652ms 5s130ms Apr 20 00 22 1m39s 4s508ms 03 1 1s222ms 1s222ms 04 1 12s394ms 12s394ms 06 1 1s301ms 1s301ms 07 1 12s552ms 12s552ms 08 14 1m57s 8s361ms 09 1 12s730ms 12s730ms 10 2 18s883ms 9s441ms 11 3 6s407ms 2s135ms 13 42 4m17s 6s120ms 14 38 4m13s 6s678ms 15 2 14s841ms 7s420ms 16 1 2s518ms 2s518ms 17 3 15s146ms 5s48ms 18 41 2m36s 3s805ms 19 2 6s834ms 3s417ms 20 1 1s87ms 1s87ms 21 3 22s15ms 7s338ms 23 3 25s557ms 8s519ms [ User: pubeu - Total duration: 23m40s - Times executed: 194 ]
-
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 = '2052979') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-14 19:39:33 Duration: 54s243ms 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 01:55:42 Duration: 41s69ms 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 = '2061611') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 02:30:51 Duration: 38s859ms Database: ctdprd51 User: pubeu Bind query: yes
11 488 10m37s 1s119ms 6s783ms 1s306ms 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 #11
Day Hour Count Duration Avg duration Apr 14 03 1 1s245ms 1s245ms 05 2 2s762ms 1s381ms 16 1 1s245ms 1s245ms 23 4 5s296ms 1s324ms Apr 15 00 5 6s46ms 1s209ms 01 8 9s863ms 1s232ms 02 12 15s351ms 1s279ms 03 10 14s567ms 1s456ms 04 7 10s655ms 1s522ms 05 6 7s581ms 1s263ms 06 10 12s78ms 1s207ms 07 8 9s843ms 1s230ms 08 5 6s42ms 1s208ms 09 11 13s775ms 1s252ms 10 6 8s275ms 1s379ms 11 12 14s690ms 1s224ms 12 14 16s968ms 1s212ms 13 5 6s180ms 1s236ms 14 6 7s812ms 1s302ms 15 7 8s458ms 1s208ms 16 13 16s231ms 1s248ms 17 19 23s364ms 1s229ms 18 12 14s645ms 1s220ms 19 14 17s374ms 1s241ms 20 14 17s180ms 1s227ms 21 10 12s521ms 1s252ms 22 7 8s573ms 1s224ms 23 7 8s633ms 1s233ms Apr 16 00 6 7s363ms 1s227ms 01 12 14s592ms 1s216ms 02 8 9s715ms 1s214ms 04 6 7s328ms 1s221ms 05 9 11s517ms 1s279ms 06 4 5s98ms 1s274ms 07 2 2s448ms 1s224ms 08 7 8s948ms 1s278ms 09 6 7s399ms 1s233ms 10 1 1s344ms 1s344ms 11 3 3s758ms 1s252ms 12 4 4s971ms 1s242ms 15 2 2s446ms 1s223ms 17 2 2s387ms 1s193ms Apr 17 02 1 1s200ms 1s200ms 03 2 2s495ms 1s247ms 04 6 7s446ms 1s241ms 05 3 4s55ms 1s351ms 06 2 2s593ms 1s296ms 10 5 6s194ms 1s238ms 11 2 2s423ms 1s211ms 13 1 1s248ms 1s248ms 15 3 3s556ms 1s185ms 17 3 3s592ms 1s197ms 19 4 4s734ms 1s183ms 20 1 1s161ms 1s161ms 22 1 1s220ms 1s220ms Apr 18 00 4 4s870ms 1s217ms 01 9 29s826ms 3s314ms 02 2 2s742ms 1s371ms 03 2 2s392ms 1s196ms 05 2 2s727ms 1s363ms 06 5 6s61ms 1s212ms 09 6 7s454ms 1s242ms 10 1 1s246ms 1s246ms 11 2 2s404ms 1s202ms 12 3 3s749ms 1s249ms 13 2 2s444ms 1s222ms 14 2 2s390ms 1s195ms 16 2 2s449ms 1s224ms 17 1 1s167ms 1s167ms 18 1 1s234ms 1s234ms 21 1 1s213ms 1s213ms 23 1 1s262ms 1s262ms Apr 19 02 1 1s309ms 1s309ms 03 1 1s241ms 1s241ms 04 4 5s74ms 1s268ms 05 4 5s167ms 1s291ms 06 4 4s806ms 1s201ms 07 2 2s397ms 1s198ms 08 3 3s996ms 1s332ms 09 1 1s258ms 1s258ms 10 1 1s266ms 1s266ms 13 4 4s843ms 1s210ms 15 2 2s354ms 1s177ms 16 2 2s358ms 1s179ms 17 1 1s179ms 1s179ms 18 2 2s340ms 1s170ms 19 1 1s166ms 1s166ms 20 3 3s637ms 1s212ms 22 2 2s387ms 1s193ms 23 3 3s708ms 1s236ms Apr 20 01 8 9s819ms 1s227ms 02 4 4s938ms 1s234ms 04 1 1s211ms 1s211ms 05 2 2s698ms 1s349ms 06 1 1s435ms 1s435ms 07 7 8s838ms 1s262ms 08 3 9s132ms 3s44ms 09 1 1s274ms 1s274ms 12 8 9s763ms 1s220ms 14 1 2s494ms 2s494ms 16 3 3s755ms 1s251ms 17 4 4s938ms 1s234ms 18 3 6s895ms 2s298ms 19 1 1s119ms 1s119ms 20 3 3s582ms 1s194ms 21 3 3s597ms 1s199ms 22 2 2s424ms 1s212ms 23 4 4s810ms 1s202ms [ User: pubeu - Total duration: 2m23s - Times executed: 98 ]
-
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 = '2052888') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2052888') 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-04-18 01:54:11 Duration: 6s783ms 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 = '2053571') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2053571') 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-04-18 01:44:50 Duration: 4s870ms 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 = '2056245') or receptorTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '2056245') 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-04-20 08:23:58 Duration: 4s513ms Database: ctdprd51 User: pubeu Bind query: yes
12 486 31m46s 1s2ms 44s346ms 3s923ms 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 chemnmsort limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 14 00 10 2m15s 13s528ms 01 5 32s328ms 6s465ms 02 26 2m4s 4s785ms 03 6 14s880ms 2s480ms 04 12 53s77ms 4s423ms 05 4 23s913ms 5s978ms 06 4 18s117ms 4s529ms 08 13 46s817ms 3s601ms 09 15 1m9s 4s603ms 10 1 2s2ms 2s2ms 13 1 1s219ms 1s219ms 15 29 1m54s 3s949ms 18 21 1m21s 3s898ms 19 9 29s903ms 3s322ms 20 18 1m7s 3s771ms 21 16 2m 7s510ms 23 2 5s278ms 2s639ms Apr 15 03 5 11s963ms 2s392ms 04 12 29s69ms 2s422ms 09 7 42s298ms 6s42ms 10 5 36s8ms 7s201ms 17 1 5s234ms 5s234ms Apr 16 00 5 41s264ms 8s252ms 02 3 21s703ms 7s234ms 05 10 1m2s 6s201ms 08 5 22s283ms 4s456ms 09 4 31s213ms 7s803ms 17 3 3s913ms 1s304ms 20 9 58s817ms 6s535ms Apr 18 01 133 4m39s 2s100ms 02 4 7s64ms 1s766ms Apr 19 02 1 1s263ms 1s263ms 04 1 1s964ms 1s964ms 16 20 43s760ms 2s188ms 17 16 53s340ms 3s333ms 18 6 18s470ms 3s78ms 19 1 1s723ms 1s723ms Apr 20 08 24 2m16s 5s700ms 13 3 7s405ms 2s468ms 14 5 16s574ms 3s314ms 16 6 22s588ms 3s764ms 18 5 9s653ms 1s930ms [ User: pubeu - Total duration: 12m26s - Times executed: 203 ]
-
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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:28 Duration: 44s346ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:15 Duration: 40s981ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-18 01:43:20 Duration: 24s182ms Database: ctdprd51 User: pubeu Bind query: yes
13 428 15m17s 1s1ms 10s255ms 2s144ms select distinct childterm.acc_txt from term childterm, term baseterm, dag_path dag where baseterm.id = ? and baseterm.id = dag.ancestor_object_id and childterm.id = dag.descendant_object_id union select acc_txt from term where id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 14 00 3 4s939ms 1s646ms 01 1 1s22ms 1s22ms 02 68 2m47s 2s466ms 03 10 16s478ms 1s647ms 04 33 1m18s 2s376ms 05 4 8s546ms 2s136ms 06 1 1s313ms 1s313ms 08 15 23s852ms 1s590ms 09 19 34s671ms 1s824ms 15 47 1m35s 2s29ms 18 44 1m29s 2s28ms 19 18 38s334ms 2s129ms 20 29 1m1s 2s135ms 21 21 36s980ms 1s760ms Apr 15 04 16 30s485ms 1s905ms 07 1 1s491ms 1s491ms 22 1 1s941ms 1s941ms Apr 16 00 3 4s30ms 1s343ms 05 4 6s369ms 1s592ms 06 1 2s4ms 2s4ms Apr 17 19 1 1s926ms 1s926ms 21 1 1s913ms 1s913ms Apr 18 01 17 38s514ms 2s265ms 02 4 15s821ms 3s955ms Apr 19 16 4 5s144ms 1s286ms 17 13 28s334ms 2s179ms 18 2 3s105ms 1s552ms 20 1 2s6ms 2s6ms Apr 20 08 25 51s492ms 2s59ms 13 6 37s935ms 6s322ms 14 5 9s918ms 1s983ms 16 5 6s761ms 1s352ms 18 5 9s903ms 1s980ms [ User: pubeu - Total duration: 17s342ms - Times executed: 8 ]
-
select distinct childTerm.acc_txt from term childTerm, term baseTerm, dag_path dag where baseTerm.id = '1206427' and baseTerm.id = dag.ancestor_object_id and childTerm.id = dag.descendant_object_id union select acc_txt from term where id = '1206427';
Date: 2024-04-20 13:43:24 Duration: 10s255ms Bind query: yes
-
select distinct childTerm.acc_txt from term childTerm, term baseTerm, dag_path dag where baseTerm.id = '1206427' and baseTerm.id = dag.ancestor_object_id and childTerm.id = dag.descendant_object_id union select acc_txt from term where id = '1206427';
Date: 2024-04-20 13:43:07 Duration: 9s878ms Bind query: yes
-
select distinct childTerm.acc_txt from term childTerm, term baseTerm, dag_path dag where baseTerm.id = '1206427' and baseTerm.id = dag.ancestor_object_id and childTerm.id = dag.descendant_object_id union select acc_txt from term where id = '1206427';
Date: 2024-04-20 13:43:32 Duration: 8s913ms Bind query: yes
14 332 16m9s 1s4ms 22s58ms 2s919ms 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 #14
Day Hour Count Duration Avg duration Apr 14 00 1 1s94ms 1s94ms 02 98 6m18s 3s858ms 03 3 7s927ms 2s642ms 04 14 32s149ms 2s296ms 05 57 3m45s 3s950ms 08 5 8s423ms 1s684ms 09 9 17s718ms 1s968ms 11 1 2s5ms 2s5ms 12 2 3s827ms 1s913ms 15 26 50s56ms 1s925ms 18 15 28s83ms 1s872ms 19 7 14s834ms 2s119ms 20 19 35s256ms 1s855ms 21 9 15s783ms 1s753ms Apr 15 04 6 10s301ms 1s716ms 05 4 8s855ms 2s213ms 22 3 10s20ms 3s340ms Apr 16 04 2 5s755ms 2s877ms 05 4 8s842ms 2s210ms Apr 17 05 4 8s815ms 2s203ms 11 1 3s308ms 3s308ms Apr 18 01 7 12s255ms 1s750ms 02 1 3s641ms 3s641ms 05 4 8s967ms 2s241ms 13 1 1s904ms 1s904ms Apr 19 04 1 1s801ms 1s801ms 05 4 8s864ms 2s216ms 17 3 3s505ms 1s168ms 18 1 1s71ms 1s71ms 22 1 3s377ms 3s377ms Apr 20 05 4 8s846ms 2s211ms 08 4 6s770ms 1s692ms 13 4 9s177ms 2s294ms 14 1 4s834ms 4s834ms 16 4 10s810ms 2s702ms 18 2 7s88ms 3s544ms [ User: pubeu - Total duration: 3m9s - Times executed: 77 ]
[ User: qaeu - Total duration: 23s831ms - Times executed: 7 ]
-
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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 05:48:10 Duration: 22s58ms 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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 02:20:11 Duration: 20s952ms 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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 05:47:57 Duration: 20s642ms Bind query: yes
15 303 22m25s 3s826ms 46s859ms 4s440ms 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 Apr 14 00 1 3s878ms 3s878ms 01 1 5s645ms 5s645ms 03 3 26s559ms 8s853ms 07 2 7s976ms 3s988ms 08 2 8s823ms 4s411ms 09 2 7s994ms 3s997ms 10 2 8s90ms 4s45ms 11 1 4s84ms 4s84ms 12 1 4s54ms 4s54ms 13 3 12s215ms 4s71ms 14 2 8s388ms 4s194ms 15 2 50s914ms 25s457ms 18 4 15s913ms 3s978ms 19 2 8s92ms 4s46ms 21 15 1m2s 4s144ms 22 15 1m1s 4s71ms 23 1 3s958ms 3s958ms Apr 15 00 11 44s748ms 4s68ms 01 2 8s42ms 4s21ms 02 2 8s568ms 4s284ms 03 7 28s886ms 4s126ms 04 3 12s299ms 4s99ms 06 1 4s406ms 4s406ms 07 1 4s128ms 4s128ms 08 2 8s186ms 4s93ms 09 1 3s938ms 3s938ms 10 2 8s38ms 4s19ms 11 1 3s999ms 3s999ms 12 1 4s91ms 4s91ms 13 3 12s227ms 4s75ms 14 1 4s259ms 4s259ms 17 1 4s115ms 4s115ms 19 2 8s284ms 4s142ms 22 9 36s735ms 4s81ms 23 4 16s484ms 4s121ms Apr 16 02 4 17s2ms 4s250ms 03 1 3s998ms 3s998ms 04 1 3s969ms 3s969ms 05 1 3s982ms 3s982ms 07 4 16s446ms 4s111ms 08 2 8s507ms 4s253ms 09 6 25s594ms 4s265ms 10 1 3s917ms 3s917ms 11 1 3s949ms 3s949ms 12 5 20s208ms 4s41ms 13 2 8s292ms 4s146ms 14 1 4s97ms 4s97ms 15 1 3s990ms 3s990ms 16 2 8s57ms 4s28ms 20 1 4s389ms 4s389ms 23 1 4s32ms 4s32ms Apr 17 01 4 15s827ms 3s956ms 03 10 41s601ms 4s160ms 04 26 1m45s 4s49ms 05 1 4s130ms 4s130ms 08 2 8s361ms 4s180ms 09 1 4s13ms 4s13ms 10 3 12s27ms 4s9ms 11 2 8s622ms 4s311ms 14 2 8s203ms 4s101ms 15 2 7s988ms 3s994ms 16 1 4s178ms 4s178ms 21 2 7s949ms 3s974ms 22 1 4s136ms 4s136ms Apr 18 01 3 27s699ms 9s233ms 02 6 30s569ms 5s94ms 03 3 12s104ms 4s34ms 05 5 20s678ms 4s135ms 06 7 28s754ms 4s107ms 07 3 25s160ms 8s386ms 08 2 8s95ms 4s47ms 09 4 16s275ms 4s68ms 10 2 8s417ms 4s208ms 12 2 8s183ms 4s91ms 13 1 4s78ms 4s78ms 15 2 7s987ms 3s993ms 16 1 3s931ms 3s931ms 19 1 4s20ms 4s20ms 21 2 8s350ms 4s175ms 22 1 4s224ms 4s224ms 23 1 4s15ms 4s15ms Apr 19 00 2 9s596ms 4s798ms 02 2 8s29ms 4s14ms 03 1 4s125ms 4s125ms 04 1 4s86ms 4s86ms 05 3 11s839ms 3s946ms 06 1 4s23ms 4s23ms 07 3 12s212ms 4s70ms 09 3 12s121ms 4s40ms 10 1 4s58ms 4s58ms 12 2 8s155ms 4s77ms 13 1 4s37ms 4s37ms 14 1 4s38ms 4s38ms 15 2 8s91ms 4s45ms 16 1 3s976ms 3s976ms Apr 20 01 2 7s999ms 3s999ms 04 2 8s116ms 4s58ms 06 2 8s20ms 4s10ms 07 1 4s54ms 4s54ms 09 3 12s36ms 4s12ms 11 1 4s12ms 4s12ms 13 3 11s828ms 3s942ms 14 5 20s372ms 4s74ms 15 3 12s160ms 4s53ms 16 3 12s197ms 4s65ms 17 1 4s20ms 4s20ms 18 1 17s620ms 17s620ms 20 1 4s53ms 4s53ms 21 1 4s92ms 4s92ms [ User: pubeu - Total duration: 7m27s - Times executed: 102 ]
-
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 = '1272350') 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 = '1272350') 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-04-14 15:03:49 Duration: 46s859ms 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 = '1283855') 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 = '1283855') 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-04-18 01:54:11 Duration: 17s635ms 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 = '1326972') 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 = '1326972') 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-04-20 18:43:29 Duration: 17s620ms Bind query: yes
16 292 18m16s 1s5ms 15s521ms 3s756ms select count(*) from gene_disease gd where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 14 00 1 2s832ms 2s832ms 02 1 11s886ms 11s886ms 04 3 7s85ms 2s361ms 19 19 1m48s 5s701ms 20 10 1m1s 6s161ms Apr 15 02 2 4s911ms 2s455ms 03 9 18s837ms 2s93ms 04 5 15s745ms 3s149ms Apr 18 01 89 5m17s 3s566ms 02 15 1m45s 7s2ms Apr 19 16 2 7s384ms 3s692ms 17 1 1s5ms 1s5ms 18 2 11s181ms 5s590ms Apr 20 08 11 1m4s 5s876ms 13 42 2m36s 3s722ms 14 52 2m16s 2s617ms 16 2 7s703ms 3s851ms 18 26 58s729ms 2s258ms [ User: pubeu - Total duration: 2m52s - Times executed: 53 ]
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2063106');
Date: 2024-04-14 19:39:15 Duration: 15s521ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2063106');
Date: 2024-04-14 19:38:56 Duration: 14s62ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2054575');
Date: 2024-04-14 19:39:34 Duration: 13s218ms Bind query: yes
17 263 1h15m39s 1s1ms 1m27s 17s262ms 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 limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 14 01 1 4s101ms 4s101ms 09 12 8m26s 42s222ms 19 1 3s152ms 3s152ms Apr 15 01 1 1s223ms 1s223ms 02 3 58s743ms 19s581ms 04 7 1m34s 13s460ms 12 3 57s126ms 19s42ms 18 1 3s212ms 3s212ms 23 1 18s83ms 18s83ms Apr 16 00 1 6s241ms 6s241ms 02 1 1s39ms 1s39ms 03 2 3s896ms 1s948ms 06 6 1m5s 10s955ms 07 2 2s820ms 1s410ms 15 2 16s196ms 8s98ms Apr 17 07 3 3s283ms 1s94ms 12 1 1s283ms 1s283ms 15 1 1s594ms 1s594ms Apr 18 01 53 15m56s 18s38ms 02 21 5m31s 15s800ms 03 1 1s41ms 1s41ms 04 1 6s162ms 6s162ms 07 7 1m42s 14s576ms 14 1 1s276ms 1s276ms 23 1 2s818ms 2s818ms Apr 19 02 1 2s724ms 2s724ms 09 1 1s34ms 1s34ms 10 1 1s42ms 1s42ms 14 2 2s71ms 1s35ms 17 1 2s802ms 2s802ms 18 11 1m27s 7s910ms 20 13 2m5s 9s662ms Apr 20 03 1 1s39ms 1s39ms 05 2 2s261ms 1s130ms 07 1 18s21ms 18s21ms 08 3 35s810ms 11s936ms 12 1 19s48ms 19s48ms 13 38 23m26s 37s14ms 14 20 3m53s 11s672ms 16 1 2s744ms 2s744ms 18 32 5m48s 10s902ms [ User: pubeu - Total duration: 24m31s - Times executed: 102 ]
-
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 = '1206427') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:06 Duration: 1m27s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:10 Duration: 1m25s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:19 Duration: 1m25s Bind query: yes
18 244 4h37m13s 1s1ms 13m42s 1m8s 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 #18
Day Hour Count Duration Avg duration Apr 14 00 8 15m47s 1m58s 01 4 12m58s 3m14s 02 25 11m24s 27s368ms 03 3 4s205ms 1s401ms 04 6 5m10s 51s676ms 05 3 3s776ms 1s258ms 06 2 7s135ms 3s567ms 08 4 7s673ms 1s918ms 09 5 16s16ms 3s203ms 15 8 12s129ms 1s516ms 18 19 23s756ms 1s250ms 19 2 2s208ms 1s104ms 20 5 6s995ms 1s399ms 21 5 6s173ms 1s234ms 23 5 4m7s 49s533ms Apr 15 00 5 2m21s 28s384ms 01 2 35s356ms 17s678ms 03 1 1m37s 1m37s 04 5 1m28s 17s674ms 06 2 4s969ms 2s484ms 07 1 2s267ms 2s267ms 09 2 4m28s 2m14s 10 3 3m58s 1m19s 14 3 3s884ms 1s294ms 23 6 4m37s 46s199ms Apr 16 00 4 5m42s 1m25s 01 1 6m18s 6m18s 02 8 5m44s 43s76ms 05 7 14m45s 2m6s 08 2 3s541ms 1s770ms 09 2 4m 2m 18 3 2m 40s151ms 19 4 3m24s 51s143ms 20 8 27m14s 3m24s Apr 17 03 1 28s101ms 28s101ms Apr 18 01 8 6m14s 46s758ms 02 4 10m16s 2m34s 17 1 2s297ms 2s297ms Apr 19 16 11 41m6s 3m44s 17 9 15m33s 1m43s 18 4 5m26s 1m21s 19 1 26s643ms 26s643ms Apr 20 00 1 18s332ms 18s332ms 08 20 44m53s 2m14s 13 2 2s420ms 1s210ms 16 5 3m28s 41s647ms 17 1 25s806ms 25s806ms 18 3 8m58s 2m59s [ User: pubeu - Total duration: 2h30m22s - Times executed: 81 ]
-
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 = '1420575')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-20 08:33:03 Duration: 13m42s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:24 Duration: 9m26s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:00 Duration: 9m15s Bind query: yes
19 191 13m37s 1s1ms 40s752ms 4s280ms select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.ixn_id = any (array (( select ixn_id from ixn_anatomy where anatomy_id in ( 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 Apr 14 02 9 27s659ms 3s73ms 08 11 1m6s 6s22ms Apr 15 06 5 12s329ms 2s465ms Apr 16 03 1 1s101ms 1s101ms 06 1 1s320ms 1s320ms 08 6 15s51ms 2s508ms Apr 18 01 42 2m51s 4s86ms 02 1 1s150ms 1s150ms Apr 19 17 7 20s83ms 2s869ms 18 1 1s551ms 1s551ms 20 1 1s306ms 1s306ms Apr 20 08 2 9s591ms 4s795ms 13 26 2m58s 6s877ms 16 41 3m24s 4s981ms 18 37 1m45s 2s852ms [ User: pubeu - Total duration: 6m27s - Times executed: 98 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 16:53:05 Duration: 40s752ms 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 ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 13:43:42 Duration: 36s498ms 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 ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 16:53:09 Duration: 32s793ms Database: ctdprd51 User: pubeu Bind query: yes
20 183 5m19s 1s241ms 7s150ms 1s746ms 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 #20
Day Hour Count Duration Avg duration Apr 14 05 2 2s551ms 1s275ms 10 1 1s263ms 1s263ms Apr 15 05 2 2s526ms 1s263ms 12 3 3s806ms 1s268ms 17 1 1s313ms 1s313ms Apr 16 05 2 2s530ms 1s265ms 08 1 1s708ms 1s708ms 09 1 1s259ms 1s259ms 19 1 1s244ms 1s244ms 20 1 1s255ms 1s255ms 22 1 1s245ms 1s245ms Apr 17 04 1 1s256ms 1s256ms 05 2 2s508ms 1s254ms 17 1 1s252ms 1s252ms 18 1 1s277ms 1s277ms Apr 18 01 48 1m47s 2s246ms 02 29 45s634ms 1s573ms 04 1 1s249ms 1s249ms 05 2 2s531ms 1s265ms 10 1 1s268ms 1s268ms 16 1 1s245ms 1s245ms Apr 19 05 2 2s605ms 1s302ms 06 1 1s258ms 1s258ms 08 1 1s254ms 1s254ms 09 1 1s241ms 1s241ms 10 1 1s250ms 1s250ms 12 1 1s253ms 1s253ms 17 1 2s679ms 2s679ms 18 3 4s658ms 1s552ms 19 1 1s259ms 1s259ms 20 1 1s256ms 1s256ms 22 1 1s250ms 1s250ms Apr 20 01 1 1s252ms 1s252ms 03 1 1s253ms 1s253ms 05 2 2s510ms 1s255ms 08 2 4s591ms 2s295ms 09 2 2s508ms 1s254ms 13 17 45s473ms 2s674ms 14 20 27s273ms 1s363ms 17 1 1s241ms 1s241ms 18 19 25s518ms 1s343ms 23 1 1s258ms 1s258ms [ User: pubeu - Total duration: 2m28s - Times executed: 75 ]
[ User: qaeu - Total duration: 1s289ms - Times executed: 1 ]
-
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-04-20 13:43:07 Duration: 7s150ms 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-04-18 01:54:48 Duration: 5s611ms 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-04-20 13:42:55 Duration: 5s287ms Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 23m39s 23m39s 23m39s 1 23m39s 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 #1
Day Hour Count Duration Avg duration Apr 20 19 1 23m39s 23m39s -
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-04-20 19:00:26 Duration: 23m39s
2 22m56s 22m56s 22m56s 1 22m56s 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 Apr 20 19 1 22m56s 22m56s -
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-04-20 19:41:13 Duration: 22m56s
3 15m36s 15m57s 15m45s 7 1h50m21s select maint_query_logs_archive ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 14 00 1 15m41s 15m41s Apr 15 00 1 15m42s 15m42s Apr 16 00 1 15m57s 15m57s Apr 17 00 1 15m48s 15m48s Apr 18 00 1 15m46s 15m46s Apr 19 00 1 15m48s 15m48s Apr 20 00 1 15m36s 15m36s -
/* * 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-04-16 00:15:59 Duration: 15m57s
-
/* * 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-04-19 00:15:50 Duration: 15m48s
-
/* * 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-04-17 00:15:50 Duration: 15m48s
4 41s198ms 9m50s 5m12s 10 52m4s 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 phenotypeterm.nm_sort, diseaseterm.nm_sort limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 15 03 5 48m34s 9m42s 13 5 3m29s 41s967ms [ User: pubeu - Total duration: 21m25s - Times executed: 5 ]
-
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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:05:50 Duration: 9m50s 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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:09:44 Duration: 9m42s 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 = '1236073') and diseaseTerm.object_type_id = 3 ORDER BY phenotypeTerm.nm_sort, diseaseTerm.nm_sort LIMIT 50;
Date: 2024-04-15 03:08:48 Duration: 9m42s Bind query: yes
5 1s214ms 20m21s 4m8s 182 12h33m56s 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 #5
Day Hour Count Duration Avg duration Apr 14 09 4 22m47s 5m41s 10 1 20m16s 20m16s 21 1 3s206ms 3s206ms Apr 15 02 1 3s348ms 3s348ms 04 3 18m44s 6m14s 05 2 3s546ms 1s773ms 20 1 17m9s 17m9s 22 1 1s765ms 1s765ms Apr 16 06 3 35m34s 11m51s 16 1 3s17ms 3s17ms Apr 17 03 1 2s41ms 2s41ms 09 2 2m18s 1m9s Apr 18 01 49 1h27m34s 1m47s 02 24 1h34m8s 3m55s 07 1 3s346ms 3s346ms 10 1 2s897ms 2s897ms 11 1 3m4s 3m4s 16 1 1s434ms 1s434ms 19 1 1s567ms 1s567ms 20 1 1s516ms 1s516ms Apr 19 06 1 16m58s 16m58s 10 1 1s507ms 1s507ms 18 6 18m59s 3m9s 19 2 2s895ms 1s447ms 20 14 28m33s 2m2s 21 1 2m8s 2m8s Apr 20 02 2 16m47s 8m23s 08 3 17m7s 5m42s 09 1 1s586ms 1s586ms 13 7 44m8s 6m18s 14 24 3h37m42s 9m4s 18 19 1h29m17s 4m41s 23 1 1s422ms 1s422ms [ User: pubeu - Total duration: 6h25m34s - Times executed: 81 ]
-
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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-18 02:18:49 Duration: 20m21s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-14 10:07:34 Duration: 20m16s 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 = '1230239') and diseaseTerm.object_type_id = 3 ORDER BY chemNetworkCount desc, geneNetworkCount desc LIMIT 50;
Date: 2024-04-20 14:02:30 Duration: 19m50s Database: ctdprd51 User: pubeu Bind query: yes
6 1s1ms 13m42s 1m8s 244 4h37m13s 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 #6
Day Hour Count Duration Avg duration Apr 14 00 8 15m47s 1m58s 01 4 12m58s 3m14s 02 25 11m24s 27s368ms 03 3 4s205ms 1s401ms 04 6 5m10s 51s676ms 05 3 3s776ms 1s258ms 06 2 7s135ms 3s567ms 08 4 7s673ms 1s918ms 09 5 16s16ms 3s203ms 15 8 12s129ms 1s516ms 18 19 23s756ms 1s250ms 19 2 2s208ms 1s104ms 20 5 6s995ms 1s399ms 21 5 6s173ms 1s234ms 23 5 4m7s 49s533ms Apr 15 00 5 2m21s 28s384ms 01 2 35s356ms 17s678ms 03 1 1m37s 1m37s 04 5 1m28s 17s674ms 06 2 4s969ms 2s484ms 07 1 2s267ms 2s267ms 09 2 4m28s 2m14s 10 3 3m58s 1m19s 14 3 3s884ms 1s294ms 23 6 4m37s 46s199ms Apr 16 00 4 5m42s 1m25s 01 1 6m18s 6m18s 02 8 5m44s 43s76ms 05 7 14m45s 2m6s 08 2 3s541ms 1s770ms 09 2 4m 2m 18 3 2m 40s151ms 19 4 3m24s 51s143ms 20 8 27m14s 3m24s Apr 17 03 1 28s101ms 28s101ms Apr 18 01 8 6m14s 46s758ms 02 4 10m16s 2m34s 17 1 2s297ms 2s297ms Apr 19 16 11 41m6s 3m44s 17 9 15m33s 1m43s 18 4 5m26s 1m21s 19 1 26s643ms 26s643ms Apr 20 00 1 18s332ms 18s332ms 08 20 44m53s 2m14s 13 2 2s420ms 1s210ms 16 5 3m28s 41s647ms 17 1 25s806ms 25s806ms 18 3 8m58s 2m59s [ User: pubeu - Total duration: 2h30m22s - Times executed: 81 ]
-
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 = '1420575')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-20 08:33:03 Duration: 13m42s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:24 Duration: 9m26s 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 = '1420574')) ORDER BY r.sort_txt LIMIT 50;
Date: 2024-04-19 16:30:00 Duration: 9m15s Bind query: yes
7 1s4ms 33m16s 32s381ms 140 1h15m33s 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 #7
Day Hour Count Duration Avg duration Apr 14 02 1 34s100ms 34s100ms 03 1 34s601ms 34s601ms 04 4 2m25s 36s354ms 05 2 1h6m16s 33m8s 07 1 1s859ms 1s859ms 09 4 8s189ms 2s47ms 21 1 1s643ms 1s643ms 22 1 1s602ms 1s602ms Apr 15 02 3 15s92ms 5s30ms 03 1 1s855ms 1s855ms 04 11 16s781ms 1s525ms 06 6 20s448ms 3s408ms 08 6 22s94ms 3s682ms 10 2 4s230ms 2s115ms 13 6 13s712ms 2s285ms 15 6 14s242ms 2s373ms 20 6 21s64ms 3s510ms 23 1 1s172ms 1s172ms Apr 16 01 6 12s284ms 2s47ms 02 6 18s464ms 3s77ms 04 6 20s51ms 3s341ms 07 7 26s569ms 3s795ms 10 1 7s652ms 7s652ms 17 3 6s568ms 2s189ms 18 3 6s424ms 2s141ms 19 1 1s160ms 1s160ms Apr 17 02 2 3s207ms 1s603ms 04 3 3s738ms 1s246ms 23 7 14s978ms 2s139ms Apr 18 01 1 1s370ms 1s370ms 03 1 1s748ms 1s748ms 04 1 7s462ms 7s462ms 05 1 1s420ms 1s420ms 08 2 2s632ms 1s316ms 11 1 1s539ms 1s539ms 20 2 15s137ms 7s568ms Apr 19 03 1 3s313ms 3s313ms 04 1 1s115ms 1s115ms 13 4 8s531ms 2s132ms 14 6 12s985ms 2s164ms 15 1 2s119ms 2s119ms 21 1 1s525ms 1s525ms Apr 20 02 6 12s144ms 2s24ms 03 1 1s85ms 1s85ms 07 1 1s934ms 1s934ms 10 1 1s991ms 1s991ms [ User: pubeu - Total duration: 1h9m54s - Times executed: 66 ]
-
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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 05:08:54 Duration: 33m16s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 05:08:54 Duration: 32m59s 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2024-04-14 04:11:32 Duration: 37s158ms Database: ctdprd51 User: pubeu Bind query: yes
8 1s1ms 1m27s 17s262ms 263 1h15m39s 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 limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 14 01 1 4s101ms 4s101ms 09 12 8m26s 42s222ms 19 1 3s152ms 3s152ms Apr 15 01 1 1s223ms 1s223ms 02 3 58s743ms 19s581ms 04 7 1m34s 13s460ms 12 3 57s126ms 19s42ms 18 1 3s212ms 3s212ms 23 1 18s83ms 18s83ms Apr 16 00 1 6s241ms 6s241ms 02 1 1s39ms 1s39ms 03 2 3s896ms 1s948ms 06 6 1m5s 10s955ms 07 2 2s820ms 1s410ms 15 2 16s196ms 8s98ms Apr 17 07 3 3s283ms 1s94ms 12 1 1s283ms 1s283ms 15 1 1s594ms 1s594ms Apr 18 01 53 15m56s 18s38ms 02 21 5m31s 15s800ms 03 1 1s41ms 1s41ms 04 1 6s162ms 6s162ms 07 7 1m42s 14s576ms 14 1 1s276ms 1s276ms 23 1 2s818ms 2s818ms Apr 19 02 1 2s724ms 2s724ms 09 1 1s34ms 1s34ms 10 1 1s42ms 1s42ms 14 2 2s71ms 1s35ms 17 1 2s802ms 2s802ms 18 11 1m27s 7s910ms 20 13 2m5s 9s662ms Apr 20 03 1 1s39ms 1s39ms 05 2 2s261ms 1s130ms 07 1 18s21ms 18s21ms 08 3 35s810ms 11s936ms 12 1 19s48ms 19s48ms 13 38 23m26s 37s14ms 14 20 3m53s 11s672ms 16 1 2s744ms 2s744ms 18 32 5m48s 10s902ms [ User: pubeu - Total duration: 24m31s - Times executed: 102 ]
-
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 = '1206427') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:06 Duration: 1m27s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:10 Duration: 1m25s 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 = '1230239') AND gga.is_not = false) sq ORDER BY sq.gonmsort, sq.genesymbolsort LIMIT 50;
Date: 2024-04-20 13:44:19 Duration: 1m25s Bind query: yes
9 1s18ms 1m18s 12s597ms 145 30m26s 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 phenotypeterm.id = any (array (( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?))) and associatedterm.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 #9
Day Hour Count Duration Avg duration Apr 14 09 7 2m48s 24s74ms Apr 15 04 3 9s936ms 3s312ms Apr 16 02 2 2s96ms 1s48ms 06 6 37s320ms 6s220ms 09 1 1s18ms 1s18ms Apr 17 19 1 1s67ms 1s67ms Apr 18 01 39 8m39s 13s321ms 02 19 3m35s 11s357ms 16 1 3s702ms 3s702ms 20 1 3s740ms 3s740ms Apr 19 16 1 2s142ms 2s142ms 17 1 28s990ms 28s990ms 18 6 49s218ms 8s203ms 20 9 1m17s 8s566ms 22 1 2s108ms 2s108ms Apr 20 04 1 3s333ms 3s333ms 08 1 15s403ms 15s403ms 13 18 7m47s 25s965ms 14 9 1m34s 10s455ms 18 18 2m4s 6s892ms [ User: pubeu - Total duration: 14m41s - Times executed: 62 ]
-
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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-14 09:48:43 Duration: 1m18s 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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-14 09:48:48 Duration: 1m13s 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 phenotypeTerm.id = ANY (ARRAY (( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1206427'))) and associatedTerm.object_type_id = 2 group by associatedTerm, associatedTermNmSort, phenotype, casRN, ixnId, ixnProseHtml, ixnProse, ixnSort, associatedTermId, phenotypeId, inferredCount ORDER BY associatedTermNmSort LIMIT 50;
Date: 2024-04-20 13:44:08 Duration: 1m11s Bind query: yes
10 1s17ms 45s287ms 11s871ms 587 1h56m8s select * from ( select g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, count(*) over () fullrowcount from term g where g.id in ( select gt.gene_id from dag_path dp inner join gene_taxon gt on dp.descendant_object_id = gt.taxon_id where dp.ancestor_object_id = ? union all select gcr.gene_id from dag_path dp inner join gene_chem_reference gcr on dp.descendant_object_id = gcr.taxon_id where dp.ancestor_object_id = ?) offset ?) mq order by mq.genesymbolsort limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 14 02 274 59m43s 13s76ms 05 212 48m57s 13s857ms 20 1 5s137ms 5s137ms Apr 15 03 8 15s765ms 1s970ms 15 1 5s359ms 5s359ms 18 3 11s176ms 3s725ms Apr 16 05 4 23s209ms 5s802ms 08 1 2s65ms 2s65ms Apr 18 01 20 2m6s 6s329ms 02 15 34s746ms 2s316ms Apr 19 22 1 5s482ms 5s482ms Apr 20 08 1 2s788ms 2s788ms 13 17 2m4s 7s346ms 14 8 20s699ms 2s587ms 16 11 42s827ms 3s893ms 18 9 25s781ms 2s864ms 22 1 1s123ms 1s123ms [ User: pubeu - Total duration: 24m24s - Times executed: 144 ]
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '573835' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '573835') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:20:31 Duration: 45s287ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 05:48:15 Duration: 35s440ms Bind query: yes
-
SELECT /* TaxonGenesDAO */ * FROM ( SELECT g.nm genesymbol, g.nm_sort genesymbolsort, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, COUNT(*) OVER () fullRowCount FROM term g WHERE g.id IN ( SELECT gt.gene_id FROM dag_path dp INNER JOIN gene_taxon gt ON dp.descendant_object_id = gt.taxon_id WHERE dp.ancestor_object_id = '648460' UNION ALL SELECT gcr.gene_id FROM dag_path dp INNER JOIN gene_chem_reference gcr ON dp.descendant_object_id = gcr.taxon_id WHERE dp.ancestor_object_id = '648460') OFFSET 0) mq ORDER BY mq.genesymbolsort LIMIT 50;
Date: 2024-04-14 02:19:57 Duration: 34s925ms Database: ctdprd51 User: pubeu Bind query: yes
11 1s 38s374ms 8s550ms 562 1h20m5s 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 #11
Day Hour Count Duration Avg duration Apr 14 00 5 45s480ms 9s96ms 01 5 39s583ms 7s916ms 02 6 1m18s 13s121ms 03 5 31s135ms 6s227ms 04 2 13s238ms 6s619ms 05 9 38s636ms 4s292ms 06 5 36s848ms 7s369ms 08 15 3m59s 15s966ms 09 14 4m22s 18s736ms 10 5 36s303ms 7s260ms 13 5 22s515ms 4s503ms 15 4 53s751ms 13s437ms 16 1 5s541ms 5s541ms 18 8 2m1s 15s215ms 20 5 23s298ms 4s659ms 21 3 29s799ms 9s933ms 22 3 11s788ms 3s929ms 23 3 12s194ms 4s64ms Apr 15 02 2 2s326ms 1s163ms 03 1 5s749ms 5s749ms 04 9 45s95ms 5s10ms 05 6 6s175ms 1s29ms 06 3 12s652ms 4s217ms 07 3 12s393ms 4s131ms 08 2 11s603ms 5s801ms 09 8 38s245ms 4s780ms 10 7 39s474ms 5s639ms 13 1 1s10ms 1s10ms 14 2 11s459ms 5s729ms 15 2 2s77ms 1s38ms 17 4 23s45ms 5s761ms 19 2 2s103ms 1s51ms 20 2 11s37ms 5s518ms 21 7 26s50ms 3s721ms 22 2 2s86ms 1s43ms Apr 16 00 18 2m15s 7s502ms 01 1 6s490ms 6s490ms 02 5 29s190ms 5s838ms 04 2 6s671ms 3s335ms 05 16 1m41s 6s326ms 06 4 19s271ms 4s817ms 08 17 1m55s 6s809ms 09 6 33s666ms 5s611ms 10 3 17s40ms 5s680ms 16 3 16s222ms 5s407ms 17 4 25s510ms 6s377ms 20 12 1m28s 7s383ms Apr 17 01 1 5s529ms 5s529ms 05 5 5s131ms 1s26ms 22 1 1s84ms 1s84ms 23 1 5s551ms 5s551ms Apr 18 01 106 19m39s 11s130ms 02 10 55s608ms 5s560ms 05 6 10s970ms 1s828ms 07 1 5s642ms 5s642ms 08 1 5s421ms 5s421ms 11 1 5s412ms 5s412ms 12 1 5s305ms 5s305ms 14 1 5s83ms 5s83ms Apr 19 00 1 5s619ms 5s619ms 02 3 18s995ms 6s331ms 05 6 10s826ms 1s804ms 08 1 5s584ms 5s584ms 12 2 6s604ms 3s302ms 13 2 10s919ms 5s459ms 16 32 5m42s 10s701ms 17 16 2m57s 11s92ms 18 20 2m13s 6s698ms 19 7 33s126ms 4s732ms 20 2 12s330ms 6s165ms 21 1 1s22ms 1s22ms 22 4 19s74ms 4s768ms Apr 20 02 1 4s860ms 4s860ms 03 1 5s685ms 5s685ms 04 2 11s186ms 5s593ms 05 5 9s835ms 1s967ms 07 1 5s338ms 5s338ms 08 34 8m54s 15s732ms 10 1 5s324ms 5s324ms 11 1 1s21ms 1s21ms 13 3 1m2s 20s771ms 14 2 13s318ms 6s659ms 16 5 38s39ms 7s607ms 18 15 1m29s 5s951ms 20 1 5s219ms 5s219ms 21 1 1s46ms 1s46ms [ User: pubeu - Total duration: 37m13s - Times executed: 265 ]
[ User: qaeu - Total duration: 4s138ms - Times executed: 4 ]
-
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 = '1346978' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 02:55:45 Duration: 38s374ms 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 = '1327102' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-20 08:20:08 Duration: 35s642ms 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 = '1296974' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2024-04-14 18:53:31 Duration: 35s27ms Bind query: yes
12 1s1ms 50s498ms 8s111ms 2,887 6h30m19s 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 #12
Day Hour Count Duration Avg duration Apr 14 00 30 2m41s 5s388ms 01 6 16s269ms 2s711ms 02 247 57m22s 13s936ms 03 49 7m12s 8s825ms 04 152 34m27s 13s603ms 05 42 6m4s 8s682ms 06 27 1m59s 4s443ms 07 3 9s552ms 3s184ms 08 100 14m41s 8s816ms 09 60 9m12s 9s215ms 10 28 1m55s 4s113ms 11 1 1s772ms 1s772ms 12 3 10s254ms 3s418ms 14 1 1s5ms 1s5ms 15 292 44m6s 9s62ms 16 37 1m58s 3s211ms 18 226 43m57s 11s668ms 19 88 16m53s 11s521ms 20 165 31m23s 11s415ms 21 158 23m41s 8s995ms 22 3 3s724ms 1s241ms 23 1 1s116ms 1s116ms Apr 15 00 1 1s6ms 1s6ms 01 1 2s617ms 2s617ms 03 3 5s402ms 1s800ms 04 170 18m32s 6s545ms 06 23 1m8s 2s982ms 07 67 4m10s 3s734ms 08 1 2s86ms 2s86ms 09 15 1m1s 4s126ms 10 17 1m22s 4s860ms 13 1 4s892ms 4s892ms 16 1 3s516ms 3s516ms 17 11 24s304ms 2s209ms 18 1 3s560ms 3s560ms 19 2 5s854ms 2s927ms 21 5 19s820ms 3s964ms 23 1 1s254ms 1s254ms Apr 16 00 29 2m44s 5s669ms 02 9 24s989ms 2s776ms 05 36 2m46s 4s634ms 07 2 4s828ms 2s414ms 08 27 1m31s 3s372ms 09 13 38s894ms 2s991ms 10 3 6s134ms 2s44ms 11 1 1s197ms 1s197ms 13 2 7s673ms 3s836ms 15 4 11s489ms 2s872ms 16 2 4s720ms 2s360ms 17 25 1m5s 2s603ms 18 1 1s504ms 1s504ms 19 1 2s175ms 2s175ms 20 16 54s553ms 3s409ms 21 3 8s599ms 2s866ms 22 3 7s795ms 2s598ms Apr 17 00 1 4s789ms 4s789ms 01 1 1s243ms 1s243ms 02 3 7s231ms 2s410ms 03 1 1s254ms 1s254ms 04 3 7s678ms 2s559ms 06 2 3s813ms 1s906ms 08 1 1s39ms 1s39ms 09 1 2s657ms 2s657ms 11 1 4s765ms 4s765ms 12 1 2s590ms 2s590ms 13 4 13s524ms 3s381ms 14 5 6s927ms 1s385ms 15 1 3s501ms 3s501ms 16 2 4s685ms 2s342ms 17 2 2s444ms 1s222ms 18 2 4s657ms 2s328ms 19 1 4s836ms 4s836ms 21 4 13s102ms 3s275ms 22 3 7s250ms 2s416ms 23 2 2s875ms 1s437ms Apr 18 00 2 6s358ms 3s179ms 01 100 9m5s 5s454ms 02 23 53s196ms 2s312ms 03 1 4s783ms 4s783ms 04 1 3s517ms 3s517ms 05 2 4s703ms 2s351ms 06 1 4s796ms 4s796ms 07 1 3s582ms 3s582ms 08 2 9s622ms 4s811ms 09 2 4s368ms 2s184ms 10 1 1s253ms 1s253ms 11 1 1s218ms 1s218ms 12 1 2s613ms 2s613ms 15 4 15s108ms 3s777ms 16 2 5s905ms 2s952ms 17 3 10s908ms 3s636ms 18 1 4s815ms 4s815ms 19 1 1s295ms 1s295ms 20 3 12s370ms 4s123ms 21 2 3s884ms 1s942ms 22 4 11s819ms 2s954ms 23 1 2s663ms 2s663ms Apr 19 00 2 5s976ms 2s988ms 01 2 3s765ms 1s882ms 02 16 56s673ms 3s542ms 03 1 1s77ms 1s77ms 04 3 8s205ms 2s735ms 05 1 4s726ms 4s726ms 06 2 8s280ms 4s140ms 07 1 1s470ms 1s470ms 09 2 6s420ms 3s210ms 10 4 14s275ms 3s568ms 11 3 10s992ms 3s664ms 12 1 1s205ms 1s205ms 14 2 3s780ms 1s890ms 15 3 7s163ms 2s387ms 16 31 2m1s 3s919ms 17 67 11m32s 10s333ms 18 56 4m11s 4s499ms 19 6 20s694ms 3s449ms 20 2 6s258ms 3s129ms 22 14 30s973ms 2s212ms 23 3 7s181ms 2s393ms Apr 20 00 2 3s896ms 1s948ms 01 4 15s794ms 3s948ms 02 1 2s672ms 2s672ms 03 1 1s78ms 1s78ms 04 2 2s471ms 1s235ms 05 1 4s829ms 4s829ms 07 2 7s127ms 3s563ms 08 43 5m9s 7s206ms 09 1 3s497ms 3s497ms 10 2 4s714ms 2s357ms 13 31 2m26s 4s728ms 14 34 1m30s 2s672ms 16 41 4m45s 6s959ms 17 2 4s725ms 2s362ms 18 74 3m34s 2s895ms 19 2 4s603ms 2s301ms 20 2 7s560ms 3s780ms 21 2 7s560ms 3s780ms 23 2 6s164ms 3s82ms [ User: pubeu - Total duration: 1h33m49s - Times executed: 921 ]
-
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 = '1381425') 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 = '1381425') 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-04-14 04:00:27 Duration: 50s498ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:29 Duration: 49s588ms 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 = '1381425') 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 = '1381425') 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-04-14 02:55:59 Duration: 49s468ms Bind query: yes
13 1s8ms 54s243ms 6s970ms 493 57m16s 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 #13
Day Hour Count Duration Avg duration Apr 14 00 2 15s506ms 7s753ms 01 1 1s196ms 1s196ms 02 1 10s592ms 10s592ms 04 2 24s117ms 12s58ms 05 1 1s387ms 1s387ms 06 23 1m29s 3s909ms 09 1 1s400ms 1s400ms 10 1 1s136ms 1s136ms 11 1 1s951ms 1s951ms 12 3 25s922ms 8s640ms 13 1 5s187ms 5s187ms 16 1 1s426ms 1s426ms 19 21 6m29s 18s570ms 20 19 4m27s 14s77ms 22 2 5s695ms 2s847ms Apr 15 02 1 8s922ms 8s922ms 03 1 2s752ms 2s752ms 04 2 22s219ms 11s109ms 05 1 1s264ms 1s264ms 07 1 5s63ms 5s63ms 11 4 7s518ms 1s879ms 13 2 3s895ms 1s947ms 14 1 2s701ms 2s701ms 15 1 12s768ms 12s768ms 18 1 1s420ms 1s420ms 19 2 3s452ms 1s726ms 20 1 1s671ms 1s671ms 21 10 44s500ms 4s450ms 22 1 2s868ms 2s868ms Apr 16 00 1 12s985ms 12s985ms 02 2 5s479ms 2s739ms 03 2 5s118ms 2s559ms 07 7 24s567ms 3s509ms 09 2 3s877ms 1s938ms 10 1 2s648ms 2s648ms 11 2 16s718ms 8s359ms 13 4 8s381ms 2s95ms 15 2 10s216ms 5s108ms 17 2 14s272ms 7s136ms 18 3 6s862ms 2s287ms 19 3 14s898ms 4s966ms 20 1 2s294ms 2s294ms 21 1 1s12ms 1s12ms 23 3 24s177ms 8s59ms Apr 17 00 2 6s261ms 3s130ms 01 6 17s575ms 2s929ms 03 1 4s370ms 4s370ms 04 1 1s416ms 1s416ms 05 2 14s793ms 7s396ms 06 1 5s672ms 5s672ms 07 1 6s454ms 6s454ms 08 2 12s605ms 6s302ms 09 1 1s78ms 1s78ms 13 1 2s826ms 2s826ms 14 2 13s537ms 6s768ms 15 2 12s236ms 6s118ms 18 1 8s299ms 8s299ms 19 1 2s146ms 2s146ms 20 1 12s693ms 12s693ms 22 1 1s483ms 1s483ms 23 2 4s929ms 2s464ms Apr 18 01 57 9m7s 9s600ms 02 12 4m9s 20s808ms 03 5 35s945ms 7s189ms 04 2 15s394ms 7s697ms 08 1 1s71ms 1s71ms 09 2 4s369ms 2s184ms 11 1 11s262ms 11s262ms 12 2 9s421ms 4s710ms 13 2 9s825ms 4s912ms 15 2 4s30ms 2s15ms 17 1 6s873ms 6s873ms 18 1 5s270ms 5s270ms 20 4 11s430ms 2s857ms 22 1 7s878ms 7s878ms Apr 19 00 1 2s624ms 2s624ms 01 1 8s236ms 8s236ms 02 4 15s109ms 3s777ms 03 5 31s604ms 6s320ms 04 1 12s774ms 12s774ms 05 1 4s758ms 4s758ms 06 1 2s267ms 2s267ms 07 1 1s312ms 1s312ms 08 4 43s816ms 10s954ms 10 1 1s261ms 1s261ms 12 2 2s283ms 1s141ms 15 1 8s536ms 8s536ms 16 4 7s269ms 1s817ms 17 1 2s732ms 2s732ms 18 3 32s952ms 10s984ms 19 4 14s269ms 3s567ms 20 1 2s24ms 2s24ms 21 2 7s219ms 3s609ms 22 2 7s840ms 3s920ms 23 5 25s652ms 5s130ms Apr 20 00 22 1m39s 4s508ms 03 1 1s222ms 1s222ms 04 1 12s394ms 12s394ms 06 1 1s301ms 1s301ms 07 1 12s552ms 12s552ms 08 14 1m57s 8s361ms 09 1 12s730ms 12s730ms 10 2 18s883ms 9s441ms 11 3 6s407ms 2s135ms 13 42 4m17s 6s120ms 14 38 4m13s 6s678ms 15 2 14s841ms 7s420ms 16 1 2s518ms 2s518ms 17 3 15s146ms 5s48ms 18 41 2m36s 3s805ms 19 2 6s834ms 3s417ms 20 1 1s87ms 1s87ms 21 3 22s15ms 7s338ms 23 3 25s557ms 8s519ms [ User: pubeu - Total duration: 23m40s - Times executed: 194 ]
-
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 = '2052979') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-14 19:39:33 Duration: 54s243ms 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 = '2063367') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 01:55:42 Duration: 41s69ms 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 = '2061611') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort LIMIT 50;
Date: 2024-04-18 02:30:51 Duration: 38s859ms Database: ctdprd51 User: pubeu Bind query: yes
14 1s1ms 44s555ms 6s898ms 2,888 5h32m3s 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 #14
Day Hour Count Duration Avg duration Apr 14 00 20 2m3s 6s164ms 01 2 9s478ms 4s739ms 02 325 51m23s 9s487ms 03 54 5m2s 5s595ms 04 187 28m25s 9s122ms 05 29 4m9s 8s610ms 06 24 1m31s 3s812ms 08 80 11m36s 8s703ms 09 72 9m41s 8s79ms 10 28 1m56s 4s153ms 15 330 41m21s 7s519ms 16 40 1m58s 2s969ms 18 299 38m57s 7s817ms 19 104 12m 6s926ms 20 191 25m9s 7s904ms 21 168 22m5s 7s888ms Apr 15 04 196 17m26s 5s340ms 06 30 1m33s 3s101ms 07 71 4m8s 3s506ms 08 1 1s845ms 1s845ms 09 15 55s272ms 3s684ms 10 17 56s741ms 3s337ms 17 3 6s293ms 2s97ms 21 5 14s402ms 2s880ms 22 1 2s813ms 2s813ms Apr 16 00 22 1m33s 4s262ms 02 5 15s705ms 3s141ms 05 27 1m52s 4s169ms 08 42 2m4s 2s971ms 09 13 39s220ms 3s16ms 11 2 7s875ms 3s937ms 15 1 1s194ms 1s194ms 17 20 56s678ms 2s833ms 20 16 42s799ms 2s674ms 23 1 1s871ms 1s871ms Apr 17 04 1 1s798ms 1s798ms 10 1 1s835ms 1s835ms 14 1 1s746ms 1s746ms 15 3 6s932ms 2s310ms 18 1 1s324ms 1s324ms 22 1 1s750ms 1s750ms 23 1 3s258ms 3s258ms Apr 18 01 69 5m19s 4s635ms 02 14 48s885ms 3s491ms 06 1 1s740ms 1s740ms 07 4 21s52ms 5s263ms 08 1 1s723ms 1s723ms 09 1 2s6ms 2s6ms 11 1 5s843ms 5s843ms 16 1 3s247ms 3s247ms 17 1 1s986ms 1s986ms 19 1 1s984ms 1s984ms 20 1 3s266ms 3s266ms 23 3 8s777ms 2s925ms Apr 19 02 9 30s772ms 3s419ms 03 1 1s769ms 1s769ms 04 3 5s820ms 1s940ms 06 1 5s977ms 5s977ms 07 1 1s736ms 1s736ms 11 1 5s992ms 5s992ms 14 1 2s778ms 2s778ms 15 1 3s299ms 3s299ms 16 46 3m20s 4s358ms 17 60 9m18s 9s314ms 18 33 2m40s 4s869ms 19 4 7s552ms 1s888ms 22 8 25s587ms 3s198ms 23 1 1s220ms 1s220ms Apr 20 03 1 1s968ms 1s968ms 05 2 7s559ms 3s779ms 08 39 5m9s 7s926ms 10 1 6s17ms 6s17ms 13 23 2m27s 6s415ms 14 13 57s259ms 4s404ms 15 1 2s779ms 2s779ms 16 39 5m6s 7s863ms 17 1 1s304ms 1s304ms 18 48 2m29s 3s122ms 22 1 3s276ms 3s276ms 23 1 2s821ms 2s821ms [ User: pubeu - Total duration: 1h12m42s - Times executed: 809 ]
-
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 = '1381425'))) 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-04-14 04:00:20 Duration: 44s555ms 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 = '1381425'))) 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-04-14 02:56:25 Duration: 43s777ms 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 = '1381425'))) 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-04-14 04:00:10 Duration: 43s405ms Database: ctdprd51 User: pubeu Bind query: yes
15 3s826ms 46s859ms 4s440ms 303 22m25s 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 Apr 14 00 1 3s878ms 3s878ms 01 1 5s645ms 5s645ms 03 3 26s559ms 8s853ms 07 2 7s976ms 3s988ms 08 2 8s823ms 4s411ms 09 2 7s994ms 3s997ms 10 2 8s90ms 4s45ms 11 1 4s84ms 4s84ms 12 1 4s54ms 4s54ms 13 3 12s215ms 4s71ms 14 2 8s388ms 4s194ms 15 2 50s914ms 25s457ms 18 4 15s913ms 3s978ms 19 2 8s92ms 4s46ms 21 15 1m2s 4s144ms 22 15 1m1s 4s71ms 23 1 3s958ms 3s958ms Apr 15 00 11 44s748ms 4s68ms 01 2 8s42ms 4s21ms 02 2 8s568ms 4s284ms 03 7 28s886ms 4s126ms 04 3 12s299ms 4s99ms 06 1 4s406ms 4s406ms 07 1 4s128ms 4s128ms 08 2 8s186ms 4s93ms 09 1 3s938ms 3s938ms 10 2 8s38ms 4s19ms 11 1 3s999ms 3s999ms 12 1 4s91ms 4s91ms 13 3 12s227ms 4s75ms 14 1 4s259ms 4s259ms 17 1 4s115ms 4s115ms 19 2 8s284ms 4s142ms 22 9 36s735ms 4s81ms 23 4 16s484ms 4s121ms Apr 16 02 4 17s2ms 4s250ms 03 1 3s998ms 3s998ms 04 1 3s969ms 3s969ms 05 1 3s982ms 3s982ms 07 4 16s446ms 4s111ms 08 2 8s507ms 4s253ms 09 6 25s594ms 4s265ms 10 1 3s917ms 3s917ms 11 1 3s949ms 3s949ms 12 5 20s208ms 4s41ms 13 2 8s292ms 4s146ms 14 1 4s97ms 4s97ms 15 1 3s990ms 3s990ms 16 2 8s57ms 4s28ms 20 1 4s389ms 4s389ms 23 1 4s32ms 4s32ms Apr 17 01 4 15s827ms 3s956ms 03 10 41s601ms 4s160ms 04 26 1m45s 4s49ms 05 1 4s130ms 4s130ms 08 2 8s361ms 4s180ms 09 1 4s13ms 4s13ms 10 3 12s27ms 4s9ms 11 2 8s622ms 4s311ms 14 2 8s203ms 4s101ms 15 2 7s988ms 3s994ms 16 1 4s178ms 4s178ms 21 2 7s949ms 3s974ms 22 1 4s136ms 4s136ms Apr 18 01 3 27s699ms 9s233ms 02 6 30s569ms 5s94ms 03 3 12s104ms 4s34ms 05 5 20s678ms 4s135ms 06 7 28s754ms 4s107ms 07 3 25s160ms 8s386ms 08 2 8s95ms 4s47ms 09 4 16s275ms 4s68ms 10 2 8s417ms 4s208ms 12 2 8s183ms 4s91ms 13 1 4s78ms 4s78ms 15 2 7s987ms 3s993ms 16 1 3s931ms 3s931ms 19 1 4s20ms 4s20ms 21 2 8s350ms 4s175ms 22 1 4s224ms 4s224ms 23 1 4s15ms 4s15ms Apr 19 00 2 9s596ms 4s798ms 02 2 8s29ms 4s14ms 03 1 4s125ms 4s125ms 04 1 4s86ms 4s86ms 05 3 11s839ms 3s946ms 06 1 4s23ms 4s23ms 07 3 12s212ms 4s70ms 09 3 12s121ms 4s40ms 10 1 4s58ms 4s58ms 12 2 8s155ms 4s77ms 13 1 4s37ms 4s37ms 14 1 4s38ms 4s38ms 15 2 8s91ms 4s45ms 16 1 3s976ms 3s976ms Apr 20 01 2 7s999ms 3s999ms 04 2 8s116ms 4s58ms 06 2 8s20ms 4s10ms 07 1 4s54ms 4s54ms 09 3 12s36ms 4s12ms 11 1 4s12ms 4s12ms 13 3 11s828ms 3s942ms 14 5 20s372ms 4s74ms 15 3 12s160ms 4s53ms 16 3 12s197ms 4s65ms 17 1 4s20ms 4s20ms 18 1 17s620ms 17s620ms 20 1 4s53ms 4s53ms 21 1 4s92ms 4s92ms [ User: pubeu - Total duration: 7m27s - Times executed: 102 ]
-
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 = '1272350') 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 = '1272350') 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-04-14 15:03:49 Duration: 46s859ms 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 = '1283855') 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 = '1283855') 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-04-18 01:54:11 Duration: 17s635ms 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 = '1326972') 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 = '1326972') 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-04-20 18:43:29 Duration: 17s620ms Bind query: yes
16 1s1ms 40s752ms 4s280ms 191 13m37s select distinct associatedterm.nm || ? || o.cd || ? || associatedterm.nm_html || ? || associatedterm.acc_txt || ? || associatedterm.acc_db_cd as associatedterm, associatedterm.id associatedtermid, ptr.ixn_id ixnid, associatedterm.object_type_id || ? || associatedterm.nm_sort associatedtermnmsort, coalesce(associatedterm.secondary_nm, ?) casrn, phenotypeterm.nm || ? || ? || ? || phenotypeterm.nm_html || ? || phenotypeterm.acc_txt || ? || phenotypeterm.acc_db_cd as phenotype, phenotypeterm.id phenotypeid, ( select string_agg(distinct taxonterm.nm || ? || ? || ? || taxonterm.nm_html || ? || taxonterm.acc_txt || ? || taxonterm.acc_db_cd || ? || coalesce(taxonterm.secondary_nm, ?), ?)) as taxonterms, ( select string_agg(distinct anatomyterm.nm_html || ? || anatomyterm.acc_txt || ? || ia.level_seq || ? || anatomyterm.acc_db_cd || ? || anatomyterm.nm, ?)) as anatomyterms, count(distinct taxonterm.nm) taxoncount, i.ixn_prose_html ixnprosehtml, i.ixn_prose_txt ixnprose, i.sort_txt ixnsort, ( select string_agg(distinct r.acc_txt, ?)) as references, count(distinct ptr.reference_id) refcount, pt.indirect_term_qty inferredcount, count(*) over () fullrowcount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedterm on ptr.term_id = associatedterm.id inner join term phenotypeterm on ptr.phenotype_id = phenotypeterm.id left outer join term taxonterm on ptr.taxon_id = taxonterm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedterm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyterm on ia.anatomy_id = anatomyterm.id where ptr.ixn_id = any (array (( select ixn_id from ixn_anatomy where anatomy_id in ( 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 #16
Day Hour Count Duration Avg duration Apr 14 02 9 27s659ms 3s73ms 08 11 1m6s 6s22ms Apr 15 06 5 12s329ms 2s465ms Apr 16 03 1 1s101ms 1s101ms 06 1 1s320ms 1s320ms 08 6 15s51ms 2s508ms Apr 18 01 42 2m51s 4s86ms 02 1 1s150ms 1s150ms Apr 19 17 7 20s83ms 2s869ms 18 1 1s551ms 1s551ms 20 1 1s306ms 1s306ms Apr 20 08 2 9s591ms 4s795ms 13 26 2m58s 6s877ms 16 41 3m24s 4s981ms 18 37 1m45s 2s852ms [ User: pubeu - Total duration: 6m27s - Times executed: 98 ]
-
select distinct /* ChemPhenotypesAssnsDAO */ associatedTerm.nm || '^' || o.cd || '^' || associatedTerm.nm_html || '^' || associatedTerm.acc_txt || '^' || associatedTerm.acc_db_cd as associatedTerm, associatedTerm.id associatedTermId, ptr.ixn_id ixnId, associatedTerm.object_type_id || '|' || associatedTerm.nm_sort associatedTermNmSort, COALESCE(associatedTerm.secondary_nm, '') casRN, phenotypeTerm.nm || '^' || 'go' || '^' || phenotypeTerm.nm_html || '^' || phenotypeTerm.acc_txt || '^' || phenotypeTerm.acc_db_cd as phenotype, phenotypeTerm.id phenotypeId, ( SELECT STRING_AGG(distinct taxonTerm.nm || '^' || 'taxon' || '^' || taxonTerm.nm_html || '^' || taxonTerm.acc_txt || '^' || taxonTerm.acc_db_cd || '^' || COALESCE(taxonTerm.secondary_nm, ''), '|')) as taxonTerms, ( SELECT STRING_AGG(distinct anatomyTerm.nm_html || '^' || anatomyTerm.acc_txt || '^' || ia.level_seq || '^' || anatomyTerm.acc_db_cd || '^' || anatomyTerm.nm, '|')) as anatomyTerms, COUNT(DISTINCT taxonTerm.nm) taxonCount, i.ixn_prose_html ixnProseHtml, i.ixn_prose_txt ixnProse, i.sort_txt ixnSort, ( SELECT STRING_AGG(distinct r.acc_txt, '|')) as references, COUNT(DISTINCT ptr.reference_id) refCount, pt.indirect_term_qty inferredCount, COUNT(*) OVER () fullRowCount from phenotype_term_reference ptr inner join phenotype_term pt on ptr.term_id = pt.term_id and ptr.phenotype_id = pt.phenotype_id inner join term associatedTerm on ptr.term_id = associatedTerm.id inner join term phenotypeTerm on ptr.phenotype_id = phenotypeTerm.id left outer join term taxonTerm on ptr.taxon_id = taxonTerm.id inner join reference r on ptr.reference_id = r.id inner join ixn i on ptr.ixn_id = i.id inner join object_type o on associatedTerm.object_type_id = o.id left outer join ixn_anatomy ia on ptr.ixn_id = ia.ixn_id left outer join term anatomyTerm on ia.anatomy_id = anatomyTerm.id where ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 16:53:05 Duration: 40s752ms 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 ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 13:43:42 Duration: 36s498ms 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 ptr.ixn_id = ANY (ARRAY (( select ixn_id from ixn_anatomy where anatomy_id in ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2068141')))) 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-04-20 16:53:09 Duration: 32s793ms Database: ctdprd51 User: pubeu Bind query: yes
17 1s2ms 44s346ms 3s923ms 486 31m46s 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 chemnmsort limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 14 00 10 2m15s 13s528ms 01 5 32s328ms 6s465ms 02 26 2m4s 4s785ms 03 6 14s880ms 2s480ms 04 12 53s77ms 4s423ms 05 4 23s913ms 5s978ms 06 4 18s117ms 4s529ms 08 13 46s817ms 3s601ms 09 15 1m9s 4s603ms 10 1 2s2ms 2s2ms 13 1 1s219ms 1s219ms 15 29 1m54s 3s949ms 18 21 1m21s 3s898ms 19 9 29s903ms 3s322ms 20 18 1m7s 3s771ms 21 16 2m 7s510ms 23 2 5s278ms 2s639ms Apr 15 03 5 11s963ms 2s392ms 04 12 29s69ms 2s422ms 09 7 42s298ms 6s42ms 10 5 36s8ms 7s201ms 17 1 5s234ms 5s234ms Apr 16 00 5 41s264ms 8s252ms 02 3 21s703ms 7s234ms 05 10 1m2s 6s201ms 08 5 22s283ms 4s456ms 09 4 31s213ms 7s803ms 17 3 3s913ms 1s304ms 20 9 58s817ms 6s535ms Apr 18 01 133 4m39s 2s100ms 02 4 7s64ms 1s766ms Apr 19 02 1 1s263ms 1s263ms 04 1 1s964ms 1s964ms 16 20 43s760ms 2s188ms 17 16 53s340ms 3s333ms 18 6 18s470ms 3s78ms 19 1 1s723ms 1s723ms Apr 20 08 24 2m16s 5s700ms 13 3 7s405ms 2s468ms 14 5 16s574ms 3s314ms 16 6 22s588ms 3s764ms 18 5 9s653ms 1s930ms [ User: pubeu - Total duration: 12m26s - Times executed: 203 ]
-
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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:28 Duration: 44s346ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-14 21:16:15 Duration: 40s981ms 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 = '1410287') or exposureMarkerTerm.id in ( select descendant_object_id from dag_path where ancestor_object_id = '1410287') 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-04-18 01:43:20 Duration: 24s182ms Database: ctdprd51 User: pubeu Bind query: yes
18 1s5ms 15s521ms 3s756ms 292 18m16s select count(*) from gene_disease gd where gd.disease_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 14 00 1 2s832ms 2s832ms 02 1 11s886ms 11s886ms 04 3 7s85ms 2s361ms 19 19 1m48s 5s701ms 20 10 1m1s 6s161ms Apr 15 02 2 4s911ms 2s455ms 03 9 18s837ms 2s93ms 04 5 15s745ms 3s149ms Apr 18 01 89 5m17s 3s566ms 02 15 1m45s 7s2ms Apr 19 16 2 7s384ms 3s692ms 17 1 1s5ms 1s5ms 18 2 11s181ms 5s590ms Apr 20 08 11 1m4s 5s876ms 13 42 2m36s 3s722ms 14 52 2m16s 2s617ms 16 2 7s703ms 3s851ms 18 26 58s729ms 2s258ms [ User: pubeu - Total duration: 2m52s - Times executed: 53 ]
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2063106');
Date: 2024-04-14 19:39:15 Duration: 15s521ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2063106');
Date: 2024-04-14 19:38:56 Duration: 14s62ms Bind query: yes
-
SELECT /* DiseaseGeneAssnsDAO.rowCount */ COUNT(*) FROM gene_disease gd WHERE gd.disease_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '2054575');
Date: 2024-04-14 19:39:34 Duration: 13s218ms Bind query: yes
19 1s1ms 14s624ms 3s284ms 1,946 1h46m32s select c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposurereferencecount, case when cd.curated_reference_qty > ? then ( select string_agg(a.action_type_cd || ? || a.action_type_nm, ?) from chem_disease_axn a where a.chem_id = cd.chem_id and a.disease_id = cd.disease_id) else null end actiontypes from chem_disease cd inner join term c on cd.chem_id = c.id inner join term d on cd.disease_id = d.id where cd.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) order by actiontypes, cd.network_score desc nulls last, d.nm_sort, c.nm_sort limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 14 00 13 32s824ms 2s524ms 01 2 2s898ms 1s449ms 02 229 16m39s 4s365ms 03 55 2m48s 3s54ms 04 149 9m30s 3s827ms 05 19 1m16s 4s 06 8 16s734ms 2s91ms 08 54 3m34s 3s974ms 09 43 1m55s 2s692ms 10 10 19s773ms 1s977ms 11 1 1s238ms 1s238ms 12 1 1s795ms 1s795ms 14 1 1s776ms 1s776ms 15 219 12m34s 3s447ms 16 12 19s614ms 1s634ms 17 1 1s230ms 1s230ms 18 214 12m58s 3s636ms 19 76 4m41s 3s700ms 20 154 9m17s 3s621ms 21 134 7m59s 3s575ms Apr 15 02 1 1s800ms 1s800ms 04 80 3m47s 2s849ms 06 12 18s633ms 1s552ms 07 15 32s636ms 2s175ms 08 2 3s681ms 1s840ms 09 4 7s97ms 1s774ms 10 7 11s348ms 1s621ms 13 2 2s478ms 1s239ms 16 1 1s297ms 1s297ms 17 1 1s274ms 1s274ms 18 1 1s778ms 1s778ms 21 1 1s883ms 1s883ms 23 2 3s150ms 1s575ms Apr 16 00 11 23s75ms 2s97ms 02 3 5s129ms 1s709ms 05 15 40s56ms 2s670ms 06 1 1s809ms 1s809ms 08 14 24s59ms 1s718ms 09 3 5s244ms 1s748ms 11 1 1s246ms 1s246ms 13 2 3s546ms 1s773ms 14 1 1s785ms 1s785ms 15 2 3s575ms 1s787ms 16 1 1s823ms 1s823ms 17 6 11s309ms 1s884ms 18 2 2s455ms 1s227ms 20 8 13s379ms 1s672ms Apr 17 00 3 5s403ms 1s801ms 01 1 1s225ms 1s225ms 02 1 1s256ms 1s256ms 04 1 1s811ms 1s811ms 05 1 1s237ms 1s237ms 06 1 1s802ms 1s802ms 08 1 1s259ms 1s259ms 10 1 1s223ms 1s223ms 11 2 3s8ms 1s504ms 14 2 3s128ms 1s564ms 18 1 1s806ms 1s806ms 19 2 3s30ms 1s515ms 20 2 3s586ms 1s793ms 22 2 3s24ms 1s512ms Apr 18 00 2 3s 1s500ms 01 34 1m31s 2s705ms 02 13 19s800ms 1s523ms 03 1 1s843ms 1s843ms 05 1 1s238ms 1s238ms 06 1 1s783ms 1s783ms 07 2 3s1ms 1s500ms 08 1 1s797ms 1s797ms 09 1 1s826ms 1s826ms 11 1 1s226ms 1s226ms 12 1 1s787ms 1s787ms 13 4 6s624ms 1s656ms 14 1 1s236ms 1s236ms 15 1 1s260ms 1s260ms 16 1 1s795ms 1s795ms 17 1 1s779ms 1s779ms 18 1 1s784ms 1s784ms 19 1 1s246ms 1s246ms 22 1 1s775ms 1s775ms 23 2 2s465ms 1s232ms Apr 19 00 1 1s780ms 1s780ms 01 1 1s780ms 1s780ms 02 4 7s470ms 1s867ms 03 1 1s238ms 1s238ms 04 4 6s712ms 1s678ms 07 2 2s439ms 1s219ms 09 2 3s54ms 1s527ms 10 2 3s102ms 1s551ms 11 1 1s255ms 1s255ms 12 1 1s763ms 1s763ms 13 2 2s484ms 1s242ms 15 1 1s246ms 1s246ms 16 27 54s606ms 2s22ms 17 45 3m8s 4s190ms 18 35 1m7s 1s941ms 19 1 1s783ms 1s783ms 20 1 1s232ms 1s232ms 21 2 3s43ms 1s521ms 22 4 6s237ms 1s559ms 23 1 1s247ms 1s247ms Apr 20 04 2 3s14ms 1s507ms 05 1 1s803ms 1s803ms 07 1 1s236ms 1s236ms 08 33 1m48s 3s280ms 09 1 1s242ms 1s242ms 11 2 3s78ms 1s539ms 13 18 40s289ms 2s238ms 14 13 25s474ms 1s959ms 15 1 1s780ms 1s780ms 16 29 1m24s 2s906ms 18 16 28s24ms 1s751ms 19 2 2s461ms 1s230ms 20 2 2s476ms 1s238ms 23 1 1s232ms 1s232ms [ User: pubeu - Total duration: 19m11s - Times executed: 467 ]
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 15:04:22 Duration: 14s624ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 04:00:09 Duration: 14s495ms Bind query: yes
-
SELECT /* ChemDiseaseAssnsDAO */ c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemid, d.nm diseasenm, d.acc_txt diseaseacc, d.acc_db_cd diseaseaccdbcd, d.id diseaseid, cd.network_score networkscore, cd.indirect_gene_qty inferredcount, cd.reference_qty referencecount, cd.exposure_reference_qty exposureReferenceCount, CASE WHEN cd.curated_reference_qty > 0 THEN ( SELECT STRING_AGG(a.action_type_cd || '^' || a.action_type_nm, '|') FROM chem_disease_axn a WHERE a.chem_id = cd.chem_id AND a.disease_id = cd.disease_id) ELSE NULL END actiontypes FROM chem_disease cd INNER JOIN term c ON cd.chem_id = c.id INNER JOIN term d ON cd.disease_id = d.id WHERE cd.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1381425') ORDER BY actionTypes, cd.network_score DESC NULLS LAST, d.nm_sort, c.nm_sort LIMIT 50;
Date: 2024-04-14 02:54:11 Duration: 14s232ms Database: ctdprd51 User: pubeu Bind query: yes
20 1s4ms 22s58ms 2s919ms 332 16m9s with recursive sub_node ( object_id, id, path, lvl ) as ( select n.object_id, n.id, array[n.nm_sort], ? from dag_node n where n.object_id = ? union all select n.object_id, n.id, cast(path || n.nm_sort as varchar(?)[]), sn.lvl + ? from dag_node n inner join sub_node sn on (n.parent_id = sn.id)) select distinct t.nm prinm, t.nm_html prinmhtml, t.secondary_nm secondarynm, t.acc_db_cd accdbcd, t.acc_txt termacc, t.is_leaf isleaf, t.has_chems haschems, t.has_diseases hasdiseases, t.has_exposures hasexposures, t.has_genes hasgenes, sn.lvl, sn.path, max(sn.lvl) over () maxlvl, t.has_phenotypes hasphenotypes from sub_node sn inner join term t on sn.object_id = t.id where sn.lvl <= ? order by sn.path;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 14 00 1 1s94ms 1s94ms 02 98 6m18s 3s858ms 03 3 7s927ms 2s642ms 04 14 32s149ms 2s296ms 05 57 3m45s 3s950ms 08 5 8s423ms 1s684ms 09 9 17s718ms 1s968ms 11 1 2s5ms 2s5ms 12 2 3s827ms 1s913ms 15 26 50s56ms 1s925ms 18 15 28s83ms 1s872ms 19 7 14s834ms 2s119ms 20 19 35s256ms 1s855ms 21 9 15s783ms 1s753ms Apr 15 04 6 10s301ms 1s716ms 05 4 8s855ms 2s213ms 22 3 10s20ms 3s340ms Apr 16 04 2 5s755ms 2s877ms 05 4 8s842ms 2s210ms Apr 17 05 4 8s815ms 2s203ms 11 1 3s308ms 3s308ms Apr 18 01 7 12s255ms 1s750ms 02 1 3s641ms 3s641ms 05 4 8s967ms 2s241ms 13 1 1s904ms 1s904ms Apr 19 04 1 1s801ms 1s801ms 05 4 8s864ms 2s216ms 17 3 3s505ms 1s168ms 18 1 1s71ms 1s71ms 22 1 3s377ms 3s377ms Apr 20 05 4 8s846ms 2s211ms 08 4 6s770ms 1s692ms 13 4 9s177ms 2s294ms 14 1 4s834ms 4s834ms 16 4 10s810ms 2s702ms 18 2 7s88ms 3s544ms [ User: pubeu - Total duration: 3m9s - Times executed: 77 ]
[ User: qaeu - Total duration: 23s831ms - Times executed: 7 ]
-
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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 05:48:10 Duration: 22s58ms 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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 02:20:11 Duration: 20s952ms 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 = '648460' 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 <= 4 ORDER BY sn.path;
Date: 2024-04-14 05:47:57 Duration: 20s642ms Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 8s504ms 1 8s504ms 8s504ms 8s504ms SELECT /* BasicCountsDAO gen */ ii.cd;Times Reported Time consuming prepare #1
Day Hour Count Duration Avg duration Apr 20 01 1 8s504ms 8s504ms -
SELECT /* BasicCountsDAO gen */ ii.cd;
Date: 2024-04-18 01:56:31 Duration: 8s504ms Database: postgres
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 56s847ms 48 1s21ms 1s367ms 1s184ms SELECT DISTINCT stressorTerm.nm as chemNm;Times Reported Time consuming bind #1
Day Hour Count Duration Avg duration Apr 20 09 1 1s21ms 1s21ms 11 1 1s367ms 1s367ms 12 2 2s338ms 1s169ms Apr 20 00 1 1s52ms 1s52ms 03 4 4s762ms 1s190ms 18 2 2s197ms 1s98ms Apr 20 00 1 1s31ms 1s31ms 20 2 2s427ms 1s213ms Apr 20 01 4 4s469ms 1s117ms Apr 20 16 12 14s986ms 1s248ms 17 3 3s387ms 1s129ms 18 3 3s79ms 1s26ms Apr 20 13 3 3s286ms 1s95ms 14 6 7s925ms 1s320ms 18 3 3s515ms 1s171ms -
SELECT DISTINCT stressorTerm.nm as chemNm;
Date: 2024-04-13 11:26:11 Duration: 1s367ms Database: postgres parameters: $1 = '1419075'
-
SELECT DISTINCT stressorTerm.nm as chemNm;
Date: 2024-04-20 14:22:42 Duration: 1s354ms Database: postgres parameters: $1 = '2062264'
-
SELECT DISTINCT stressorTerm.nm as chemNm;
Date: 2024-04-19 16:28:33 Duration: 1s351ms Database: postgres parameters: $1 = '2055753', $2 = '2055753'
2 42s179ms 39 1s2ms 1s340ms 1s81ms SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' ||;Times Reported Time consuming bind #2
Day Hour Count Duration Avg duration 08 1 1s340ms 1s340ms 23 1 1s118ms 1s118ms 01 2 2s133ms 1s66ms 02 2 2s146ms 1s73ms 20 2 2s206ms 1s103ms 03 2 2s176ms 1s88ms 08 2 2s5ms 1s2ms 23 1 1s32ms 1s32ms 00 1 1s34ms 1s34ms 01 1 1s88ms 1s88ms 15 3 3s123ms 1s41ms 16 3 3s386ms 1s128ms 17 3 3s197ms 1s65ms 12 3 3s336ms 1s112ms 13 3 3s354ms 1s118ms 17 9 9s498ms 1s55ms -
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' ||;
Date: 2024-04-13 09:13:08 Duration: 1s340ms Database: postgres parameters: $1 = '1419075', $2 = '1419075', $3 = 'chem%'
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' ||;
Date: 2024-04-19 17:56:21 Duration: 1s128ms Database: postgres parameters: $1 = '1419075', $2 = '1419075', $3 = 'chem%'
-
SELECT /* ChemExposureStudiesAssnsDAO */ e.reference_acc_txt || '^' ||;
Date: 2024-04-14 02:56:52 Duration: 1s121ms Database: postgres parameters: $1 = '1300382', $2 = '1300382', $3 = 'chem%'
3 25s890ms 16 1s60ms 2s274ms 1s618ms SELECT /* GoGenesDAO */ sq.*;Times Reported Time consuming bind #3
Day Hour Count Duration Avg duration 08 2 4s530ms 2s265ms 00 5 6s251ms 1s250ms 12 9 15s107ms 1s678ms -
SELECT /* GoGenesDAO */ sq.*;
Date: 2024-04-20 13:43:17 Duration: 2s274ms Database: postgres parameters: $1 = '1206427'
-
SELECT /* GoGenesDAO */ sq.*;
Date: 2024-04-14 09:47:39 Duration: 2s265ms Database: postgres parameters: $1 = '1206427'
-
SELECT /* GoGenesDAO */ sq.*;
Date: 2024-04-20 13:43:04 Duration: 1s622ms Database: postgres parameters: $1 = '1206427'
4 3s235ms 3 1s78ms 1s78ms 1s78ms SELECT /* GeneDiseaseRefsDAO */ ;Times Reported Time consuming bind #4
Day Hour Count Duration Avg duration 13 3 3s235ms 1s78ms -
SELECT /* GeneDiseaseRefsDAO */ ;
Date: 2024-04-20 13:51:25 Duration: 1s78ms Database: postgres parameters: $1 = '1230239'
5 3s36ms 3 1s12ms 1s12ms 1s12ms select *, COUNT(*) OVER () as fullRowCount from;Times Reported Time consuming bind #5
Day Hour Count Duration Avg duration 17 3 3s36ms 1s12ms -
select *, COUNT(*) OVER () as fullRowCount from;
Date: 2024-04-20 18:42:34 Duration: 1s12ms Database: postgres parameters: $1 = '2067008', $2 = '2067008'
6 1s252ms 1 1s252ms 1s252ms 1s252ms SELECT /* ReferenceCitedDiseasesDAO */ ;Times Reported Time consuming bind #6
Day Hour Count Duration Avg duration 01 1 1s252ms 1s252ms -
SELECT /* ReferenceCitedDiseasesDAO */ ;
Date: 2024-04-18 02:30:01 Duration: 1s252ms Database: postgres parameters: $1 = '1236071'
7 1s88ms 1 1s88ms 1s88ms 1s88ms SELECT /* ReferenceCitedGenesDAO */ ;Times Reported Time consuming bind #7
Day Hour Count Duration Avg duration 00 1 1s88ms 1s88ms -
SELECT /* ReferenceCitedGenesDAO */ ;
Date: 2024-04-18 01:53:58 Duration: 1s88ms Database: postgres parameters: $1 = '2056570', $2 = '2056570'
8 0ms 418 0ms 0ms 0ms ;Times Reported Time consuming bind #8
Day Hour Count Duration Avg duration Apr 13 11 2 0ms 0ms 12 6 0ms 0ms 16 1 0ms 0ms Apr 14 02 28 0ms 0ms 03 4 0ms 0ms 04 20 0ms 0ms 05 6 0ms 0ms 06 2 0ms 0ms 08 10 0ms 0ms 09 8 0ms 0ms 15 44 0ms 0ms 18 26 0ms 0ms 19 14 0ms 0ms 20 22 0ms 0ms 21 8 0ms 0ms Apr 15 03 1 0ms 0ms 04 2 0ms 0ms 05 2 0ms 0ms 10 6 0ms 0ms 11 12 0ms 0ms 12 10 0ms 0ms 13 24 0ms 0ms 14 28 0ms 0ms 15 16 0ms 0ms Apr 16 01 1 0ms 0ms 02 1 0ms 0ms 06 22 0ms 0ms 07 8 0ms 0ms 10 4 0ms 0ms 11 4 0ms 0ms 12 6 0ms 0ms 13 2 0ms 0ms 14 2 0ms 0ms Apr 17 16 2 0ms 0ms Apr 18 01 8 0ms 0ms 02 1 0ms 0ms 06 6 0ms 0ms 15 2 0ms 0ms 16 2 0ms 0ms 21 4 0ms 0ms 23 2 0ms 0ms Apr 19 12 3 0ms 0ms 13 3 0ms 0ms 15 3 0ms 0ms 16 3 0ms 0ms Apr 20 08 9 0ms 0ms 13 12 0ms 0ms 14 3 0ms 0ms 16 3 0ms 0ms [ User: pubeu - Total duration: 2m29s - Times executed: 32 ]
-
;
Date: Duration: 0ms Database: postgres User: ctdprd51 Remote: pubeu parameters: $1 = '2055753', $2 = '2055753'
-
Events
Log levels
Key values
- 564,312 Log entries
Events distribution
Key values
- 0 PANIC entries
- 64 FATAL entries
- 109 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 58 Max number of times the same event was reported
- 173 Total events found
Rank Times reported Error 1 58 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #1
Day Hour Count Apr 14 00 3 02 5 04 1 05 3 10 1 Apr 15 04 1 09 2 14 1 20 1 Apr 16 05 1 06 2 Apr 18 01 4 02 1 Apr 19 02 3 06 1 16 2 17 3 18 1 Apr 20 08 3 14 11 16 2 18 6 - FATAL: connection to client lost
- FATAL: connection to client lost
Statement: 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 = $1) ORDER BY actionTypes ,gd.network_score DESC NULLS LAST ,g.nm_sort ,d.nm_sort
Date: 2024-04-14 04:35:37
Statement: SELECT r.ixn_id ,edit.get_ixn_prose(r.ixn_id) ,r.reference_acc_txt ,r.taxon_acc_txt ,r.internal_note ,r.field_cd ,edit.get_ixn_xml( r.ixn_id ) ,to_char ( r.create_tm, 'mm-dd-yyyy' ) , r.evidence_cd , i.create_by FROM edit.REFERENCE_IXN r ,edit.IXN i where r.ixn_id = i.id and i.ixn_type_id = ( select id from edit.IXN_TYPE where nm = 'PHENOTYPE')
Date: 2024-04-15 14:22:22
2 57 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #2
Day Hour Count Apr 14 00 3 02 5 04 2 05 3 10 1 Apr 15 04 1 09 2 20 1 Apr 16 05 1 06 2 Apr 18 01 4 02 1 Apr 19 02 3 06 1 16 2 17 2 18 1 Apr 20 08 2 14 11 16 3 18 6 - ERROR: could not send data to client: Broken pipe
- ERROR: could not send data to client: Broken pipe
Statement: SELECT /* DiseaseGeneAssnsDAO */ d.nm diseaseNm
Date: 2024-04-14 04:35:28 Database: ctdprd51 Application: User: pubeu Remote:
Statement: 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 = $1) ORDER BY actionTypes ,gd.network_score DESC NULLS LAST ,g.nm_sort ,d.nm_sort
Date: 2024-04-14 04:35:37 Database: ctdprd51 Application: User: pubeu Remote:
3 38 ERROR: canceling statement due to user request
Times Reported Most Frequent Error / Event #3
Day Hour Count Apr 14 00 4 02 5 05 3 Apr 15 09 2 Apr 16 05 1 20 1 Apr 18 01 4 Apr 19 02 3 16 3 17 3 Apr 20 08 2 14 1 16 3 18 3 - ERROR: canceling statement due to user request
- ERROR: canceling statement due to user request
- ERROR: canceling statement due to user request
Statement: SELECT pg_database_size(datname::text) FROM pg_catalog.pg_database WHERE datistemplate = false AND datname = $1;
Date: 2024-04-14 00:54:07
Statement: SELECT row_to_json(T) FROM ( SELECT archived_count, failed_count FROM pg_stat_archiver ) T;
Date: 2024-04-14 02:54:33
Statement: SELECT count(*)
Date: 2024-04-14 02:54:33
4 5 FATAL: canceling authentication due to timeout
Times Reported Most Frequent Error / Event #4
Day Hour Count Apr 14 04 5 5 3 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #5
Day Hour Count Apr 15 14 3 6 3 ERROR: syntax error in ts"..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Apr 19 18 2 Apr 20 14 1 - ERROR: syntax error in ts"QIUA & YCCQTS< & >BVRCCW"
- ERROR: syntax error in ts"QIUA & AND & SELECT & 9259 & FROM & SELECT & SLEEP & 5 & UXKO & (-- | ) & KOXG"
- ERROR: syntax error in ts"P34<CDC2>"
Statement: SELECT /* BasicCountsDAO gen */ ii.cd ,COUNT(ii.id) cnt FROM (SELECT ot.cd ,tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops',$1) UNION SELECT 'reference' ,r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english',$2) OR r.id IN (SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $3 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $4 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $5 ) ) UNION SELECT ot.cd ,l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper( l.acc_txt ) LIKE $6 OR upper( l.acc_txt ) LIKE $7 OR upper( l.acc_txt ) LIKE $8 ) ) ii GROUP BY ii.cd
Date: 2024-04-19 18:38:03
Statement: SELECT /* BasicCountsDAO gen */ ii.cd ,COUNT(ii.id) cnt FROM (SELECT ot.cd ,tl.term_id id FROM object_type ot INNER JOIN term_label tl ON ot.id = tl.object_type_id WHERE tl.nm_fts @@ to_tsquery('common.english_nostops',$1) UNION SELECT 'reference' ,r.id FROM reference r WHERE r.title_abstract_fts @@ to_tsquery('pg_catalog.english',$2) OR r.id IN (SELECT rpr.reference_id FROM reference_party_role rpr INNER JOIN reference_party rp ON rpr.reference_party_id = rp.id WHERE (SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $3 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $4 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $5 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $6 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $7 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $8 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $9 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $10 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $11 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $12 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $13 OR SUBSTR(get_reference_party_nm_sort(rp.required_nm),1,128) LIKE $14 ) ) UNION SELECT ot.cd ,l.object_id FROM db_link l INNER JOIN object_type ot on l.object_type_id = ot.id WHERE l.type_cd = 'A' AND (upper( l.acc_txt ) LIKE $15 OR upper( l.acc_txt ) LIKE $16 OR upper( l.acc_txt ) LIKE $17 OR upper( l.acc_txt ) LIKE $18 OR upper( l.acc_txt ) LIKE $19 OR upper( l.acc_txt ) LIKE $20 OR upper( l.acc_txt ) LIKE $21 OR upper( l.acc_txt ) LIKE $22 OR upper( l.acc_txt ) LIKE $23 OR upper( l.acc_txt ) LIKE $24 OR upper( l.acc_txt ) LIKE $25 ) ) ii GROUP BY ii.cd
Date: 2024-04-19 18:38:09
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-04-20 14:29:33 Database: ctdprd51 Application: User: pubeu Remote:
7 3 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #7
Day Hour Count Apr 16 00 1 Apr 19 12 1 Apr 20 20 1 - ERROR: column "anatomytermstxt" does not exist at character 2634
- ERROR: column "anatomytermstxt" does not exist at character 2754
Statement: 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 = $1 and ptr.term_object_type_id = 4 group by associatedTerm ,associatedTermNmSort ,phenotype ,casRN ,ixnId ,ixnProseHtml ,ixnProse ,ixnSort ,associatedTermId ,phenotypeId ,inferredCount order by anatomyTermsTxt LIMIT 50
Date: 2024-04-16 00:27:41
Statement: 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 = $1 ) ) ) and ptr.term_object_type_id = 2 group by associatedTerm ,associatedTermNmSort ,phenotype ,casRN ,ixnId ,ixnProseHtml ,ixnProse ,ixnSort ,associatedTermId ,phenotypeId ,inferredCount order by anatomyTermsTxt LIMIT 50
Date: 2024-04-19 12:14:42
8 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #8
Day Hour Count Apr 15 10 1 - ERROR: duplicate key value violates unique constraint "reference_exp_ak1"
Detail: Key (reference_acc_txt, reference_acc_db_id)=(37940736, 16) already exists.
Statement: INSERT INTO edit.REFERENCE_EXP(reference_acc_txt, reference_acc_db_id, email_addr, author_summary, curator_comments, create_by, create_tm, mod_by, mod_tm ) VALUES ($1, $2, $3, $4, $5, $6, $7::timestamp, $8, $9::timestamp) returning idDate: 2024-04-15 10:08:55
9 1 ERROR: FROM pg_stat_archiver ) T
Times Reported Most Frequent Error / Event #9
Day Hour Count Apr 20 08 1 10 1 FATAL: connection to client lost 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 (...) 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 (...) ORDER BY actionTypes ,gd.network_score DESC NULLS LAST ,g.nm_sort ,d.nm_sort
Times Reported Most Frequent Error / Event #10
Day Hour Count Apr 14 04 1 - FATAL: connection to client lost 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 = ) ORDER BY actionTypes ,gd.network_score DESC NULLS LAST ,g.nm_sort ,d.nm_sort
Statement: SELECT /* DiseaseGeneAssnsDAO */
Date: 2024-04-14 04:35:28
11 1 LOG: could not send data to client: Connection reset by peer
Times Reported Most Frequent Error / Event #11
Day Hour Count Apr 15 14 1 - ERROR: could not send data to client: Connection reset by peer
Statement: SELECT r.ixn_id ,edit.get_ixn_prose(r.ixn_id) ,r.reference_acc_txt ,r.taxon_acc_txt ,r.internal_note ,r.field_cd ,edit.get_ixn_xml( r.ixn_id ) ,to_char ( r.create_tm, 'mm-dd-yyyy' ) , r.evidence_cd , i.create_by FROM edit.REFERENCE_IXN r ,edit.IXN i where r.ixn_id = i.id and i.ixn_type_id = ( select id from edit.IXN_TYPE where nm = 'PHENOTYPE')
Date: 2024-04-15 14:22:22 Database: ctdprd51 Application: User: load Remote:
12 1 ERROR: FROM pg_catalog.pg_stat_database ) T
Times Reported Most Frequent Error / Event #12
Day Hour Count Apr 19 17 1 13 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #13
Day Hour Count Apr 15 13 1