-
Global information
- Generated on Fri Jan 17 23:46:45 2025
- Log file: /var/lib/pgsql/16/data/log/postgresql.log
- Parsed 24,542,778 log entries in 1m43s
- Log start from 2025-01-17 00:00:00 to 2025-01-17 22:45:01
-
Overview
Global Stats
- 13,125 Number of unique normalized queries
- 10,640,142 Number of queries
- 4d9h27m17s Total query duration
- 2025-01-17 00:00:00 First query
- 2025-01-17 22:45:01 Last query
- 9,959 queries/s at 2025-01-17 18:36:11 Query peak
- 4d9h27m17s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 4d9h27m17s Execute total duration
- 2,434 Number of events
- 23 Number of unique normalized events
- 896 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 0 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 0 Total number of sessions
- 0 sessions at Session peak
- 0ms Total duration of sessions
- 0ms Average duration of sessions
- 10,640,142 Average queries per session
- 4d9h27m17s Average queries duration per session
- n/a Average idle time per session
- 0 Total number of connections
- 1 Total number of databases
SQL Traffic
Key values
- 9,959 queries/s Query Peak
- 2025-01-17 18:36:11 Date
SELECT Traffic
Key values
- 9,885 queries/s Query Peak
- 2025-01-17 18:36:11 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1,105 queries/s Query Peak
- 2025-01-17 11:53:45 Date
Queries duration
Key values
- 4d9h27m17s 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) Jan 17 00 270,030 0ms 3s844ms 24ms 3m30s 4m5s 5m13s 01 271,737 0ms 22s160ms 28ms 3m30s 4m10s 4m45s 02 245,375 0ms 981ms 28ms 3m23s 3m52s 4m16s 03 249,230 0ms 973ms 28ms 3m54s 4m12s 4m34s 04 209,066 0ms 748ms 28ms 3m28s 3m57s 4m38s 05 202,490 0ms 665ms 25ms 2m29s 2m33s 3m6s 06 138,840 0ms 4s686ms 29ms 2m2s 2m19s 3m32s 07 105,723 0ms 661ms 23ms 1m35s 1m55s 2m33s 08 251,439 0ms 2s111ms 13ms 1m46s 2m29s 2m52s 09 536,408 0ms 2s485ms 14ms 3m1s 3m9s 3m49s 10 650,648 0ms 3s134ms 12ms 4m 4m33s 4m40s 11 584,006 0ms 55m12s 52ms 3m 3m39s 6h41m12s 12 790,756 0ms 46m33s 43ms 4m13s 5m3s 7h15m24s 13 852,827 0ms 26m33s 51ms 5m18s 7m46s 5h15m10s 14 923,199 0ms 6s261ms 14ms 5m59s 6m50s 7m46s 15 775,741 0ms 3s143ms 11ms 4m27s 4m40s 5m59s 16 861,650 0ms 59m59s 67ms 7m48s 2h3m15s 7h45m19s 17 745,381 0ms 17m55s 45ms 11m10s 13m9s 4h22m44s 18 595,894 0ms 3m11s 23ms 6m37s 6m59s 8m8s 19 450,733 0ms 59m59s 30ms 3m20s 5m1s 1h2m53s 20 424,742 0ms 27s693ms 17ms 3m37s 4m42s 5m49s 21 340,449 0ms 41m18s 162ms 3m11s 3m48s 7h3m20s 22 163,778 0ms 3s64ms 11ms 1m25s 1m33s 3m6s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jan 17 00 146,444 0 45ms 2m40s 3m29s 4m22s 01 144,721 0 52ms 3m6s 3m30s 4m35s 02 127,355 0 54ms 2m56s 3m22s 3m58s 03 132,241 0 53ms 2m50s 3m54s 4m32s 04 104,592 0 57ms 2m34s 3m28s 4m9s 05 103,108 0 49ms 2m14s 2m29s 2m53s 06 73,824 0 54ms 1m39s 2m2s 2m56s 07 59,028 0 41ms 1m 1m35s 2m8s 08 141,408 0 23ms 1m30s 1m46s 2m35s 09 307,535 0 24ms 2m43s 3m 3m29s 10 365,679 0 21ms 3m16s 3m59s 4m33s 11 329,493 0 20ms 2m32s 2m54s 3m38s 12 469,660 0 17ms 3m3s 4m12s 5m3s 13 514,137 0 19ms 3m51s 4m33s 5m32s 14 546,427 0 24ms 4m47s 5m58s 7m16s 15 447,715 0 19ms 3m28s 4m27s 4m43s 16 507,078 0 28ms 5m53s 6m51s 7m56s 17 455,144 0 40ms 8m41s 10m47s 13m7s 18 348,889 0 38ms 5m44s 6m28s 6m58s 19 252,434 0 26ms 2m30s 3m14s 3m55s 20 241,334 0 29ms 2m48s 3m37s 5m33s 21 206,256 0 23ms 1m54s 2m45s 3m39s 22 94,918 0 19ms 1m6s 1m25s 3m6s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jan 17 00 25,451 6,309 146 0 0ms 143ms 187ms 266ms 01 28,328 7,039 236 0 0ms 182ms 207ms 302ms 02 24,916 6,418 138 0 0ms 143ms 210ms 292ms 03 26,874 6,851 131 0 0ms 164ms 206ms 283ms 04 21,150 6,628 136 0 0ms 141ms 174ms 263ms 05 19,435 5,527 211 0 0ms 130ms 158ms 186ms 06 13,813 3,476 130 0 0ms 94ms 117ms 187ms 07 10,482 2,406 131 0 0ms 88ms 98ms 161ms 08 11,032 4,150 197 0 0ms 71ms 87ms 125ms 09 27,577 9,004 355 0 0ms 144ms 165ms 245ms 10 32,380 9,461 487 0 0ms 179ms 216ms 312ms 11 28,504 8,000 370 0 652ms 168ms 216ms 331ms 12 34,529 10,621 600 0 568ms 212ms 256ms 352ms 13 41,631 12,725 406 0 615ms 270ms 333ms 481ms 14 51,676 15,935 503 0 0ms 272ms 312ms 470ms 15 35,386 11,393 756 0 0ms 199ms 233ms 348ms 16 43,742 19,549 621 0 689ms 324ms 364ms 1h59m59s 17 42,556 15,186 487 0 270ms 409ms 644ms 22s535ms 18 38,802 9,540 386 0 6ms 264ms 321ms 709ms 19 27,414 7,759 427 4 202ms 167ms 226ms 5s302ms 20 24,326 8,140 309 2 1ms 149ms 230ms 297ms 21 17,196 8,126 188 0 1s986ms 108ms 142ms 214ms 22 8,715 2,007 168 0 0ms 86ms 106ms 154ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jan 17 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 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jan 17 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s Day Hour Count Average Duration Average idle time Jan 17 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 40,324 buffers Checkpoint Peak
- 2025-01-17 15:01:21 Date
- 270.050 seconds Highest write time
- 0.016 seconds Sync time
Checkpoints Wal files
Key values
- 17 files Wal files usage Peak
- 2025-01-17 14:36:21 Date
Checkpoints distance
Key values
- 553.82 Mo Distance Peak
- 2025-01-17 15:01:21 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jan 17 00 137,951 3,239.575s 0.035s 3,239.652s 01 129,944 3,230.579s 0.037s 3,230.652s 02 133,791 3,239.559s 0.029s 3,239.647s 03 111,802 3,239.57s 0.035s 3,239.648s 04 116,389 3,239.486s 0.034s 3,239.563s 05 118,553 3,239.624s 0.032s 3,239.703s 06 83,786 3,239.554s 0.028s 3,239.632s 07 44,197 2,319.763s 0.023s 2,319.816s 08 64,930 2,992.877s 0.027s 2,992.935s 09 167,245 3,239.578s 0.033s 3,239.658s 10 243,563 3,239.577s 0.043s 3,239.666s 11 265,371 3,239.542s 0.036s 3,239.644s 12 279,507 3,239.505s 0.049s 3,239.62s 13 304,037 3,239.604s 0.043s 3,239.703s 14 338,143 3,239.479s 0.044s 3,239.598s 15 315,270 3,239.581s 0.042s 3,239.689s 16 257,630 3,239.523s 0.044s 3,239.628s 17 258,320 2,889.962s 0.08s 2,890.101s 18 236,599 3,239.601s 0.043s 3,239.7s 19 157,055 3,239.484s 0.038s 3,239.566s 20 137,934 3,239.594s 0.037s 3,239.678s 21 91,222 3,239.541s 0.033s 3,239.614s 22 52,439 2,373.793s 0.026s 2,373.849s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jan 17 00 0 0 58 3,889 0.002s 0.012s 01 0 0 55 3,655 0.003s 0.012s 02 0 0 60 2,773 0.002s 0.012s 03 0 0 50 2,753 0.002s 0.012s 04 0 0 52 2,721 0.002s 0.012s 05 0 0 53 3,194 0.002s 0.012s 06 0 0 36 2,564 0.003s 0.012s 07 0 0 19 2,425 0.002s 0.011s 08 0 0 24 2,898 0.002s 0.012s 09 0 0 66 4,092 0.002s 0.012s 10 0 0 99 4,544 0.003s 0.012s 11 0 0 109 4,096 0.002s 0.012s 12 0 0 114 4,620 0.011s 0.012s 13 0 0 128 5,048 0.003s 0.012s 14 0 0 142 5,128 0.003s 0.012s 15 0 0 131 5,053 0.002s 0.012s 16 0 0 104 5,268 0.002s 0.012s 17 0 0 105 5,027 0.009s 0.012s 18 0 0 99 4,999 0.002s 0.012s 19 0 0 63 5,040 0.002s 0.012s 20 0 0 57 4,845 0.002s 0.012s 21 0 0 38 4,439 0.002s 0.012s 22 0 0 22 2,793 0.002s 0.009s Day Hour Count Avg time (sec) Jan 17 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jan 17 00 79,093.83 kB 131,608.33 kB 01 75,229.33 kB 95,577.58 kB 02 81,172.67 kB 101,715.00 kB 03 68,646.00 kB 108,402.75 kB 04 71,341.17 kB 98,463.42 kB 05 71,880.17 kB 88,117.67 kB 06 48,941.67 kB 76,026.00 kB 07 25,871.60 kB 48,221.80 kB 08 33,600.00 kB 44,259.75 kB 09 90,350.58 kB 108,435.58 kB 10 134,710.42 kB 149,491.50 kB 11 138,688.91 kB 210,322.27 kB 12 156,238.92 kB 207,654.00 kB 13 174,203.33 kB 223,703.67 kB 14 193,810.75 kB 225,726.50 kB 15 179,180.08 kB 242,163.42 kB 16 143,092.82 kB 174,974.73 kB 17 147,558.00 kB 193,258.10 kB 18 135,986.50 kB 196,855.33 kB 19 86,304.25 kB 148,437.75 kB 20 77,814.42 kB 117,219.92 kB 21 51,236.17 kB 88,506.92 kB 22 40,383.33 kB 67,668.78 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jan 17 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
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 Jan 17 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 - 0 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
- 6,119,420 Total read queries
- 3,100,912 Total write queries
Queries by database
Key values
- unknown Main database
- 10,640,142 Requests
- 4d9h27m17s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 10,640,142 Requests
User Request type Count Duration unknown Total 10,640,142 4d9h27m17s copy from 6 10ms cte 12,211 2s505ms ddl 693 99ms delete 7,519 6s335ms insert 635,915 3m8s others 1,419,810 1m8s select 6,119,420 2d1h17m tcl 2,248,318 1m34s update 196,250 2d8h4m16s Duration by user
Key values
- 4d9h27m17s (unknown) Main time consuming user
User Request type Count Duration unknown Total 10,640,142 4d9h27m17s copy from 6 10ms cte 12,211 2s505ms ddl 693 99ms delete 7,519 6s335ms insert 635,915 3m8s others 1,419,810 1m8s select 6,119,420 2d1h17m tcl 2,248,318 1m34s update 196,250 2d8h4m16s Queries by host
Key values
- unknown Main host
- 10,640,142 Requests
- 4d9h27m17s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 10,640,142 Requests
- 4d9h27m17s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2025-01-17 03:45:29 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 9,832,586 0-1ms duration
Slowest individual queries
Rank Duration Query 1 59m59s update res_users set sid = 'b415613d1bbb70885e9364c9a35b3f3b3974e477', last_update = '2025-01-17 17:09:06.918751', exp_date = '2025-01-17 17:54:06.918756', logged_in = 'TRUE' where id = 848;[ Date: 2025-01-17 19:09:06 ]
2 59m59s update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684976', exp_date = '2025-01-17 14:54:04.684978', logged_in = 'TRUE' where id = 1287;[ Date: 2025-01-17 16:09:04 ]
3 59m59s update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684803', exp_date = '2025-01-17 14:54:04.684806', logged_in = 'TRUE' where id = 1287;[ Date: 2025-01-17 16:09:04 ]
4 59m59s update res_users set sid = 'e1484df26602143ee1e4b23428a7a7dc187e77e2', last_update = '2025-01-17 17:40:23.836668', exp_date = '2025-01-17 18:25:23.836672', logged_in = 'TRUE' where id = 1116;[ Date: 2025-01-17 19:40:23 ]
5 55m12s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:35:07.959400', exp_date = '2025-01-17 10:20:07.959401', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
6 55m12s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:35:07.959910', exp_date = '2025-01-17 10:20:07.959912', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
7 53m34s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:36:46.413084', exp_date = '2025-01-17 10:21:46.413087', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
8 52m1s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:38:19.363730', exp_date = '2025-01-17 10:23:19.363732', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
9 46m33s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:30:46.951726', exp_date = '2025-01-17 11:15:46.951731', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
10 46m29s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:30:50.972645', exp_date = '2025-01-17 11:15:50.972649', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
11 46m27s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:30:53.446091', exp_date = '2025-01-17 11:15:53.446096', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
12 46m16s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:44:04.255470', exp_date = '2025-01-17 10:29:04.255472', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
13 46m11s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:31:09.371632', exp_date = '2025-01-17 11:16:09.371636', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
14 45m34s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:31:46.725997', exp_date = '2025-01-17 11:16:46.726003', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
15 44m2s update res_users set sid = '8207ce6c95aa26151bc48cb1999f0eebe4fee864', last_update = '2025-01-17 09:46:18.369617', exp_date = '2025-01-17 10:31:18.369622', logged_in = 'TRUE' where id = 974;[ Date: 2025-01-17 11:30:20 ]
16 43m57s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:33:23.534705', exp_date = '2025-01-17 11:18:23.534711', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
17 43m23s update res_users set sid = 'b383d702f7f311211a012bcc540f9b0c30eeacd3', last_update = '2025-01-17 10:33:57.466281', exp_date = '2025-01-17 11:18:57.466285', logged_in = 'TRUE' where id = 835;[ Date: 2025-01-17 12:17:20 ]
18 41m18s update res_users set sid = '1276f4556365ef9e13826bed60fa691faf3dfbe7', last_update = '2025-01-17 20:11:02.454638', exp_date = '2025-01-17 20:56:02.454641', logged_in = 'TRUE' where id = 1390;[ Date: 2025-01-17 21:52:21 ]
19 41m18s update res_users set sid = '1276f4556365ef9e13826bed60fa691faf3dfbe7', last_update = '2025-01-17 20:11:02.563157', exp_date = '2025-01-17 20:56:02.563159', logged_in = 'TRUE' where id = 1390;[ Date: 2025-01-17 21:52:21 ]
20 40m27s update res_users set sid = '1276f4556365ef9e13826bed60fa691faf3dfbe7', last_update = '2025-01-17 20:11:53.328004', exp_date = '2025-01-17 20:56:53.328008', logged_in = 'TRUE' where id = 1390;[ Date: 2025-01-17 21:52:21 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2d5h16m52s 38,073 0ms 59m59s 5s38ms update res_users set sid = ?, last_update = ?, exp_date = ?, logged_in = ? where id = ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jan 17 00 775 175ms 0ms 01 960 22s377ms 23ms 02 869 199ms 0ms 03 1,285 293ms 0ms 04 1,373 307ms 0ms 05 925 209ms 0ms 06 327 72ms 0ms 07 201 46ms 0ms 08 889 197ms 0ms 09 2,156 487ms 0ms 10 2,442 554ms 0ms 11 1,966 6h40m39s 12s227ms 12 2,862 7h13m21s 9s84ms 13 3,107 8h30m56s 9s866ms 14 3,347 818ms 0ms 15 3,014 720ms 0ms 16 2,977 12h12m1s 14s753ms 17 2,306 4h21m3s 6s792ms 18 1,891 4m47s 152ms 19 1,598 1h59m59s 4s505ms 20 1,386 295ms 0ms 21 991 12h13m35s 44s415ms 22 426 96ms 0ms -
update res_users set sid = 'b415613d1bbb70885e9364c9a35b3f3b3974e477', last_update = '2025-01-17 17:09:06.918751', exp_date = '2025-01-17 17:54:06.918756', logged_in = 'TRUE' where id = 848;
Date: 2025-01-17 19:09:06 Duration: 59m59s
-
update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684976', exp_date = '2025-01-17 14:54:04.684978', logged_in = 'TRUE' where id = 1287;
Date: 2025-01-17 16:09:04 Duration: 59m59s
-
update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684803', exp_date = '2025-01-17 14:54:04.684806', logged_in = 'TRUE' where id = 1287;
Date: 2025-01-17 16:09:04 Duration: 59m59s
2 1d2h13m39s 177,301 461ms 3s939ms 532ms select "shipping_track".id from "shipping_track" where (("shipping_track"."shipping_id" in (...)) and (("shipping_track"."id" not in (...)) or "shipping_track"."id" is null)) order by "shipping_track"."id";Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 17 00 7,424 1h4m20s 520ms 01 8,803 1h15m38s 515ms 02 8,521 1h12m58s 513ms 03 9,224 1h19m21s 516ms 04 7,750 1h6m7s 511ms 05 6,587 55m44s 507ms 06 4,450 38m26s 518ms 07 2,504 22m28s 538ms 08 3,398 27m59s 494ms 09 7,392 1h2m4s 503ms 10 8,908 1h15m42s 509ms 11 6,616 55m30s 503ms 12 8,299 1h10m45s 511ms 13 9,131 1h19m14s 520ms 14 11,366 1h40m48s 532ms 15 8,182 1h10m28s 516ms 16 9,340 1h23m26s 536ms 17 16,375 2h46m46s 611ms 18 13,450 2h5m31s 559ms 19 5,841 54m38s 561ms 20 6,956 1h3m47s 550ms 21 4,629 42m17s 548ms 22 2,155 19m31s 543ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559540)) AND (("shipping_track"."id" not in (37632046, 37632046)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:17 Duration: 3s939ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559546)) AND (("shipping_track"."id" not in (37632197, 37632197)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:33 Duration: 3s569ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4467066)) AND (("shipping_track"."id" not in (36919716, 36923301, 36971088, 37027617, 37027789, 37051924, 37052422, 37189945, 37190256, 37388372, 37632156, 37632156)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:28 Duration: 3s65ms
3 6h8m18s 109,592 164ms 1s22ms 201ms select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jan 17 00 1,686 5m16s 187ms 01 1,950 6m4s 187ms 02 2,584 8m2s 186ms 03 1,982 6m10s 187ms 04 3,089 9m39s 187ms 05 2,171 6m45s 186ms 06 1,733 5m23s 186ms 07 302 55s831ms 184ms 08 3,312 10m21s 187ms 09 6,347 20m4s 189ms 10 4,564 14m35s 191ms 11 4,481 14m9s 189ms 12 4,262 13m45s 193ms 13 7,504 24m30s 195ms 14 11,083 36m43s 198ms 15 5,537 17m56s 194ms 16 19,336 1h7m39s 209ms 17 14,967 58m42s 235ms 18 4,784 16m3s 201ms 19 854 2m41s 188ms 20 4,530 14m49s 196ms 21 2,534 7m58s 188ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9422604')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:08:15 Duration: 1s22ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9916401')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:40:25 Duration: 385ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9963425')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:44 Duration: 369ms
4 4h10s 26,630 468ms 1s667ms 541ms select "shipping_track".id from "shipping_track" where ("shipping_track"."shipping_id" in (...)) order by "shipping_track"."id";Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 17 00 234 2m9s 551ms 01 713 6m6s 514ms 02 164 1m36s 590ms 03 167 1m39s 593ms 04 140 1m23s 593ms 05 442 3m50s 522ms 06 86 48s356ms 562ms 07 105 53s710ms 511ms 08 481 4m11s 523ms 09 1,243 10m53s 525ms 10 1,996 17m19s 521ms 11 1,694 14m46s 523ms 12 2,312 20m19s 527ms 13 1,911 17m15s 541ms 14 2,257 20m29s 544ms 15 2,331 20m29s 527ms 16 2,648 23m53s 541ms 17 2,085 20m36s 593ms 18 1,511 14m12s 564ms 19 1,274 11m32s 543ms 20 1,563 14m9s 543ms 21 828 7m31s 545ms 22 445 4m 540ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (538062)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:21:56 Duration: 1s667ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (4412427, 4412429, 4412431, 4412433, 4412435, 4412437, 4412438, 4412440, 4412442, 4412444, 4412446, 4412448, 4412450, 4412452, 4412454, 4412456, 4412458, 4412460, 4412462, 4412464, 4412466, 4412468, 4412470, 4412472, 4412474, 4412476, 4412478, 4412480, 4412482, 4412484, 4412486, 4412488, 4412490, 4412492, 4495321, 4495470, 4495479, 4496632, 4497919, 4497921, 4497922, 4497924, 4497926, 4497928, 4497929, 4497931, 4497932, 4497934, 4497936, 4497937, 4497939, 4497941, 4497942, 4497944, 4497946, 4497948, 4497949, 4497951, 4497953, 4497954, 4497956, 4497958, 4497959, 4497961, 4497963, 4497964, 4497966, 4497968, 4497970, 4497971, 4497973, 4497975, 4502562, 4502567, 4502570, 4502573, 4502576, 4502578, 4502581, 4502584, 4502587, 4502590, 4502593, 4502596, 4502598, 4502601, 4502605, 4502606, 4502610, 4502613, 4502617, 4502618, 4502623, 4502624, 4502627, 4502630, 4502633, 4502636, 4502638, 4502640, 4502643, 4502646, 4502649, 4502652, 4502655, 4502659, 4505464, 4505466, 4505468, 4505470, 4505472, 4505473, 4505475, 4505477, 4505478, 4505480, 4505482, 4505484, 4505485, 4505487, 4505489, 4505490, 4505493, 4505496, 4505498, 4505501, 4505504, 4505506, 4505510, 4505512, 4505515, 4505518, 4505521, 4505524, 4505527, 4505529, 4505532, 4505535, 4505536, 4505540, 4526064, 4526065, 4526069, 4526075, 4526077, 4526083, 4526084, 4526086, 4526087, 4526091, 4526095, 4526097, 4526098, 4526099, 4526100, 4526101, 4526103, 4526104, 4526111, 4526112, 4526113, 4526114, 4526115, 4526116, 4526118, 4526120, 4526121, 4526122, 4526123, 4526125, 4526126, 4526129, 4526130, 4526131, 4526133, 4526134, 4526135, 4526139, 4526140, 4526142, 4526145, 4526146, 4526149, 4526229, 4526230, 4526231, 4526233, 4526234, 4526235, 4526236, 4526237, 4526238, 4526239, 4526242, 4526244, 4526245, 4526246, 4526247, 4526250, 4526257, 4526258, 4526259, 4526260, 4526262, 4526264, 4526269, 4526270, 4526272, 4526276, 4526280, 4526281, 4526283, 4526284, 4526287, 4526288, 4526289, 4526290, 4526291, 4526292, 4526293, 4526296, 4526299, 4526300, 4526302, 4526424, 4526425, 4526426, 4526434, 4526437, 4526438, 4526441, 4526442, 4526443, 4526444, 4526452, 4526453, 4526454, 4526456, 4526457)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:25 Duration: 1s327ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (4471708)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:30 Duration: 1s100ms
5 2h41m43s 160 0ms 38m30s 1m update "res_users" set "exp_date" = ?, "last_update" = ?, "sid" = ?, "write_date" = ?, "write_uid" = ? where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jan 17 00 5 5ms 1ms 01 1 1ms 1ms 02 2 1ms 0ms 03 2 0ms 0ms 04 1 0ms 0ms 05 2 1ms 0ms 06 2 1ms 0ms 08 3 0ms 0ms 09 7 1ms 0ms 10 2 1ms 0ms 11 5 7ms 1ms 12 11 12ms 1ms 13 21 50m41s 2m24s 14 14 14ms 1ms 15 13 6ms 0ms 16 12 14ms 1ms 17 14 21ms 1ms 18 9 11ms 1ms 19 7 1ms 0ms 20 3 3ms 1ms 21 22 1h51m1s 5m2s 22 2 3ms 1ms -
UPDATE "res_users" SET "exp_date" = '2025-01-17 20:58:50.874486', "last_update" = '2025-01-17 20:13:50.874524', "sid" = '18d3b47b86e5b4df613a056eaef58c62705fdcae', "write_date" = '2025-01-17 20:13:50.469973', "write_uid" = 1390 WHERE id IN (1390);
Date: 2025-01-17 21:52:21 Duration: 38m30s
-
UPDATE "res_users" SET "exp_date" = '2025-01-17 20:27:37.116807', "last_update" = '2025-01-17 19:42:37.116824', "sid" = '5109ad8062cc99a97bab285b8b08bb5c92e3f85a', "write_date" = '2025-01-17 19:42:36.783805', "write_uid" = 1 WHERE id IN (884);
Date: 2025-01-17 21:10:03 Duration: 27m26s
-
UPDATE "res_users" SET "exp_date" = '2025-01-17 21:13:51.028258', "last_update" = '2025-01-17 20:28:51.028279', "sid" = '18d3b47b86e5b4df613a056eaef58c62705fdcae', "write_date" = '2025-01-17 20:28:50.705285', "write_uid" = 1390 WHERE id IN (1390);
Date: 2025-01-17 21:52:21 Duration: 23m30s
6 2h5m48s 32,912 96ms 830ms 229ms select "urgent_customer".id from "urgent_customer" where (("urgent_customer"."active" = true) and ("urgent_customer"."name" = ?)) order by "urgent_customer"."id" limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 17 00 3,146 12m1s 229ms 01 3,265 11m25s 209ms 02 2,639 9m18s 211ms 03 3,022 10m42s 212ms 04 1,706 6m10s 217ms 05 1,642 6m5s 222ms 06 2,288 10m2s 263ms 07 2,418 9m20s 231ms 08 26 6s9ms 231ms 09 46 6s656ms 144ms 10 30 6s523ms 217ms 11 6 1s174ms 195ms 12 46 9s664ms 210ms 13 550 2m22s 259ms 14 660 3m4s 279ms 15 310 1m14s 241ms 16 1,400 6m 257ms 17 1,122 5m20s 285ms 18 1,652 6m14s 226ms 19 2,787 10m19s 222ms 20 1,837 7m1s 229ms 21 1,674 6m18s 226ms 22 640 2m14s 210ms -
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'عبد الرحمن')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:56:07 Duration: 830ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:56:07 Duration: 830ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمود')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:12:09 Duration: 803ms
7 1h34m11s 20,862 171ms 471ms 270ms select "collection_policy".id from "collection_policy" where (("collection_policy"."type" = ?) and ("collection_policy"."shipping_id" in ( select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where ("shipping_policy__policy_id"."name" = ?)))) order by "collection_policy"."id";Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 17 08 1,108 4m38s 251ms 09 3,133 13m12s 252ms 10 1,739 8m9s 281ms 11 2,188 10m24s 285ms 12 1,823 8m1s 264ms 13 2,560 11m22s 266ms 14 3,583 15m51s 265ms 15 2,194 9m37s 263ms 16 2,218 11m7s 301ms 17 316 1m45s 332ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '9876756')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 16:57:19 Duration: 471ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '488866')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 14:54:00 Duration: 462ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '9904085')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 13:10:42 Duration: 461ms
8 1h32m37s 6,187 818ms 1s525ms 898ms select "policy_number".id from "policy_number" where ((((((("policy_number"."active" = true) and ("policy_number"."name" = ?)) and ("policy_number"."package_id" = ?)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."active" = true) and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))))) and ("policy_number"."done" is null or "policy_number"."done" = false)) and ("policy_number"."damaged" is null or "policy_number"."damaged" = false)) and (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))) and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) or (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."delegates_id" is not null and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))))))) order by "policy_number"."id";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 17 00 874 12m55s 887ms 01 881 13m4s 890ms 02 516 7m43s 898ms 03 250 3m44s 896ms 08 10 8s799ms 879ms 09 3 2s745ms 915ms 11 1 894ms 894ms 12 9 7s981ms 886ms 13 129 1m57s 909ms 14 209 3m14s 928ms 15 111 1m40s 907ms 16 214 3m11s 894ms 17 142 2m39s 1s126ms 18 364 5m35s 920ms 19 1,207 17m42s 880ms 20 629 9m20s 890ms 21 551 8m10s 890ms 22 87 1m16s 881ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9740222')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:42:11 Duration: 1s525ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9896551')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:41:59 Duration: 1s393ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9896543')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:42:50 Duration: 1s352ms
9 1h8m2s 93,958 34ms 106ms 43ms select "shipping_policy_items".id from "shipping_policy_items" where ("shipping_policy_items"."shipping_policy_id" in (...)) order by "shipping_policy_items"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 17 00 2,715 1m55s 42ms 01 3,802 2m41s 42ms 02 2,608 1m51s 42ms 03 3,379 2m23s 42ms 04 2,574 1m50s 42ms 05 2,240 1m35s 42ms 06 1,035 44s57ms 42ms 07 458 19s296ms 42ms 08 2,285 1m37s 42ms 09 6,222 4m26s 42ms 10 5,981 4m18s 43ms 11 5,886 4m12s 42ms 12 7,014 5m5s 43ms 13 7,470 5m28s 44ms 14 9,115 6m47s 44ms 15 6,490 4m42s 43ms 16 7,297 5m25s 44ms 17 4,012 3m5s 46ms 18 3,085 2m14s 43ms 19 3,168 2m14s 42ms 20 3,449 2m27s 42ms 21 2,073 1m27s 42ms 22 1,600 1m7s 42ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4389579)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 16:34:07 Duration: 106ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (538062)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:21:56 Duration: 99ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4512157)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:40:17 Duration: 99ms
10 44m52s 10,501 212ms 545ms 256ms select "policy_number".id from "policy_number" where ((((((("policy_number"."active" = true) and ("policy_number"."name" = ?)) and ("policy_number"."package_id" = ?)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."active" = true)))) and ("policy_number"."done" is null or "policy_number"."done" = false)) and ("policy_number"."damaged" is null or "policy_number"."damaged" = false)) and (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) or (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."delegates_id" is not null)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))))) order by "policy_number"."id";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 17 00 724 3m10s 263ms 01 771 3m21s 261ms 02 818 3m26s 252ms 03 1,279 5m16s 247ms 04 862 3m34s 248ms 05 830 3m26s 248ms 06 1,154 4m46s 248ms 07 1,218 5m8s 252ms 08 3 733ms 244ms 09 21 5s249ms 249ms 10 16 4s43ms 252ms 11 3 714ms 238ms 12 15 3s983ms 265ms 13 159 43s439ms 273ms 14 137 35s783ms 261ms 15 47 11s482ms 244ms 16 495 2m12s 268ms 17 425 2m11s 309ms 18 475 2m11s 277ms 19 210 53s140ms 253ms 20 305 1m18s 257ms 21 298 1m11s 240ms 22 236 57s141ms 242ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9432516')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:29 Duration: 545ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9726033')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:02 Duration: 531ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9726907')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:34 Duration: 525ms
11 39m43s 12,818 140ms 229ms 185ms select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) and ("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jan 17 00 1,456 4m31s 186ms 01 1,621 4m59s 184ms 02 2,431 7m30s 185ms 03 1,944 6m3s 187ms 04 2,404 7m28s 186ms 05 1,846 5m42s 185ms 06 1,022 3m10s 186ms 07 94 17s268ms 183ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9981048')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 02:07:25 Duration: 229ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9714959')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 00:12:09 Duration: 228ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9962455')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 04:31:50 Duration: 226ms
12 37m12s 42,711 41ms 122ms 52ms select "collection_policy".id from "collection_policy" where (("collection_policy"."shipping_id" = ?) and ("collection_policy"."state" = ?)) order by "collection_policy"."id";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 17 00 75 3s821ms 50ms 01 55 2s773ms 50ms 07 55 2s833ms 51ms 08 1,455 1m12s 49ms 09 6,016 5m4s 50ms 10 2,955 2m31s 51ms 11 4,403 3m42s 50ms 12 4,893 4m10s 51ms 13 4,054 3m31s 52ms 14 7,208 6m29s 54ms 15 4,071 3m32s 52ms 16 5,099 4m36s 54ms 17 1,122 1m4s 57ms 18 372 20s149ms 54ms 19 350 18s161ms 51ms 20 396 20s667ms 52ms 21 113 5s872ms 51ms 22 19 1s31ms 54ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 4512157) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:40:10 Duration: 122ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 3923752) AND ("collection_policy"."state" = 'draft')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:22:11 Duration: 113ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 4461639) AND ("collection_policy"."state" = 'draft')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:39:23 Duration: 103ms
13 28m49s 13 2m4s 2m43s 2m13s select min("shipping_policy".id) as id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" AS "state" from "shipping_policy" where ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) group by "shipping_policy"."state" order by "state" limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jan 17 17 7 15m30s 2m12s 18 6 13m19s 2m13s -
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 17:46:31 Duration: 2m43s
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 18:12:09 Duration: 2m21s
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 17:59:25 Duration: 2m18s
14 22m14s 6,890 167ms 337ms 193ms select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 17 00 114 21s411ms 187ms 01 329 1m1s 186ms 02 153 28s525ms 186ms 03 39 7s259ms 186ms 04 450 1m24s 188ms 05 325 1m 185ms 06 76 14s56ms 184ms 08 284 53s616ms 188ms 09 387 1m13s 190ms 10 165 31s622ms 191ms 11 284 54s212ms 190ms 12 272 52s545ms 193ms 13 854 2m46s 194ms 14 1,133 3m46s 199ms 15 389 1m14s 191ms 16 449 1m31s 204ms 17 199 41s822ms 210ms 18 330 1m4s 195ms 19 308 58s127ms 188ms 20 350 1m6s 191ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9953218')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:12 Duration: 337ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9598789')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:00 Duration: 312ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9598786')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:41:58 Duration: 307ms
15 16m33s 15 5s906ms 2m17s 1m6s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."state" = ?) and ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null)))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jan 17 17 7 8m11s 1m10s 18 8 8m21s 1m2s -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 50;
Date: 2025-01-17 17:48:49 Duration: 2m17s
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2025-01-17 18:34:31 Duration: 2m9s
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 50;
Date: 2025-01-17 17:34:21 Duration: 2m8s
16 14m46s 18,908 37ms 81ms 46ms select "collection_policy".id from "collection_policy" where ("collection_policy"."shipping_id" = ?) order by "collection_policy"."id";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jan 17 07 1 48ms 48ms 08 605 27s347ms 45ms 09 2,973 2m16s 45ms 10 1,386 1m4s 46ms 11 1,690 1m17s 46ms 12 1,772 1m21s 45ms 13 2,321 1m47s 46ms 14 2,917 2m21s 48ms 15 2,057 1m36s 46ms 16 2,746 2m13s 48ms 17 423 20s920ms 49ms 18 16 753ms 47ms 21 1 49ms 49ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 4380081) ORDER BY "collection_policy"."id";
Date: 2025-01-17 16:28:34 Duration: 81ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 3816330) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:42:43 Duration: 77ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 4427427) ORDER BY "collection_policy"."id";
Date: 2025-01-17 14:10:55 Duration: 72ms
17 14m19s 8 1m12s 2m15s 1m47s select count(*) from ( select from "shipping_policy" where (("shipping_policy"."state" = ?) and ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null)))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) limit ?) t;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jan 17 17 3 6m25s 2m8s 18 5 7m54s 1m34s -
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 101) t;
Date: 2025-01-17 17:36:37 Duration: 2m15s
-
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 101) t;
Date: 2025-01-17 18:36:37 Duration: 2m6s
-
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 102) t;
Date: 2025-01-17 18:41:40 Duration: 2m5s
18 13m10s 7,169 89ms 247ms 110ms select "cash_track".id from "cash_track" where (("cash_track"."cash_policy_id" in (...)) and (("cash_track"."id" not in (...)) or "cash_track"."id" is null)) order by "cash_track"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 17 01 81 8s836ms 109ms 05 69 7s523ms 109ms 08 51 5s594ms 109ms 09 375 39s859ms 106ms 10 361 39s964ms 110ms 11 957 1m38s 103ms 12 776 1m23s 107ms 13 938 1m42s 109ms 14 811 1m32s 113ms 15 457 50s217ms 109ms 16 468 52s290ms 111ms 17 482 1m 125ms 18 391 44s44ms 112ms 19 644 1m10s 109ms 20 183 20s553ms 112ms 21 71 8s194ms 115ms 22 54 6s104ms 113ms -
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997592)) AND (("cash_track"."id" not in (7062550)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:08:14 Duration: 247ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997759)) AND (("cash_track"."id" not in (7063570)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:42:08 Duration: 196ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997761)) AND (("cash_track"."id" not in (7063572)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:42:12 Duration: 189ms
19 9m58s 2,726 176ms 412ms 219ms select name from shipping_policy order by create_date desc limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jan 17 00 120 24s788ms 206ms 01 120 24s752ms 206ms 02 120 24s816ms 206ms 03 120 24s780ms 206ms 04 120 24s765ms 206ms 05 120 24s511ms 204ms 06 120 24s582ms 204ms 07 120 24s467ms 203ms 08 120 24s651ms 205ms 09 120 25s56ms 208ms 10 120 24s980ms 208ms 11 120 25s68ms 208ms 12 120 25s328ms 211ms 13 120 25s504ms 212ms 14 120 26s87ms 217ms 15 120 25s455ms 212ms 16 120 26s244ms 218ms 17 116 29s829ms 257ms 18 120 31s205ms 260ms 19 120 29s518ms 245ms 20 120 29s928ms 249ms 21 120 29s776ms 248ms 22 90 22s254ms 247ms -
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:42:02 Duration: 412ms
-
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:42:02 Duration: 368ms
-
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:40:02 Duration: 361ms
20 8m52s 3,915 119ms 251ms 135ms select "res_partner".id from "res_partner" where (("res_partner"."active" = true) and ("res_partner"."office_id" = ?)) and ((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or (("res_partner"."company_id" in (...)) or "res_partner"."company_id" is null)) and ((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null)) order by "res_partner"."display_name" asc, "res_partner"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jan 17 00 46 5s977ms 129ms 01 15 1s981ms 132ms 06 5 649ms 129ms 07 5 666ms 133ms 08 15 1s976ms 131ms 09 113 14s907ms 131ms 10 189 25s185ms 133ms 11 381 50s407ms 132ms 12 402 54s825ms 136ms 13 351 48s468ms 138ms 14 453 1m3s 141ms 15 370 49s188ms 132ms 16 629 1m28s 140ms 17 77 11s819ms 153ms 18 116 15s941ms 137ms 19 513 1m6s 130ms 20 56 7s363ms 131ms 21 138 18s71ms 130ms 22 41 5s433ms 132ms -
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:45 Duration: 251ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:44 Duration: 248ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:42 Duration: 248ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,419,174 1m8s 0ms 1ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jan 17 00 36,298 1s654ms 0ms 01 36,169 1s679ms 0ms 02 34,260 1s598ms 0ms 03 32,419 1s576ms 0ms 04 30,054 1s433ms 0ms 05 28,908 1s396ms 0ms 06 19,025 863ms 0ms 07 13,724 571ms 0ms 08 36,207 1s691ms 0ms 09 72,833 3s786ms 0ms 10 92,564 4s880ms 0ms 11 83,781 3s843ms 0ms 12 104,072 4s639ms 0ms 13 107,738 4s908ms 0ms 14 117,307 6s273ms 0ms 15 107,953 5s794ms 0ms 16 111,176 5s248ms 0ms 17 89,344 4s177ms 0ms 18 77,442 3s900ms 0ms 19 64,368 3s100ms 0ms 20 58,214 2s957ms 0ms 21 42,015 1s744ms 0ms 22 23,303 811ms 0ms -
DISCARD ALL;
Date: 2025-01-17 14:46:06 Duration: 1ms
-
DISCARD ALL;
Date: 2025-01-17 16:17:01 Duration: 1ms
-
DISCARD ALL;
Date: 2025-01-17 15:04:50 Duration: 1ms
2 1,124,285 17s377ms 0ms 15ms 0ms begin isolation level repeatable read;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 17 00 27,610 466ms 0ms 01 27,570 473ms 0ms 02 26,115 457ms 0ms 03 25,331 447ms 0ms 04 23,242 406ms 0ms 05 22,570 394ms 0ms 06 14,280 260ms 0ms 07 9,956 184ms 0ms 08 29,156 466ms 0ms 09 59,437 961ms 0ms 10 74,948 1s173ms 0ms 11 66,636 962ms 0ms 12 84,976 1s213ms 0ms 13 87,200 1s263ms 0ms 14 95,016 1s546ms 0ms 15 85,838 1s367ms 0ms 16 88,948 1s349ms 0ms 17 70,384 1s67ms 0ms 18 60,211 880ms 0ms 19 49,009 690ms 0ms 20 46,097 663ms 0ms 21 32,632 454ms 0ms 22 17,123 224ms 0ms -
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2025-01-17 11:33:03 Duration: 15ms
-
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2025-01-17 16:18:55 Duration: 1ms
-
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2025-01-17 17:47:54 Duration: 1ms
3 728,483 7s209ms 0ms 0ms 0ms rollback;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jan 17 00 18,913 193ms 0ms 01 18,729 184ms 0ms 02 17,868 175ms 0ms 03 16,928 170ms 0ms 04 15,710 154ms 0ms 05 15,192 150ms 0ms 06 10,122 96ms 0ms 07 7,498 68ms 0ms 08 18,832 176ms 0ms 09 37,246 375ms 0ms 10 47,071 479ms 0ms 11 42,611 406ms 0ms 12 53,132 523ms 0ms 13 54,893 549ms 0ms 14 59,672 634ms 0ms 15 54,980 557ms 0ms 16 56,750 581ms 0ms 17 45,604 487ms 0ms 18 39,650 368ms 0ms 19 33,069 294ms 0ms 20 29,889 283ms 0ms 21 21,895 194ms 0ms 22 12,229 101ms 0ms -
ROLLBACK;
Date: 2025-01-17 00:15:05 Duration: 0ms
-
ROLLBACK;
Date: 2025-01-17 17:40:50 Duration: 0ms
-
ROLLBACK;
Date: 2025-01-17 14:45:56 Duration: 0ms
4 715,147 2m13s 0ms 11ms 0ms select payload from http_sessions where sid = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 17 00 18,169 3s537ms 0ms 01 18,111 3s616ms 0ms 02 17,175 3s432ms 0ms 03 16,285 3s222ms 0ms 04 15,055 2s906ms 0ms 05 14,527 2s778ms 0ms 06 9,529 1s749ms 0ms 07 6,885 1s107ms 0ms 08 18,216 3s65ms 0ms 09 36,666 7s49ms 0ms 10 46,711 8s761ms 0ms 11 42,222 7s757ms 0ms 12 52,693 10s274ms 0ms 13 54,374 10s525ms 0ms 14 59,232 12s38ms 0ms 15 54,366 10s184ms 0ms 16 55,947 11s52ms 0ms 17 45,179 8s866ms 0ms 18 38,977 6s562ms 0ms 19 32,507 5s32ms 0ms 20 29,309 4s777ms 0ms 21 21,205 3s187ms 0ms 22 11,807 1s681ms 0ms -
SELECT payload FROM http_sessions WHERE sid = '0790f2324d785e64e6e564899ca8ce20852450c9';
Date: 2025-01-17 17:21:50 Duration: 11ms
-
SELECT payload FROM http_sessions WHERE sid = '95a4a1db5a175b91245fcb7198949fa800bb9721';
Date: 2025-01-17 17:21:50 Duration: 1ms
-
SELECT payload FROM http_sessions WHERE sid = '006320ae070dd96af00507d4a5753ce3e86f6800';
Date: 2025-01-17 14:44:49 Duration: 1ms
5 710,260 1m3s 0ms 1ms 0ms select base_registry_signaling.last_value, base_cache_signaling.last_value from base_registry_signaling, base_cache_signaling;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jan 17 00 18,192 1s700ms 0ms 01 18,157 1s668ms 0ms 02 17,187 1s568ms 0ms 03 16,275 1s505ms 0ms 04 15,095 1s374ms 0ms 05 14,515 1s331ms 0ms 06 9,587 842ms 0ms 07 6,938 580ms 0ms 08 18,164 1s569ms 0ms 09 36,442 3s333ms 0ms 10 46,328 4s157ms 0ms 11 41,954 3s625ms 0ms 12 52,057 4s696ms 0ms 13 53,852 4s899ms 0ms 14 58,658 5s671ms 0ms 15 53,962 4s888ms 0ms 16 55,516 5s48ms 0ms 17 44,647 4s384ms 0ms 18 38,710 3s355ms 0ms 19 32,225 2s635ms 0ms 20 29,156 2s492ms 0ms 21 20,939 1s678ms 0ms 22 11,704 878ms 0ms -
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2025-01-17 00:18:00 Duration: 1ms
-
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2025-01-17 16:00:07 Duration: 0ms
-
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2025-01-17 15:39:35 Duration: 0ms
6 505,478 1m17s 0ms 10ms 0ms select "res_users"."id" AS "id", "res_users"."partner_id" AS "partner_id", "res_users"."login" AS "login", "res_users"."signature" AS "signature", "res_users"."active" AS "active", "res_users"."action_id" AS "action_id", "res_users"."share" AS "share", "res_users"."company_id" AS "company_id", "res_users"."create_uid" AS "create_uid", "res_users"."create_date" AS "create_date", "res_users"."write_uid" AS "write_uid", "res_users"."write_date" AS "write_date", "res_users"."sid" AS "sid", "res_users"."exp_date" AS "exp_date", "res_users"."logged_in" AS "logged_in", "res_users"."last_update" AS "last_update", "res_users"."notification_type" AS "notification_type", "res_users"."odoobot_state" AS "odoobot_state", "res_users"."odoobot_failed" AS "odoobot_failed" from "res_users" where "res_users".id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 17 00 11,135 1s749ms 0ms 01 10,641 1s820ms 0ms 02 9,698 1s730ms 0ms 03 10,098 1s823ms 0ms 04 8,590 1s631ms 0ms 05 8,536 1s558ms 0ms 06 4,724 951ms 0ms 07 2,835 624ms 0ms 08 13,365 2s33ms 0ms 09 29,155 4s437ms 0ms 10 37,196 5s519ms 0ms 11 30,382 4s450ms 0ms 12 42,165 5s665ms 0ms 13 42,365 5s869ms 0ms 14 47,769 7s105ms 0ms 15 40,449 6s491ms 0ms 16 40,031 6s172ms 0ms 17 31,124 4s908ms 0ms 18 26,096 4s72ms 0ms 19 20,244 3s218ms 0ms 20 19,887 3s15ms 0ms 21 12,852 1s956ms 0ms 22 6,141 873ms 0ms -
SELECT "res_users"."id" AS "id", "res_users"."partner_id" AS "partner_id", "res_users"."login" AS "login", "res_users"."signature" AS "signature", "res_users"."active" AS "active", "res_users"."action_id" AS "action_id", "res_users"."share" AS "share", "res_users"."company_id" AS "company_id", "res_users"."create_uid" AS "create_uid", "res_users"."create_date" AS "create_date", "res_users"."write_uid" AS "write_uid", "res_users"."write_date" AS "write_date", "res_users"."sid" AS "sid", "res_users"."exp_date" AS "exp_date", "res_users"."logged_in" AS "logged_in", "res_users"."last_update" AS "last_update", "res_users"."notification_type" AS "notification_type", "res_users"."odoobot_state" AS "odoobot_state", "res_users"."odoobot_failed" AS "odoobot_failed" FROM "res_users" WHERE "res_users".id IN (853);
Date: 2025-01-17 17:21:51 Duration: 10ms
-
SELECT "res_users"."id" AS "id", "res_users"."partner_id" AS "partner_id", "res_users"."login" AS "login", "res_users"."signature" AS "signature", "res_users"."active" AS "active", "res_users"."action_id" AS "action_id", "res_users"."share" AS "share", "res_users"."company_id" AS "company_id", "res_users"."create_uid" AS "create_uid", "res_users"."create_date" AS "create_date", "res_users"."write_uid" AS "write_uid", "res_users"."write_date" AS "write_date", "res_users"."sid" AS "sid", "res_users"."exp_date" AS "exp_date", "res_users"."logged_in" AS "logged_in", "res_users"."last_update" AS "last_update", "res_users"."notification_type" AS "notification_type", "res_users"."odoobot_state" AS "odoobot_state", "res_users"."odoobot_failed" AS "odoobot_failed" FROM "res_users" WHERE "res_users".id IN (1368);
Date: 2025-01-17 17:21:51 Duration: 10ms
-
SELECT "res_users"."id" AS "id", "res_users"."partner_id" AS "partner_id", "res_users"."login" AS "login", "res_users"."signature" AS "signature", "res_users"."active" AS "active", "res_users"."action_id" AS "action_id", "res_users"."share" AS "share", "res_users"."company_id" AS "company_id", "res_users"."create_uid" AS "create_uid", "res_users"."create_date" AS "create_date", "res_users"."write_uid" AS "write_uid", "res_users"."write_date" AS "write_date", "res_users"."sid" AS "sid", "res_users"."exp_date" AS "exp_date", "res_users"."logged_in" AS "logged_in", "res_users"."last_update" AS "last_update", "res_users"."notification_type" AS "notification_type", "res_users"."odoobot_state" AS "odoobot_state", "res_users"."odoobot_failed" AS "odoobot_failed" FROM "res_users" WHERE "res_users".id IN (1390);
Date: 2025-01-17 17:21:51 Duration: 9ms
7 395,469 1m9s 0ms 40ms 0ms commit;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 17 00 8,698 1s695ms 0ms 01 8,841 1s766ms 0ms 02 8,249 1s541ms 0ms 03 8,402 1s827ms 0ms 04 7,534 1s740ms 0ms 05 7,377 1s553ms 0ms 06 4,157 924ms 0ms 07 2,460 483ms 0ms 08 10,323 1s604ms 0ms 09 22,190 3s744ms 0ms 10 27,870 4s571ms 0ms 11 23,983 3s880ms 0ms 12 31,831 5s240ms 0ms 13 32,231 5s692ms 0ms 14 35,346 6s235ms 0ms 15 30,844 5s97ms 0ms 16 32,119 5s243ms 0ms 17 24,767 4s869ms 0ms 18 20,544 3s883ms 0ms 19 15,958 2s732ms 0ms 20 16,190 2s722ms 0ms 21 10,693 1s756ms 0ms 22 4,862 917ms 0ms -
COMMIT;
Date: 2025-01-17 17:08:32 Duration: 40ms
-
COMMIT;
Date: 2025-01-17 12:52:16 Duration: 36ms
-
COMMIT;
Date: 2025-01-17 15:14:37 Duration: 34ms
8 299,973 37s50ms 0ms 10ms 0ms select "urgent_customer"."id" AS "id", "urgent_customer"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_customer"."name" AS "name", "urgent_customer"."phone" AS "phone", "urgent_customer"."code" AS "code", "urgent_customer"."address" AS "address", "urgent_customer"."active" AS "active", "urgent_customer"."receive_man_id_no" AS "receive_man_id_no", "urgent_customer"."create_uid" AS "create_uid", "urgent_customer"."create_date" AS "create_date", "urgent_customer"."write_uid" AS "write_uid", "urgent_customer"."write_date" AS "write_date", "urgent_customer"."v_10_id" AS "v_10_id" from "urgent_customer" where "urgent_customer".id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 17 00 7,476 937ms 0ms 01 6,854 798ms 0ms 02 5,951 732ms 0ms 03 6,542 780ms 0ms 04 4,440 542ms 0ms 05 4,692 558ms 0ms 06 2,793 307ms 0ms 07 2,502 271ms 0ms 08 7,578 906ms 0ms 09 17,616 2s192ms 0ms 10 24,920 3s107ms 0ms 11 17,082 2s69ms 0ms 12 26,295 3s320ms 0ms 13 24,958 3s204ms 0ms 14 28,563 4s228ms 0ms 15 22,445 2s674ms 0ms 16 21,375 2s464ms 0ms 17 17,753 2s404ms 0ms 18 15,229 1s772ms 0ms 19 12,995 1s332ms 0ms 20 11,130 1s223ms 0ms 21 7,127 826ms 0ms 22 3,657 392ms 0ms -
SELECT "urgent_customer"."id" AS "id", "urgent_customer"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_customer"."name" AS "name", "urgent_customer"."phone" AS "phone", "urgent_customer"."code" AS "code", "urgent_customer"."address" AS "address", "urgent_customer"."active" AS "active", "urgent_customer"."receive_man_id_no" AS "receive_man_id_no", "urgent_customer"."create_uid" AS "create_uid", "urgent_customer"."create_date" AS "create_date", "urgent_customer"."write_uid" AS "write_uid", "urgent_customer"."write_date" AS "write_date", "urgent_customer"."v_10_id" AS "v_10_id" FROM "urgent_customer" WHERE "urgent_customer".id IN (5100846, 5099236, 5099244, 5099007, 5099202, 5099130, 5100677, 5099010, 5099594, 5099013, 5099404, 5099006, 5120649, 5099009, 5100724, 5099181, 5100443, 5100476, 5120171, 5100832, 5099445, 5099102, 5099254, 5110211, 5122028, 5101367, 5099798, 5099815, 5099258, 5099430, 5309481, 5104470, 5119615, 5103732, 5099138, 5099644, 5100547, 5099540, 5099590, 5099415, 5099924, 5099008, 5293902, 5121492, 5229858, 5099035, 5100511, 5099206, 5175862, 5125904, 5205564, 5101327, 5432385, 5107653, 5101521, 5099677, 5107049, 5133562, 5313642, 5120805, 5110163, 5132493, 5432384, 5456732, 5098989, 5251206, 5099144, 5103198, 5302926, 5377579, 5429716, 5263289, 5101794, 5280764, 5103651, 5109746, 5198061, 5414255, 5159564, 5099309, 5194175, 5112651, 5100738, 5397414, 5099434, 5469834, 5099413, 5099162, 5101050, 5401615, 5441484, 5102178, 5330167, 5371799, 5103189, 5191320, 5099782, 5099693, 5099119, 5332913, 5099804, 5100152, 5099046, 5099585, 5100628, 5099714, 5099170, 5099348, 5099745, 5099636, 5099174, 5099014, 5100564, 5099158, 5099446, 5099194, 5100004, 5100494, 5104252, 5099333, 5100542, 5099727, 5101222, 5100431);
Date: 2025-01-17 17:21:51 Duration: 10ms
-
SELECT "urgent_customer"."id" AS "id", "urgent_customer"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_customer"."name" AS "name", "urgent_customer"."phone" AS "phone", "urgent_customer"."code" AS "code", "urgent_customer"."address" AS "address", "urgent_customer"."active" AS "active", "urgent_customer"."receive_man_id_no" AS "receive_man_id_no", "urgent_customer"."create_uid" AS "create_uid", "urgent_customer"."create_date" AS "create_date", "urgent_customer"."write_uid" AS "write_uid", "urgent_customer"."write_date" AS "write_date", "urgent_customer"."v_10_id" AS "v_10_id" FROM "urgent_customer" WHERE "urgent_customer".id IN (5098978, 5114435, 5099009, 5099194, 5138414, 5099254, 5099500, 5101173, 5099296, 5106936, 5099644, 5099515, 5099013, 5099389, 5220780, 5140724, 5367087, 5417545, 5150730, 5150721, 5105173, 5204091, 5197302, 5099590, 5099187, 5199747, 5101994, 5125904, 5099007, 5105187, 5417540, 5168287, 5102021, 5239692, 5142947, 5250684);
Date: 2025-01-17 20:31:20 Duration: 6ms
-
SELECT "urgent_customer"."id" AS "id", "urgent_customer"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_customer"."name" AS "name", "urgent_customer"."phone" AS "phone", "urgent_customer"."code" AS "code", "urgent_customer"."address" AS "address", "urgent_customer"."active" AS "active", "urgent_customer"."receive_man_id_no" AS "receive_man_id_no", "urgent_customer"."create_uid" AS "create_uid", "urgent_customer"."create_date" AS "create_date", "urgent_customer"."write_uid" AS "write_uid", "urgent_customer"."write_date" AS "write_date", "urgent_customer"."v_10_id" AS "v_10_id" FROM "urgent_customer" WHERE "urgent_customer".id IN (5107075, 5431038, 5415570, 5267247, 5319726, 5477043, 5460899, 5099400, 5196311, 5415514, 5131908, 5126358, 5254279, 5474501, 5363822, 5116064, 5110830, 5117676, 5256522, 5330166, 5371798, 5453717, 5336869, 5309511, 5099839, 5158012, 5217300, 5457873, 5100798);
Date: 2025-01-17 17:21:51 Duration: 4ms
9 290,653 16s432ms 0ms 1ms 0ms select "urgent_office"."id" AS "id", "urgent_office"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_office"."active" AS "active", "urgent_office"."name" AS "name", "urgent_office"."code" AS "code", "urgent_office"."new_code" AS "new_code", "urgent_office"."last_balance_cash" AS "last_balance_cash", "urgent_office"."last_balance_cheque" AS "last_balance_cheque", "urgent_office"."last_daily_movement_date" AS "last_daily_movement_date", "urgent_office"."client_office" AS "client_office", "urgent_office"."is_create_cheques" AS "is_create_cheques", "urgent_office"."create_uid" AS "create_uid", "urgent_office"."create_date" AS "create_date", "urgent_office"."write_uid" AS "write_uid", "urgent_office"."write_date" AS "write_date", "urgent_office"."v_10_id" AS "v_10_id" from "urgent_office" where "urgent_office".id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 17 00 5,769 307ms 0ms 01 5,206 289ms 0ms 02 4,093 224ms 0ms 03 4,549 249ms 0ms 04 2,908 156ms 0ms 05 3,516 186ms 0ms 06 1,808 102ms 0ms 07 1,257 65ms 0ms 08 6,903 389ms 0ms 09 15,733 875ms 0ms 10 22,787 1s249ms 0ms 11 17,167 882ms 0ms 12 24,874 1s378ms 0ms 13 24,978 1s423ms 0ms 14 27,696 1s735ms 0ms 15 22,849 1s287ms 0ms 16 23,739 1s375ms 0ms 17 19,634 1s281ms 0ms 18 16,934 945ms 0ms 19 13,024 675ms 0ms 20 13,316 697ms 0ms 21 8,054 440ms 0ms 22 3,859 213ms 0ms -
SELECT "urgent_office"."id" AS "id", "urgent_office"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_office"."active" AS "active", "urgent_office"."name" AS "name", "urgent_office"."code" AS "code", "urgent_office"."new_code" AS "new_code", "urgent_office"."last_balance_cash" AS "last_balance_cash", "urgent_office"."last_balance_cheque" AS "last_balance_cheque", "urgent_office"."last_daily_movement_date" AS "last_daily_movement_date", "urgent_office"."client_office" AS "client_office", "urgent_office"."is_create_cheques" AS "is_create_cheques", "urgent_office"."create_uid" AS "create_uid", "urgent_office"."create_date" AS "create_date", "urgent_office"."write_uid" AS "write_uid", "urgent_office"."write_date" AS "write_date", "urgent_office"."v_10_id" AS "v_10_id" FROM "urgent_office" WHERE "urgent_office".id IN (17, 79, 26, 24, 14, 19, 22, 64, 123, 70);
Date: 2025-01-17 14:10:37 Duration: 1ms
-
SELECT "urgent_office"."id" AS "id", "urgent_office"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_office"."active" AS "active", "urgent_office"."name" AS "name", "urgent_office"."code" AS "code", "urgent_office"."new_code" AS "new_code", "urgent_office"."last_balance_cash" AS "last_balance_cash", "urgent_office"."last_balance_cheque" AS "last_balance_cheque", "urgent_office"."last_daily_movement_date" AS "last_daily_movement_date", "urgent_office"."client_office" AS "client_office", "urgent_office"."is_create_cheques" AS "is_create_cheques", "urgent_office"."create_uid" AS "create_uid", "urgent_office"."create_date" AS "create_date", "urgent_office"."write_uid" AS "write_uid", "urgent_office"."write_date" AS "write_date", "urgent_office"."v_10_id" AS "v_10_id" FROM "urgent_office" WHERE "urgent_office".id IN (41);
Date: 2025-01-17 14:13:33 Duration: 0ms
-
SELECT "urgent_office"."id" AS "id", "urgent_office"."message_main_attachment_id" AS "message_main_attachment_id", "urgent_office"."active" AS "active", "urgent_office"."name" AS "name", "urgent_office"."code" AS "code", "urgent_office"."new_code" AS "new_code", "urgent_office"."last_balance_cash" AS "last_balance_cash", "urgent_office"."last_balance_cheque" AS "last_balance_cheque", "urgent_office"."last_daily_movement_date" AS "last_daily_movement_date", "urgent_office"."client_office" AS "client_office", "urgent_office"."is_create_cheques" AS "is_create_cheques", "urgent_office"."create_uid" AS "create_uid", "urgent_office"."create_date" AS "create_date", "urgent_office"."write_uid" AS "write_uid", "urgent_office"."write_date" AS "write_date", "urgent_office"."v_10_id" AS "v_10_id" FROM "urgent_office" WHERE "urgent_office".id IN (32);
Date: 2025-01-17 17:46:06 Duration: 0ms
10 201,592 35s487ms 0ms 2ms 0ms select "res_partner"."id" AS "id", "res_partner"."message_main_attachment_id" AS "message_main_attachment_id", "res_partner"."email_normalized" AS "email_normalized", "res_partner"."message_bounce" AS "message_bounce", "res_partner"."name" AS "name", "res_partner"."display_name" AS "display_name", "res_partner"."date" AS "date", "res_partner"."title" AS "title", "res_partner"."parent_id" AS "parent_id", "res_partner"."ref" AS "ref", "res_partner"."lang" AS "lang", "res_partner"."tz" AS "tz", "res_partner"."user_id" AS "user_id", "res_partner"."vat" AS "vat", "res_partner"."company_registry" AS "company_registry", "res_partner"."website" AS "website", "res_partner"."comment" AS "comment", "res_partner"."active" AS "active", "res_partner"."employee" AS "employee", "res_partner"."function" AS "function", "res_partner"."type" AS "type", "res_partner"."street" AS "street", "res_partner"."street2" AS "street2", "res_partner"."zip" AS "zip", "res_partner"."city" AS "city", "res_partner"."state_id" AS "state_id", "res_partner"."country_id" AS "country_id", "res_partner"."partner_latitude" AS "partner_latitude", "res_partner"."partner_longitude" AS "partner_longitude", "res_partner"."email" AS "email", "res_partner"."phone" AS "phone", "res_partner"."mobile" AS "mobile", "res_partner"."is_company" AS "is_company", "res_partner"."industry_id" AS "industry_id", "res_partner"."company_id" AS "company_id", "res_partner"."color" AS "color", "res_partner"."partner_share" AS "partner_share", "res_partner"."commercial_partner_id" AS "commercial_partner_id", "res_partner"."commercial_company_name" AS "commercial_company_name", "res_partner"."company_name" AS "company_name", "res_partner"."create_uid" AS "create_uid", "res_partner"."create_date" AS "create_date", "res_partner"."write_uid" AS "write_uid", "res_partner"."write_date" AS "write_date", "res_partner"."office_id" AS "office_id", "res_partner"."employee_traffic" AS "employee_traffic", "res_partner"."code" AS "code", "res_partner"."office_driver_id" AS "office_driver_id", "res_partner"."type_employee" AS "type_employee", "res_partner"."type_driver" AS "type_driver", "res_partner"."v_10_id" AS "v_10_id" from "res_partner" where "res_partner".id in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 17 00 3,754 625ms 0ms 01 3,023 560ms 0ms 02 2,678 513ms 0ms 03 2,837 554ms 0ms 04 1,911 378ms 0ms 05 2,167 410ms 0ms 06 1,251 237ms 0ms 07 1,109 168ms 0ms 08 5,431 882ms 0ms 09 12,177 2s27ms 0ms 10 14,514 2s573ms 0ms 11 11,699 2s23ms 0ms 12 17,036 3s3ms 0ms 13 18,839 3s324ms 0ms 14 19,961 3s572ms 0ms 15 17,249 2s868ms 0ms 16 16,175 2s947ms 0ms 17 13,760 2s778ms 0ms 18 10,833 1s888ms 0ms 19 8,106 1s331ms 0ms 20 8,272 1s391ms 0ms 21 6,038 990ms 0ms 22 2,772 431ms 0ms -
SELECT "res_partner"."id" AS "id", "res_partner"."message_main_attachment_id" AS "message_main_attachment_id", "res_partner"."email_normalized" AS "email_normalized", "res_partner"."message_bounce" AS "message_bounce", "res_partner"."name" AS "name", "res_partner"."display_name" AS "display_name", "res_partner"."date" AS "date", "res_partner"."title" AS "title", "res_partner"."parent_id" AS "parent_id", "res_partner"."ref" AS "ref", "res_partner"."lang" AS "lang", "res_partner"."tz" AS "tz", "res_partner"."user_id" AS "user_id", "res_partner"."vat" AS "vat", "res_partner"."company_registry" AS "company_registry", "res_partner"."website" AS "website", "res_partner"."comment" AS "comment", "res_partner"."active" AS "active", "res_partner"."employee" AS "employee", "res_partner"."function" AS "function", "res_partner"."type" AS "type", "res_partner"."street" AS "street", "res_partner"."street2" AS "street2", "res_partner"."zip" AS "zip", "res_partner"."city" AS "city", "res_partner"."state_id" AS "state_id", "res_partner"."country_id" AS "country_id", "res_partner"."partner_latitude" AS "partner_latitude", "res_partner"."partner_longitude" AS "partner_longitude", "res_partner"."email" AS "email", "res_partner"."phone" AS "phone", "res_partner"."mobile" AS "mobile", "res_partner"."is_company" AS "is_company", "res_partner"."industry_id" AS "industry_id", "res_partner"."company_id" AS "company_id", "res_partner"."color" AS "color", "res_partner"."partner_share" AS "partner_share", "res_partner"."commercial_partner_id" AS "commercial_partner_id", "res_partner"."commercial_company_name" AS "commercial_company_name", "res_partner"."company_name" AS "company_name", "res_partner"."create_uid" AS "create_uid", "res_partner"."create_date" AS "create_date", "res_partner"."write_uid" AS "write_uid", "res_partner"."write_date" AS "write_date", "res_partner"."office_id" AS "office_id", "res_partner"."employee_traffic" AS "employee_traffic", "res_partner"."code" AS "code", "res_partner"."office_driver_id" AS "office_driver_id", "res_partner"."type_employee" AS "type_employee", "res_partner"."type_driver" AS "type_driver", "res_partner"."v_10_id" AS "v_10_id" FROM "res_partner" WHERE "res_partner".id IN (8006321);
Date: 2025-01-17 17:08:49 Duration: 2ms
-
SELECT "res_partner"."id" AS "id", "res_partner"."message_main_attachment_id" AS "message_main_attachment_id", "res_partner"."email_normalized" AS "email_normalized", "res_partner"."message_bounce" AS "message_bounce", "res_partner"."name" AS "name", "res_partner"."display_name" AS "display_name", "res_partner"."date" AS "date", "res_partner"."title" AS "title", "res_partner"."parent_id" AS "parent_id", "res_partner"."ref" AS "ref", "res_partner"."lang" AS "lang", "res_partner"."tz" AS "tz", "res_partner"."user_id" AS "user_id", "res_partner"."vat" AS "vat", "res_partner"."company_registry" AS "company_registry", "res_partner"."website" AS "website", "res_partner"."comment" AS "comment", "res_partner"."active" AS "active", "res_partner"."employee" AS "employee", "res_partner"."function" AS "function", "res_partner"."type" AS "type", "res_partner"."street" AS "street", "res_partner"."street2" AS "street2", "res_partner"."zip" AS "zip", "res_partner"."city" AS "city", "res_partner"."state_id" AS "state_id", "res_partner"."country_id" AS "country_id", "res_partner"."partner_latitude" AS "partner_latitude", "res_partner"."partner_longitude" AS "partner_longitude", "res_partner"."email" AS "email", "res_partner"."phone" AS "phone", "res_partner"."mobile" AS "mobile", "res_partner"."is_company" AS "is_company", "res_partner"."industry_id" AS "industry_id", "res_partner"."company_id" AS "company_id", "res_partner"."color" AS "color", "res_partner"."partner_share" AS "partner_share", "res_partner"."commercial_partner_id" AS "commercial_partner_id", "res_partner"."commercial_company_name" AS "commercial_company_name", "res_partner"."company_name" AS "company_name", "res_partner"."create_uid" AS "create_uid", "res_partner"."create_date" AS "create_date", "res_partner"."write_uid" AS "write_uid", "res_partner"."write_date" AS "write_date", "res_partner"."office_id" AS "office_id", "res_partner"."employee_traffic" AS "employee_traffic", "res_partner"."code" AS "code", "res_partner"."office_driver_id" AS "office_driver_id", "res_partner"."type_employee" AS "type_employee", "res_partner"."type_driver" AS "type_driver", "res_partner"."v_10_id" AS "v_10_id" FROM "res_partner" WHERE "res_partner".id IN (8004692, 8006468, 8007326, 8007226);
Date: 2025-01-17 13:20:33 Duration: 2ms
-
SELECT "res_partner"."id" AS "id", "res_partner"."message_main_attachment_id" AS "message_main_attachment_id", "res_partner"."email_normalized" AS "email_normalized", "res_partner"."message_bounce" AS "message_bounce", "res_partner"."name" AS "name", "res_partner"."display_name" AS "display_name", "res_partner"."date" AS "date", "res_partner"."title" AS "title", "res_partner"."parent_id" AS "parent_id", "res_partner"."ref" AS "ref", "res_partner"."lang" AS "lang", "res_partner"."tz" AS "tz", "res_partner"."user_id" AS "user_id", "res_partner"."vat" AS "vat", "res_partner"."company_registry" AS "company_registry", "res_partner"."website" AS "website", "res_partner"."comment" AS "comment", "res_partner"."active" AS "active", "res_partner"."employee" AS "employee", "res_partner"."function" AS "function", "res_partner"."type" AS "type", "res_partner"."street" AS "street", "res_partner"."street2" AS "street2", "res_partner"."zip" AS "zip", "res_partner"."city" AS "city", "res_partner"."state_id" AS "state_id", "res_partner"."country_id" AS "country_id", "res_partner"."partner_latitude" AS "partner_latitude", "res_partner"."partner_longitude" AS "partner_longitude", "res_partner"."email" AS "email", "res_partner"."phone" AS "phone", "res_partner"."mobile" AS "mobile", "res_partner"."is_company" AS "is_company", "res_partner"."industry_id" AS "industry_id", "res_partner"."company_id" AS "company_id", "res_partner"."color" AS "color", "res_partner"."partner_share" AS "partner_share", "res_partner"."commercial_partner_id" AS "commercial_partner_id", "res_partner"."commercial_company_name" AS "commercial_company_name", "res_partner"."company_name" AS "company_name", "res_partner"."create_uid" AS "create_uid", "res_partner"."create_date" AS "create_date", "res_partner"."write_uid" AS "write_uid", "res_partner"."write_date" AS "write_date", "res_partner"."office_id" AS "office_id", "res_partner"."employee_traffic" AS "employee_traffic", "res_partner"."code" AS "code", "res_partner"."office_driver_id" AS "office_driver_id", "res_partner"."type_employee" AS "type_employee", "res_partner"."type_driver" AS "type_driver", "res_partner"."v_10_id" AS "v_10_id" FROM "res_partner" WHERE "res_partner".id IN (8004679, 8004697, 8006398, 8004711, 8004670, 8004693, 8004688, 8006320, 8006343, 8006397, 8006342, 8004714, 8006302, 8004698, 8004675, 8004694, 8004648, 8004695, 8006602, 8006303);
Date: 2025-01-17 13:49:32 Duration: 2ms
11 177,301 1d2h13m39s 461ms 3s939ms 532ms select "shipping_track".id from "shipping_track" where (("shipping_track"."shipping_id" in (...)) and (("shipping_track"."id" not in (...)) or "shipping_track"."id" is null)) order by "shipping_track"."id";Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jan 17 00 7,424 1h4m20s 520ms 01 8,803 1h15m38s 515ms 02 8,521 1h12m58s 513ms 03 9,224 1h19m21s 516ms 04 7,750 1h6m7s 511ms 05 6,587 55m44s 507ms 06 4,450 38m26s 518ms 07 2,504 22m28s 538ms 08 3,398 27m59s 494ms 09 7,392 1h2m4s 503ms 10 8,908 1h15m42s 509ms 11 6,616 55m30s 503ms 12 8,299 1h10m45s 511ms 13 9,131 1h19m14s 520ms 14 11,366 1h40m48s 532ms 15 8,182 1h10m28s 516ms 16 9,340 1h23m26s 536ms 17 16,375 2h46m46s 611ms 18 13,450 2h5m31s 559ms 19 5,841 54m38s 561ms 20 6,956 1h3m47s 550ms 21 4,629 42m17s 548ms 22 2,155 19m31s 543ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559540)) AND (("shipping_track"."id" not in (37632046, 37632046)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:17 Duration: 3s939ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559546)) AND (("shipping_track"."id" not in (37632197, 37632197)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:33 Duration: 3s569ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4467066)) AND (("shipping_track"."id" not in (36919716, 36923301, 36971088, 37027617, 37027789, 37051924, 37052422, 37189945, 37190256, 37388372, 37632156, 37632156)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:28 Duration: 3s65ms
12 167,416 51s432ms 0ms 3ms 0ms select r.id from ir_rule r join ir_model m on (r.model_id = m.id) where m.model = ? and r.active and r.perm_read and (r.id in ( select rule_group_id from rule_group_rel rg join res_groups_users_rel gu on (rg.group_id = gu.gid) where gu.uid = ?) or r.global) order by r.id;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 17 00 2,490 739ms 0ms 01 2,031 638ms 0ms 02 1,538 482ms 0ms 03 1,590 493ms 0ms 04 774 242ms 0ms 05 959 287ms 0ms 06 710 213ms 0ms 07 738 203ms 0ms 08 4,031 1s200ms 0ms 09 7,598 2s378ms 0ms 10 7,683 2s428ms 0ms 11 7,928 2s304ms 0ms 12 15,038 4s585ms 0ms 13 18,645 5s638ms 0ms 14 16,728 5s505ms 0ms 15 14,257 4s434ms 0ms 16 16,315 5s62ms 0ms 17 17,093 5s698ms 0ms 18 9,679 2s922ms 0ms 19 6,286 1s753ms 0ms 20 5,407 1s597ms 0ms 21 6,720 1s804ms 0ms 22 3,178 814ms 0ms -
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id = m.id) WHERE m.model = 'res.lang' AND r.active AND r.perm_read AND (r.id IN ( SELECT rule_group_id FROM rule_group_rel rg JOIN res_groups_users_rel gu ON (rg.group_id = gu.gid) WHERE gu.uid = 853) OR r.global) ORDER BY r.id;
Date: 2025-01-17 17:21:51 Duration: 3ms
-
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id = m.id) WHERE m.model = 'shipping.policy' AND r.active AND r.perm_read AND (r.id IN ( SELECT rule_group_id FROM rule_group_rel rg JOIN res_groups_users_rel gu ON (rg.group_id = gu.gid) WHERE gu.uid = 1008) OR r.global) ORDER BY r.id;
Date: 2025-01-17 01:48:29 Duration: 2ms
-
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id = m.id) WHERE m.model = 'res.lang' AND r.active AND r.perm_read AND (r.id IN ( SELECT rule_group_id FROM rule_group_rel rg JOIN res_groups_users_rel gu ON (rg.group_id = gu.gid) WHERE gu.uid = 1363) OR r.global) ORDER BY r.id;
Date: 2025-01-17 17:21:51 Duration: 2ms
13 133,353 21s694ms 0ms 1ms 0ms select ? from res_groups_users_rel where uid = ? and gid in ( select res_id from ir_model_data where module = ? and name = ? and model = ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jan 17 00 2,235 316ms 0ms 01 2,426 336ms 0ms 02 1,876 252ms 0ms 03 1,777 241ms 0ms 04 1,405 176ms 0ms 05 1,014 137ms 0ms 06 694 90ms 0ms 07 849 118ms 0ms 08 4,199 608ms 0ms 09 7,607 1s157ms 0ms 10 5,210 825ms 0ms 11 5,637 830ms 0ms 12 11,612 1s902ms 0ms 13 14,513 2s495ms 0ms 14 12,082 2s163ms 0ms 15 11,267 1s862ms 0ms 16 11,940 2s59ms 0ms 17 13,825 2s599ms 0ms 18 7,167 1s132ms 0ms 19 4,514 654ms 0ms 20 4,135 613ms 0ms 21 5,151 782ms 0ms 22 2,218 333ms 0ms -
SELECT 1 FROM res_groups_users_rel WHERE uid = 854 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'base' AND name = 'group_erp_manager' AND model = 'res.groups');
Date: 2025-01-17 17:39:43 Duration: 1ms
-
SELECT 1 FROM res_groups_users_rel WHERE uid = 1 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'base' AND name = 'group_erp_manager' AND model = 'res.groups');
Date: 2025-01-17 14:52:40 Duration: 1ms
-
SELECT 1 FROM res_groups_users_rel WHERE uid = 1 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'base' AND name = 'group_erp_manager' AND model = 'res.groups');
Date: 2025-01-17 16:35:19 Duration: 1ms
14 130,565 33s171ms 0ms 19ms 0ms select "policy_number"."id" AS "id", "policy_number"."from_poilcy" AS "from_poilcy", "policy_number"."name" AS "name", "policy_number"."damaged" AS "damaged", "policy_number"."done" AS "done", "policy_number"."active" AS "active", "policy_number"."reason" AS "reason", "policy_number"."reason_date" AS "reason_date", "policy_number"."notebook_id" AS "notebook_id", "policy_number"."office_id" AS "office_id", "policy_number"."delegate_id" AS "delegate_id", "policy_number"."package_id" AS "package_id", "policy_number"."create_uid" AS "create_uid", "policy_number"."create_date" AS "create_date", "policy_number"."write_uid" AS "write_uid", "policy_number"."write_date" AS "write_date" from "policy_number" where "policy_number".id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 17 00 3,678 933ms 0ms 01 3,531 908ms 0ms 02 2,951 776ms 0ms 03 3,273 879ms 0ms 04 2,027 589ms 0ms 05 2,193 633ms 0ms 06 1,847 480ms 0ms 07 1,695 461ms 0ms 08 2,893 748ms 0ms 09 7,057 1s810ms 0ms 10 9,686 2s420ms 0ms 11 6,737 1s732ms 0ms 12 10,492 2s663ms 0ms 13 10,743 2s770ms 0ms 14 12,017 3s461ms 0ms 15 8,948 2s39ms 0ms 16 9,446 2s294ms 0ms 17 7,902 2s180ms 0ms 18 6,984 1s627ms 0ms 19 6,357 1s307ms 0ms 20 5,130 1s171ms 0ms 21 3,356 876ms 0ms 22 1,622 405ms 0ms -
SELECT "policy_number"."id" AS "id", "policy_number"."from_poilcy" AS "from_poilcy", "policy_number"."name" AS "name", "policy_number"."damaged" AS "damaged", "policy_number"."done" AS "done", "policy_number"."active" AS "active", "policy_number"."reason" AS "reason", "policy_number"."reason_date" AS "reason_date", "policy_number"."notebook_id" AS "notebook_id", "policy_number"."office_id" AS "office_id", "policy_number"."delegate_id" AS "delegate_id", "policy_number"."package_id" AS "package_id", "policy_number"."create_uid" AS "create_uid", "policy_number"."create_date" AS "create_date", "policy_number"."write_uid" AS "write_uid", "policy_number"."write_date" AS "write_date" FROM "policy_number" WHERE "policy_number".id IN (41025964, 41504197, 40988019, 41362637, 41994875, 41721920, 40389462, 37854822, 37855132, 39705159, 38907190, 39778792, 33406990, 34766372, 39767356, 39721386, 39740075, 41609854, 39798260, 39641312, 40043384, 41293492, 39718707, 39281194, 39414557, 39516078, 39208982, 39810428, 40385905, 39687508, 39667895, 39832858, 39847214, 39995651, 39868153, 39648163, 40576840, 40301233, 41505152, 41025775, 41505301, 41903598, 42057722, 41791181, 41505142, 41364258, 41990691, 41990933, 41364777, 41505369, 41791138, 41991172, 41552446, 41839650, 41935677, 41365344, 42118841, 41990687, 41985850, 41037156, 41505359, 42064864, 41790798, 42058259, 41178598, 40719641, 39788717, 41722143, 41574940, 42058555, 40768328, 41136270, 41505445, 40658618, 41840635, 41597188, 41188935, 41741036, 41743345, 41364186, 41572420, 40357924, 41956043, 41839842, 41936408, 41505447, 41131925, 41956852, 41743295, 40675170, 40357922, 40767637, 41723491, 41196714, 41618452, 42057730, 40816544, 41238227, 41188899, 41804121);
Date: 2025-01-17 17:21:55 Duration: 19ms
-
SELECT "policy_number"."id" AS "id", "policy_number"."from_poilcy" AS "from_poilcy", "policy_number"."name" AS "name", "policy_number"."damaged" AS "damaged", "policy_number"."done" AS "done", "policy_number"."active" AS "active", "policy_number"."reason" AS "reason", "policy_number"."reason_date" AS "reason_date", "policy_number"."notebook_id" AS "notebook_id", "policy_number"."office_id" AS "office_id", "policy_number"."delegate_id" AS "delegate_id", "policy_number"."package_id" AS "package_id", "policy_number"."create_uid" AS "create_uid", "policy_number"."create_date" AS "create_date", "policy_number"."write_uid" AS "write_uid", "policy_number"."write_date" AS "write_date" FROM "policy_number" WHERE "policy_number".id IN (40089320, 39916775, 40080678, 40096008, 40080677, 40070387, 39553133, 39338620, 40003412, 39962193, 39941122, 39930871, 39523381, 40019853, 39926482, 39938890, 40028360, 39601470, 39954304, 39822998, 39937450, 39942619, 39783276, 39601342, 39759973, 39502416, 39443276, 39833468, 39622891, 39814741, 39782792, 39758949, 39601292, 39779719, 39782743, 39782855, 39778409, 39623432, 39828511, 39758789, 39740456, 39600788, 39732304, 39833299, 39780062, 39688785, 39811323, 39841225, 39747166, 39622882, 38924933, 39781070, 39698929, 39780361, 39599907, 39780598, 39689092, 39600764, 39689828, 39623602, 39500405, 39720630, 39592620, 39702106, 39660393, 39690543, 39651845);
Date: 2025-01-17 20:32:06 Duration: 13ms
-
SELECT "policy_number"."id" AS "id", "policy_number"."from_poilcy" AS "from_poilcy", "policy_number"."name" AS "name", "policy_number"."damaged" AS "damaged", "policy_number"."done" AS "done", "policy_number"."active" AS "active", "policy_number"."reason" AS "reason", "policy_number"."reason_date" AS "reason_date", "policy_number"."notebook_id" AS "notebook_id", "policy_number"."office_id" AS "office_id", "policy_number"."delegate_id" AS "delegate_id", "policy_number"."package_id" AS "package_id", "policy_number"."create_uid" AS "create_uid", "policy_number"."create_date" AS "create_date", "policy_number"."write_uid" AS "write_uid", "policy_number"."write_date" AS "write_date" FROM "policy_number" WHERE "policy_number".id IN (40462736, 42035441, 42026530, 42115148, 41615166, 42071009, 42070959, 41771018, 42059092, 32657686, 40958877, 42063040, 32659432, 32659560, 32657352, 42062786, 32659601, 41927978, 32659438, 42107467, 42153262, 32659521, 32659413, 32659609, 41929519, 32657681, 32658307, 42120515, 42111950, 42112368, 42076875, 42130440, 42045604, 42111899, 42045592, 41962122, 42046584, 42046583, 42117161, 42112232, 42110160, 42117481, 42117606, 42114046, 41827560, 42164693, 42035439, 42117415, 41888340, 41950141, 42114691, 41995255, 41994584, 41883510, 41200567, 42026351, 42040749, 42058268, 42118959, 42020319, 42033486, 42083028, 41766176, 32187001, 32186950, 41800431, 42033496, 42056154, 41736527, 41894198, 42055935, 42100029, 41895532, 42132600, 42094962, 42094958, 42094929, 42095005, 42123615, 32661283, 42123563, 42141049, 42141048, 42091608, 42144047, 42037096, 42037101, 42103732, 42116962, 42116794, 42117961, 42117949, 42117789, 42117996, 42138815, 42149627, 42094989, 42123454, 42062360, 42139119, 41971078, 42095006, 42037539, 41984681, 41984504, 42050286, 41822636, 41921454, 41967791, 42102244, 41961237, 41934106, 42037488, 42045057, 42049233, 42036503, 42062101, 42141024, 42141014, 42141013, 41473354, 42052560, 42098178, 41777417, 41994739, 42085717, 42062036, 41494332, 42087764, 42090156, 32664638, 42051299, 41997791, 42160751, 41822318, 41909877, 32665951, 32665952, 42005374, 42159659, 41903169, 41976122, 42082652, 42127012, 42029374, 42091166, 41800478, 32665260, 42080766, 42087712, 41984341, 42022945, 42023231, 42140956, 42026245, 42087661, 32666911, 41675523, 32665162, 42001177, 42015240, 41997467, 41834799, 41834798, 41946575);
Date: 2025-01-17 17:22:03 Duration: 10ms
15 110,256 54s917ms 0ms 38ms 0ms select "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" from "shipping_policy" where "shipping_policy".id in (...);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jan 17 00 812 643ms 0ms 01 377 216ms 0ms 02 177 110ms 0ms 03 184 118ms 0ms 04 149 102ms 0ms 05 184 110ms 0ms 06 103 62ms 0ms 07 147 79ms 0ms 08 2,347 1s48ms 0ms 09 4,921 2s192ms 0ms 10 5,475 2s870ms 0ms 11 4,771 2s264ms 0ms 12 5,875 3s417ms 0ms 13 6,881 3s872ms 0ms 14 9,490 5s990ms 0ms 15 6,295 3s353ms 0ms 16 12,713 5s676ms 0ms 17 24,419 11s567ms 0ms 18 13,750 6s366ms 0ms 19 2,943 1s431ms 0ms 20 6,783 2s870ms 0ms 21 1,460 549ms 0ms -
SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE "shipping_policy".id IN (3554004, 3319923, 1221258, 1815804, 4465771, 4120857, 4117205, 2902311, 2053500, 3767580, 2994812, 2996259, 3442453, 1383731, 3887740, 1151145, 4362643, 4001434, 3334683, 2321097, 2145329, 1682265, 2321134, 2544964, 2544968, 3597665, 4364243, 3883368, 1411963, 4452349, 1651386, 2902313, 1794224, 1593287, 1411962, 1409322, 2619898, 2825127, 3913519, 3134506, 3266611, 3319096, 3559080, 2015992, 2015934, 1681868, 2014099, 1901226, 1938863, 3033315, 1285724, 2350921, 1780864, 1904249, 1148182, 1150583, 1868051, 2427050, 1868057, 943532, 1148151, 1148018, 1711896, 1940025, 1904261, 1073978, 1512073, 1308900, 1070589, 4411081, 2477525, 2665027, 2447268, 2702263, 1401476, 2702281, 1435821, 3576075, 2155490, 3740010, 3007455, 3154762, 1731363, 4234366, 3967716, 1731373, 2948614, 1401470, 2155483, 3576067, 4043008, 4383653, 1731367, 3261544, 1606500, 4311764, 1118856, 2702269, 4069176, 1606512, 1194346, 2754626, 2702296, 2565145, 1268082, 3526800, 2518779, 2155499, 1606471, 1118863, 1364781, 4285999, 3007251, 4203346, 3380491, 3122579, 4203342, 3740008, 3487767, 3294051, 3261556, 2447265, 1194336, 1194342, 4344370, 3740012, 4043018, 3932833, 3007457, 4344371, 2155475, 1051553, 4311767, 2262354, 4075587, 3641013, 3641019, 3713061, 3641016, 3077494, 1808884, 3978917, 4237885, 4011503, 1542516, 3753563, 3722842, 1447996, 1345646, 1973155, 3331968, 2618016, 3331969, 3201212, 3988864, 2065839, 1682466, 2375457, 2016103, 879365, 2387994, 2093737, 3369139, 1251836, 4378218, 2371681, 2318225, 1672328, 3081269, 1672327, 3164349, 2696399, 3053917, 2442007, 2674947, 3343795, 3343894, 2318378, 1269484, 3081254, 2760897, 4202498, 3164496, 1769192, 2318374, 3128698, 2958997, 2491483, 2491486, 3465865, 3081253, 3081266, 2160520, 1769195, 2674938, 2409699, 1776862, 1479777, 1586896);
Date: 2025-01-17 17:21:51 Duration: 38ms
-
SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE "shipping_policy".id IN (4496008, 4476935, 4462525, 4458656, 4517598, 4436113, 4509956, 4455126, 4453943, 4499711, 4496888, 4457253, 4527859, 4465198, 4250943, 4465424, 4535026, 4436317, 4554148, 4506333, 4512733, 4382553, 4519417, 4464444, 4525334, 4525141, 4472770, 4496499, 4500806, 4465114, 4425852, 4503146, 4512546, 4512558, 4511646, 4498081, 4510708, 4519762, 4519469, 4465243, 4512863, 4503593, 4499231, 4503952, 4497144, 3509325, 4425229, 4506181, 4440716, 4498513, 4513213, 4507561, 4457329, 4512682, 4525929, 4504130, 4501206, 4502622, 4472352, 4515349, 4510089, 4504017, 4277378, 4472272, 4504955, 4453719, 4457699, 4490650, 4523244, 4526175, 4449987, 4517479, 4435376, 4461446, 4498478, 4537096, 3978691, 4103942, 4114399, 4123132, 4195003, 4198171, 4206155, 4218229, 4307204, 4314780, 4331152, 4347169, 4351647, 4353799, 4358118, 4367607, 4371823, 4372304, 4378601, 4382774, 4383456, 4519688, 4384245, 4500420, 4384296, 4273810, 4389510, 4504292, 4389514, 4393574, 4397719, 4397743, 4399137, 4516581, 4527879, 4517775, 4449042, 4506223, 4506073, 4527878, 4518628, 4519541, 4461005, 4519343, 4460791, 4392287, 4164107, 4507052, 4527882, 4263118, 4440855, 4525262, 4449780, 4510026, 4518819, 4470640, 4482024, 4411582, 4456316, 4498149, 4513814, 4529470, 4530493, 4545920, 4460040, 4417559, 4457150, 4492249, 4421437, 4419080, 4429234, 4469504, 4446289, 4500625, 4465254, 4527873, 4543492, 4409633, 4428647, 4475795, 4503407, 4502394, 4558362, 4451869, 4558361, 3983380, 4495540, 4443000, 4470421, 4459776, 4498228, 4340403, 4493788, 4249962, 4442115, 4537093, 4537095, 4548513, 4531480, 4497113, 4502391, 4460433, 4533320, 4536837, 4510515, 4548417, 4532613, 4099756, 4534938, 4558364, 4536670, 4491891, 4539130, 4519682, 4432575, 4390956, 4518116, 4413081, 4512896, 4464943);
Date: 2025-01-17 17:21:52 Duration: 27ms
-
SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE "shipping_policy".id IN (4346368, 4291293, 4230996, 4382214, 3862793, 4192623, 4382235, 4306698, 4316395, 4341701, 4382138, 4122747, 4251858, 4254389, 3833830, 4369399, 4316377, 4341720, 4316416, 4341685, 4308482, 4309231, 4341683, 4341714, 4341708, 4341681, 4282865, 4236897, 4346425, 4207980, 4225757, 4334484, 4341658, 4286339, 4332807, 4346412, 4282879, 4232982, 4286330, 4309813, 4309233, 4306697, 4251871, 4119333, 4291262, 4290700, 4188853, 4251857, 4291618, 4291620, 4207817, 4119354, 4290690, 4225830, 4254584, 4254596, 4290724, 4309817, 4306690, 4309249, 4254588, 4119334, 4238444, 4286485, 4232980, 4282847, 4195344, 4254592, 4286462, 4286458, 4232538, 4285768, 4238443, 4282942, 4286475, 4158659, 4238442, 4232977, 4232986, 4068929, 4234045, 4207822, 4239679, 4232973, 4234037, 4236917, 4236912, 4236902, 4238473, 4183256, 4122759, 4152312, 4145523, 4145524, 4145526, 4134400, 4095896, 4066686, 4095894, 4095897, 4037422, 4095895, 4066687, 4037427, 4006450, 4037419, 4006448, 3965863, 4037417, 4006451, 3594978, 3971754, 3965865, 3450679, 3965866, 3965868, 3965864, 3933797, 3775991, 3775987, 3775994, 3799197, 3775992, 3775993, 3799185, 3799187, 3594990, 3775989, 3775998, 3713314, 3775995, 3713310, 3624594, 3624592, 3624593, 3450681, 3594984, 3624591, 3594986, 3594995, 3532178, 3594988, 3450677, 3106175, 3385997, 3385995, 3200881, 3279941, 3218695, 3155552, 3091774, 2494817, 3091772, 3091776, 2494820, 2872805, 2872811, 2872816, 2872801, 2897085, 2872831, 2872821, 2872826, 2494812, 2494826);
Date: 2025-01-17 14:13:39 Duration: 15ms
16 109,592 6h8m18s 164ms 1s22ms 201ms select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jan 17 00 1,686 5m16s 187ms 01 1,950 6m4s 187ms 02 2,584 8m2s 186ms 03 1,982 6m10s 187ms 04 3,089 9m39s 187ms 05 2,171 6m45s 186ms 06 1,733 5m23s 186ms 07 302 55s831ms 184ms 08 3,312 10m21s 187ms 09 6,347 20m4s 189ms 10 4,564 14m35s 191ms 11 4,481 14m9s 189ms 12 4,262 13m45s 193ms 13 7,504 24m30s 195ms 14 11,083 36m43s 198ms 15 5,537 17m56s 194ms 16 19,336 1h7m39s 209ms 17 14,967 58m42s 235ms 18 4,784 16m3s 201ms 19 854 2m41s 188ms 20 4,530 14m49s 196ms 21 2,534 7m58s 188ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9422604')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:08:15 Duration: 1s22ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9916401')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:40:25 Duration: 385ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9963425')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:44 Duration: 369ms
17 100,995 8s425ms 0ms 2ms 0ms select "notebook_package"."id" AS "id", "notebook_package"."name" AS "name", "notebook_package"."locked" AS "locked", "notebook_package"."start" AS "start", "notebook_package"."state" AS "state", "notebook_package"."active" AS "active", "notebook_package"."create_uid" AS "create_uid", "notebook_package"."create_date" AS "create_date", "notebook_package"."write_uid" AS "write_uid", "notebook_package"."write_date" AS "write_date", "notebook_package"."v_10_id" AS "v_10_id" from "notebook_package" where "notebook_package".id in (...);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jan 17 00 2,057 177ms 0ms 01 1,800 163ms 0ms 02 1,616 149ms 0ms 03 1,739 167ms 0ms 04 1,163 116ms 0ms 05 1,275 125ms 0ms 06 694 68ms 0ms 07 477 46ms 0ms 08 2,675 227ms 0ms 09 6,108 558ms 0ms 10 8,771 757ms 0ms 11 5,950 497ms 0ms 12 9,276 793ms 0ms 13 8,867 829ms 0ms 14 10,132 1s53ms 0ms 15 7,766 688ms 0ms 16 7,485 554ms 0ms 17 6,311 459ms 0ms 18 5,408 320ms 0ms 19 4,241 234ms 0ms 20 3,753 233ms 0ms 21 2,227 136ms 0ms 22 1,204 66ms 0ms -
SELECT "notebook_package"."id" AS "id", "notebook_package"."name" AS "name", "notebook_package"."locked" AS "locked", "notebook_package"."start" AS "start", "notebook_package"."state" AS "state", "notebook_package"."active" AS "active", "notebook_package"."create_uid" AS "create_uid", "notebook_package"."create_date" AS "create_date", "notebook_package"."write_uid" AS "write_uid", "notebook_package"."write_date" AS "write_date", "notebook_package"."v_10_id" AS "v_10_id" FROM "notebook_package" WHERE "notebook_package".id IN (2);
Date: 2025-01-17 20:31:20 Duration: 2ms
-
SELECT "notebook_package"."id" AS "id", "notebook_package"."name" AS "name", "notebook_package"."locked" AS "locked", "notebook_package"."start" AS "start", "notebook_package"."state" AS "state", "notebook_package"."active" AS "active", "notebook_package"."create_uid" AS "create_uid", "notebook_package"."create_date" AS "create_date", "notebook_package"."write_uid" AS "write_uid", "notebook_package"."write_date" AS "write_date", "notebook_package"."v_10_id" AS "v_10_id" FROM "notebook_package" WHERE "notebook_package".id IN (2);
Date: 2025-01-17 17:21:51 Duration: 0ms
-
SELECT "notebook_package"."id" AS "id", "notebook_package"."name" AS "name", "notebook_package"."locked" AS "locked", "notebook_package"."start" AS "start", "notebook_package"."state" AS "state", "notebook_package"."active" AS "active", "notebook_package"."create_uid" AS "create_uid", "notebook_package"."create_date" AS "create_date", "notebook_package"."write_uid" AS "write_uid", "notebook_package"."write_date" AS "write_date", "notebook_package"."v_10_id" AS "v_10_id" FROM "notebook_package" WHERE "notebook_package".id IN (2);
Date: 2025-01-17 17:39:43 Duration: 0ms
18 93,958 1h8m2s 34ms 106ms 43ms select "shipping_policy_items".id from "shipping_policy_items" where ("shipping_policy_items"."shipping_policy_id" in (...)) order by "shipping_policy_items"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 17 00 2,715 1m55s 42ms 01 3,802 2m41s 42ms 02 2,608 1m51s 42ms 03 3,379 2m23s 42ms 04 2,574 1m50s 42ms 05 2,240 1m35s 42ms 06 1,035 44s57ms 42ms 07 458 19s296ms 42ms 08 2,285 1m37s 42ms 09 6,222 4m26s 42ms 10 5,981 4m18s 43ms 11 5,886 4m12s 42ms 12 7,014 5m5s 43ms 13 7,470 5m28s 44ms 14 9,115 6m47s 44ms 15 6,490 4m42s 43ms 16 7,297 5m25s 44ms 17 4,012 3m5s 46ms 18 3,085 2m14s 43ms 19 3,168 2m14s 42ms 20 3,449 2m27s 42ms 21 2,073 1m27s 42ms 22 1,600 1m7s 42ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4389579)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 16:34:07 Duration: 106ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (538062)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:21:56 Duration: 99ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4512157)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:40:17 Duration: 99ms
19 83,100 27s144ms 0ms 1ms 0ms select "price_list".id from "price_list" where (("price_list"."from_office_id" = ?) and ("price_list"."to_office_id" = ?)) order by "price_list"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jan 17 00 8,048 2s596ms 0ms 01 8,068 2s568ms 0ms 02 7,609 2s638ms 0ms 03 8,243 2s759ms 0ms 04 5,604 2s18ms 0ms 05 4,981 1s757ms 0ms 06 5,680 1s809ms 0ms 07 5,271 1s500ms 0ms 08 479 240ms 0ms 09 340 165ms 0ms 10 1,134 587ms 0ms 11 203 106ms 0ms 12 204 88ms 0ms 13 1,493 537ms 0ms 14 1,916 732ms 0ms 15 793 281ms 0ms 16 3,055 1s1ms 0ms 17 2,360 894ms 0ms 18 3,479 1s51ms 0ms 19 5,585 1s491ms 0ms 20 3,811 1s48ms 0ms 21 3,443 921ms 0ms 22 1,301 345ms 0ms -
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 5) AND ("price_list"."to_office_id" = 55)) ORDER BY "price_list"."id";
Date: 2025-01-17 17:23:19 Duration: 1ms
-
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 51) AND ("price_list"."to_office_id" = 128)) ORDER BY "price_list"."id";
Date: 2025-01-17 06:51:09 Duration: 1ms
-
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 10) AND ("price_list"."to_office_id" = 4)) ORDER BY "price_list"."id";
Date: 2025-01-17 01:48:26 Duration: 1ms
20 78,833 20s120ms 0ms 29ms 0ms insert into "mail_message" ("author_id", "body", "create_date", "create_uid", "date", "email_add_signature", "email_from", "is_internal", "message_id", "message_type", "model", "record_name", "reply_to", "res_id", "subject", "subtype_id", "write_date", "write_uid") values (?, ?, ?, ?, ?, false, null, true, ?, ?, ?, null, null, ?, null, ?, ?, ?) returning "id";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jan 17 00 3,191 784ms 0ms 01 4,457 1s68ms 0ms 02 3,655 808ms 0ms 03 4,593 1s34ms 0ms 04 3,349 797ms 0ms 05 3,231 738ms 0ms 06 1,848 502ms 0ms 07 1,304 404ms 0ms 08 2,200 467ms 0ms 09 3,997 941ms 0ms 10 4,779 1s179ms 0ms 11 3,759 1s33ms 0ms 12 5,645 1s466ms 0ms 13 4,634 1s108ms 0ms 14 6,463 1s502ms 0ms 15 3,699 896ms 0ms 16 4,197 1s69ms 0ms 17 2,324 910ms 0ms 18 2,711 926ms 0ms 19 2,519 741ms 0ms 20 2,745 795ms 0ms 21 2,143 601ms 0ms 22 1,390 341ms 0ms -
INSERT INTO "mail_message" ("author_id", "body", "create_date", "create_uid", "date", "email_add_signature", "email_from", "is_internal", "message_id", "message_type", "model", "record_name", "reply_to", "res_id", "subject", "subtype_id", "write_date", "write_uid") VALUES (8007032, '', '2025-01-17 15:28:44.149092', 1214, '2025-01-17 15:32:16', false, NULL, true, '<298983014127008.1737127936.413152217864990-openerp-message-notify@urg-dell>', 'notification', 'shipping.policy', NULL, NULL, 4452026, NULL, 2, '2025-01-17 15:28:44.149092', 1214) RETURNING "id";
Date: 2025-01-17 16:32:16 Duration: 29ms
-
INSERT INTO "mail_message" ("author_id", "body", "create_date", "create_uid", "date", "email_add_signature", "email_from", "is_internal", "message_id", "message_type", "model", "record_name", "reply_to", "res_id", "subject", "subtype_id", "write_date", "write_uid") VALUES (8006444, '', '2025-01-17 00:45:38.199850', 1072, '2025-01-17 00:48:11', false, NULL, true, '<873651633580988.1737074891.891961097717285-openerp-message-notify@urg-dell>', 'notification', 'shipping.policy', NULL, NULL, 4534564, NULL, 2, '2025-01-17 00:45:38.199850', 1072) RETURNING "id";
Date: 2025-01-17 01:48:11 Duration: 22ms
-
INSERT INTO "mail_message" ("author_id", "body", "create_date", "create_uid", "date", "email_add_signature", "email_from", "is_internal", "message_id", "message_type", "model", "record_name", "reply_to", "res_id", "subject", "subtype_id", "write_date", "write_uid") VALUES (8006381, '', '2025-01-17 03:30:54.904939', 1015, '2025-01-17 03:31:51', false, NULL, true, '<058182457516919.1737084711.901441574096680-openerp-message-notify@urg-dell>', 'notification', 'shipping.policy', NULL, NULL, 4547225, NULL, 2, '2025-01-17 03:30:54.904939', 1015) RETURNING "id";
Date: 2025-01-17 04:31:51 Duration: 21ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2m4s 2m43s 2m13s 13 28m49s select min("shipping_policy".id) as id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" AS "state" from "shipping_policy" where ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) group by "shipping_policy"."state" order by "state" limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jan 17 17 7 15m30s 2m12s 18 6 13m19s 2m13s -
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 17:46:31 Duration: 2m43s
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 18:12:09 Duration: 2m21s
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."total_shipping_price") AS "total_shipping_price", sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender", sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive", sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines", "shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80;
Date: 2025-01-17 17:59:25 Duration: 2m18s
2 1m12s 2m15s 1m47s 8 14m19s select count(*) from ( select from "shipping_policy" where (("shipping_policy"."state" = ?) and ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null)))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) limit ?) t;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jan 17 17 3 6m25s 2m8s 18 5 7m54s 1m34s -
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 101) t;
Date: 2025-01-17 17:36:37 Duration: 2m15s
-
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 101) t;
Date: 2025-01-17 18:36:37 Duration: 2m6s
-
SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) LIMIT 102) t;
Date: 2025-01-17 18:41:40 Duration: 2m5s
3 5s906ms 2m17s 1m6s 15 16m33s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."state" = ?) and ((("shipping_policy"."active" = true) and (("shipping_policy"."state" != ?) or "shipping_policy"."state" is null)) and ((("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or (("shipping_policy"."pol_name" = ?) or ("shipping_policy"."pol_name" = ?))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and ((("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null) and (("shipping_policy"."policy_id" in ( select "policy_number".id from "policy_number" where (("policy_number"."name"::text not ilike ?) or "policy_number"."name" is null))) or "shipping_policy"."policy_id" is null)))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jan 17 17 7 8m11s 1m10s 18 8 8m21s 1m2s -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 50;
Date: 2025-01-17 17:48:49 Duration: 2m17s
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_office') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2025-01-17 18:34:31 Duration: 2m9s
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."state" = 'in_way') AND ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND ((("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL) AND (("shipping_policy"."policy_id" in ( SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL)))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 50;
Date: 2025-01-17 17:34:21 Duration: 2m8s
4 0ms 38m30s 1m 160 2h41m43s update "res_users" set "exp_date" = ?, "last_update" = ?, "sid" = ?, "write_date" = ?, "write_uid" = ? where id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jan 17 00 5 5ms 1ms 01 1 1ms 1ms 02 2 1ms 0ms 03 2 0ms 0ms 04 1 0ms 0ms 05 2 1ms 0ms 06 2 1ms 0ms 08 3 0ms 0ms 09 7 1ms 0ms 10 2 1ms 0ms 11 5 7ms 1ms 12 11 12ms 1ms 13 21 50m41s 2m24s 14 14 14ms 1ms 15 13 6ms 0ms 16 12 14ms 1ms 17 14 21ms 1ms 18 9 11ms 1ms 19 7 1ms 0ms 20 3 3ms 1ms 21 22 1h51m1s 5m2s 22 2 3ms 1ms -
UPDATE "res_users" SET "exp_date" = '2025-01-17 20:58:50.874486', "last_update" = '2025-01-17 20:13:50.874524', "sid" = '18d3b47b86e5b4df613a056eaef58c62705fdcae', "write_date" = '2025-01-17 20:13:50.469973', "write_uid" = 1390 WHERE id IN (1390);
Date: 2025-01-17 21:52:21 Duration: 38m30s
-
UPDATE "res_users" SET "exp_date" = '2025-01-17 20:27:37.116807', "last_update" = '2025-01-17 19:42:37.116824', "sid" = '5109ad8062cc99a97bab285b8b08bb5c92e3f85a', "write_date" = '2025-01-17 19:42:36.783805', "write_uid" = 1 WHERE id IN (884);
Date: 2025-01-17 21:10:03 Duration: 27m26s
-
UPDATE "res_users" SET "exp_date" = '2025-01-17 21:13:51.028258', "last_update" = '2025-01-17 20:28:51.028279', "sid" = '18d3b47b86e5b4df613a056eaef58c62705fdcae', "write_date" = '2025-01-17 20:28:50.705285', "write_uid" = 1390 WHERE id IN (1390);
Date: 2025-01-17 21:52:21 Duration: 23m30s
5 0ms 59m59s 5s38ms 38,073 2d5h16m52s update res_users set sid = ?, last_update = ?, exp_date = ?, logged_in = ? where id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jan 17 00 775 175ms 0ms 01 960 22s377ms 23ms 02 869 199ms 0ms 03 1,285 293ms 0ms 04 1,373 307ms 0ms 05 925 209ms 0ms 06 327 72ms 0ms 07 201 46ms 0ms 08 889 197ms 0ms 09 2,156 487ms 0ms 10 2,442 554ms 0ms 11 1,966 6h40m39s 12s227ms 12 2,862 7h13m21s 9s84ms 13 3,107 8h30m56s 9s866ms 14 3,347 818ms 0ms 15 3,014 720ms 0ms 16 2,977 12h12m1s 14s753ms 17 2,306 4h21m3s 6s792ms 18 1,891 4m47s 152ms 19 1,598 1h59m59s 4s505ms 20 1,386 295ms 0ms 21 991 12h13m35s 44s415ms 22 426 96ms 0ms -
update res_users set sid = 'b415613d1bbb70885e9364c9a35b3f3b3974e477', last_update = '2025-01-17 17:09:06.918751', exp_date = '2025-01-17 17:54:06.918756', logged_in = 'TRUE' where id = 848;
Date: 2025-01-17 19:09:06 Duration: 59m59s
-
update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684976', exp_date = '2025-01-17 14:54:04.684978', logged_in = 'TRUE' where id = 1287;
Date: 2025-01-17 16:09:04 Duration: 59m59s
-
update res_users set sid = 'da4e6f7f0431bb71d5b4e29f7c9bb7951e8de656', last_update = '2025-01-17 14:09:04.684803', exp_date = '2025-01-17 14:54:04.684806', logged_in = 'TRUE' where id = 1287;
Date: 2025-01-17 16:09:04 Duration: 59m59s
6 818ms 1s525ms 898ms 6,187 1h32m37s select "policy_number".id from "policy_number" where ((((((("policy_number"."active" = true) and ("policy_number"."name" = ?)) and ("policy_number"."package_id" = ?)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."active" = true) and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))))) and ("policy_number"."done" is null or "policy_number"."done" = false)) and ("policy_number"."damaged" is null or "policy_number"."damaged" = false)) and (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))) and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) or (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."delegates_id" is not null and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null and ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))))))) order by "policy_number"."id";Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jan 17 00 874 12m55s 887ms 01 881 13m4s 890ms 02 516 7m43s 898ms 03 250 3m44s 896ms 08 10 8s799ms 879ms 09 3 2s745ms 915ms 11 1 894ms 894ms 12 9 7s981ms 886ms 13 129 1m57s 909ms 14 209 3m14s 928ms 15 111 1m40s 907ms 16 214 3m11s 894ms 17 142 2m39s 1s126ms 18 364 5m35s 920ms 19 1,207 17m42s 880ms 20 629 9m20s 890ms 21 551 8m10s 890ms 22 87 1m16s 881ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9740222')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:42:11 Duration: 1s525ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9896551')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:41:59 Duration: 1s393ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9896543')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77)))))) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (77))))))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:42:50 Duration: 1s352ms
7 468ms 1s667ms 541ms 26,630 4h10s select "shipping_track".id from "shipping_track" where ("shipping_track"."shipping_id" in (...)) order by "shipping_track"."id";Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jan 17 00 234 2m9s 551ms 01 713 6m6s 514ms 02 164 1m36s 590ms 03 167 1m39s 593ms 04 140 1m23s 593ms 05 442 3m50s 522ms 06 86 48s356ms 562ms 07 105 53s710ms 511ms 08 481 4m11s 523ms 09 1,243 10m53s 525ms 10 1,996 17m19s 521ms 11 1,694 14m46s 523ms 12 2,312 20m19s 527ms 13 1,911 17m15s 541ms 14 2,257 20m29s 544ms 15 2,331 20m29s 527ms 16 2,648 23m53s 541ms 17 2,085 20m36s 593ms 18 1,511 14m12s 564ms 19 1,274 11m32s 543ms 20 1,563 14m9s 543ms 21 828 7m31s 545ms 22 445 4m 540ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (538062)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:21:56 Duration: 1s667ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (4412427, 4412429, 4412431, 4412433, 4412435, 4412437, 4412438, 4412440, 4412442, 4412444, 4412446, 4412448, 4412450, 4412452, 4412454, 4412456, 4412458, 4412460, 4412462, 4412464, 4412466, 4412468, 4412470, 4412472, 4412474, 4412476, 4412478, 4412480, 4412482, 4412484, 4412486, 4412488, 4412490, 4412492, 4495321, 4495470, 4495479, 4496632, 4497919, 4497921, 4497922, 4497924, 4497926, 4497928, 4497929, 4497931, 4497932, 4497934, 4497936, 4497937, 4497939, 4497941, 4497942, 4497944, 4497946, 4497948, 4497949, 4497951, 4497953, 4497954, 4497956, 4497958, 4497959, 4497961, 4497963, 4497964, 4497966, 4497968, 4497970, 4497971, 4497973, 4497975, 4502562, 4502567, 4502570, 4502573, 4502576, 4502578, 4502581, 4502584, 4502587, 4502590, 4502593, 4502596, 4502598, 4502601, 4502605, 4502606, 4502610, 4502613, 4502617, 4502618, 4502623, 4502624, 4502627, 4502630, 4502633, 4502636, 4502638, 4502640, 4502643, 4502646, 4502649, 4502652, 4502655, 4502659, 4505464, 4505466, 4505468, 4505470, 4505472, 4505473, 4505475, 4505477, 4505478, 4505480, 4505482, 4505484, 4505485, 4505487, 4505489, 4505490, 4505493, 4505496, 4505498, 4505501, 4505504, 4505506, 4505510, 4505512, 4505515, 4505518, 4505521, 4505524, 4505527, 4505529, 4505532, 4505535, 4505536, 4505540, 4526064, 4526065, 4526069, 4526075, 4526077, 4526083, 4526084, 4526086, 4526087, 4526091, 4526095, 4526097, 4526098, 4526099, 4526100, 4526101, 4526103, 4526104, 4526111, 4526112, 4526113, 4526114, 4526115, 4526116, 4526118, 4526120, 4526121, 4526122, 4526123, 4526125, 4526126, 4526129, 4526130, 4526131, 4526133, 4526134, 4526135, 4526139, 4526140, 4526142, 4526145, 4526146, 4526149, 4526229, 4526230, 4526231, 4526233, 4526234, 4526235, 4526236, 4526237, 4526238, 4526239, 4526242, 4526244, 4526245, 4526246, 4526247, 4526250, 4526257, 4526258, 4526259, 4526260, 4526262, 4526264, 4526269, 4526270, 4526272, 4526276, 4526280, 4526281, 4526283, 4526284, 4526287, 4526288, 4526289, 4526290, 4526291, 4526292, 4526293, 4526296, 4526299, 4526300, 4526302, 4526424, 4526425, 4526426, 4526434, 4526437, 4526438, 4526441, 4526442, 4526443, 4526444, 4526452, 4526453, 4526454, 4526456, 4526457)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:25 Duration: 1s327ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (4471708)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:30 Duration: 1s100ms
8 461ms 3s939ms 532ms 177,301 1d2h13m39s select "shipping_track".id from "shipping_track" where (("shipping_track"."shipping_id" in (...)) and (("shipping_track"."id" not in (...)) or "shipping_track"."id" is null)) order by "shipping_track"."id";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jan 17 00 7,424 1h4m20s 520ms 01 8,803 1h15m38s 515ms 02 8,521 1h12m58s 513ms 03 9,224 1h19m21s 516ms 04 7,750 1h6m7s 511ms 05 6,587 55m44s 507ms 06 4,450 38m26s 518ms 07 2,504 22m28s 538ms 08 3,398 27m59s 494ms 09 7,392 1h2m4s 503ms 10 8,908 1h15m42s 509ms 11 6,616 55m30s 503ms 12 8,299 1h10m45s 511ms 13 9,131 1h19m14s 520ms 14 11,366 1h40m48s 532ms 15 8,182 1h10m28s 516ms 16 9,340 1h23m26s 536ms 17 16,375 2h46m46s 611ms 18 13,450 2h5m31s 559ms 19 5,841 54m38s 561ms 20 6,956 1h3m47s 550ms 21 4,629 42m17s 548ms 22 2,155 19m31s 543ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559540)) AND (("shipping_track"."id" not in (37632046, 37632046)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:17 Duration: 3s939ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4559546)) AND (("shipping_track"."id" not in (37632197, 37632197)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:33 Duration: 3s569ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (4467066)) AND (("shipping_track"."id" not in (36919716, 36923301, 36971088, 37027617, 37027789, 37051924, 37052422, 37189945, 37190256, 37388372, 37632156, 37632156)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2025-01-17 17:40:28 Duration: 3s65ms
9 171ms 471ms 270ms 20,862 1h34m11s select "collection_policy".id from "collection_policy" where (("collection_policy"."type" = ?) and ("collection_policy"."shipping_id" in ( select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where ("shipping_policy__policy_id"."name" = ?)))) order by "collection_policy"."id";Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jan 17 08 1,108 4m38s 251ms 09 3,133 13m12s 252ms 10 1,739 8m9s 281ms 11 2,188 10m24s 285ms 12 1,823 8m1s 264ms 13 2,560 11m22s 266ms 14 3,583 15m51s 265ms 15 2,194 9m37s 263ms 16 2,218 11m7s 301ms 17 316 1m45s 332ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '9876756')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 16:57:19 Duration: 471ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '488866')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 14:54:00 Duration: 462ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_sender') AND ("collection_policy"."shipping_id" in ( SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE ("shipping_policy__policy_id"."name" = '9904085')))) ORDER BY "collection_policy"."id";
Date: 2025-01-17 13:10:42 Duration: 461ms
10 212ms 545ms 256ms 10,501 44m52s select "policy_number".id from "policy_number" where ((((((("policy_number"."active" = true) and ("policy_number"."name" = ?)) and ("policy_number"."package_id" = ?)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."active" = true)))) and ("policy_number"."done" is null or "policy_number"."done" = false)) and ("policy_number"."damaged" is null or "policy_number"."damaged" = false)) and (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where ("notebook"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) or (("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."delegates_id" is not null)) and ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))))) order by "policy_number"."id";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jan 17 00 724 3m10s 263ms 01 771 3m21s 261ms 02 818 3m26s 252ms 03 1,279 5m16s 247ms 04 862 3m34s 248ms 05 830 3m26s 248ms 06 1,154 4m46s 248ms 07 1,218 5m8s 252ms 08 3 733ms 244ms 09 21 5s249ms 249ms 10 16 4s43ms 252ms 11 3 714ms 238ms 12 15 3s983ms 265ms 13 159 43s439ms 273ms 14 137 35s783ms 261ms 15 47 11s482ms 244ms 16 495 2m12s 268ms 17 425 2m11s 309ms 18 475 2m11s 277ms 19 210 53s140ms 253ms 20 305 1m18s 257ms 21 298 1m11s 240ms 22 236 57s141ms 242ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9432516')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:29 Duration: 545ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9726033')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:02 Duration: 531ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9726907')) AND ("policy_number"."package_id" = 2)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."active" = true)))) AND ("policy_number"."done" IS NULL or "policy_number"."done" = false)) AND ("policy_number"."damaged" IS NULL or "policy_number"."damaged" = false)) AND (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) OR (("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."delegates_id" IS NOT NULL)) AND ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))))) ORDER BY "policy_number"."id";
Date: 2025-01-17 17:40:34 Duration: 525ms
11 96ms 830ms 229ms 32,912 2h5m48s select "urgent_customer".id from "urgent_customer" where (("urgent_customer"."active" = true) and ("urgent_customer"."name" = ?)) order by "urgent_customer"."id" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jan 17 00 3,146 12m1s 229ms 01 3,265 11m25s 209ms 02 2,639 9m18s 211ms 03 3,022 10m42s 212ms 04 1,706 6m10s 217ms 05 1,642 6m5s 222ms 06 2,288 10m2s 263ms 07 2,418 9m20s 231ms 08 26 6s9ms 231ms 09 46 6s656ms 144ms 10 30 6s523ms 217ms 11 6 1s174ms 195ms 12 46 9s664ms 210ms 13 550 2m22s 259ms 14 660 3m4s 279ms 15 310 1m14s 241ms 16 1,400 6m 257ms 17 1,122 5m20s 285ms 18 1,652 6m14s 226ms 19 2,787 10m19s 222ms 20 1,837 7m1s 229ms 21 1,674 6m18s 226ms 22 640 2m14s 210ms -
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'عبد الرحمن')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:56:07 Duration: 830ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:56:07 Duration: 830ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمود')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2025-01-17 16:12:09 Duration: 803ms
12 176ms 412ms 219ms 2,726 9m58s select name from shipping_policy order by create_date desc limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jan 17 00 120 24s788ms 206ms 01 120 24s752ms 206ms 02 120 24s816ms 206ms 03 120 24s780ms 206ms 04 120 24s765ms 206ms 05 120 24s511ms 204ms 06 120 24s582ms 204ms 07 120 24s467ms 203ms 08 120 24s651ms 205ms 09 120 25s56ms 208ms 10 120 24s980ms 208ms 11 120 25s68ms 208ms 12 120 25s328ms 211ms 13 120 25s504ms 212ms 14 120 26s87ms 217ms 15 120 25s455ms 212ms 16 120 26s244ms 218ms 17 116 29s829ms 257ms 18 120 31s205ms 260ms 19 120 29s518ms 245ms 20 120 29s928ms 249ms 21 120 29s776ms 248ms 22 90 22s254ms 247ms -
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:42:02 Duration: 412ms
-
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:42:02 Duration: 368ms
-
select name from shipping_policy order by create_date desc limit 10;
Date: 2025-01-17 17:40:02 Duration: 361ms
13 164ms 1s22ms 201ms 109,592 6h8m18s select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jan 17 00 1,686 5m16s 187ms 01 1,950 6m4s 187ms 02 2,584 8m2s 186ms 03 1,982 6m10s 187ms 04 3,089 9m39s 187ms 05 2,171 6m45s 186ms 06 1,733 5m23s 186ms 07 302 55s831ms 184ms 08 3,312 10m21s 187ms 09 6,347 20m4s 189ms 10 4,564 14m35s 191ms 11 4,481 14m9s 189ms 12 4,262 13m45s 193ms 13 7,504 24m30s 195ms 14 11,083 36m43s 198ms 15 5,537 17m56s 194ms 16 19,336 1h7m39s 209ms 17 14,967 58m42s 235ms 18 4,784 16m3s 201ms 19 854 2m41s 188ms 20 4,530 14m49s 196ms 21 2,534 7m58s 188ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9422604')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:08:15 Duration: 1s22ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9916401')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:40:25 Duration: 385ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9963425')) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:44 Duration: 369ms
14 167ms 337ms 193ms 6,890 22m14s select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jan 17 00 114 21s411ms 187ms 01 329 1m1s 186ms 02 153 28s525ms 186ms 03 39 7s259ms 186ms 04 450 1m24s 188ms 05 325 1m 185ms 06 76 14s56ms 184ms 08 284 53s616ms 188ms 09 387 1m13s 190ms 10 165 31s622ms 191ms 11 284 54s212ms 190ms 12 272 52s545ms 193ms 13 854 2m46s 194ms 14 1,133 3m46s 199ms 15 389 1m14s 191ms 16 449 1m31s 204ms 17 199 41s822ms 210ms 18 330 1m4s 195ms 19 308 58s127ms 188ms 20 350 1m6s 191ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9953218')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:12 Duration: 337ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9598789')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:42:00 Duration: 312ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9598786')) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 17:41:58 Duration: 307ms
15 140ms 229ms 185ms 12,818 39m43s select "shipping_policy".id from "shipping_policy" left join "policy_number" AS "shipping_policy__policy_id" on ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") where (("shipping_policy"."active" = true) and ("shipping_policy__policy_id"."name" = ?)) and ("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) order by "shipping_policy"."id" desc;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jan 17 00 1,456 4m31s 186ms 01 1,621 4m59s 184ms 02 2,431 7m30s 185ms 03 1,944 6m3s 187ms 04 2,404 7m28s 186ms 05 1,846 5m42s 185ms 06 1,022 3m10s 186ms 07 94 17s268ms 183ms -
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9981048')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 02:07:25 Duration: 229ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9714959')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 00:12:09 Duration: 228ms
-
SELECT "shipping_policy".id FROM "shipping_policy" LEFT JOIN "policy_number" AS "shipping_policy__policy_id" ON ("shipping_policy"."policy_id" = "shipping_policy__policy_id"."id") WHERE (("shipping_policy"."active" = true) AND ("shipping_policy__policy_id"."name" = '9962455')) AND ("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 112, 113, 114)))) ORDER BY "shipping_policy"."id" DESC;
Date: 2025-01-17 04:31:50 Duration: 226ms
16 119ms 251ms 135ms 3,915 8m52s select "res_partner".id from "res_partner" where (("res_partner"."active" = true) and ("res_partner"."office_id" = ?)) and ((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or (("res_partner"."company_id" in (...)) or "res_partner"."company_id" is null)) and ((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null)) order by "res_partner"."display_name" asc, "res_partner"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jan 17 00 46 5s977ms 129ms 01 15 1s981ms 132ms 06 5 649ms 129ms 07 5 666ms 133ms 08 15 1s976ms 131ms 09 113 14s907ms 131ms 10 189 25s185ms 133ms 11 381 50s407ms 132ms 12 402 54s825ms 136ms 13 351 48s468ms 138ms 14 453 1m3s 141ms 15 370 49s188ms 132ms 16 629 1m28s 140ms 17 77 11s819ms 153ms 18 116 15s941ms 137ms 19 513 1m6s 130ms 20 56 7s363ms 131ms 21 138 18s71ms 130ms 22 41 5s433ms 132ms -
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:45 Duration: 251ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:44 Duration: 248ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 46)) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL)) ORDER BY "res_partner"."display_name" ASC, "res_partner"."id" DESC;
Date: 2025-01-17 17:42:42 Duration: 248ms
17 89ms 247ms 110ms 7,169 13m10s select "cash_track".id from "cash_track" where (("cash_track"."cash_policy_id" in (...)) and (("cash_track"."id" not in (...)) or "cash_track"."id" is null)) order by "cash_track"."id";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jan 17 01 81 8s836ms 109ms 05 69 7s523ms 109ms 08 51 5s594ms 109ms 09 375 39s859ms 106ms 10 361 39s964ms 110ms 11 957 1m38s 103ms 12 776 1m23s 107ms 13 938 1m42s 109ms 14 811 1m32s 113ms 15 457 50s217ms 109ms 16 468 52s290ms 111ms 17 482 1m 125ms 18 391 44s44ms 112ms 19 644 1m10s 109ms 20 183 20s553ms 112ms 21 71 8s194ms 115ms 22 54 6s104ms 113ms -
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997592)) AND (("cash_track"."id" not in (7062550)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:08:14 Duration: 247ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997759)) AND (("cash_track"."id" not in (7063570)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:42:08 Duration: 196ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7997761)) AND (("cash_track"."id" not in (7063572)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2025-01-17 17:42:12 Duration: 189ms
18 41ms 122ms 52ms 42,711 37m12s select "collection_policy".id from "collection_policy" where (("collection_policy"."shipping_id" = ?) and ("collection_policy"."state" = ?)) order by "collection_policy"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jan 17 00 75 3s821ms 50ms 01 55 2s773ms 50ms 07 55 2s833ms 51ms 08 1,455 1m12s 49ms 09 6,016 5m4s 50ms 10 2,955 2m31s 51ms 11 4,403 3m42s 50ms 12 4,893 4m10s 51ms 13 4,054 3m31s 52ms 14 7,208 6m29s 54ms 15 4,071 3m32s 52ms 16 5,099 4m36s 54ms 17 1,122 1m4s 57ms 18 372 20s149ms 54ms 19 350 18s161ms 51ms 20 396 20s667ms 52ms 21 113 5s872ms 51ms 22 19 1s31ms 54ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 4512157) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:40:10 Duration: 122ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 3923752) AND ("collection_policy"."state" = 'draft')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:22:11 Duration: 113ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 4461639) AND ("collection_policy"."state" = 'draft')) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:39:23 Duration: 103ms
19 37ms 81ms 46ms 18,908 14m46s select "collection_policy".id from "collection_policy" where ("collection_policy"."shipping_id" = ?) order by "collection_policy"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jan 17 07 1 48ms 48ms 08 605 27s347ms 45ms 09 2,973 2m16s 45ms 10 1,386 1m4s 46ms 11 1,690 1m17s 46ms 12 1,772 1m21s 45ms 13 2,321 1m47s 46ms 14 2,917 2m21s 48ms 15 2,057 1m36s 46ms 16 2,746 2m13s 48ms 17 423 20s920ms 49ms 18 16 753ms 47ms 21 1 49ms 49ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 4380081) ORDER BY "collection_policy"."id";
Date: 2025-01-17 16:28:34 Duration: 81ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 3816330) ORDER BY "collection_policy"."id";
Date: 2025-01-17 17:42:43 Duration: 77ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 4427427) ORDER BY "collection_policy"."id";
Date: 2025-01-17 14:10:55 Duration: 72ms
20 34ms 106ms 43ms 93,958 1h8m2s select "shipping_policy_items".id from "shipping_policy_items" where ("shipping_policy_items"."shipping_policy_id" in (...)) order by "shipping_policy_items"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jan 17 00 2,715 1m55s 42ms 01 3,802 2m41s 42ms 02 2,608 1m51s 42ms 03 3,379 2m23s 42ms 04 2,574 1m50s 42ms 05 2,240 1m35s 42ms 06 1,035 44s57ms 42ms 07 458 19s296ms 42ms 08 2,285 1m37s 42ms 09 6,222 4m26s 42ms 10 5,981 4m18s 43ms 11 5,886 4m12s 42ms 12 7,014 5m5s 43ms 13 7,470 5m28s 44ms 14 9,115 6m47s 44ms 15 6,490 4m42s 43ms 16 7,297 5m25s 44ms 17 4,012 3m5s 46ms 18 3,085 2m14s 43ms 19 3,168 2m14s 42ms 20 3,449 2m27s 42ms 21 2,073 1m27s 42ms 22 1,600 1m7s 42ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4389579)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 16:34:07 Duration: 106ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (538062)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:21:56 Duration: 99ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (4512157)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2025-01-17 17:40:17 Duration: 99ms
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
- 10,644,880 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 398 FATAL entries
- 1702 ERROR entries
- 0 WARNING entries
- 334 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 896 Max number of times the same event was reported
- 2,434 Total events found
Rank Times reported Error 1 896 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Jan 17 00 15 01 16 02 16 03 12 04 14 05 16 07 3 08 28 09 45 10 44 11 29 12 73 13 62 14 65 15 71 16 92 17 83 18 82 19 64 20 32 21 28 22 6 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: update shipping_policy set count_search=2 where id=4536331
Date: 2025-01-17 00:01:23
Statement: update res_users set sid = '53c9ed4264762c4fdb84e3ae8de753ca5750c4a6', last_update = '2025-01-16 23:11:45.454244',exp_date = '2025-01-16 23:56:45.454248', logged_in = 'TRUE' where id = 1290
Date: 2025-01-17 00:11:45
Statement: update shipping_policy set count_search=2 where id=4528222
Date: 2025-01-17 00:12:59
2 768 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #2
Day Hour Count Jan 17 00 11 01 15 02 14 03 10 04 10 05 14 07 3 08 26 09 35 10 41 11 27 12 73 13 54 14 62 15 62 16 67 17 51 18 72 19 61 20 30 21 24 22 6 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT "ir_asset".id FROM "ir_asset" WHERE ("ir_asset"."bundle" = 'bus.websocket_worker_assets') ORDER BY "ir_asset"."sequence" ,"ir_asset"."id"
Date: 2025-01-17 00:11:45
Statement: SELECT active, id, login, password, totp_secret, (SELECT value FROM ir_config_parameter WHERE key='database.secret') FROM res_users WHERE id=854
Date: 2025-01-17 00:16:46
Statement: SELECT "shipping_policy".id FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND (("shipping_policy"."out_date" = '2025-01-16') AND (("shipping_policy"."last_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%دمنهور%'))) AND (("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%دمنهور%'))) AND ((("shipping_policy"."state" = 'in_way_to_client') OR ("shipping_policy"."state" = 'client_receive')) AND ("shipping_policy"."delegate_id" in (SELECT "res_partner".id FROM "res_partner" WHERE ((((("res_partner"."display_name"::text ilike '%زغلول%') OR ("res_partner"."email"::text ilike '%زغلول%')) OR ("res_partner"."ref"::text ilike '%زغلول%')) OR ("res_partner"."vat"::text ilike '%زغلول%')) OR ("res_partner"."company_registry"::text ilike '%زغلول%')) AND ((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false ) OR (("res_partner"."company_id" in (1)) OR "res_partner"."company_id" IS NULL)) AND ((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL ))))))))) AND (("shipping_policy"."last_warehouse" in (SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (28)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (28))))) OR ("shipping_policy"."last_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (28))))) OR ("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100
Date: 2025-01-17 00:21:10
3 220 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #3
Day Hour Count Jan 17 11 27 12 21 13 48 16 54 17 20 19 1 21 49 - LOG: could not send data to client: Broken pipe
Statement: update res_users set sid = 'e1484df26602143ee1e4b23428a7a7dc187e77e2', last_update = '2025-01-17 17:40:23.836754',exp_date = '2025-01-17 18:25:23.836758', logged_in = 'TRUE' where id = 1116
Date: 2025-01-17 19:40:23
4 220 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #4
Day Hour Count Jan 17 11 27 12 21 13 48 16 54 17 20 19 1 21 49 5 122 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #5
Day Hour Count Jan 17 17 122 - FATAL: terminating connection due to administrator command
- FATAL: terminating connection due to administrator command
- FATAL: terminating connection due to administrator command
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2025-01-17 17:20:01
Context: while updating tuple (85,13) in relation "res_users"
Statement: update res_users set sid = 'c3212cb9f91fdbdb14ade16eb543032103a9aa0d', last_update = '2025-01-17 16:19:44.470598',exp_date = '2025-01-17 17:04:44.470602', logged_in = 'TRUE' where id = 1041Date: 2025-01-17 17:20:01
Statement: SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "state_count" , sum("shipping_policy"."total_no_items") AS "total_no_items",sum("shipping_policy"."total_shipping_price") AS "total_shipping_price",sum("shipping_policy"."collection_amount_sender") AS "collection_amount_sender",sum("shipping_policy"."collection_amount_receive") AS "collection_amount_receive",sum("shipping_policy"."total_amount_cash_lines") AS "total_amount_cash_lines","shipping_policy"."state" as "state" FROM "shipping_policy" WHERE ((("shipping_policy"."active" = true) AND (("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL)) AND ((("shipping_policy"."pol_name" = '9821748') OR (("shipping_policy"."pol_name" = '9545231') OR (("shipping_policy"."pol_name" = '487390') OR (("shipping_policy"."pol_name" = '484615') OR (("shipping_policy"."pol_name" = '9907646') OR (("shipping_policy"."pol_name" = '9912227') OR (("shipping_policy"."pol_name" = '9656632') OR (("shipping_policy"."pol_name" = '9970850') OR (("shipping_policy"."pol_name" = '9857800') OR (("shipping_policy"."pol_name" = '9953558') OR (("shipping_policy"."pol_name" = '9972334') OR (("shipping_policy"."pol_name" = '9009372') OR (("shipping_policy"."pol_name" = '9911754') OR (("shipping_policy"."pol_name" = '9944282') OR (("shipping_policy"."pol_name" = '9965509') OR (("shipping_policy"."pol_name" = '9902203') OR (("shipping_policy"."pol_name" = '9847713') OR (("shipping_policy"."pol_name" = '9909331') OR (("shipping_policy"."pol_name" = '9845112') OR (("shipping_policy"."pol_name" = '9789826') OR (("shipping_policy"."pol_name" = '9970992') OR (("shipping_policy"."pol_name" = '9970740') OR (("shipping_policy"."pol_name" = '9953011') OR (("shipping_policy"."pol_name" = '9829890') OR (("shipping_policy"."pol_name" = '9619587') OR (("shipping_policy"."pol_name" = '9907562') OR (("shipping_policy"."pol_name" = '9876310') OR (("shipping_policy"."pol_name" = '486172') OR (("shipping_policy"."pol_name" = '9862749') OR (("shipping_policy"."pol_name" = '490231') OR (("shipping_policy"."pol_name" = '9953557') OR (("shipping_policy"."pol_name" = '9656266') OR (("shipping_policy"."pol_name" = '9656628') OR (("shipping_policy"."pol_name" = '9907082') OR (("shipping_policy"."pol_name" = '488704') OR (("shipping_policy"."pol_name" = '9808850') OR (("shipping_policy"."pol_name" = '9911660') OR (("shipping_policy"."pol_name" = '9970333') OR (("shipping_policy"."pol_name" = '9883990') OR (("shipping_policy"."pol_name" = '9908224') OR (("shipping_policy"."pol_name" = '9970991') OR (("shipping_policy"."pol_name" = '9952916') OR (("shipping_policy"."pol_name" = '483697') OR (("shipping_policy"."pol_name" = '9496898') OR (("shipping_policy"."pol_name" = '9496897') OR (("shipping_policy"."pol_name" = '9629699') OR (("shipping_policy"."pol_name" = '9961177') OR (("shipping_policy"."pol_name" = '9870093') OR (("shipping_policy"."pol_name" = '9812649') OR (("shipping_policy"."pol_name" = '9631598') OR (("shipping_policy"."pol_name" = '9944639') OR (("shipping_policy"."pol_name" = '9950103') OR (("shipping_policy"."pol_name" = '9965123') OR (("shipping_policy"."pol_name" = '9821165') OR (("shipping_policy"."pol_name" = '9821174') OR (("shipping_policy"."pol_name" = '9294689') OR (("shipping_policy"."pol_name" = '9473845') OR (("shipping_policy"."pol_name" = '488262') OR (("shipping_policy"."pol_name" = '9842118') OR (("shipping_policy"."pol_name" = '9856673') OR (("shipping_policy"."pol_name" = '9631576') OR (("shipping_policy"."pol_name" = '9873347') OR (("shipping_policy"."pol_name" = '8892182') OR (("shipping_policy"."pol_name" = '9622990') OR (("shipping_policy"."pol_name" = '9920787') OR (("shipping_policy"."pol_name" = '9920792') OR (("shipping_policy"."pol_name" = '9821175') OR (("shipping_policy"."pol_name" = '9961179') OR (("shipping_policy"."pol_name" = '9907578') OR (("shipping_policy"."pol_name" = '9496889') OR (("shipping_policy"."pol_name" = '9907648') OR (("shipping_policy"."pol_name" = '487294') OR (("shipping_policy"."pol_name" = '487406') OR (("shipping_policy"."pol_name" = '9970648') OR (("shipping_policy"."pol_name" = '9842410') OR (("shipping_policy"."pol_name" = '9950102') OR (("shipping_policy"."pol_name" = '9821164') OR (("shipping_policy"."pol_name" = '9821163') OR (("shipping_policy"."pol_name" = '9821140') OR (("shipping_policy"."pol_name" = '9909852') OR (("shipping_policy"."pol_name" = '209') OR (("shipping_policy"."pol_name" = '210') OR (("shipping_policy"."pol_name" = '9961178') OR (("shipping_policy"."pol_name" = '9961176') OR (("shipping_policy"."pol_name" = '9845031') OR (("shipping_policy"."pol_name" = '9961181') OR (("shipping_policy"."pol_name" = '9913759') OR (("shipping_policy"."pol_name" = '9731412') OR (("shipping_policy"."pol_name" = '9907905') OR (("shipping_policy"."pol_name" = '9952570') OR (("shipping_policy"."pol_name" = '488202') OR (("shipping_policy"."pol_name" = '487508') OR (("shipping_policy"."pol_name" = '9823054') OR (("shipping_policy"."pol_name" = '9496938') OR (("shipping_policy"."pol_name" = '487852') OR (("shipping_policy"."pol_name" = '9829590') OR (("shipping_policy"."pol_name" = '9821676') OR (("shipping_policy"."pol_name" = '9875010') OR (("shipping_policy"."pol_name" = '9862742') OR (("shipping_policy"."pol_name" = '9911424') OR (("shipping_policy"."pol_name" = '9870412') OR (("shipping_policy"."pol_name" = '9822641') OR (("shipping_policy"."pol_name" = '9855091') OR (("shipping_policy"."pol_name" = '9950011') OR ("shipping_policy"."pol_name" = '9906598'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("shipping_policy"."policy_id" in (SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9822641%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL ) AND ((("shipping_policy"."policy_id" in (SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9855091%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL ) AND (("shipping_policy"."policy_id" in (SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."name"::text not ilike '%9950011%') OR "policy_number"."name" IS NULL))) OR "shipping_policy"."policy_id" IS NULL ))))) AND (("shipping_policy"."last_warehouse" in (SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."last_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (17))))) OR ("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."state" ORDER BY "state" LIMIT 80
Date: 2025-01-17 17:20:01
6 81 ERROR: unexpected EOF on client connection with an open transaction
Times Reported Most Frequent Error / Event #6
Day Hour Count Jan 17 11 5 12 10 13 26 16 12 17 12 19 2 21 14 7 32 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #7
Day Hour Count Jan 17 11 3 12 4 13 10 16 6 17 7 21 2 8 22 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #8
Day Hour Count Jan 17 21 22 - ERROR: column shipping_policy.is_change_cash_price does not exist at character 3732
- ERROR: column shipping_policy.is_change_cash_price does not exist at character 3732
- ERROR: column shipping_policy.is_change_cash_price does not exist at character 3732
Statement: SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."is_change_cash_price" AS "is_change_cash_price", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE "shipping_policy".id IN (4383494)
Date: 2025-01-17 21:10:07
Statement: SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."is_change_cash_price" AS "is_change_cash_price", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE (("shipping_policy"."last_warehouse" in (SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (11, 12, 14, 15, 16, 17, 18, 28, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109)))) OR ((((("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (52)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (52))))) OR ("shipping_policy"."last_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (52))))) OR ("shipping_policy"."to_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in (SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) AND "shipping_policy".id IN (4562954, 4562953, 4562952, 4562951, 4562950, 4562949, 4562948, 4562947, 4562946, 4562945, 4562944, 4562943, 4562942, 4562941, 4562940, 4562939, 4562938, 4562937, 4562936, 4562935, 4562934, 4562933, 4562932, 4562931, 4562930, 4562929, 4562928, 4562927, 4562926, 4562925, 4562924, 4562923, 4562922, 4562921, 4562920, 4562919, 4562918, 4562917, 4562916, 4562915, 4562914, 4562913, 4562912, 4562911, 4562910, 4562909, 4562908, 4562907)
Date: 2025-01-17 21:10:14
Statement: SELECT "shipping_policy"."id" AS "id", "shipping_policy"."message_main_attachment_id" AS "message_main_attachment_id", "shipping_policy"."v_10_id" AS "v_10_id", "shipping_policy"."notes" AS "notes", "shipping_policy"."search_name" AS "search_name", "shipping_policy"."active" AS "active", "shipping_policy"."policy_name" AS "policy_name", "shipping_policy"."state_id" AS "state_id", "shipping_policy"."d_date" AS "d_date", "shipping_policy"."zero_date_change" AS "zero_date_change", "shipping_policy"."zero_date_change_user" AS "zero_date_change_user", "shipping_policy"."d_unlink_delete" AS "d_unlink_delete", "shipping_policy"."name" AS "name", "shipping_policy"."notebook_package_id" AS "notebook_package_id", "shipping_policy"."policy_id" AS "policy_id", "shipping_policy"."pol_name" AS "pol_name", "shipping_policy"."delegate_policy_id" AS "delegate_policy_id", "shipping_policy"."office_policy_id" AS "office_policy_id", "shipping_policy"."from_office" AS "from_office", "shipping_policy"."to_office" AS "to_office", "shipping_policy"."from_state" AS "from_state", "shipping_policy"."to_state" AS "to_state", "shipping_policy"."return_before" AS "return_before", "shipping_policy"."state" AS "state", "shipping_policy"."driver_id" AS "driver_id", "shipping_policy"."delegate_id" AS "delegate_id", "shipping_policy"."out_date" AS "out_date", "shipping_policy"."review_state" AS "review_state", "shipping_policy"."review_date" AS "review_date", "shipping_policy"."customer_id" AS "customer_id", "shipping_policy"."customer_receive_id" AS "customer_receive_id", "shipping_policy"."sender_mob" AS "sender_mob", "shipping_policy"."sender_name" AS "sender_name", "shipping_policy"."receive_mob" AS "receive_mob", "shipping_policy"."receive_name" AS "receive_name", "shipping_policy"."sender_add" AS "sender_add", "shipping_policy"."receive_add" AS "receive_add", "shipping_policy"."receive_man_id" AS "receive_man_id", "shipping_policy"."receive_man_id_no" AS "receive_man_id_no", "shipping_policy"."cash_policy_id" AS "cash_policy_id", "shipping_policy"."total_amount_cash_lines" AS "total_amount_cash_lines", "shipping_policy"."cash" AS "cash", "shipping_policy"."cash_amount" AS "cash_amount", "shipping_policy"."cheques" AS "cheques", "shipping_policy"."cheque_desc" AS "cheque_desc", "shipping_policy"."collection_amount_sender" AS "collection_amount_sender", "shipping_policy"."collection_amount_receive" AS "collection_amount_receive", "shipping_policy"."total_collection_amount" AS "total_collection_amount", "shipping_policy"."last_driver" AS "last_driver", "shipping_policy"."return_reason" AS "return_reason", "shipping_policy"."wating_reason" AS "wating_reason", "shipping_policy"."last_office" AS "last_office", "shipping_policy"."last_car" AS "last_car", "shipping_policy"."last_office_warehouse" AS "last_office_warehouse", "shipping_policy"."last_warehouse" AS "last_warehouse", "shipping_policy"."last_action" AS "last_action", "shipping_policy"."destination_office" AS "destination_office", "shipping_policy"."new_destination_button" AS "new_destination_button", "shipping_policy"."edit_cash_button" AS "edit_cash_button", "shipping_policy"."create_cash_policy_button" AS "create_cash_policy_button", "shipping_policy"."client_delivery_button" AS "client_delivery_button", "shipping_policy"."return_button" AS "return_button", "shipping_policy"."delegate_button" AS "delegate_button", "shipping_policy"."old_policy" AS "old_policy", "shipping_policy"."total_no_items" AS "total_no_items", "shipping_policy"."total_shipping_price" AS "total_shipping_price", "shipping_policy"."scan_code" AS "scan_code", "shipping_policy"."destination_type" AS "destination_type", "shipping_policy"."from_poilcy" AS "from_poilcy", "shipping_policy"."is_change_cash_price" AS "is_change_cash_price", "shipping_policy"."cancel_shipping_policy" AS "cancel_shipping_policy", "shipping_policy"."confirm_date" AS "confirm_date", "shipping_policy"."client_date" AS "client_date", "shipping_policy"."archive_date" AS "archive_date", "shipping_policy"."cancel_date" AS "cancel_date", "shipping_policy"."return_date" AS "return_date", "shipping_policy"."wating_date" AS "wating_date", "shipping_policy"."create_date" AS "create_date", "shipping_policy"."state_collection" AS "state_collection", "shipping_policy"."before_office_id" AS "before_office_id", "shipping_policy"."paid_by_customer" AS "paid_by_customer", "shipping_policy"."create_uid" AS "create_uid", "shipping_policy"."write_uid" AS "write_uid", "shipping_policy"."write_date" AS "write_date", "shipping_policy"."count_search" AS "count_search", "shipping_policy"."attachment_date" AS "attachment_date", "shipping_policy"."attachment_user" AS "attachment_user" FROM "shipping_policy" WHERE "shipping_policy".id IN (4509937)
Date: 2025-01-17 21:10:14
9 22 FATAL: password authentication failed for user "..."
Times Reported Most Frequent Error / Event #9
Day Hour Count Jan 17 00 3 01 3 17 16 - FATAL: password authentication failed for user "postgres"
Detail: User "postgres" has no password assigned. Connection matched file "/var/lib/pgsql/16/data/pg_hba.conf" line 123: "host all all all scram-sha-256"
Date: 2025-01-17 00:46:34
10 9 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #10
Day Hour Count Jan 17 00 1 04 1 05 1 09 1 11 1 20 1 22 3 11 8 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #11
Day Hour Count Jan 17 00 1 04 1 09 1 11 1 20 1 22 3 12 8 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #12
Day Hour Count Jan 17 00 1 04 1 09 1 11 1 20 1 22 3 13 4 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #13
Day Hour Count Jan 17 05 1 10 1 21 2 - ERROR: syntax error at or near ")" at character 163
- ERROR: syntax error at or near ")" at character 163
- ERROR: syntax error at or near ")" at character 163
Statement: select po.id,policy.name from shipping_policy as po inner join policy_number as policy on policy.id=po.policy_id where policy.name in ('9921985',)
Date: 2025-01-17 05:33:51
Statement: select po.id,policy.name from shipping_policy as po inner join policy_number as policy on policy.id=po.policy_id where policy.name in ('0036470',)
Date: 2025-01-17 10:29:03
Statement: select po.id,policy.name from shipping_policy as po inner join policy_number as policy on policy.id=po.policy_id where policy.name in ('9544610',)
Date: 2025-01-17 21:16:59
14 4 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #14
Day Hour Count Jan 17 21 4 - ERROR: could not create unique index "bank_deposit_deposite_2_name"
Detail: Key (name)=(442237) is duplicated.
Statement: ALTER TABLE "bank_deposit" ADD CONSTRAINT "bank_deposit_deposite_2_name" UNIQUE (name)Date: 2025-01-17 21:11:00
15 4 FATAL: terminating background worker "..." due to administrator command
Times Reported Most Frequent Error / Event #15
Day Hour Count Jan 17 17 4 - FATAL: terminating background worker "parallel worker" due to administrator command
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2025-01-17 17:20:01
16 4 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #16
Day Hour Count Jan 17 12 4 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM "delegate_track" WHERE id IN (142690)
Date: 2025-01-17 12:31:51
17 3 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #17
Day Hour Count Jan 17 14 1 17 1 19 1 - ERROR: null value in column "name" of relation "urgent_customer" violates not-null constraint
- ERROR: null value in column "name" of relation "urgent_customer" violates not-null constraint
- ERROR: null value in column "name" of relation "urgent_customer" violates not-null constraint
Detail: Failing row contains (5481242, null, 825, 825, null, ماي جينز, null, null, t, 2025-01-17 13:07:07.978459, 2025-01-17 13:07:07.978459, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2025-01-17 13:07:07.978459', 825, 'ماي جينز', '2025-01-17 13:07:07.978459', 825) RETURNING "id"Date: 2025-01-17 14:07:07
Detail: Failing row contains (5481291, null, 899, 899, null, دوشه, null, null, t, 2025-01-17 16:44:19.9229, 2025-01-17 16:44:19.9229, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2025-01-17 16:44:19.922900', 899, 'دوشه', '2025-01-17 16:44:19.922900', 899) RETURNING "id"Date: 2025-01-17 17:44:19
Detail: Failing row contains (5481399, null, 899, 899, null, ستار, null, null, t, 2025-01-17 18:46:15.73501, 2025-01-17 18:46:15.73501, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2025-01-17 18:46:15.735010', 899, 'ستار', '2025-01-17 18:46:15.735010', 899) RETURNING "id"Date: 2025-01-17 19:46:15
18 2 FATAL: the database system is shutting down
Times Reported Most Frequent Error / Event #18
Day Hour Count Jan 17 17 2 19 1 FATAL: database "..." does not exist
Times Reported Most Frequent Error / Event #19
Day Hour Count Jan 17 13 1 20 1 FATAL: the database system is starting up
Times Reported Most Frequent Error / Event #20
Day Hour Count Jan 17 17 1 21 1 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #21
Day Hour Count Jan 17 09 1 - ERROR: deadlock detected
Detail: Process 1025451 waits for ShareLock on transaction 6373140; blocked by process 1066980. Process 1066980 waits for ShareLock on transaction 6373134; blocked by process 1025451. Process 1025451: update shipping_policy set count_search=2 where id=4263818 Process 1066980: UPDATE "shipping_policy" SET "state_collection" = 'confirm', "write_date" = '2025-01-17 08:29:20.884788', "write_uid" = 1077 WHERE id IN (4424139, 4424135, 4424114, 4418708, 4414369, 4413951, 4406776, 4401979, 4400753, 4396611, 4386395, 4383913, 4284928, 4263818)
Context: while updating tuple (85693,47) in relation "shipping_policy"
Hint: See server log for query details.
Statement: update shipping_policy set count_search=2 where id=4263818Date: 2025-01-17 09:29:24
22 1 FATAL: unsupported frontend protocol 16.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #22
Day Hour Count Jan 17 07 1 23 1 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #23
Day Hour Count Jan 17 17 1