-
Global information
- Generated on Wed Jul 1 04:15:03 2026
- Log file: /project/archive/log/postgres/dbprd51/postgresql.log-20260630
- Parsed 15,866 log entries in 2s
- Log start from 2026-06-30 00:00:01 to 2026-06-30 23:59:57
-
Overview
Global Stats
- 22 Number of unique normalized queries
- 55 Number of queries
- 27m51s Total query duration
- 2026-06-30 00:09:20 First query
- 2026-06-30 22:56:52 Last query
- 1 queries/s at 2026-06-30 14:00:53 Query peak
- 27m51s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 27m51s Execute total duration
- 11 Number of events
- 4 Number of unique normalized events
- 5 Max number of times the same event was reported
- 0 Number of cancellation
- 6 Total number of automatic vacuums
- 19 Total number of automatic analyzes
- 60 Number temporary file
- 27.66 MiB Max size of temporary file
- 12.91 MiB Average size of temporary file
- 1,894 Total number of sessions
- 55 sessions at 2026-06-30 01:23:10 Session peak
- 42d5h33m30s Total duration of sessions
- 32m6s Average duration of sessions
- 0 Average queries per session
- 882ms Average queries duration per session
- 32m5s Average idle time per session
- 1,894 Total number of connections
- 9 connections/s at 2026-06-30 05:45:09 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-30 14:00:53 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-30 10:31:57 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-30 14:00:53 Date
Queries duration
Key values
- 27m51s 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) Jun 30 00 2 0ms 9m18s 4m42s 0ms 0ms 9m25s 01 0 0ms 0ms 0ms 0ms 0ms 0ms 02 0 0ms 0ms 0ms 0ms 0ms 0ms 03 0 0ms 0ms 0ms 0ms 0ms 0ms 04 0 0ms 0ms 0ms 0ms 0ms 0ms 05 3 0ms 5s562ms 5s490ms 0ms 5s397ms 5s562ms 06 9 0ms 1m52s 24s645ms 21s91ms 48s664ms 1m52s 07 0 0ms 0ms 0ms 0ms 0ms 0ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 6 0ms 7s629ms 6s427ms 5s411ms 7s627ms 7s629ms 10 10 0ms 1m52s 25s782ms 20s984ms 39s405ms 1m52s 11 0 0ms 0ms 0ms 0ms 0ms 0ms 12 0 0ms 0ms 0ms 0ms 0ms 0ms 13 2 0ms 1m23s 44s362ms 0ms 0ms 1m23s 14 10 0ms 1m52s 22s795ms 0ms 44s977ms 1m52s 15 0 0ms 0ms 0ms 0ms 0ms 0ms 16 1 0ms 5s109ms 5s109ms 0ms 0ms 5s109ms 17 0 0ms 0ms 0ms 0ms 0ms 0ms 18 9 0ms 1m53s 24s754ms 0ms 39s784ms 1m53s 19 1 0ms 10s220ms 10s220ms 0ms 0ms 10s220ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms 22 2 0ms 10s389ms 8s416ms 0ms 6s443ms 10s389ms 23 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 30 00 1 0 9m18s 0ms 0ms 9m18s 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 3 0 5s490ms 0ms 0ms 5s562ms 06 0 9 24s645ms 0ms 21s91ms 1m52s 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 6 0 6s427ms 0ms 5s411ms 7s629ms 10 1 9 25s782ms 0ms 20s984ms 1m52s 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 1 0 5s95ms 0ms 0ms 5s95ms 14 1 9 22s795ms 0ms 5s121ms 1m52s 15 0 0 0ms 0ms 0ms 0ms 16 1 0 5s109ms 0ms 0ms 5s109ms 17 0 0 0ms 0ms 0ms 0ms 18 0 9 24s754ms 0ms 0ms 1m53s 19 1 0 10s220ms 0ms 0ms 10s220ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 2 0 8s416ms 0ms 0ms 10s389ms 23 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 30 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 Jun 30 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 3 3.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 6 6.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 1 1.00 0.00% 14 0 1 1.00 0.00% 15 0 0 0.00 0.00% 16 0 1 1.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 1 1.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 2 2.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jun 30 00 75 0.02/s 01 76 0.02/s 02 87 0.02/s 03 77 0.02/s 04 81 0.02/s 05 95 0.03/s 06 74 0.02/s 07 79 0.02/s 08 76 0.02/s 09 91 0.03/s 10 78 0.02/s 11 72 0.02/s 12 76 0.02/s 13 82 0.02/s 14 82 0.02/s 15 72 0.02/s 16 75 0.02/s 17 74 0.02/s 18 78 0.02/s 19 79 0.02/s 20 76 0.02/s 21 78 0.02/s 22 77 0.02/s 23 84 0.02/s Day Hour Count Average Duration Average idle time Jun 30 00 75 32m6s 31m58s 01 76 30m55s 30m55s 02 87 28m5s 28m5s 03 77 29m2s 29m2s 04 81 30m27s 30m27s 05 95 26m22s 26m22s 06 74 29m39s 29m36s 07 79 32m30s 32m30s 08 76 31m29s 31m29s 09 91 28m1s 28m1s 10 78 28m52s 28m49s 11 72 32m10s 32m10s 12 76 32m38s 32m38s 13 77 30m19s 30m18s 14 82 31m17s 31m14s 15 72 31m25s 31m25s 16 75 32m13s 32m13s 17 74 32m41s 32m41s 18 78 31m26s 31m23s 19 79 30m55s 30m55s 20 76 32m4s 32m4s 21 78 30m30s 30m30s 22 77 31m20s 31m20s 23 89 1h2m2s 1h2m2s -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2026-06-30 05:45:09 Date
Connections per database
Key values
- ctdprd51 Main Database
- 1,894 connections Total
Connections per user
Key values
- pubeu Main User
- 1,894 connections Total
-
Sessions
Simultaneous sessions
Key values
- 55 sessions Session Peak
- 2026-06-30 01:23:10 Date
Histogram of session times
Key values
- 1,749 1800000-3600000ms duration
Sessions per database
Key values
- ctdprd51 Main Database
- 1,894 sessions Total
Sessions per user
Key values
- pubeu Main User
- 1,894 sessions Total
Sessions per host
Key values
- 10.12.5.53 Main Host
- 1,894 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 63,283 buffers Checkpoint Peak
- 2026-06-30 13:40:02 Date
- 1619.955 seconds Highest write time
- 0.006 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-06-30 00:13:36 Date
Checkpoints distance
Key values
- 5,127.57 Mo Distance Peak
- 2026-06-30 13:40:02 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jun 30 00 545 54.815s 0.002s 54.825s 01 147 14.928s 0.002s 14.937s 02 139 14.117s 0.002s 14.125s 03 129 13.117s 0.002s 13.126s 04 47,744 1,625.46s 0.002s 1,625.598s 05 723 72.596s 0.002s 72.604s 06 1,782 178.704s 0.002s 178.757s 07 121 12.307s 0.002s 12.316s 08 3,864 387.099s 0.002s 387.154s 09 370 37.261s 0.002s 37.313s 10 70 7.206s 0.002s 7.215s 11 169 17.142s 0.002s 17.151s 12 170 17.209s 0.002s 17.217s 13 63,467 1,637.812s 0.007s 1,638.427s 14 150 15.115s 0.001s 15.119s 15 44,651 1,631.16s 0.002s 1,631.299s 16 3,445 345.097s 0.002s 345.149s 17 248 25.029s 0.002s 25.037s 18 36 3.782s 0.002s 3.81s 19 68 6.977s 0.002s 6.985s 20 53 5.48s 0.002s 5.488s 21 49 5.083s 0.002s 5.092s 22 163 16.51s 0.002s 16.519s 23 111 11.31s 0.002s 11.318s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jun 30 00 0 0 0 82 0.001s 0.002s 01 0 0 0 38 0.001s 0.002s 02 0 0 0 33 0.001s 0.002s 03 0 0 0 35 0.001s 0.002s 04 0 32 0 47 0.001s 0.002s 05 0 0 0 45 0.001s 0.002s 06 0 1 0 98 0.001s 0.002s 07 0 0 0 70 0.001s 0.002s 08 0 1 0 100 0.001s 0.002s 09 0 1 0 89 0.001s 0.002s 10 0 0 0 30 0.001s 0.002s 11 0 0 0 122 0.001s 0.002s 12 0 0 0 26 0.001s 0.002s 13 0 160 0 87 0.001s 0.002s 14 0 0 0 19 0.001s 0.001s 15 0 30 0 83 0.001s 0.002s 16 0 2 0 73 0.001s 0.002s 17 0 0 0 121 0.001s 0.002s 18 0 0 0 21 0.001s 0.002s 19 0 0 0 22 0.001s 0.002s 20 0 0 0 19 0.001s 0.002s 21 0 0 0 19 0.001s 0.002s 22 0 0 0 30 0.001s 0.002s 23 0 0 0 25 0.001s 0.002s Day Hour Count Avg time (sec) Jun 30 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 Jun 30 00 1,793.00 kB 36,116.00 kB 01 349.00 kB 29,345.50 kB 02 347.00 kB 23,836.50 kB 03 214.50 kB 19,347.50 kB 04 260,529.50 kB 494,857.00 kB 05 2,078.50 kB 401,067.50 kB 06 7,091.00 kB 325,772.00 kB 07 288.50 kB 264,535.50 kB 08 12,679.50 kB 216,392.00 kB 09 954.50 kB 175,748.50 kB 10 107.00 kB 142,376.50 kB 11 371.50 kB 115,395.50 kB 12 433.00 kB 93,538.00 kB 13 1,313,165.00 kB 2,494,103.00 kB 14 125.00 kB 2,126,612.00 kB 15 248,900.50 kB 1,865,520.00 kB 16 11,775.50 kB 1,512,275.00 kB 17 615.50 kB 1,226,086.50 kB 18 63.50 kB 993,170.50 kB 19 91.50 kB 804,481.50 kB 20 99.50 kB 651,651.50 kB 21 92.00 kB 527,854.00 kB 22 316.50 kB 427,619.00 kB 23 181.50 kB 346,407.00 kB -
Temporary Files
Size of temporary files
Key values
- 132.77 MiB Temp Files size Peak
- 2026-06-30 13:11:44 Date
Number of temporary files
Key values
- 10 per second Temp Files Peak
- 2026-06-30 13:11:40 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jun 30 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 60 774.61 MiB 12.91 MiB 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 60 774.61 MiB 7.53 MiB 27.66 MiB 12.91 MiB vacuum full analyze term;-
vacuum FULL analyze TERM;
Date: 2026-06-30 13:12:50 Duration: 1m23s
-
vacuum FULL analyze TERM;
Date: 2026-06-30 13:11:38 Duration: 0ms Database: ctdprd51 User: pub2 Application: pgAdmin 4 - CONN:3472262
Queries generating the largest temporary files
Rank Size Query 1 27.66 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:44 ]
2 27.27 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:44 ]
3 26.23 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:44 ]
4 26.15 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:44 ]
5 25.45 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:44 ]
6 18.77 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:56 ]
7 18.54 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:52 ]
8 18.22 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:52 ]
9 17.84 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:56 ]
10 17.49 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:52 ]
11 17.45 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:52 ]
12 16.94 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:56 ]
13 16.91 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:56 ]
14 16.84 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:56 ]
15 16.53 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:47 ]
16 16.43 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:47 ]
17 16.38 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:47 ]
18 16.01 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:40 ]
19 15.96 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:40 ]
20 15.91 MiB vacuum FULL analyze TERM;[ Date: 2026-06-30 13:11:40 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.47 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-06-30 14:14:05 Date
- 0 sec Highest CPU-cost analyze
Table
Database ctdprd51 - Date
Average Autovacuum Duration
Key values
- 0.47 sec Highest CPU-cost vacuum
Table pub2.term_set_enrichment_agent
Database ctdprd51 - 2026-06-30 14:14:05 Date
Analyzes per table
Key values
- pubc.log_query (16) Main table analyzed (database ctdprd51)
- 19 analyzes Total
Vacuums per table
Key values
- pubc.log_query (2) Main table vacuumed on database ctdprd51
- 6 vacuums Total
Index Buffer usage Skipped WAL usage Table Vacuums scans hits misses dirtied pins frozen records full page bytes ctdprd51.pubc.log_query 2 1 457 0 85 0 0 136 59 410,606 ctdprd51.pub2.term_set_enrichment_agent 1 0 37,203 0 12 0 0 18,581 1 1,104,698 ctdprd51.pg_toast.pg_toast_486223 1 0 26 0 0 0 0 1 0 188 ctdprd51.pub1.term_comp 1 0 169 0 10 0 0 31 2 14,756 ctdprd51.pub2.term_set_enrichment 1 0 742 0 38 0 0 319 2 31,748 Total 6 1 38,597 21 145 0 0 19,068 64 1,561,996 Tuples removed per table
Key values
- pubc.log_query (18) Main table with removed tuples on database ctdprd51
- 18 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain ctdprd51.pubc.log_query 2 1 18 1,483 0 0 67 ctdprd51.pub2.term_set_enrichment_agent 1 0 0 2,154,533 0 0 24,485 ctdprd51.pg_toast.pg_toast_486223 1 0 0 0 0 0 0 ctdprd51.pub1.term_comp 1 0 0 4,517 0 0 41 ctdprd51.pub2.term_set_enrichment 1 0 0 33,409 0 0 555 Total 6 1 18 2,193,942 0 0 25,148 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jun 30 00 2 0 01 0 3 02 0 1 03 0 2 04 0 2 05 0 1 06 1 2 07 0 1 08 0 0 09 0 1 10 0 0 11 1 0 12 0 1 13 0 0 14 2 2 15 0 0 16 0 0 17 0 1 18 0 0 19 0 0 20 0 0 21 0 1 22 0 0 23 0 1 - 0.47 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
- 17 Total read queries
- 36 Total write queries
Queries by database
Key values
- unknown Main database
- 31 Requests
- 20m16s (ctdprd51)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 86 Requests
User Request type Count Duration load Total 1 5s146ms select 1 5s146ms postgres Total 16 17m41s copy to 16 17m41s pub2 Total 1 7s707ms select 1 7s707ms pubc Total 1 9m18s select 1 9m18s pubeu Total 30 4m23s select 30 4m23s qaeu Total 20 49m52s select 20 49m52s unknown Total 86 17m5s copy to 56 11m54s others 2 1m30s select 28 3m40s Duration by user
Key values
- 49m52s (qaeu) Main time consuming user
User Request type Count Duration load Total 1 5s146ms select 1 5s146ms postgres Total 16 17m41s copy to 16 17m41s pub2 Total 1 7s707ms select 1 7s707ms pubc Total 1 9m18s select 1 9m18s pubeu Total 30 4m23s select 30 4m23s qaeu Total 20 49m52s select 20 49m52s unknown Total 86 17m5s copy to 56 11m54s others 2 1m30s select 28 3m40s Queries by host
Key values
- unknown Main host
- 155 Requests
- 1h38m33s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 46 Requests
- 9m41s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-06-30 02:30:51 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 29 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 9m18s /* * 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: 2026-06-30 00:09:20 - Database: ctdprd51 - User: pubc - Application: psql ]
2 1m53s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 18:06:54 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
3 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 14:06:54 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
4 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 06:06:54 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
5 1m52s COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 10:06:53 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
6 1m23s vacuum FULL analyze TERM;[ Date: 2026-06-30 13:12:50 ]
7 37s199ms SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;[ Date: 2026-06-30 10:31:57 - Database: ctdprd51 - User: pubeu ]
8 24s224ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 14:07:18 ]
9 24s193ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 18:07:19 ]
10 24s87ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 06:07:18 ]
11 24s37ms COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;[ Date: 2026-06-30 10:07:17 ]
12 20s334ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-06-30 14:00:22 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
13 20s60ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-06-30 06:00:22 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
14 20s36ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-06-30 18:00:22 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
15 19s857ms COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-06-30 10:00:21 - Database: ctdprd51 - User: postgres - Application: pg_dump ]
16 15s631ms COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;[ Date: 2026-06-30 14:07:34 ]
17 15s590ms COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;[ Date: 2026-06-30 18:07:34 ]
18 15s465ms COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;[ Date: 2026-06-30 06:07:34 ]
19 15s367ms COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;[ Date: 2026-06-30 10:07:33 ]
20 14s932ms COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;[ Date: 2026-06-30 06:00:53 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 9m18s 1 9m18s 9m18s 9m18s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 30 00 1 9m18s 9m18s [ User: pubc - Total duration: 9m18s - Times executed: 1 ]
[ Application: psql - Total duration: 9m18s - Times executed: 1 ]
-
/* * 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: 2026-06-30 00:09:20 Duration: 9m18s Database: ctdprd51 User: pubc Application: psql
2 7m30s 4 1m52s 1m53s 1m52s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 30 06 1 1m52s 1m52s 10 1 1m52s 1m52s 14 1 1m52s 1m52s 18 1 1m53s 1m53s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:06:54 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
3 1m36s 4 24s37ms 24s224ms 24s135ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 30 06 1 24s87ms 24s87ms 10 1 24s37ms 24s37ms 14 1 24s224ms 24s224ms 18 1 24s193ms 24s193ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:07:18 Duration: 24s224ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:07:19 Duration: 24s193ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:07:18 Duration: 24s87ms
4 1m23s 1 1m23s 1m23s 1m23s vacuum full analyze term;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 30 13 1 1m23s 1m23s -
vacuum FULL analyze TERM;
Date: 2026-06-30 13:12:50 Duration: 1m23s
-
vacuum FULL analyze TERM;
Date: 2026-06-30 13:11:38 Duration: 0ms Database: ctdprd51 User: pub2 Application: pgAdmin 4 - CONN:3472262
5 1m20s 4 19s857ms 20s334ms 20s72ms copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 30 06 1 20s60ms 20s60ms 10 1 19s857ms 19s857ms 14 1 20s334ms 20s334ms 18 1 20s36ms 20s36ms [ User: postgres - Total duration: 1m20s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m20s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:22 Duration: 20s334ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:22 Duration: 20s60ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:22 Duration: 20s36ms Database: ctdprd51 User: postgres Application: pg_dump
6 1m2s 4 15s367ms 15s631ms 15s513ms copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 30 06 1 15s465ms 15s465ms 10 1 15s367ms 15s367ms 14 1 15s631ms 15s631ms 18 1 15s590ms 15s590ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 14:07:34 Duration: 15s631ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 18:07:34 Duration: 15s590ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 06:07:34 Duration: 15s465ms
7 59s484ms 4 14s753ms 14s932ms 14s871ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 30 06 1 14s932ms 14s932ms 10 1 14s753ms 14s753ms 14 1 14s888ms 14s888ms 18 1 14s909ms 14s909ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:53 Duration: 14s932ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:53 Duration: 14s909ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:53 Duration: 14s888ms
8 58s440ms 4 14s530ms 14s662ms 14s610ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 30 06 1 14s592ms 14s592ms 10 1 14s530ms 14s530ms 14 1 14s662ms 14s662ms 18 1 14s654ms 14s654ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:08 Duration: 14s662ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:08 Duration: 14s654ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:08 Duration: 14s592ms
9 37s199ms 1 37s199ms 37s199ms 37s199ms select ? || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( select to_char(cv.value_tm, ?) from cached_value cv where cv.type_nm = ? and cv.key_nm = ?) "lastmod", trim(to_char(i.priority, ?)) "priority" from ( select ? || ot.cd loc, ? changefreq, ?.? priority from object_type ot where ot.cd in (...) union all select ? || ot.cd, ?, ?.? from object_type ot where ot.cd in (...) union all select url, changefreq, priority from sitemap_url union all select ? || ot.cd || ? || t.acc_db_cd || ? || t.acc_txt "loc", ?, case when (t.has_chems or t.has_diseases or t.has_genes or t.has_go or t.has_ixns or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd in (...) and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_chems or t.has_ixns or t.has_genes or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_genes or t.has_ixns or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_phenotypes or t.has_references or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_references or t.has_phenotypes or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || r.acc_txt, ?, case when (r.has_diseases or r.has_ixns or r.has_phenotypes or r.has_exposures or r.has_gene_gene_ixns) then ?.? else ?.? end from reference r) i order by ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 30 10 1 37s199ms 37s199ms [ User: pubeu - Total duration: 37s199ms - Times executed: 1 ]
-
SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;
Date: 2026-06-30 10:31:57 Duration: 37s199ms Database: ctdprd51 User: pubeu
10 29s878ms 4 7s428ms 7s503ms 7s469ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 30 06 1 7s479ms 7s479ms 10 1 7s428ms 7s428ms 14 1 7s503ms 7s503ms 18 1 7s467ms 7s467ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:32 Duration: 7s503ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:31 Duration: 7s479ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:31 Duration: 7s467ms
11 29s280ms 4 6s443ms 7s629ms 7s320ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where (d.id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 30 09 3 22s837ms 7s612ms 22 1 6s443ms 6s443ms [ User: pubeu - Total duration: 21s652ms - Times executed: 3 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nafld' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:08:47 Duration: 7s629ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic steatohepatitis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:11:12 Duration: 7s627ms Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic fatty liver disease' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:09:52 Duration: 7s580ms Database: ctdprd51 User: pubeu Bind query: yes
12 25s975ms 4 6s454ms 6s521ms 6s493ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 30 06 1 6s498ms 6s498ms 10 1 6s454ms 6s454ms 14 1 6s501ms 6s501ms 18 1 6s521ms 6s521ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:16 Duration: 6s521ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:16 Duration: 6s501ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:16 Duration: 6s498ms
13 24s655ms 4 6s115ms 6s191ms 6s163ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 30 06 1 6s191ms 6s191ms 10 1 6s115ms 6s115ms 14 1 6s174ms 6s174ms 18 1 6s174ms 6s174ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:38 Duration: 6s191ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:38 Duration: 6s174ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:38 Duration: 6s174ms
14 15s226ms 3 5s20ms 5s109ms 5s75ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 30 09 1 5s20ms 5s20ms 13 1 5s95ms 5s95ms 16 1 5s109ms 5s109ms [ User: pubeu - Total duration: 10s130ms - Times executed: 2 ]
[ User: qaeu - Total duration: 5s95ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1473402' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 16:03:51 Duration: 5s109ms 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 = '1365499' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 13:42:40 Duration: 5s95ms Database: ctdprd51 User: qaeu 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 = '1442634' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 09:23:11 Duration: 5s20ms Database: ctdprd51 User: pubeu Bind query: yes
15 10s705ms 2 5s294ms 5s411ms 5s352ms 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 #15
Day Hour Count Duration Avg duration Jun 30 09 2 10s705ms 5s352ms [ User: pubeu - Total duration: 10s705ms - Times executed: 2 ]
-
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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:57:10 Duration: 5s411ms 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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:52:55 Duration: 5s294ms Database: ctdprd51 User: pubeu Bind query: yes
16 10s389ms 1 10s389ms 10s389ms 10s389ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where d.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 30 22 1 10s389ms 10s389ms [ User: pubeu - Total duration: 10s389ms - Times executed: 1 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'pulmonary fibrosis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE d.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = 2188625) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 22:16:17 Duration: 10s389ms Database: ctdprd51 User: pubeu Bind query: yes
17 10s220ms 1 10s220ms 10s220ms 10s220ms select g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, i.id ixnid, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where gcr.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 30 19 1 10s220ms 10s220ms [ User: pubeu - Total duration: 10s220ms - Times executed: 1 ]
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1496390') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 19:33:30 Duration: 10s220ms Database: ctdprd51 User: pubeu Bind query: yes
18 6s605ms 1 6s605ms 6s605ms 6s605ms vacuum analyze log_query_archive;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 30 00 1 6s605ms 6s605ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-06-30 00:09:27 Duration: 6s605ms
19 5s562ms 1 5s562ms 5s562ms 5s562ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 30 05 1 5s562ms 5s562ms [ User: pubeu - Total duration: 5s562ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1398646)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-06-30 05:48:46 Duration: 5s562ms Database: ctdprd51 User: pubeu Bind query: yes
20 5s513ms 1 5s513ms 5s513ms 5s513ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 30 05 1 5s513ms 5s513ms [ User: pubeu - Total duration: 5s513ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'TP53'))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases')) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 05:30:55 Duration: 5s513ms Database: ctdprd51 User: pubeu Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 4 7m30s 1m52s 1m53s 1m52s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 30 06 1 1m52s 1m52s 10 1 1m52s 1m52s 14 1 1m52s 1m52s 18 1 1m53s 1m53s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:06:54 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
2 4 1m36s 24s37ms 24s224ms 24s135ms copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 30 06 1 24s87ms 24s87ms 10 1 24s37ms 24s37ms 14 1 24s224ms 24s224ms 18 1 24s193ms 24s193ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:07:18 Duration: 24s224ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:07:19 Duration: 24s193ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:07:18 Duration: 24s87ms
3 4 1m20s 19s857ms 20s334ms 20s72ms copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 30 06 1 20s60ms 20s60ms 10 1 19s857ms 19s857ms 14 1 20s334ms 20s334ms 18 1 20s36ms 20s36ms [ User: postgres - Total duration: 1m20s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m20s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:22 Duration: 20s334ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:22 Duration: 20s60ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:22 Duration: 20s36ms Database: ctdprd51 User: postgres Application: pg_dump
4 4 1m2s 15s367ms 15s631ms 15s513ms copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 30 06 1 15s465ms 15s465ms 10 1 15s367ms 15s367ms 14 1 15s631ms 15s631ms 18 1 15s590ms 15s590ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 14:07:34 Duration: 15s631ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 18:07:34 Duration: 15s590ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 06:07:34 Duration: 15s465ms
5 4 59s484ms 14s753ms 14s932ms 14s871ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 30 06 1 14s932ms 14s932ms 10 1 14s753ms 14s753ms 14 1 14s888ms 14s888ms 18 1 14s909ms 14s909ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:53 Duration: 14s932ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:53 Duration: 14s909ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:53 Duration: 14s888ms
6 4 58s440ms 14s530ms 14s662ms 14s610ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 30 06 1 14s592ms 14s592ms 10 1 14s530ms 14s530ms 14 1 14s662ms 14s662ms 18 1 14s654ms 14s654ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:08 Duration: 14s662ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:08 Duration: 14s654ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:08 Duration: 14s592ms
7 4 29s878ms 7s428ms 7s503ms 7s469ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 30 06 1 7s479ms 7s479ms 10 1 7s428ms 7s428ms 14 1 7s503ms 7s503ms 18 1 7s467ms 7s467ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:32 Duration: 7s503ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:31 Duration: 7s479ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:31 Duration: 7s467ms
8 4 29s280ms 6s443ms 7s629ms 7s320ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where (d.id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 30 09 3 22s837ms 7s612ms 22 1 6s443ms 6s443ms [ User: pubeu - Total duration: 21s652ms - Times executed: 3 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nafld' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:08:47 Duration: 7s629ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic steatohepatitis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:11:12 Duration: 7s627ms Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic fatty liver disease' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:09:52 Duration: 7s580ms Database: ctdprd51 User: pubeu Bind query: yes
9 4 25s975ms 6s454ms 6s521ms 6s493ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 30 06 1 6s498ms 6s498ms 10 1 6s454ms 6s454ms 14 1 6s501ms 6s501ms 18 1 6s521ms 6s521ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:16 Duration: 6s521ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:16 Duration: 6s501ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:16 Duration: 6s498ms
10 4 24s655ms 6s115ms 6s191ms 6s163ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 30 06 1 6s191ms 6s191ms 10 1 6s115ms 6s115ms 14 1 6s174ms 6s174ms 18 1 6s174ms 6s174ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:38 Duration: 6s191ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:38 Duration: 6s174ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:38 Duration: 6s174ms
11 3 15s226ms 5s20ms 5s109ms 5s75ms 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 Jun 30 09 1 5s20ms 5s20ms 13 1 5s95ms 5s95ms 16 1 5s109ms 5s109ms [ User: pubeu - Total duration: 10s130ms - Times executed: 2 ]
[ User: qaeu - Total duration: 5s95ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1473402' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 16:03:51 Duration: 5s109ms 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 = '1365499' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 13:42:40 Duration: 5s95ms Database: ctdprd51 User: qaeu 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 = '1442634' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 09:23:11 Duration: 5s20ms Database: ctdprd51 User: pubeu Bind query: yes
12 2 10s705ms 5s294ms 5s411ms 5s352ms 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 #12
Day Hour Count Duration Avg duration Jun 30 09 2 10s705ms 5s352ms [ User: pubeu - Total duration: 10s705ms - Times executed: 2 ]
-
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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:57:10 Duration: 5s411ms 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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:52:55 Duration: 5s294ms Database: ctdprd51 User: pubeu Bind query: yes
13 1 9m18s 9m18s 9m18s 9m18s select maint_query_logs_archive ();Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 30 00 1 9m18s 9m18s [ User: pubc - Total duration: 9m18s - Times executed: 1 ]
[ Application: psql - Total duration: 9m18s - Times executed: 1 ]
-
/* * 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: 2026-06-30 00:09:20 Duration: 9m18s Database: ctdprd51 User: pubc Application: psql
14 1 1m23s 1m23s 1m23s 1m23s vacuum full analyze term;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 30 13 1 1m23s 1m23s -
vacuum FULL analyze TERM;
Date: 2026-06-30 13:12:50 Duration: 1m23s
-
vacuum FULL analyze TERM;
Date: 2026-06-30 13:11:38 Duration: 0ms Database: ctdprd51 User: pub2 Application: pgAdmin 4 - CONN:3472262
15 1 37s199ms 37s199ms 37s199ms 37s199ms select ? || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( select to_char(cv.value_tm, ?) from cached_value cv where cv.type_nm = ? and cv.key_nm = ?) "lastmod", trim(to_char(i.priority, ?)) "priority" from ( select ? || ot.cd loc, ? changefreq, ?.? priority from object_type ot where ot.cd in (...) union all select ? || ot.cd, ?, ?.? from object_type ot where ot.cd in (...) union all select url, changefreq, priority from sitemap_url union all select ? || ot.cd || ? || t.acc_db_cd || ? || t.acc_txt "loc", ?, case when (t.has_chems or t.has_diseases or t.has_genes or t.has_go or t.has_ixns or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd in (...) and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_chems or t.has_ixns or t.has_genes or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_genes or t.has_ixns or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_phenotypes or t.has_references or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_references or t.has_phenotypes or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || r.acc_txt, ?, case when (r.has_diseases or r.has_ixns or r.has_phenotypes or r.has_exposures or r.has_gene_gene_ixns) then ?.? else ?.? end from reference r) i order by ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 30 10 1 37s199ms 37s199ms [ User: pubeu - Total duration: 37s199ms - Times executed: 1 ]
-
SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;
Date: 2026-06-30 10:31:57 Duration: 37s199ms Database: ctdprd51 User: pubeu
16 1 10s389ms 10s389ms 10s389ms 10s389ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where d.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 30 22 1 10s389ms 10s389ms [ User: pubeu - Total duration: 10s389ms - Times executed: 1 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'pulmonary fibrosis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE d.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = 2188625) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 22:16:17 Duration: 10s389ms Database: ctdprd51 User: pubeu Bind query: yes
17 1 10s220ms 10s220ms 10s220ms 10s220ms select g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, i.id ixnid, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where gcr.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 30 19 1 10s220ms 10s220ms [ User: pubeu - Total duration: 10s220ms - Times executed: 1 ]
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1496390') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 19:33:30 Duration: 10s220ms Database: ctdprd51 User: pubeu Bind query: yes
18 1 6s605ms 6s605ms 6s605ms 6s605ms vacuum analyze log_query_archive;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 30 00 1 6s605ms 6s605ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-06-30 00:09:27 Duration: 6s605ms
19 1 5s562ms 5s562ms 5s562ms 5s562ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 30 05 1 5s562ms 5s562ms [ User: pubeu - Total duration: 5s562ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1398646)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-06-30 05:48:46 Duration: 5s562ms Database: ctdprd51 User: pubeu Bind query: yes
20 1 5s513ms 5s513ms 5s513ms 5s513ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 30 05 1 5s513ms 5s513ms [ User: pubeu - Total duration: 5s513ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'TP53'))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases')) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 05:30:55 Duration: 5s513ms Database: ctdprd51 User: pubeu Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9m18s 9m18s 9m18s 1 9m18s select maint_query_logs_archive ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 30 00 1 9m18s 9m18s [ User: pubc - Total duration: 9m18s - Times executed: 1 ]
[ Application: psql - Total duration: 9m18s - Times executed: 1 ]
-
/* * 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: 2026-06-30 00:09:20 Duration: 9m18s Database: ctdprd51 User: pubc Application: psql
2 1m52s 1m53s 1m52s 4 7m30s copy pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 30 06 1 1m52s 1m52s 10 1 1m52s 1m52s 14 1 1m52s 1m52s 18 1 1m53s 1m53s [ User: postgres - Total duration: 7m30s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 7m30s - Times executed: 4 ]
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:06:54 Duration: 1m53s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
-
COPY pubc.log_query_archive (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, gene_set_txt, molecule_type_txt, volume_txt, first_page_txt, journal_query_type, journal_txt, is_review, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:06:54 Duration: 1m52s Database: ctdprd51 User: postgres Application: pg_dump
3 1m23s 1m23s 1m23s 1 1m23s vacuum full analyze term;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 30 13 1 1m23s 1m23s -
vacuum FULL analyze TERM;
Date: 2026-06-30 13:12:50 Duration: 1m23s
-
vacuum FULL analyze TERM;
Date: 2026-06-30 13:11:38 Duration: 0ms Database: ctdprd51 User: pub2 Application: pgAdmin 4 - CONN:3472262
4 37s199ms 37s199ms 37s199ms 1 37s199ms select ? || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( select to_char(cv.value_tm, ?) from cached_value cv where cv.type_nm = ? and cv.key_nm = ?) "lastmod", trim(to_char(i.priority, ?)) "priority" from ( select ? || ot.cd loc, ? changefreq, ?.? priority from object_type ot where ot.cd in (...) union all select ? || ot.cd, ?, ?.? from object_type ot where ot.cd in (...) union all select url, changefreq, priority from sitemap_url union all select ? || ot.cd || ? || t.acc_db_cd || ? || t.acc_txt "loc", ?, case when (t.has_chems or t.has_diseases or t.has_genes or t.has_go or t.has_ixns or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd in (...) and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_chems or t.has_ixns or t.has_genes or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_diseases or t.has_genes or t.has_ixns or t.has_go or t.has_phenotypes or t.has_exposures or t.has_pathways) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.acc_txt from dag_node n inner join dag d on n.dag_id = d.id where n.subset_left_no = ? and d.object_type_id = get_object_type_id (?)) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_phenotypes or t.has_references or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || ot.cd || ? || t.acc_txt "loc", ?, case when (t.has_genes or t.has_references or t.has_phenotypes or t.has_exposures or t.has_diseases) then ?.? else ?.? end from term t inner join object_type ot on t.object_type_id = ot.id where ot.cd = ? and t.acc_txt != ( select n.object_acc_txt from dag_node n inner join dag d on n.dag_id = d.id where d.object_type_id = get_object_type_id (?) and d.priority_seq = ?) union all select ? || r.acc_txt, ?, case when (r.has_diseases or r.has_ixns or r.has_phenotypes or r.has_exposures or r.has_gene_gene_ixns) then ?.? else ?.? end from reference r) i order by ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 30 10 1 37s199ms 37s199ms [ User: pubeu - Total duration: 37s199ms - Times executed: 1 ]
-
SELECT /* createSitemapFiles.pl */ 'https://ctdbase.org' || common.esc_xml (i.loc) "loc", i.changefreq "changefreq", ( SELECT TO_CHAR(cv.value_tm, 'YYYY-MM-DD') FROM cached_value cv WHERE cv.type_nm = 'schema_status' AND cv.key_nm = 'load_end_tm') "lastmod", TRIM(TO_CHAR(i.priority, '0.9')) "priority" FROM ( --Voc start pages SELECT '/voc.go?type=' || ot.cd loc, 'monthly' changefreq, 0.8 priority FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'go', 'taxon', 'pathway', 'anatomy') UNION ALL -- Resource pages SELECT '/resources.jsp?type=' || ot.cd, 'monthly', 0.4 FROM object_type ot WHERE ot.cd IN ('chem', 'disease', 'gene', 'reference') UNION ALL -- Hard-coded pages SELECT url, changefreq, priority FROM sitemap_url UNION ALL --Disease, pathway details (separate b/c need the db cd in acc) SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_db_cd || '%3A' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_chems OR t.has_diseases OR t.has_genes OR t.has_go OR t.has_ixns OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd IN ('disease', 'pathway') -- Exclude disease root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('disease')) -- Gene details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_chems OR t.has_ixns OR t.has_genes OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'gene' -- Chem details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_diseases OR t.has_genes OR t.has_ixns OR t.has_go OR t.has_phenotypes OR t.has_exposures OR t.has_pathways) THEN 0.8 ELSE 0.6 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'chem' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('chem')) -- Taxon details UNION ALL SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'yearly', CASE WHEN (t.has_genes) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'taxon' -- Exclude root node. AND t.acc_txt != ( SELECT n.acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE n.subset_left_no = 1 AND d.object_type_id = get_object_type_id ('taxon')) UNION ALL --GO details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_phenotypes OR t.has_references OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'go' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL --Anatomy details SELECT '/detail.go?type=' || ot.cd || '&acc=' || t.acc_txt "loc", 'monthly', CASE WHEN (t.has_genes OR t.has_references OR t.has_phenotypes OR t.has_exposures OR t.has_diseases) THEN 0.6 ELSE 0.5 END FROM term t INNER JOIN object_type ot ON t.object_type_id = ot.id WHERE ot.cd = 'anatomy' -- Exclude root node. AND t.acc_txt != ( SELECT n.object_acc_txt FROM dag_node n INNER JOIN dag d ON n.dag_id = d.id WHERE d.object_type_id = get_object_type_id ('go') AND d.priority_seq = 1) UNION ALL -- Reference details SELECT '/detail.go?type=reference&acc=' || r.acc_txt, 'monthly', CASE WHEN (r.has_diseases OR r.has_ixns OR r.has_phenotypes OR r.has_exposures OR r.has_gene_gene_ixns) THEN 0.7 ELSE 0.5 END FROM reference r) i ORDER BY 1;
Date: 2026-06-30 10:31:57 Duration: 37s199ms Database: ctdprd51 User: pubeu
5 24s37ms 24s224ms 24s135ms 4 1m36s copy pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 30 06 1 24s87ms 24s87ms 10 1 24s37ms 24s37ms 14 1 24s224ms 24s224ms 18 1 24s193ms 24s193ms -
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 14:07:18 Duration: 24s224ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 18:07:19 Duration: 24s193ms
-
COPY pubc.log_query_bots (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status) TO stdout;
Date: 2026-06-30 06:07:18 Duration: 24s87ms
6 19s857ms 20s334ms 20s72ms 4 1m20s copy edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 30 06 1 20s60ms 20s60ms 10 1 19s857ms 19s857ms 14 1 20s334ms 20s334ms 18 1 20s36ms 20s36ms [ User: postgres - Total duration: 1m20s - Times executed: 4 ]
[ Application: pg_dump - Total duration: 1m20s - Times executed: 4 ]
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:22 Duration: 20s334ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:22 Duration: 20s60ms Database: ctdprd51 User: postgres Application: pg_dump
-
COPY edit.db_link (object_id, object_type_id, acc_txt, db_id, type_cd, is_primary, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:22 Duration: 20s36ms Database: ctdprd51 User: postgres Application: pg_dump
7 15s367ms 15s631ms 15s513ms 4 1m2s copy pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 30 06 1 15s465ms 15s465ms 10 1 15s367ms 15s367ms 14 1 15s631ms 15s631ms 18 1 15s590ms 15s590ms -
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 14:07:34 Duration: 15s631ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 18:07:34 Duration: 15s590ms
-
COPY pubc.log_query_bots_original (id, type_cd, query_tm, submission_qty, session_id, remote_addr, http_user_agent, server_nm, node_nm, results_qty, execution_ms, basic_query_type, basic_query_txt, gene_query_type, gene_txt, gene_form_type_txt, taxon_query_type, taxon_txt, chem_query_type, chem_txt, party_query_type, party_nm_txt, acc_txt, go_query_type, go_txt, disease_query_type, disease_txt, action_type_txt, action_degree_type_txt, from_yr, through_yr, title_abstract_txt, has_marray, pathway_query_type, pathway_txt, dag_txt, results_format_txt, batch_input_type_txt, gd_assn_type, p_val, p_val_type, input_term_qty, review_status, user_agent_pattern) TO stdout;
Date: 2026-06-30 06:07:34 Duration: 15s465ms
8 14s753ms 14s932ms 14s871ms 4 59s484ms copy edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 30 06 1 14s932ms 14s932ms 10 1 14s753ms 14s753ms 14 1 14s888ms 14s888ms 18 1 14s909ms 14s909ms -
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:53 Duration: 14s932ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:53 Duration: 14s909ms
-
COPY edit.ixn_actor (ixn_id, position_seq, object_type_id, acc_txt, acc_db_id, object_nm, actor_form_type_id, qual_actor_form_type_id, seq_acc_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:53 Duration: 14s888ms
9 14s530ms 14s662ms 14s610ms 4 58s440ms copy edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 30 06 1 14s592ms 14s592ms 10 1 14s530ms 14s530ms 14 1 14s662ms 14s662ms 18 1 14s654ms 14s654ms -
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:08 Duration: 14s662ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:08 Duration: 14s654ms
-
COPY edit.reference (id, title, journal_nm, issue, pages_txt, page_position_seq, volume, pub_dt_format_mask, pub_start_dt, pub_end_dt, pub_start_season_nm, pub_end_season_nm, is_review, is_author_list_complete, affiliation_txt, abstract_txt, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:08 Duration: 14s592ms
10 10s389ms 10s389ms 10s389ms 1 10s389ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where d.id in ( select distinct dp.descendant_object_id from dag_path dp where dp.ancestor_object_id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 30 22 1 10s389ms 10s389ms [ User: pubeu - Total duration: 10s389ms - Times executed: 1 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'pulmonary fibrosis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE d.id in ( select distinct dp.descendant_object_id from dag_path dp WHERE dp.ancestor_object_id = 2188625) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 22:16:17 Duration: 10s389ms Database: ctdprd51 User: pubeu Bind query: yes
11 10s220ms 10s220ms 10s220ms 1 10s220ms select g.nm genesymbol, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, g.id geneid, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, i.id ixnid, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where gcr.chem_id in ( select p.descendant_object_id from dag_path p where p.ancestor_object_id = ?) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by g.nm_sort, c.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 30 19 1 10s220ms 10s220ms [ User: pubeu - Total duration: 10s220ms - Times executed: 1 ]
-
SELECT /* ChemGeneIxnsDAO */ g.nm geneSymbol, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, g.id geneId, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casRN, c.id chemId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, i.id ixnId, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE gcr.chem_id IN ( SELECT p.descendant_object_id FROM dag_path p WHERE p.ancestor_object_id = '1496390') GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY g.nm_sort, c.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 19:33:30 Duration: 10s220ms Database: ctdprd51 User: pubeu Bind query: yes
12 7s428ms 7s503ms 7s469ms 4 29s878ms copy edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 30 06 1 7s479ms 7s479ms 10 1 7s428ms 7s428ms 14 1 7s503ms 7s503ms 18 1 7s467ms 7s467ms -
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:32 Duration: 7s503ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:31 Duration: 7s479ms
-
COPY edit.ixn (id, ixn_type_id, parent_id, position_seq, root_id, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:31 Duration: 7s467ms
13 6s443ms 7s629ms 7s320ms 4 29s280ms select ? "Input", d.nm "DiseaseName", d.acc_db_cd || ? || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( select string_agg(stm.slim_term_nm, ? order by stm.slim_term_nm) from slim_term_mapping stm where stm.mapped_term_id = d.id) "DiseaseCategories", case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", string_agg(gdr.source_acc_txt, ? order by gdr.source_acc_txt) "OmimIDs", string_agg(distinct r.acc_txt, ?) "PubMedIDs" from gene_disease_reference gdr inner join term g on gdr.gene_id = g.id inner join term d on gdr.disease_id = d.id left outer join reference r on gdr.reference_id = r.id left outer join term c on gdr.via_chem_id = c.id where (d.id = ?) group by g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, case when gdr.via_chem_id is null then ( select string_agg(a.action_type_nm, ?) from gene_disease_axn a where a.gene_id = gdr.gene_id and a.disease_id = gdr.disease_id) else null end, c.nm, gdr.network_score order by d.nm_sort, g.nm, "DirectEvidence", c.nm;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 30 09 3 22s837ms 7s612ms 22 1 6s443ms 6s443ms [ User: pubeu - Total duration: 21s652ms - Times executed: 3 ]
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nafld' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:08:47 Duration: 7s629ms Database: ctdprd51 User: pubeu Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic steatohepatitis' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:11:12 Duration: 7s627ms Bind query: yes
-
SELECT /* BatchDiseaseGeneAssnsDAO */ 'nonalcoholic fatty liver disease' "Input", d.nm "DiseaseName", d.acc_db_cd || ':' || d.acc_txt "DiseaseID", g.nm "GeneSymbol", g.acc_txt "GeneID", ( SELECT STRING_AGG(stm.slim_term_nm, '|' ORDER BY stm.slim_term_nm) FROM slim_term_mapping stm WHERE stm.mapped_term_id = d.id) "DiseaseCategories", CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END "DirectEvidence", c.nm "InferenceChemicalName", gdr.network_score "InferenceScore", STRING_AGG(gdr.source_acc_txt, '|' ORDER BY gdr.source_acc_txt) "OmimIDs", STRING_AGG(DISTINCT r.acc_txt, '|') "PubMedIDs" FROM gene_disease_reference gdr INNER JOIN term g ON gdr.gene_id = g.id INNER JOIN term d ON gdr.disease_id = d.id LEFT OUTER JOIN reference r ON gdr.reference_id = r.id LEFT OUTER JOIN term c ON gdr.via_chem_id = c.id WHERE (d.id = 2192674) GROUP BY g.nm, g.acc_txt, d.nm, d.id, d.acc_txt, d.acc_db_cd, d.nm_sort, CASE WHEN gdr.via_chem_id IS NULL THEN ( SELECT STRING_AGG(a.action_type_nm, '|') FROM gene_disease_axn a WHERE a.gene_id = gdr.gene_id AND a.disease_id = gdr.disease_id) ELSE NULL END, c.nm, gdr.network_score ORDER BY d.nm_sort, g.nm, "DirectEvidence", c.nm;
Date: 2026-06-30 09:09:52 Duration: 7s580ms Database: ctdprd51 User: pubeu Bind query: yes
14 6s605ms 6s605ms 6s605ms 1 6s605ms vacuum analyze log_query_archive;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 30 00 1 6s605ms 6s605ms -
VACUUM ANALYZE log_query_archive;
Date: 2026-06-30 00:09:27 Duration: 6s605ms
15 6s454ms 6s521ms 6s493ms 4 25s975ms copy edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 30 06 1 6s498ms 6s498ms 10 1 6s454ms 6s454ms 14 1 6s501ms 6s501ms 18 1 6s521ms 6s521ms -
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:01:16 Duration: 6s521ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:01:16 Duration: 6s501ms
-
COPY edit.reference_ixn (id, reference_acc_txt, reference_acc_db_id, ixn_id, taxon_acc_txt, taxon_acc_db_id, evidence_cd, source_cd, field_cd, internal_note, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:01:16 Duration: 6s498ms
16 6s115ms 6s191ms 6s163ms 4 24s655ms copy edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 30 06 1 6s191ms 6s191ms 10 1 6s115ms 6s115ms 14 1 6s174ms 6s174ms 18 1 6s174ms 6s174ms -
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 06:00:38 Duration: 6s191ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 14:00:38 Duration: 6s174ms
-
COPY edit.ixn_action (ixn_id, action_type_id, action_degree_type_id, position_seq, create_by, create_tm, mod_by, mod_tm) TO stdout;
Date: 2026-06-30 18:00:38 Duration: 6s174ms
17 5s562ms 5s562ms 5s562ms 1 5s562ms select ? "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casrn "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" from ( with sq as ( select distinct c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casrn, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort from term c inner join gene_chem_reference gcr on c.id = gcr.chem_id inner join term g on gcr.gene_id = g.id where (c.id = ?)) select distinct sq.chem_nm, sq.chem_acc_txt, sq.casrn, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm from sq inner join gene_go_annot gga on sq.gene_id = gga.gene_id inner join dag_node gt on gga.go_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where gga.is_not = false and (d.id = ? or d.id = ?) order by sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 30 05 1 5s562ms 5s562ms [ User: pubeu - Total duration: 5s562ms - Times executed: 1 ]
-
SELECT /* BatchChemGODAO */ 'ddt' "Input", sqi.chem_nm "ChemicalName", sqi.chem_acc_txt "ChemicalID", sqi.casRN "CasRN", sqi.gene_symbol "GeneSymbol", sqi.gene_acc_txt "GeneID", sqi.ontology_nm "Ontology", sqi.go_term_nm "GoTermName", sqi.go_acc_txt "GoTermID" FROM ( WITH sq AS ( SELECT DISTINCT c.id chem_id, c.nm chem_nm, c.acc_txt chem_acc_txt, c.secondary_nm casRN, c.nm_sort chem_nm_sort, gcr.gene_id, g.nm gene_symbol, g.acc_txt gene_acc_txt, g.nm_sort gene_symbol_sort FROM term c INNER JOIN gene_chem_reference gcr ON c.id = gcr.chem_id INNER JOIN term g ON gcr.gene_id = g.id WHERE (c.id = 1398646)) SELECT DISTINCT sq.chem_nm, sq.chem_acc_txt, sq.casRN, sq.gene_symbol, sq.gene_acc_txt, gt.nm go_term_nm, gt.acc_txt go_acc_txt, sq.chem_nm_sort, sq.gene_symbol_sort, gt.nm_sort, d.nm ontology_nm FROM sq INNER JOIN gene_go_annot gga ON sq.gene_id = gga.gene_id INNER JOIN dag_node gt ON gga.go_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE gga.is_not = false AND (d.id = 5 OR d.id = 4) ORDER BY sq.chem_nm_sort, sq.gene_symbol_sort, d.nm, gt.nm_sort) sqi;
Date: 2026-06-30 05:48:46 Duration: 5s562ms Database: ctdprd51 User: pubeu Bind query: yes
18 5s513ms 5s513ms 5s513ms 1 5s513ms select g.nm genesymbol, g.id geneid, g.acc_txt geneacc, g.acc_db_cd geneaccdbcd, c.nm chemnm, c.nm_html chemnmhtml, c.acc_txt chemacc, c.secondary_nm casrn, c.id chemid, i.id ixnid, i.ixn_prose_txt ixnprose, i.ixn_prose_html ixnprosehtml, i.actions_txt ixnactions, count(distinct gcr.reference_id) refcount, count(distinct gcr.taxon_id) taxoncount, ( 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 r.acc_txt, ?)) as references, count(*) over () fullrowcount from gene_chem_reference gcr inner join ixn i on gcr.ixn_id = i.id inner join term g on gcr.gene_id = g.id inner join term c on gcr.chem_id = c.id inner join reference r on gcr.reference_id = r.id left outer join term taxonterm on gcr.taxon_id = taxonterm.id where exists ( select ? from gene_chem_ref_gene_form gf where gf.gene_chem_reference_id = gcr.id and gf.gene_id = gcr.gene_id and gf.actor_form_type_nm in ( select tc.nm from actor_form_type tp, actor_form_type tc where tc.subset_left_no between tp.subset_left_no and tp.subset_right_no and (tp.nm = ?))) and gcr.gene_id = any (array (( select gi.id gene_id from term gi where gi.object_type_id = ? and upper(gi.nm) like ?))) and gcr.id in ( select gcra.gene_chem_reference_id from gene_chem_reference_axn gcra where (gcra.action_degree_type_nm = ?)) group by g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id order by c.nm_sort, g.nm_sort, i.sort_txt limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 30 05 1 5s513ms 5s513ms [ User: pubeu - Total duration: 5s513ms - Times executed: 1 ]
-
SELECT /* AdvancedIxnQueryDAO.getData */ g.nm geneSymbol, g.id geneId, g.acc_txt geneAcc, g.acc_db_cd geneAccDbCd, c.nm chemNm, c.nm_html chemNmhtml, c.acc_txt chemAcc, c.secondary_nm casRN, c.id chemId, i.id ixnId, i.ixn_prose_txt ixnProse, i.ixn_prose_html ixnProseHtml, i.actions_txt ixnActions, COUNT(DISTINCT gcr.reference_id) refCount, COUNT(DISTINCT gcr.taxon_id) taxonCount, ( 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 r.acc_txt, '|')) as references, COUNT(*) OVER () fullRowCount FROM gene_chem_reference gcr INNER JOIN ixn i ON gcr.ixn_id = i.id INNER JOIN term g ON gcr.gene_id = g.id INNER JOIN term c ON gcr.chem_id = c.id INNER JOIN reference r on gcr.reference_id = r.id LEFT OUTER JOIN term taxonTerm on gcr.taxon_id = taxonTerm.id WHERE /* CIQH.getIxnWhereCore */ EXISTS ( SELECT /* CIQH.getIxnGeneFormTypeWhere */ 1 FROM gene_chem_ref_gene_form gf WHERE gf.gene_chem_reference_id = gcr.id AND gf.gene_id = gcr.gene_id AND gf.actor_form_type_nm IN ( SELECT tc.nm FROM actor_form_type tp, actor_form_type tc WHERE tc.subset_left_no BETWEEN tp.subset_left_no AND tp.subset_right_no AND (tp.nm = 'protein'))) AND gcr.gene_id = ANY (ARRAY (( SELECT /* CIQH.getIxnGeneWhereEquals.Name */ gi.id gene_id FROM term gi WHERE gi.object_type_id = 4 AND UPPER(gi.nm) LIKE 'TP53'))) AND gcr.id IN ( SELECT gcra.gene_chem_reference_id FROM gene_chem_reference_axn gcra WHERE (gcra.action_degree_type_nm = 'increases')) GROUP BY g.nm, g.nm_sort, g.acc_txt, g.acc_db_cd, g.id, c.nm, c.nm_html, c.nm_sort, c.acc_txt, c.secondary_nm, c.id, i.ixn_prose_txt, i.ixn_prose_html, i.sort_txt, i.actions_txt, i.id ORDER BY c.nm_sort, g.nm_sort, i.sort_txt LIMIT 50;
Date: 2026-06-30 05:30:55 Duration: 5s513ms Database: ctdprd51 User: pubeu Bind query: yes
19 5s294ms 5s411ms 5s352ms 2 10s705ms 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 #19
Day Hour Count Duration Avg duration Jun 30 09 2 10s705ms 5s352ms [ User: pubeu - Total duration: 10s705ms - Times executed: 2 ]
-
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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:57:10 Duration: 5s411ms 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 = '2191101') ORDER BY actionTypes, gd.network_score DESC NULLS LAST, g.nm_sort, d.nm_sort;
Date: 2026-06-30 09:52:55 Duration: 5s294ms Database: ctdprd51 User: pubeu Bind query: yes
20 5s20ms 5s109ms 5s75ms 3 15s226ms select d.abbr dagabbr, d.nm dagnm, gt.level_min_no daglevelmin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pvalcorrected, te.raw_p_val pvalraw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, count(*) over () fullrowcount from term_enrichment te inner join dag_node gt on te.enriched_term_id = gt.object_id inner join dag d on gt.dag_id = d.id where te.term_id = ? and te.enriched_object_type_id = ? order by te.corrected_p_val, d.abbr, gt.nm_sort limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 30 09 1 5s20ms 5s20ms 13 1 5s95ms 5s95ms 16 1 5s109ms 5s109ms [ User: pubeu - Total duration: 10s130ms - Times executed: 2 ]
[ User: qaeu - Total duration: 5s95ms - Times executed: 1 ]
-
SELECT /* ChemGODAO */ d.abbr dagAbbr, d.nm dagNm, gt.level_min_no dagLevelMin, gt.nm gonm, gt.nm_html gonmhtml, gt.acc_txt goacc, gt.object_id goid, te.corrected_p_val pValCorrected, te.raw_p_val pValRaw, te.target_match_qty targetmatchqty, te.target_total_qty targettotalqty, te.background_match_qty backgroundmatchqty, te.background_total_qty backgroundtotalqty, COUNT(*) OVER () fullRowCount FROM term_enrichment te INNER JOIN dag_node gt ON te.enriched_term_id = gt.object_id INNER JOIN dag d ON gt.dag_id = d.id WHERE te.term_id = '1473402' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 16:03:51 Duration: 5s109ms 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 = '1365499' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 13:42:40 Duration: 5s95ms Database: ctdprd51 User: qaeu 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 = '1442634' AND te.enriched_object_type_id = 5 ORDER BY te.corrected_p_val, d.abbr, gt.nm_sort LIMIT 50;
Date: 2026-06-30 09:23:11 Duration: 5s20ms Database: ctdprd51 User: pubeu Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 7,909 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 6 ERROR entries
- 0 WARNING entries
- 5 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 5 Max number of times the same event was reported
- 11 Total events found
Rank Times reported Error 1 5 LOG: could not receive data from client: Connection timed out
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 30 23 5 2 4 ERROR: value too long for type character varying(...)
Times Reported Most Frequent Error / Event #2
Day Hour Count Jun 30 19 4 - ERROR: value too long for type character varying(256)
Statement: INSERT /* AdvancedQueryDAO.logQuery */ INTO pubc.log_query (type_cd ,query_tm ,submission_qty ,session_id ,server_nm ,node_nm ,remote_addr ,http_user_agent ,results_qty ,execution_ms ,gene_txt ,taxon_txt ,chem_txt ,acc_txt ,party_nm_txt ,gene_query_type ,taxon_query_type ,chem_query_type ,party_query_type ,action_type_txt ,pathway_txt ,pathway_query_type ,gene_form_type_txt ,action_degree_type_txt,go_txt ,go_query_type ,disease_txt ,disease_query_type ,gd_assn_type ,from_yr ,through_yr ,title_abstract_txt ,review_status ) VALUES ($1 ,CURRENT_TIMESTAMP ,1 ,$2 ,$3 ,NULLIF($4,'') ,SUBSTR($5,1,128) ,NULLIF(SUBSTR($6,1,256),'') ,$7 ,NULLIF($8,-1) ,NULLIF($9,'') ,NULLIF($10,'') ,NULLIF($11,'') ,NULLIF(SUBSTR($12,1,4000),'') ,NULLIF($13,'') ,NULLIF($14,'') ,NULLIF($15,'') ,NULLIF($16,'') ,NULLIF($17,'') ,NULLIF(SUBSTR($18,1,4000),'') ,NULLIF(SUBSTR($19,1,4000),'') ,NULLIF(SUBSTR($20,1,4000),'') ,NULLIF(SUBSTR($21,1,4000),'') ,NULLIF(SUBSTR($22,1,4000),'') ,NULLIF($23,'') ,NULLIF($24,'') ,NULLIF(SUBSTR($25,1,4000),'') ,NULLIF($26,'') ,NULLIF($27,'') ,NULLIF($28,0) ,NULLIF($29,0) ,NULLIF($30,'') ,NULLIF($31,'') ) RETURNING id
Date: 2026-06-30 19:21:27 Database: ctdprd51 Application: User: pubeu Remote:
3 1 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Jun 30 13 1 - ERROR: relation "pubx.object_type" does not exist at character 336
Statement: select count(*) from pub2.term where has_exposures is true and has_references is false and object_type_id <> ( select id from pubX.object_type where cd = 'go' )
Date: 2026-06-30 13:09:34 Database: ctdprd51 Application: pgAdmin 4 - CONN:4766381 User: load Remote:
4 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Jun 30 13 1 - ERROR: syntax error at or near "select" at character 379
Statement: select remote_addr, min(query_tm), max(query_tm) --select distinct(basic_query_txt) --select * --select max(query_tm) from log_query -- from log_query_archive where query_tm >= '20260515' -- and query_tm < '20251129' --and remote_addr = '83.249.73.193' and remote_addr = '120.238.227.252' --order by query_tm desc group by remote_addr --order by count(*) desc --limit 100 select remote_addr, count(*) from log_query where query_tm >= '20260609' group by remote_addr order by count(*) desc limit 50
Date: 2026-06-30 13:30:21