-
Global information
- Generated on Sun Nov 24 23:46:58 2024
- Log file: /var/lib/pgsql/16/data/log/postgresql.log
- Parsed 29,762,333 log entries in 1m57s
- Log start from 2024-11-24 11:22:59 to 2024-11-24 22:45:01
-
Overview
Global Stats
- 20,869 Number of unique normalized queries
- 12,558,091 Number of queries
- 1d22h18m Total query duration
- 2024-11-24 11:23:01 First query
- 2024-11-24 22:45:01 Last query
- 2,297 queries/s at 2024-11-24 17:21:50 Query peak
- 1d22h18m Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1d22h18m Execute total duration
- 309 Number of events
- 15 Number of unique normalized events
- 119 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
- 12,558,091 Average queries per session
- 1d22h18m 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
- 2,297 queries/s Query Peak
- 2024-11-24 17:21:50 Date
SELECT Traffic
Key values
- 1,549 queries/s Query Peak
- 2024-11-24 17:21:50 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1,080 queries/s Query Peak
- 2024-11-24 17:01:02 Date
Queries duration
Key values
- 1d22h18m 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) Nov 24 11 840,631 0ms 3s911ms 10ms 6m29s 7m12s 7m16s 12 1,524,348 0ms 1m12s 9ms 6m6s 7m4s 7m57s 13 1,344,377 0ms 4s517ms 9ms 5m33s 7m10s 10m53s 14 1,273,028 0ms 6s162ms 10ms 5m3s 5m57s 7m33s 15 1,370,154 0ms 1m8s 13ms 8m42s 9m24s 15m49s 16 1,127,784 0ms 1m51s 12ms 6m37s 8m9s 10m15s 17 1,371,450 0ms 1m5s 12ms 7m55s 9m12s 11m55s 18 1,052,529 0ms 4s132ms 10ms 4m55s 5m17s 8m2s 19 837,624 0ms 4s90ms 15ms 6m11s 7m39s 10m53s 20 675,765 0ms 5s145ms 14ms 4m38s 4m46s 5m36s 21 744,402 0ms 20s374ms 32ms 13m38s 15m39s 18m55s 22 395,999 0ms 3s342ms 21ms 6m18s 6m40s 7m52s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 24 11 476,650 0 19ms 5m17s 6m28s 7m14s 12 862,257 0 17ms 5m24s 6m4s 7m37s 13 747,673 0 17ms 4m31s 5m32s 9m29s 14 701,710 0 18ms 4m29s 5m2s 6m7s 15 761,442 0 23ms 6m43s 8m41s 10m31s 16 617,423 0 22ms 5m24s 6m36s 9m17s 17 808,673 0 21ms 7m17s 7m53s 9m54s 18 600,462 0 18ms 3m55s 4m55s 6m20s 19 466,396 0 27ms 4m52s 6m10s 10m13s 20 375,904 0 26ms 4m1s 4m37s 5m20s 21 425,557 0 56ms 10m39s 13m36s 16m44s 22 224,462 0 38ms 5m23s 6m17s 7m51s Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Nov 24 11 48,283 10,115 409 0 0ms 436ms 479ms 698ms 12 81,733 16,992 926 3 1ms 432ms 541ms 645ms 13 69,890 16,347 840 0 0ms 338ms 473ms 643ms 14 69,412 15,329 611 0 0ms 331ms 399ms 522ms 15 84,461 22,804 960 0 1ms 443ms 512ms 13s457ms 16 64,612 18,245 643 1 1ms 331ms 448ms 605ms 17 83,588 22,151 682 3 1ms 499ms 775ms 1s954ms 18 63,397 12,956 606 0 0ms 339ms 419ms 553ms 19 69,449 15,698 473 0 0ms 389ms 474ms 738ms 20 64,273 15,471 589 0 0ms 345ms 428ms 619ms 21 83,691 28,151 439 0 0ms 635ms 924ms 12s557ms 22 34,046 5,821 100 0 0ms 266ms 298ms 444ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Nov 24 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 Nov 24 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 Nov 24 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
- 156,547 buffers Checkpoint Peak
- 2024-11-24 14:53:33 Date
- 270.048 seconds Highest write time
- 0.020 seconds Sync time
Checkpoints Wal files
Key values
- 82 files Wal files usage Peak
- 2024-11-24 14:53:33 Date
Checkpoints distance
Key values
- 2,628.77 Mo Distance Peak
- 2024-11-24 14:53:33 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Nov 24 11 278,350 1,619.864s 0.043s 1,619.954s 12 557,326 3,239.557s 0.053s 3,239.704s 13 472,044 3,239.517s 0.045s 3,239.648s 14 581,738 3,239.492s 0.055s 3,239.639s 15 547,685 3,239.458s 0.081s 3,239.622s 16 418,247 3,239.473s 0.043s 3,239.579s 17 362,355 2,757.982s 0.068s 2,758.123s 18 388,525 3,239.532s 0.054s 3,239.655s 19 281,856 3,239.584s 0.048s 3,239.692s 20 302,753 3,239.456s 0.049s 3,239.567s 21 374,575 3,239.538s 0.06s 3,239.67s 22 234,271 2,429.627s 0.035s 2,429.713s Day Hour Added Removed Recycled Synced files Longest sync Average sync Nov 24 11 0 0 130 2,464 0.003s 0.009s 12 0 0 273 4,975 0.002s 0.012s 13 0 0 232 5,015 0.002s 0.012s 14 0 0 289 5,172 0.002s 0.012s 15 0 0 242 5,315 0.012s 0.012s 16 0 0 182 5,283 0.002s 0.012s 17 0 0 162 5,126 0.011s 0.012s 18 0 0 177 5,258 0.003s 0.012s 19 0 0 121 4,987 0.002s 0.012s 20 0 0 127 4,989 0.002s 0.012s 21 0 0 166 4,615 0.002s 0.012s 22 0 0 106 3,244 0.003s 0.009s Day Hour Count Avg time (sec) Nov 24 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 Nov 24 11 237,880.78 kB 257,887.11 kB 12 372,825.92 kB 411,962.33 kB 13 316,186.17 kB 389,747.17 kB 14 409,217.27 kB 520,499.45 kB 15 319,951.73 kB 820,413.55 kB 16 249,072.17 kB 432,634.08 kB 17 220,989.80 kB 297,966.10 kB 18 245,141.00 kB 529,617.90 kB 19 164,842.08 kB 304,797.67 kB 20 173,956.25 kB 216,731.33 kB 21 230,589.82 kB 253,349.73 kB 22 193,579.67 kB 261,568.89 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 Nov 24 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 Nov 24 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
- 7,068,609 Total read queries
- 3,766,485 Total write queries
Queries by database
Key values
- unknown Main database
- 12,558,091 Requests
- 1d22h18m (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 12,558,091 Requests
User Request type Count Duration unknown Total 12,558,091 1d22h18m copy from 7 8ms cte 4,252 1s10ms ddl 87 13ms delete 7,278 958ms insert 816,835 3m52s others 1,722,997 1m35s select 7,068,609 1d22h53s tcl 2,737,946 1m46s update 200,080 9m51s Duration by user
Key values
- 1d22h18m (unknown) Main time consuming user
User Request type Count Duration unknown Total 12,558,091 1d22h18m copy from 7 8ms cte 4,252 1s10ms ddl 87 13ms delete 7,278 958ms insert 816,835 3m52s others 1,722,997 1m35s select 7,068,609 1d22h53s tcl 2,737,946 1m46s update 200,080 9m51s Queries by host
Key values
- unknown Main host
- 12,558,091 Requests
- 1d22h18m (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 12,558,091 Requests
- 1d22h18m (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-11-24 20:15:44 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 11,553,986 0-1ms duration
Slowest individual queries
Rank Duration Query 1 1m51s UPDATE "policy_number" SET "done" = true, "write_date" = '2024-11-24 15:56:46.869117', "write_uid" = 997 WHERE id IN (40919166);[ Date: 2024-11-24 16:58:39 ]
2 1m12s update shipping_policy set count_search = 1 where id = 2454880;[ Date: 2024-11-24 12:43:50 ]
3 1m8s UPDATE "shipping_policy" SET "destination_type" = 'office', "last_car" = 13, "last_driver" = 8007152, "last_office" = 79, "last_warehouse" = NULL, "new_destination_button" = true, "write_date" = '2024-11-24 14:27:09.462051', "write_uid" = 999 WHERE id IN (2930712, 2913147, 2906748, 2905572, 2847033);[ Date: 2024-11-24 15:28:52 ]
4 1m5s UPDATE "policy_number" SET "done" = true, "write_date" = '2024-11-24 16:38:27.710182', "write_uid" = 993 WHERE id IN (40851689);[ Date: 2024-11-24 17:39:34 ]
5 36s535ms update shipping_policy set count_search = 4 where id = 2852578;[ Date: 2024-11-24 15:36:03 ]
6 20s374ms UPDATE "policy_number" SET "done" = true, "write_date" = '2024-11-24 20:54:55.852918', "write_uid" = 975 WHERE id IN (41147944);[ Date: 2024-11-24 21:55:17 ]
7 13s247ms update shipping_policy set count_search = 5 where id = 2482787;[ Date: 2024-11-24 15:05:06 ]
8 12s432ms UPDATE "policy_number" SET "done" = true, "write_date" = '2024-11-24 20:33:38.282548', "write_uid" = 969 WHERE id IN (40675760);[ Date: 2024-11-24 21:33:52 ]
9 12s411ms UPDATE "shipping_policy" SET "review_date" = '2024-11-24', "review_state" = 'reviewed', "write_date" = '2024-11-24 20:09:54.425578', "write_uid" = 1075 WHERE id IN (2896102, 2896101, 2896100, 2896099, 2896098, 2894447, 2894445, 2894444, 2894442, 2894440, 2894438, 2894436, 2894434, 2894432, 2894430, 2894428, 2894426, 2894424, 2894422, 2894420, 2894418, 2894416, 2894414, 2894412, 2894410, 2894408, 2894406, 2894404, 2894403, 2894401, 2894398, 2894396, 2894394, 2894392, 2894391, 2894389, 2894387, 2894386, 2894385, 2894384, 2894383, 2894382, 2894381, 2894380, 2894379, 2894378, 2894377, 2894376, 2894375, 2894374, 2894373, 2894372, 2894371, 2894370, 2894369, 2894368, 2894367, 2894366, 2894365, 2894364, 2894363, 2894362, 2894361, 2894360, 2894359, 2894358, 2894357, 2894356, 2894355, 2894354, 2894353, 2858631, 2858628, 2858623, 2858620, 2858615, 2858611, 2858605, 2858600, 2858594, 2858589, 2858583, 2858578, 2858574, 2858568, 2858563, 2858557, 2858551, 2858546, 2858541, 2858538, 2858531, 2858524, 2858519, 2858510, 2858505, 2858498, 2858492, 2858483, 2858476, 2858466, 2858458, 2858451, 2858444, 2858430, 2858421, 2858414, 2858407, 2858398, 2858390, 2858383, 2858375, 2858370, 2858362, 2858354, 2858350, 2858344, 2858337, 2858331, 2858326, 2858321, 2858309, 2858304, 2858299, 2858292, 2858286, 2858279, 2858272, 2858259, 2858253, 2858247, 2858242, 2858238, 2858233, 2858229, 2858226, 2858222, 2858218, 2858216, 2858212, 2858209, 2858206, 2858203, 2858197, 2858195, 2854763, 2854758, 2854754, 2854751, 2854748, 2854745, 2854742, 2854739, 2854737, 2854734, 2854731, 2854729, 2854726, 2854724, 2854721, 2854718, 2854715, 2854712, 2854709, 2854706, 2854703, 2854700, 2854696, 2854692, 2854688, 2854684, 2854679, 2854675, 2854672, 2854669, 2854667, 2854664, 2854661, 2854658, 2854656, 2854654, 2854651, 2854650, 2854648, 2854646, 2854644, 2854642, 2854640, 2854638, 2854636, 2854631, 2854627, 2854619, 2854615, 2854610, 2854605, 2854597, 2854593, 2854589);[ Date: 2024-11-24 21:11:18 ]
10 7s450ms update shipping_policy set count_search = 2 where id = 2841349;[ Date: 2024-11-24 21:39:21 ]
11 6s361ms SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND ((("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL) AND (("cash_policy"."policy_name" = '87746489') OR (("cash_policy"."policy_name" = '8') OR (("cash_policy"."policy_name" = '8774648') OR (("cash_policy"."policy_name" = '8774649') OR (("cash_policy"."policy_name" = '8832248') OR (("cash_policy"."policy_name" = '8773686') OR (("cash_policy"."policy_name" = '8773685') OR (("cash_policy"."policy_name" = '8832050') OR (("cash_policy"."policy_name" = '8773049') OR (("cash_policy"."policy_name" = '8833966') OR (("cash_policy"."policy_name" = '8833964') OR (("cash_policy"."policy_name" = '833') OR (("cash_policy"."policy_name" = '8832866') OR (("cash_policy"."policy_name" = '8832870') OR (("cash_policy"."policy_name" = '8701780') OR (("cash_policy"."policy_name" = '8773701') OR (("cash_policy"."policy_name" = '8639847') OR (("cash_policy"."policy_name" = '8639831') OR (("cash_policy"."policy_name" = '8639843') OR (("cash_policy"."policy_name" = '8639837') OR (("cash_policy"."policy_name" = '8639850') OR (("cash_policy"."policy_name" = '8639840') OR (("cash_policy"."policy_name" = '8639845') OR (("cash_policy"."policy_name" = '8560775') OR (("cash_policy"."policy_name" = '8560795') OR (("cash_policy"."policy_name" = '8560771') OR (("cash_policy"."policy_name" = '8560779') OR (("cash_policy"."policy_name" = '8560788') OR (("cash_policy"."policy_name" = '8560796') OR (("cash_policy"."policy_name" = '8560790') OR (("cash_policy"."policy_name" = '8560198') OR (("cash_policy"."policy_name" = '8639547') OR (("cash_policy"."policy_name" = '8640720') OR (("cash_policy"."policy_name" = '8774441') OR (("cash_policy"."policy_name" = '8833817') OR (("cash_policy"."policy_name" = '8833551') OR (("cash_policy"."policy_name" = '8833954') OR (("cash_policy"."policy_name" = '874') OR (("cash_policy"."policy_name" = '8447971') OR (("cash_policy"."policy_name" = '8447990') OR (("cash_policy"."policy_name" = '8447993') OR (("cash_policy"."policy_name" = '84479914') OR (("cash_policy"."policy_name" = '8447994') OR (("cash_policy"."policy_name" = '8447995') OR (("cash_policy"."policy_name" = '8448000') OR (("cash_policy"."policy_name" = '8833988') OR (("cash_policy"."policy_name" = '83') OR (("cash_policy"."policy_name" = '8833998') OR (("cash_policy"."policy_name" = '8639327') OR (("cash_policy"."policy_name" = '8833939') OR (("cash_policy"."policy_name" = '8640862') OR (("cash_policy"."policy_name" = '8640933') OR (("cash_policy"."policy_name" = '8640863') OR (("cash_policy"."policy_name" = '8773739') OR (("cash_policy"."policy_name" = '8774315') OR (("cash_policy"."policy_name" = '8774627') OR (("cash_policy"."policy_name" = '8774653') OR (("cash_policy"."policy_name" = '8774652') OR (("cash_policy"."policy_name" = '8774651') OR (("cash_policy"."policy_name" = '8774654') OR (("cash_policy"."policy_name" = '8773949') OR (("cash_policy"."policy_name" = '3') OR (("cash_policy"."policy_name" = '87739') OR (("cash_policy"."policy_name" = '8773493') OR (("cash_policy"."policy_name" = '8083547') OR (("cash_policy"."policy_name" = '8083545') OR (("cash_policy"."policy_name" = '8560767') OR (("cash_policy"."policy_name" = '8773857') OR (("cash_policy"."policy_name" = '8773852') OR (("cash_policy"."policy_name" = '8773856') OR (("cash_policy"."policy_name" = '8773851') OR (("cash_policy"."policy_name" = '8560780') OR (("cash_policy"."policy_name" = '8007193') OR (("cash_policy"."policy_name" = '8007184') OR (("cash_policy"."policy_name" = '8832649') OR (("cash_policy"."policy_name" = '8773682') OR (("cash_policy"."policy_name" = '8832648') OR (("cash_policy"."policy_name" = '8774518') OR (("cash_policy"."policy_name" = '8774762') OR (("cash_policy"."policy_name" = '8774763') OR (("cash_policy"."policy_name" = '8640854') OR (("cash_policy"."policy_name" = '8640855') OR (("cash_policy"."policy_name" = '8639173') OR (("cash_policy"."policy_name" = '8448586') OR (("cash_policy"."policy_name" = '8774520') OR (("cash_policy"."policy_name" = '8773264') OR (("cash_policy"."policy_name" = '8832613') OR (("cash_policy"."policy_name" = '8832655') OR (("cash_policy"."policy_name" = '8083299') OR (("cash_policy"."policy_name" = '8832653') OR (("cash_policy"."policy_name" = '8832652') OR (("cash_policy"."policy_name" = '8832651') OR (("cash_policy"."policy_name" = '8832624') OR (("cash_policy"."policy_name" = '8832625') OR (("cash_policy"."policy_name" = '88323') OR (("cash_policy"."policy_name" = '8833602') OR (("cash_policy"."policy_name" = '86399') OR (("cash_policy"."policy_name" = '8639897') OR (("cash_policy"."policy_name" = '8639881') OR (("cash_policy"."policy_name" = '8639893') OR (("cash_policy"."policy_name" = '8639889') OR (("cash_policy"."policy_name" = '8639888') OR (("cash_policy"."policy_name" = '8833601') OR (("cash_policy"."policy_name" = '8639895') OR (("cash_policy"."policy_name" = '863989636') OR (("cash_policy"."policy_name" = '8639896') OR (("cash_policy"."policy_name" = '863989') OR (("cash_policy"."policy_name" = '8639898') OR (("cash_policy"."policy_name" = '8639899') OR (("cash_policy"."policy_name" = '8639891') OR (("cash_policy"."policy_name" = '8639894') OR (("cash_policy"."policy_name" = '8639890') OR (("cash_policy"."policy_name" = '8833603') OR (("cash_policy"."policy_name" = '88336609') OR (("cash_policy"."policy_name" = '8833609') OR (("cash_policy"."policy_name" = '8833608') OR (("cash_policy"."policy_name" = '8773812') OR (("cash_policy"."policy_name" = '8246797') OR (("cash_policy"."policy_name" = '8561382') OR (("cash_policy"."policy_name" = '85613696') OR (("cash_policy"."policy_name" = '8561396') OR (("cash_policy"."policy_name" = '8247321') OR (("cash_policy"."policy_name" = '8773824') OR (("cash_policy"."policy_name" = '8773830') OR (("cash_policy"."policy_name" = '8773806') OR (("cash_policy"."policy_name" = '8773804') OR (("cash_policy"."policy_name" = '8561388') OR (("cash_policy"."policy_name" = '8773817') OR (("cash_policy"."policy_name" = '8246791') OR (("cash_policy"."policy_name" = '8773826') OR (("cash_policy"."policy_name" = '8773828') OR (("cash_policy"."policy_name" = '8773815') OR (("cash_policy"."policy_name" = '8773835') OR (("cash_policy"."policy_name" = '8773834') OR (("cash_policy"."policy_name" = '8773833') OR (("cash_policy"."policy_name" = '8773832') OR (("cash_policy"."policy_name" = '87736818') OR (("cash_policy"."policy_name" = '8773818') OR (("cash_policy"."policy_name" = '8773808') OR (("cash_policy"."policy_name" = '8773821') OR (("cash_policy"."policy_name" = '8773823') OR (("cash_policy"."policy_name" = '8561370') OR (("cash_policy"."policy_name" = '8773810') OR (("cash_policy"."policy_name" = '8773656') OR (("cash_policy"."policy_name" = '82473') OR (("cash_policy"."policy_name" = '8247132') OR (("cash_policy"."policy_name" = '87739655') OR (("cash_policy"."policy_name" = '8773655') OR (("cash_policy"."policy_name" = '8247130') OR (("cash_policy"."policy_name" = '8247126') OR (("cash_policy"."policy_name" = '8247133') OR (("cash_policy"."policy_name" = '8247137') OR (("cash_policy"."policy_name" = '8247135') OR (("cash_policy"."policy_name" = '8247138') OR (("cash_policy"."policy_name" = '8560673') OR (("cash_policy"."policy_name" = '8560674') OR (("cash_policy"."policy_name" = '8560671') OR (("cash_policy"."policy_name" = '8560669') OR (("cash_policy"."policy_name" = '8560656') OR (("cash_policy"."policy_name" = '8808463') OR (("cash_policy"."policy_name" = '8447131') OR (("cash_policy"."policy_name" = '8773090') OR (("cash_policy"."policy_name" = '8773094') OR (("cash_policy"."policy_name" = '8773091') OR (("cash_policy"."policy_name" = '8773092') OR (("cash_policy"."policy_name" = '8447108') OR (("cash_policy"."policy_name" = '8561014') OR (("cash_policy"."policy_name" = '8447107') OR (("cash_policy"."policy_name" = '8447104') OR (("cash_policy"."policy_name" = '8561013') OR (("cash_policy"."policy_name" = '8561011') OR (("cash_policy"."policy_name" = '8561016') OR (("cash_policy"."policy_name" = '856') OR (("cash_policy"."policy_name" = '8640600') OR (("cash_policy"."policy_name" = '8640594') OR (("cash_policy"."policy_name" = '8640597') OR (("cash_policy"."policy_name" = '85') OR (("cash_policy"."policy_name" = '8640591') OR (("cash_policy"."policy_name" = '8640586') OR (("cash_policy"."policy_name" = '864059') OR (("cash_policy"."policy_name" = '8640589') OR (("cash_policy"."policy_name" = '8640573') OR (("cash_policy"."policy_name" = '8640572') OR (("cash_policy"."policy_name" = '8640585') OR (("cash_policy"."policy_name" = '8640584') OR (("cash_policy"."policy_name" = '8640583') OR (("cash_policy"."policy_name" = '8640582') OR (("cash_policy"."policy_name" = '8640581') OR (("cash_policy"."policy_name" = '8640578') OR (("cash_policy"."policy_name" = '8640577') OR (("cash_policy"."policy_name" = '8640576') OR (("cash_policy"."policy_name" = '8640575') OR (("cash_policy"."policy_name" = '8774227') OR (("cash_policy"."policy_name" = '8832379') OR (("cash_policy"."policy_name" = '8832380') OR (("cash_policy"."policy_name" = '8832381') OR (("cash_policy"."policy_name" = '8832') OR (("cash_policy"."policy_name" = '383') OR (("cash_policy"."policy_name" = '8832383') OR (("cash_policy"."policy_name" = '8832385') OR (("cash_policy"."policy_name" = '8832387') OR (("cash_policy"."policy_name" = '8832389') OR (("cash_policy"."policy_name" = '8832388') OR (("cash_policy"."policy_name" = '8832391') OR (("cash_policy"."policy_name" = '8832392') OR (("cash_policy"."policy_name" = '8832393') OR (("cash_policy"."policy_name" = '8832394') OR (("cash_policy"."policy_name" = '8832395') OR (("cash_policy"."policy_name" = '8832397') OR (("cash_policy"."policy_name" = '8832252') OR (("cash_policy"."policy_name" = '8832253') OR (("cash_policy"."policy_name" = '8832254') OR (("cash_policy"."policy_name" = '8832369') OR (("cash_policy"."policy_name" = '8832370') OR (("cash_policy"."policy_name" = '8832371') OR (("cash_policy"."policy_name" = '8832372') OR (("cash_policy"."policy_name" = '8832374') OR (("cash_policy"."policy_name" = '8832377') OR (("cash_policy"."policy_name" = '883275') OR (("cash_policy"."policy_name" = '8832375') OR (("cash_policy"."policy_name" = '8832376') OR (("cash_policy"."policy_name" = '8832368') OR (("cash_policy"."policy_name" = '8832362') OR (("cash_policy"."policy_name" = '8832361') OR (("cash_policy"."policy_name" = '8832360') OR (("cash_policy"."policy_name" = '8832358') OR (("cash_policy"."policy_name" = '8832365') OR (("cash_policy"."policy_name" = '8832364') OR (("cash_policy"."policy_name" = '8832357') OR (("cash_policy"."policy_name" = '8832355') OR (("cash_policy"."policy_name" = '8832353') OR (("cash_policy"."policy_name" = '8832354') OR (("cash_policy"."policy_name" = '8832352') OR (("cash_policy"."policy_name" = '8832351') OR (("cash_policy"."policy_name" = '8774249') OR (("cash_policy"."policy_name" = '8774247') OR (("cash_policy"."policy_name" = '8774246') OR (("cash_policy"."policy_name" = '8774244') OR (("cash_policy"."policy_name" = '8774245') OR (("cash_policy"."policy_name" = '8774242') OR (("cash_policy"."policy_name" = '8774243') OR (("cash_policy"."policy_name" = '8774240') OR (("cash_policy"."policy_name" = '8774239') OR (("cash_policy"."policy_name" = '8774237') OR (("cash_policy"."policy_name" = '8774869') OR (("cash_policy"."policy_name" = '8774868') OR (("cash_policy"."policy_name" = '8774867') OR (("cash_policy"."policy_name" = '8774865') OR (("cash_policy"."policy_name" = '8774870') OR (("cash_policy"."policy_name" = '8774871') OR (("cash_policy"."policy_name" = '8774874') OR (("cash_policy"."policy_name" = '8774873') OR (("cash_policy"."policy_name" = '8774875') OR (("cash_policy"."policy_name" = '8774876') OR (("cash_policy"."policy_name" = '8774877') OR (("cash_policy"."policy_name" = '8774878') OR (("cash_policy"."policy_name" = '8774879') OR (("cash_policy"."policy_name" = '8774880') OR (("cash_policy"."policy_name" = '8774881') OR (("cash_policy"."policy_name" = '8774882') OR (("cash_policy"."policy_name" = '8774884') OR (("cash_policy"."policy_name" = '8774885') OR (("cash_policy"."policy_name" = '8774886') OR (("cash_policy"."policy_name" = '8774887') OR (("cash_policy"."policy_name" = '8774889') OR (("cash_policy"."policy_name" = '8774888') OR (("cash_policy"."policy_name" = '8774894') OR (("cash_policy"."policy_name" = '8774896') OR (("cash_policy"."policy_name" = '8774893') OR (("cash_policy"."policy_name" = '8774890') OR (("cash_policy"."policy_name" = '8774897') OR (("cash_policy"."policy_name" = '8640588') OR (("cash_policy"."policy_name" = '8640560') OR (("cash_policy"."policy_name" = '8640559') OR (("cash_policy"."policy_name" = '8327643') OR (("cash_policy"."policy_name" = '88032242') OR (("cash_policy"."policy_name" = '8832242') OR (("cash_policy"."policy_name" = '8775') OR (("cash_policy"."policy_name" = '8774510') OR (("cash_policy"."policy_name" = '8774509') OR (("cash_policy"."policy_name" = '8832241') OR (("cash_policy"."policy_name" = '8836') OR (("cash_policy"."policy_name" = '8833582') OR (("cash_policy"."policy_name" = '8833583') OR (("cash_policy"."policy_name" = '8774856') OR (("cash_policy"."policy_name" = '8774858') OR (("cash_policy"."policy_name" = '8774859') OR (("cash_policy"."policy_name" = '8774861') OR (("cash_policy"."policy_name" = '8774862') OR (("cash_policy"."policy_name" = '8774864') OR (("cash_policy"."policy_name" = '8774860') OR (("cash_policy"."policy_name" = '8774866') OR (("cash_policy"."policy_name" = '8774212') OR (("cash_policy"."policy_name" = '8774234') OR (("cash_policy"."policy_name" = '8774233') OR (("cash_policy"."policy_name" = '8774230') OR (("cash_policy"."policy_name" = '8774231') OR (("cash_policy"."policy_name" = '8774229') OR (("cash_policy"."policy_name" = '8639471') OR (("cash_policy"."policy_name" = '8327915') OR (("cash_policy"."policy_name" = '8640662') OR (("cash_policy"."policy_name" = '8639412') OR (("cash_policy"."policy_name" = '8561121') OR (("cash_policy"."policy_name" = '8639408') OR (("cash_policy"."policy_name" = '863') OR (("cash_policy"."policy_name" = '8639422') OR (("cash_policy"."policy_name" = '8640655') OR (("cash_policy"."policy_name" = '8639482') OR (("cash_policy"."policy_name" = '8639492') OR (("cash_policy"."policy_name" = '8639495') OR (("cash_policy"."policy_name" = '8639467') OR (("cash_policy"."policy_name" = '8639496') OR (("cash_policy"."policy_name" = '88327942') OR (("cash_policy"."policy_name" = '8327942') OR (("cash_policy"."policy_name" = '8326360') OR (("cash_policy"."policy_name" = '832360') OR (("cash_policy"."policy_name" = '8327901') OR (("cash_policy"."policy_name" = '86') OR (("cash_policy"."policy_name" = '8561147') OR (("cash_policy"."policy_name" = '8561') OR (("cash_policy"."policy_name" = '8639463') OR (("cash_policy"."policy_name" = '8639487') OR (("cash_policy"."policy_name" = '8639486') OR (("cash_policy"."policy_name" = '8640669') OR (("cash_policy"."policy_name" = '864') OR (("cash_policy"."policy_name" = '8639461') OR (("cash_policy"."policy_name" = '8640665') OR (("cash_policy"."policy_name" = '8640670') OR (("cash_policy"."policy_name" = '86406') OR (("cash_policy"."policy_name" = '8640664') OR (("cash_policy"."policy_name" = '8646') OR (("cash_policy"."policy_name" = '8640686') OR (("cash_policy"."policy_name" = '8640681') OR (("cash_policy"."policy_name" = '8640678') OR (("cash_policy"."policy_name" = '8640676') OR (("cash_policy"."policy_name" = '/8640661') OR (("cash_policy"."policy_name" = '8640661') OR (("cash_policy"."policy_name" = '8640659') OR (("cash_policy"."policy_name" = '8639479') OR (("cash_policy"."policy_name" = '8639470') OR (("cash_policy"."policy_name" = '8774898') OR (("cash_policy"."policy_name" = '8774900') OR (("cash_policy"."policy_name" = '8774202') OR (("cash_policy"."policy_name" = '8774203') OR (("cash_policy"."policy_name" = '8774204') OR (("cash_policy"."policy_name" = '8774205') OR (("cash_policy"."policy_name" = '8774206') OR (("cash_policy"."policy_name" = '8774208') OR (("cash_policy"."policy_name" = '8774209') OR (("cash_policy"."policy_name" = '877420') OR (("cash_policy"."policy_name" = '8774211') OR (("cash_policy"."policy_name" = '8774214') OR (("cash_policy"."policy_name" = '8774215') OR (("cash_policy"."policy_name" = '877') OR (("cash_policy"."policy_name" = '8774216') OR (("cash_policy"."policy_name" = '8774217') OR (("cash_policy"."policy_name" = '8774218') OR (("cash_policy"."policy_name" = '8774220') OR (("cash_policy"."policy_name" = '8774221') OR (("cash_policy"."policy_name" = '8772') OR (("cash_policy"."policy_name" = '8774222') OR (("cash_policy"."policy_name" = '8774223') OR (("cash_policy"."policy_name" = '8640689') OR (("cash_policy"."policy_name" = '8640691') OR (("cash_policy"."policy_name" = '8640693') OR (("cash_policy"."policy_name" = '8640692') OR (("cash_policy"."policy_name" = '8640694') OR (("cash_policy"."policy_name" = '8640695') OR (("cash_policy"."policy_name" = '8640697') OR (("cash_policy"."policy_name" = '8640696') OR (("cash_policy"."policy_name" = '8640699') OR (("cash_policy"."policy_name" = '86740699') OR (("cash_policy"."policy_name" = '8640700') OR (("cash_policy"."policy_name" = '8774851') OR (("cash_policy"."policy_name" = '8774853') OR (("cash_policy"."policy_name" = '8774854') OR (("cash_policy"."policy_name" = '7') OR (("cash_policy"."policy_name" = '8774855') OR (("cash_policy"."policy_name" = '8832166') OR (("cash_policy"."policy_name" = '8832192') OR (("cash_policy"."policy_name" = '8832174') OR (("cash_policy"."policy_name" = '8832177') OR (("cash_policy"."policy_name" = '8640942') OR (("cash_policy"."policy_name" = '8832154') OR (("cash_policy"."policy_name" = '8832155') OR (("cash_policy"."policy_name" = '8640565') OR (("cash_policy"."policy_name" = '88321725') OR (("cash_policy"."policy_name" = '8832172') OR (("cash_policy"."policy_name" = '8832190') OR (("cash_policy"."policy_name" = '8832187') OR (("cash_policy"."policy_name" = '8832175') OR (("cash_policy"."policy_name" = '8832178') OR (("cash_policy"."policy_name" = '8832180') OR (("cash_policy"."policy_name" = '8640920') OR (("cash_policy"."policy_name" = '8561267') OR (("cash_policy"."policy_name" = '8560761') OR (("cash_policy"."policy_name" = '8832160') OR ("cash_policy"."policy_name" = '8832161')))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;[ Date: 2024-11-24 15:31:15 ]
12 6s162ms SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND ((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND (("shipping_policy"."out_date" = '2024-11-23') 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"."collection_amount_sender" = '0') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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))))) LIMIT 10001) t;[ Date: 2024-11-24 14:12:36 ]
13 5s661ms update shipping_policy set count_search = 3 where id = 2870623;[ Date: 2024-11-24 17:19:34 ]
14 5s539ms 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" = '2024-11-23') 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"."collection_amount_sender" = '0') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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: 2024-11-24 14:12:30 ]
15 5s531ms SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND ((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND (("shipping_policy"."out_date" = '2024-11-23') 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"."collection_amount_sender" = '0') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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))))) LIMIT 10001) t;[ Date: 2024-11-24 14:12:36 ]
16 5s498ms 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" = '2024-11-23') 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"."collection_amount_sender" = '0') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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: 2024-11-24 14:12:31 ]
17 5s271ms SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND ((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND (("shipping_policy"."out_date" = '2024-11-23') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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))))) LIMIT 10001) t;[ Date: 2024-11-24 14:15:06 ]
18 5s145ms UPDATE "policy_number" SET "done" = true, "write_date" = '2024-11-24 19:12:04.667302', "write_uid" = 988 WHERE id IN (41175102);[ Date: 2024-11-24 20:12:10 ]
19 5s80ms SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND ((("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL) AND (("cash_policy"."policy_name" = '87746489') OR (("cash_policy"."policy_name" = '8') OR (("cash_policy"."policy_name" = '8774648') OR (("cash_policy"."policy_name" = '8774649') OR (("cash_policy"."policy_name" = '8832248') OR (("cash_policy"."policy_name" = '8773686') OR (("cash_policy"."policy_name" = '8773685') OR (("cash_policy"."policy_name" = '8832050') OR (("cash_policy"."policy_name" = '8773049') OR (("cash_policy"."policy_name" = '8833966') OR (("cash_policy"."policy_name" = '8833964') OR (("cash_policy"."policy_name" = '833') OR (("cash_policy"."policy_name" = '8832866') OR (("cash_policy"."policy_name" = '8832870') OR (("cash_policy"."policy_name" = '8701780') OR (("cash_policy"."policy_name" = '8773701') OR (("cash_policy"."policy_name" = '8639847') OR (("cash_policy"."policy_name" = '8639831') OR (("cash_policy"."policy_name" = '8639843') OR (("cash_policy"."policy_name" = '8639837') OR (("cash_policy"."policy_name" = '8639850') OR (("cash_policy"."policy_name" = '8639840') OR (("cash_policy"."policy_name" = '8639845') OR (("cash_policy"."policy_name" = '8560775') OR (("cash_policy"."policy_name" = '8560795') OR (("cash_policy"."policy_name" = '8560771') OR (("cash_policy"."policy_name" = '8560779') OR (("cash_policy"."policy_name" = '8560788') OR (("cash_policy"."policy_name" = '8560796') OR (("cash_policy"."policy_name" = '8560790') OR (("cash_policy"."policy_name" = '8560198') OR (("cash_policy"."policy_name" = '8639547') OR (("cash_policy"."policy_name" = '8640720') OR (("cash_policy"."policy_name" = '8774441') OR (("cash_policy"."policy_name" = '8833817') OR (("cash_policy"."policy_name" = '8833551') OR (("cash_policy"."policy_name" = '8833954') OR (("cash_policy"."policy_name" = '874') OR (("cash_policy"."policy_name" = '8447971') OR (("cash_policy"."policy_name" = '8447990') OR (("cash_policy"."policy_name" = '8447993') OR (("cash_policy"."policy_name" = '84479914') OR (("cash_policy"."policy_name" = '8447994') OR (("cash_policy"."policy_name" = '8447995') OR (("cash_policy"."policy_name" = '8448000') OR (("cash_policy"."policy_name" = '8833988') OR (("cash_policy"."policy_name" = '83') OR (("cash_policy"."policy_name" = '8833998') OR (("cash_policy"."policy_name" = '8639327') OR (("cash_policy"."policy_name" = '8833939') OR (("cash_policy"."policy_name" = '8640862') OR (("cash_policy"."policy_name" = '8640933') OR (("cash_policy"."policy_name" = '8640863') OR (("cash_policy"."policy_name" = '8773739') OR (("cash_policy"."policy_name" = '8774315') OR (("cash_policy"."policy_name" = '8774627') OR (("cash_policy"."policy_name" = '8774653') OR (("cash_policy"."policy_name" = '8774652') OR (("cash_policy"."policy_name" = '8774651') OR (("cash_policy"."policy_name" = '8774654') OR (("cash_policy"."policy_name" = '8773949') OR (("cash_policy"."policy_name" = '3') OR (("cash_policy"."policy_name" = '87739') OR (("cash_policy"."policy_name" = '8773493') OR (("cash_policy"."policy_name" = '8083547') OR (("cash_policy"."policy_name" = '8083545') OR (("cash_policy"."policy_name" = '8560767') OR (("cash_policy"."policy_name" = '8773857') OR (("cash_policy"."policy_name" = '8773852') OR (("cash_policy"."policy_name" = '8773856') OR (("cash_policy"."policy_name" = '8773851') OR (("cash_policy"."policy_name" = '8560780') OR (("cash_policy"."policy_name" = '8007193') OR (("cash_policy"."policy_name" = '8007184') OR (("cash_policy"."policy_name" = '8832649') OR (("cash_policy"."policy_name" = '8773682') OR (("cash_policy"."policy_name" = '8832648') OR (("cash_policy"."policy_name" = '8774518') OR (("cash_policy"."policy_name" = '8774762') OR (("cash_policy"."policy_name" = '8774763') OR (("cash_policy"."policy_name" = '8640854') OR (("cash_policy"."policy_name" = '8640855') OR (("cash_policy"."policy_name" = '8639173') OR (("cash_policy"."policy_name" = '8448586') OR (("cash_policy"."policy_name" = '8774520') OR (("cash_policy"."policy_name" = '8773264') OR (("cash_policy"."policy_name" = '8832613') OR (("cash_policy"."policy_name" = '8832655') OR (("cash_policy"."policy_name" = '8083299') OR (("cash_policy"."policy_name" = '8832653') OR (("cash_policy"."policy_name" = '8832652') OR (("cash_policy"."policy_name" = '8832651') OR (("cash_policy"."policy_name" = '8832624') OR (("cash_policy"."policy_name" = '8832625') OR (("cash_policy"."policy_name" = '88323') OR (("cash_policy"."policy_name" = '8833602') OR (("cash_policy"."policy_name" = '86399') OR (("cash_policy"."policy_name" = '8639897') OR (("cash_policy"."policy_name" = '8639881') OR (("cash_policy"."policy_name" = '8639893') OR (("cash_policy"."policy_name" = '8639889') OR (("cash_policy"."policy_name" = '8639888') OR (("cash_policy"."policy_name" = '8833601') OR (("cash_policy"."policy_name" = '8639895') OR (("cash_policy"."policy_name" = '863989636') OR (("cash_policy"."policy_name" = '8639896') OR (("cash_policy"."policy_name" = '863989') OR (("cash_policy"."policy_name" = '8639898') OR (("cash_policy"."policy_name" = '8639899') OR (("cash_policy"."policy_name" = '8639891') OR (("cash_policy"."policy_name" = '8639894') OR (("cash_policy"."policy_name" = '8639890') OR (("cash_policy"."policy_name" = '8833603') OR (("cash_policy"."policy_name" = '88336609') OR (("cash_policy"."policy_name" = '8833609') OR (("cash_policy"."policy_name" = '8833608') OR (("cash_policy"."policy_name" = '8773812') OR (("cash_policy"."policy_name" = '8246797') OR (("cash_policy"."policy_name" = '8561382') OR (("cash_policy"."policy_name" = '85613696') OR (("cash_policy"."policy_name" = '8561396') OR (("cash_policy"."policy_name" = '8247321') OR (("cash_policy"."policy_name" = '8773824') OR (("cash_policy"."policy_name" = '8773830') OR (("cash_policy"."policy_name" = '8773806') OR (("cash_policy"."policy_name" = '8773804') OR (("cash_policy"."policy_name" = '8561388') OR (("cash_policy"."policy_name" = '8773817') OR (("cash_policy"."policy_name" = '8246791') OR (("cash_policy"."policy_name" = '8773826') OR (("cash_policy"."policy_name" = '8773828') OR (("cash_policy"."policy_name" = '8773815') OR (("cash_policy"."policy_name" = '8773835') OR (("cash_policy"."policy_name" = '8773834') OR (("cash_policy"."policy_name" = '8773833') OR (("cash_policy"."policy_name" = '8773832') OR (("cash_policy"."policy_name" = '87736818') OR (("cash_policy"."policy_name" = '8773818') OR (("cash_policy"."policy_name" = '8773808') OR (("cash_policy"."policy_name" = '8773821') OR (("cash_policy"."policy_name" = '8773823') OR (("cash_policy"."policy_name" = '8561370') OR (("cash_policy"."policy_name" = '8773810') OR (("cash_policy"."policy_name" = '8773656') OR (("cash_policy"."policy_name" = '82473') OR (("cash_policy"."policy_name" = '8247132') OR (("cash_policy"."policy_name" = '87739655') OR (("cash_policy"."policy_name" = '8773655') OR (("cash_policy"."policy_name" = '8247130') OR (("cash_policy"."policy_name" = '8247126') OR (("cash_policy"."policy_name" = '8247133') OR (("cash_policy"."policy_name" = '8247137') OR (("cash_policy"."policy_name" = '8247135') OR (("cash_policy"."policy_name" = '8247138') OR (("cash_policy"."policy_name" = '8560673') OR (("cash_policy"."policy_name" = '8560674') OR (("cash_policy"."policy_name" = '8560671') OR (("cash_policy"."policy_name" = '8560669') OR (("cash_policy"."policy_name" = '8560656') OR (("cash_policy"."policy_name" = '8808463') OR (("cash_policy"."policy_name" = '8447131') OR (("cash_policy"."policy_name" = '8773090') OR (("cash_policy"."policy_name" = '8773094') OR (("cash_policy"."policy_name" = '8773091') OR (("cash_policy"."policy_name" = '8773092') OR (("cash_policy"."policy_name" = '8447108') OR (("cash_policy"."policy_name" = '8561014') OR (("cash_policy"."policy_name" = '8447107') OR (("cash_policy"."policy_name" = '8447104') OR (("cash_policy"."policy_name" = '8561013') OR (("cash_policy"."policy_name" = '8561011') OR (("cash_policy"."policy_name" = '8561016') OR (("cash_policy"."policy_name" = '856') OR (("cash_policy"."policy_name" = '8640600') OR (("cash_policy"."policy_name" = '8640594') OR (("cash_policy"."policy_name" = '8640597') OR (("cash_policy"."policy_name" = '85') OR (("cash_policy"."policy_name" = '8640591') OR (("cash_policy"."policy_name" = '8640586') OR (("cash_policy"."policy_name" = '864059') OR (("cash_policy"."policy_name" = '8640589') OR (("cash_policy"."policy_name" = '8640573') OR (("cash_policy"."policy_name" = '8640572') OR (("cash_policy"."policy_name" = '8640585') OR (("cash_policy"."policy_name" = '8640584') OR (("cash_policy"."policy_name" = '8640583') OR (("cash_policy"."policy_name" = '8640582') OR (("cash_policy"."policy_name" = '8640581') OR (("cash_policy"."policy_name" = '8640578') OR (("cash_policy"."policy_name" = '8640577') OR (("cash_policy"."policy_name" = '8640576') OR (("cash_policy"."policy_name" = '8640575') OR (("cash_policy"."policy_name" = '8774227') OR (("cash_policy"."policy_name" = '8832379') OR (("cash_policy"."policy_name" = '8832380') OR (("cash_policy"."policy_name" = '8832381') OR (("cash_policy"."policy_name" = '8832') OR (("cash_policy"."policy_name" = '383') OR (("cash_policy"."policy_name" = '8832383') OR (("cash_policy"."policy_name" = '8832385') OR (("cash_policy"."policy_name" = '8832387') OR (("cash_policy"."policy_name" = '8832389') OR (("cash_policy"."policy_name" = '8832388') OR (("cash_policy"."policy_name" = '8832391') OR (("cash_policy"."policy_name" = '8832392') OR (("cash_policy"."policy_name" = '8832393') OR (("cash_policy"."policy_name" = '8832394') OR (("cash_policy"."policy_name" = '8832395') OR (("cash_policy"."policy_name" = '8832397') OR (("cash_policy"."policy_name" = '8832252') OR (("cash_policy"."policy_name" = '8832253') OR (("cash_policy"."policy_name" = '8832254') OR (("cash_policy"."policy_name" = '8832369') OR (("cash_policy"."policy_name" = '8832370') OR (("cash_policy"."policy_name" = '8832371') OR (("cash_policy"."policy_name" = '8832372') OR (("cash_policy"."policy_name" = '8832374') OR (("cash_policy"."policy_name" = '8832377') OR (("cash_policy"."policy_name" = '883275') OR (("cash_policy"."policy_name" = '8832375') OR (("cash_policy"."policy_name" = '8832376') OR (("cash_policy"."policy_name" = '8832368') OR (("cash_policy"."policy_name" = '8832362') OR (("cash_policy"."policy_name" = '8832361') OR (("cash_policy"."policy_name" = '8832360') OR (("cash_policy"."policy_name" = '8832358') OR (("cash_policy"."policy_name" = '8832365') OR (("cash_policy"."policy_name" = '8832364') OR (("cash_policy"."policy_name" = '8832357') OR (("cash_policy"."policy_name" = '8832355') OR (("cash_policy"."policy_name" = '8832353') OR (("cash_policy"."policy_name" = '8832354') OR (("cash_policy"."policy_name" = '8832352') OR (("cash_policy"."policy_name" = '8832351') OR (("cash_policy"."policy_name" = '8774249') OR (("cash_policy"."policy_name" = '8774247') OR (("cash_policy"."policy_name" = '8774246') OR (("cash_policy"."policy_name" = '8774244') OR (("cash_policy"."policy_name" = '8774245') OR (("cash_policy"."policy_name" = '8774242') OR (("cash_policy"."policy_name" = '8774243') OR (("cash_policy"."policy_name" = '8774240') OR (("cash_policy"."policy_name" = '8774239') OR (("cash_policy"."policy_name" = '8774237') OR (("cash_policy"."policy_name" = '8774869') OR (("cash_policy"."policy_name" = '8774868') OR (("cash_policy"."policy_name" = '8774867') OR (("cash_policy"."policy_name" = '8774865') OR (("cash_policy"."policy_name" = '8774870') OR (("cash_policy"."policy_name" = '8774871') OR (("cash_policy"."policy_name" = '8774874') OR (("cash_policy"."policy_name" = '8774873') OR (("cash_policy"."policy_name" = '8774875') OR (("cash_policy"."policy_name" = '8774876') OR (("cash_policy"."policy_name" = '8774877') OR (("cash_policy"."policy_name" = '8774878') OR (("cash_policy"."policy_name" = '8774879') OR (("cash_policy"."policy_name" = '8774880') OR (("cash_policy"."policy_name" = '8774881') OR (("cash_policy"."policy_name" = '8774882') OR (("cash_policy"."policy_name" = '8774884') OR (("cash_policy"."policy_name" = '8774885') OR (("cash_policy"."policy_name" = '8774886') OR (("cash_policy"."policy_name" = '8774887') OR (("cash_policy"."policy_name" = '8774889') OR (("cash_policy"."policy_name" = '8774888') OR (("cash_policy"."policy_name" = '8774894') OR (("cash_policy"."policy_name" = '8774896') OR (("cash_policy"."policy_name" = '8774893') OR (("cash_policy"."policy_name" = '8774890') OR (("cash_policy"."policy_name" = '8774897') OR (("cash_policy"."policy_name" = '8640588') OR (("cash_policy"."policy_name" = '8640560') OR (("cash_policy"."policy_name" = '8640559') OR (("cash_policy"."policy_name" = '8327643') OR (("cash_policy"."policy_name" = '88032242') OR (("cash_policy"."policy_name" = '8832242') OR (("cash_policy"."policy_name" = '8775') OR (("cash_policy"."policy_name" = '8774510') OR (("cash_policy"."policy_name" = '8774509') OR (("cash_policy"."policy_name" = '8832241') OR (("cash_policy"."policy_name" = '8836') OR (("cash_policy"."policy_name" = '8833582') OR (("cash_policy"."policy_name" = '8833583') OR (("cash_policy"."policy_name" = '8774856') OR (("cash_policy"."policy_name" = '8774858') OR (("cash_policy"."policy_name" = '8774859') OR (("cash_policy"."policy_name" = '8774861') OR (("cash_policy"."policy_name" = '8774862') OR (("cash_policy"."policy_name" = '8774864') OR (("cash_policy"."policy_name" = '8774860') OR (("cash_policy"."policy_name" = '8774866') OR (("cash_policy"."policy_name" = '8774212') OR (("cash_policy"."policy_name" = '8774234') OR (("cash_policy"."policy_name" = '8774233') OR (("cash_policy"."policy_name" = '8774230') OR (("cash_policy"."policy_name" = '8774231') OR (("cash_policy"."policy_name" = '8774229') OR (("cash_policy"."policy_name" = '8639471') OR (("cash_policy"."policy_name" = '8327915') OR (("cash_policy"."policy_name" = '8640662') OR (("cash_policy"."policy_name" = '8639412') OR (("cash_policy"."policy_name" = '8561121') OR (("cash_policy"."policy_name" = '8639408') OR (("cash_policy"."policy_name" = '863') OR (("cash_policy"."policy_name" = '8639422') OR (("cash_policy"."policy_name" = '8640655') OR (("cash_policy"."policy_name" = '8639482') OR (("cash_policy"."policy_name" = '8639492') OR (("cash_policy"."policy_name" = '8639495') OR (("cash_policy"."policy_name" = '8639467') OR (("cash_policy"."policy_name" = '8639496') OR (("cash_policy"."policy_name" = '88327942') OR (("cash_policy"."policy_name" = '8327942') OR (("cash_policy"."policy_name" = '8326360') OR (("cash_policy"."policy_name" = '832360') OR (("cash_policy"."policy_name" = '8327901') OR (("cash_policy"."policy_name" = '86') OR (("cash_policy"."policy_name" = '8561147') OR (("cash_policy"."policy_name" = '8561') OR (("cash_policy"."policy_name" = '8639463') OR (("cash_policy"."policy_name" = '8639487') OR (("cash_policy"."policy_name" = '8639486') OR (("cash_policy"."policy_name" = '8640669') OR (("cash_policy"."policy_name" = '864') OR (("cash_policy"."policy_name" = '8639461') OR (("cash_policy"."policy_name" = '8640665') OR (("cash_policy"."policy_name" = '8640670') OR (("cash_policy"."policy_name" = '86406') OR (("cash_policy"."policy_name" = '8640664') OR (("cash_policy"."policy_name" = '8646') OR (("cash_policy"."policy_name" = '8640686') OR (("cash_policy"."policy_name" = '8640681') OR (("cash_policy"."policy_name" = '8640678') OR (("cash_policy"."policy_name" = '8640676') OR (("cash_policy"."policy_name" = '/8640661') OR (("cash_policy"."policy_name" = '8640661') OR (("cash_policy"."policy_name" = '8640659') OR (("cash_policy"."policy_name" = '8639479') OR (("cash_policy"."policy_name" = '8639470') OR (("cash_policy"."policy_name" = '8774898') OR (("cash_policy"."policy_name" = '8774900') OR (("cash_policy"."policy_name" = '8774202') OR (("cash_policy"."policy_name" = '8774203') OR (("cash_policy"."policy_name" = '8774204') OR (("cash_policy"."policy_name" = '8774205') OR (("cash_policy"."policy_name" = '8774206') OR (("cash_policy"."policy_name" = '8774208') OR (("cash_policy"."policy_name" = '8774209') OR (("cash_policy"."policy_name" = '877420') OR (("cash_policy"."policy_name" = '8774211') OR (("cash_policy"."policy_name" = '8774214') OR (("cash_policy"."policy_name" = '8774215') OR (("cash_policy"."policy_name" = '877') OR (("cash_policy"."policy_name" = '8774216') OR (("cash_policy"."policy_name" = '8774217') OR (("cash_policy"."policy_name" = '8774218') OR (("cash_policy"."policy_name" = '8774220') OR (("cash_policy"."policy_name" = '8774221') OR (("cash_policy"."policy_name" = '8772') OR (("cash_policy"."policy_name" = '8774222') OR (("cash_policy"."policy_name" = '8774223') OR (("cash_policy"."policy_name" = '8640689') OR (("cash_policy"."policy_name" = '8640691') OR (("cash_policy"."policy_name" = '8640693') OR (("cash_policy"."policy_name" = '8640692') OR (("cash_policy"."policy_name" = '8640694') OR (("cash_policy"."policy_name" = '8640695') OR (("cash_policy"."policy_name" = '8640697') OR (("cash_policy"."policy_name" = '8640696') OR (("cash_policy"."policy_name" = '8640699') OR (("cash_policy"."policy_name" = '86740699') OR (("cash_policy"."policy_name" = '8640700') OR (("cash_policy"."policy_name" = '8774851') OR (("cash_policy"."policy_name" = '8774853') OR (("cash_policy"."policy_name" = '8774854') OR (("cash_policy"."policy_name" = '7') OR (("cash_policy"."policy_name" = '8774855') OR (("cash_policy"."policy_name" = '8832166') OR (("cash_policy"."policy_name" = '8832192') OR (("cash_policy"."policy_name" = '8832174') OR (("cash_policy"."policy_name" = '8832177') OR (("cash_policy"."policy_name" = '8640942') OR (("cash_policy"."policy_name" = '8832154') OR (("cash_policy"."policy_name" = '8832155') OR (("cash_policy"."policy_name" = '8640565') OR (("cash_policy"."policy_name" = '88321725') OR (("cash_policy"."policy_name" = '8832172') OR (("cash_policy"."policy_name" = '8832190') OR (("cash_policy"."policy_name" = '8832187') OR (("cash_policy"."policy_name" = '8832175') OR (("cash_policy"."policy_name" = '8832178') OR (("cash_policy"."policy_name" = '8832180') OR (("cash_policy"."policy_name" = '8640920') OR (("cash_policy"."policy_name" = '8561267') OR (("cash_policy"."policy_name" = '8560761') OR (("cash_policy"."policy_name" = '8832160') OR (("cash_policy"."policy_name" = '8832161') OR (("cash_policy"."policy_name" = '8832162') OR (("cash_policy"."policy_name" = '8832163') OR ("cash_policy"."policy_name" = '8832158'))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;[ Date: 2024-11-24 15:31:19 ]
20 5s57ms SELECT COUNT(*) FROM ( SELECT FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND ((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND (("shipping_policy"."out_date" = '2024-11-23') 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"."collection_amount_sender" = '0') 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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR (("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)))) OR ("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))))) LIMIT 10001) t;[ Date: 2024-11-24 14:12:36 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 19h55m43s 193,762 287ms 3s341ms 370ms 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 #1
Day Hour Count Duration Avg duration Nov 24 11 11,650 1h14m24s 383ms 12 18,897 2h1m1s 384ms 13 14,099 1h29m7s 379ms 14 14,338 1h30m24s 378ms 15 18,898 2h6m14s 400ms 16 13,195 1h24m41s 385ms 17 15,635 1h38m18s 377ms 18 13,057 1h13m35s 338ms 19 15,648 1h30m41s 347ms 20 12,075 1h7m48s 336ms 21 28,696 2h58m52s 374ms 22 17,574 1h40m33s 343ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958025)) AND (("shipping_track"."id" not in (23984110, 23984110)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:36 Duration: 3s341ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958038)) AND (("shipping_track"."id" not in (23984269, 23984269)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:27:02 Duration: 2s650ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2957972)) AND (("shipping_track"."id" not in (23983803, 23983803)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:25:46 Duration: 2s648ms
2 7h45m28s 131,115 148ms 1s482ms 213ms 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 #2
Day Hour Count Duration Avg duration Nov 24 11 5,473 20m13s 221ms 12 8,334 30m55s 222ms 13 10,145 38m47s 229ms 14 6,369 23m1s 216ms 15 13,182 51m11s 233ms 16 13,938 52m42s 226ms 17 14,048 45m49s 195ms 18 2,635 7m19s 166ms 19 6,569 18m38s 170ms 20 8,176 22m37s 166ms 21 38,015 2h21m52s 223ms 22 4,231 12m19s 174ms -
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" = '438569')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:12 Duration: 1s482ms
-
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" = '8978479')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:26:57 Duration: 1s413ms
-
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" = '8779081')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:09 Duration: 1s406ms
3 4h3m6s 38,695 288ms 2s724ms 376ms select "shipping_track".id from "shipping_track" where ("shipping_track"."shipping_id" in (...)) order by "shipping_track"."id";Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 24 11 2,594 17m7s 396ms 12 4,573 30m17s 397ms 13 4,890 31m37s 388ms 14 4,179 26m46s 384ms 15 4,366 29m23s 403ms 16 3,074 19m55s 388ms 17 3,461 21m36s 374ms 18 3,191 17m34s 330ms 19 2,625 14m42s 336ms 20 2,082 11m24s 328ms 21 2,318 14m47s 382ms 22 1,342 7m52s 352ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2899775, 2896700, 2834820, 2774409, 2711261, 2695742, 2630971, 2563630)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:38 Duration: 2s724ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2958030, 2958028, 2958025, 2958022, 2958017, 2958014, 2958010, 2958006, 2957999, 2957993, 2957992, 2957988, 2957983, 2957980, 2957976, 2957973, 2957970, 2957967, 2957963)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:58 Duration: 2s623ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2883732, 2883665, 2854088)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:25:47 Duration: 2s480ms
4 2h36m35s 39,822 89ms 964ms 235ms 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 #4
Day Hour Count Duration Avg duration Nov 24 11 338 1m25s 253ms 12 54 11s118ms 205ms 13 378 1m36s 256ms 14 1,102 4m54s 266ms 15 2,268 10m5s 266ms 16 3,780 14m57s 237ms 17 5,610 23m21s 249ms 18 5,542 20m29s 221ms 19 7,253 27m14s 225ms 20 6,367 23m17s 219ms 21 5,318 21m49s 246ms 22 1,812 7m12s 238ms -
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'عبدالرحمن')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 21:28:39 Duration: 964ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 21:28:39 Duration: 947ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'احمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 17:08:00 Duration: 829ms
5 2h31m35s 9,462 202ms 2s34ms 961ms 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 #5
Day Hour Count Duration Avg duration Nov 24 11 5 5s276ms 1s55ms 12 15 15s692ms 1s46ms 13 65 1m8s 1s61ms 14 334 5m44s 1s30ms 15 509 8m56s 1s54ms 16 1,166 19m46s 1s17ms 17 1,211 20m24s 1s10ms 18 1,479 22m47s 924ms 19 2,035 31m45s 936ms 20 1,157 17m22s 901ms 21 1,020 16m13s 954ms 22 466 7m4s 911ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9063003')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:26:17 Duration: 2s34ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8994650')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:27:21 Duration: 2s13ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8994646')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:27:09 Duration: 1s941ms
6 1h20m9s 16,408 215ms 941ms 293ms 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 #6
Day Hour Count Duration Avg duration Nov 24 11 2,036 10m17s 303ms 12 2,567 13m2s 304ms 13 1,501 7m25s 296ms 14 2,179 10m50s 298ms 15 2,259 11m40s 310ms 16 1,895 9m25s 298ms 17 2,115 9m41s 274ms 18 376 1m38s 261ms 19 882 3m40s 249ms 20 516 2m4s 241ms 21 82 22s41ms 268ms -
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" = '8336724')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 17:59:46 Duration: 941ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8674452')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:31:24 Duration: 527ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8564557')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:31:17 Duration: 469ms
7 1h7m13s 116,387 24ms 189ms 34ms 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 #7
Day Hour Count Duration Avg duration Nov 24 11 9,286 5m38s 36ms 12 15,426 9m23s 36ms 13 12,403 7m25s 35ms 14 11,420 6m46s 35ms 15 10,421 6m27s 37ms 16 9,403 5m35s 35ms 17 10,546 6m3s 34ms 18 8,927 4m35s 30ms 19 9,788 5m5s 31ms 20 7,545 3m50s 30ms 21 7,606 4m27s 35ms 22 3,616 1m54s 31ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2903714, 2902554, 2902480, 2900907, 2900879, 2900715, 2887795, 2885208, 2835280, 2755388, 2666942)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:27:43 Duration: 189ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2958030)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:26:55 Duration: 150ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2857829)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:28:12 Duration: 145ms
8 46m24s 10,703 191ms 1s851ms 260ms 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 #8
Day Hour Count Duration Avg duration Nov 24 11 166 48s314ms 291ms 12 13 3s707ms 285ms 13 130 36s15ms 277ms 14 234 1m11s 303ms 15 636 3m3s 288ms 16 758 3m35s 284ms 17 1,627 7m43s 284ms 18 1,325 5m26s 246ms 19 1,620 6m28s 239ms 20 2,075 8m1s 232ms 21 1,672 7m41s 275ms 22 447 1m44s 233ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8387371')) 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: 2024-11-24 21:25:44 Duration: 1s851ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8919427')) 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: 2024-11-24 21:26:06 Duration: 1s695ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8919095')) 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: 2024-11-24 21:26:31 Duration: 1s542ms
9 29m20s 42,057 32ms 190ms 41ms 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 #9
Day Hour Count Duration Avg duration Nov 24 11 3,106 2m9s 41ms 12 6,594 4m37s 42ms 13 4,452 3m4s 41ms 14 4,339 2m59s 41ms 15 5,175 3m40s 42ms 16 4,955 3m25s 41ms 17 6,628 4m44s 42ms 18 2,330 1m36s 41ms 19 2,057 1m23s 40ms 20 1,319 52s577ms 39ms 21 1,008 42s489ms 42ms 22 94 4s69ms 43ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2883752) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:26:59 Duration: 190ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2888751) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:30:28 Duration: 175ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2852727) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:26:00 Duration: 173ms
10 27m28s 18,275 64ms 416ms 90ms select "cash_track".id from "cash_track" where ("cash_track"."cash_policy_id" in (...)) order by "cash_track"."id";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 24 11 174 17s361ms 99ms 12 331 32s494ms 98ms 13 284 27s459ms 96ms 14 338 32s723ms 96ms 15 256 25s480ms 99ms 16 112 10s345ms 92ms 17 9,969 15m15s 91ms 18 6,539 9m24s 86ms 19 118 9s571ms 81ms 20 68 5s474ms 80ms 21 44 4s40ms 91ms 22 42 3s732ms 88ms -
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 17:59:45 Duration: 416ms
-
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 17:59:43 Duration: 364ms
-
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 18:10:25 Duration: 222ms
11 25m42s 17,914 62ms 542ms 86ms 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 #11
Day Hour Count Duration Avg duration Nov 24 11 1,279 1m52s 87ms 12 2,109 3m7s 88ms 13 2,343 3m24s 87ms 14 3,008 4m18s 85ms 15 3,383 5m3s 89ms 16 1,004 1m29s 88ms 17 1,511 2m10s 86ms 18 662 51s323ms 77ms 19 714 55s814ms 78ms 20 1,244 1m33s 74ms 21 426 38s115ms 89ms 22 231 18s413ms 79ms -
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7703571)) AND (("cash_track"."id" not in (4859762)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 21:30:23 Duration: 542ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7701222)) AND (("cash_track"."id" not in (4836988)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 15:31:42 Duration: 498ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7703557)) AND (("cash_track"."id" not in (4859708)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 21:25:56 Duration: 229ms
12 15m57s 4,470 153ms 512ms 214ms 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 #12
Day Hour Count Duration Avg duration Nov 24 11 271 1m 222ms 12 785 2m52s 220ms 13 1,149 4m7s 215ms 14 854 3m1s 212ms 15 689 2m39s 232ms 16 215 46s814ms 217ms 17 19 4s6ms 210ms 18 27 4s478ms 165ms 19 15 2s551ms 170ms 20 152 24s728ms 162ms 21 213 39s309ms 184ms 22 81 14s129ms 174ms -
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" = '7862010')) 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: 2024-11-24 15:31:17 Duration: 512ms
-
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" = '8734187')) 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: 2024-11-24 15:31:25 Duration: 370ms
-
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" = '8868460')) 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: 2024-11-24 15:31:22 Duration: 367ms
13 15m9s 3,013 205ms 850ms 301ms 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" = ?) and ((((("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 "collection_policy"."id";Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Nov 24 11 288 1m27s 304ms 12 408 2m5s 307ms 13 58 17s106ms 294ms 14 451 2m12s 294ms 15 596 3m10s 319ms 16 352 1m45s 300ms 17 860 4m10s 291ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8553735') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:15 Duration: 850ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8490028') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:13 Duration: 521ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '452420') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:12 Duration: 498ms
14 13m12s 232 444ms 4s740ms 3s415ms select "policy_number".id from "policy_number" where ((("policy_number"."active" = true) 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"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) 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"."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 (...)))))))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Nov 24 11 2 7s797ms 3s898ms 12 6 22s871ms 3s811ms 13 15 53s23ms 3s534ms 14 32 1m54s 3s569ms 15 15 53s580ms 3s572ms 16 23 1m16s 3s329ms 17 36 2m3s 3s419ms 18 20 1m10s 3s510ms 19 29 1m28s 3s39ms 20 22 1m11s 3s257ms 21 24 1m25s 3s560ms 22 8 25s783ms 3s222ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (115))))))) 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 (115)))))) OR (("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"."id" in (115)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (115)))))) AND ("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 (115))))))))) 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 (115)))))))) AND ("policy_number"."name"::text ilike '%8%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 17:25:52 Duration: 4s740ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (5))))))) 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 (5)))))) OR (("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"."id" in (5)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5)))))) AND ("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 (5))))))))) 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 (5)))))))) AND ("policy_number"."name"::text ilike '%8882912%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 21:24:35 Duration: 4s539ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (115))))))) 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 (115)))))) OR (("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"."id" in (115)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (115)))))) AND ("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 (115))))))))) 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 (115)))))))) AND ("policy_number"."name"::text ilike '%833%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 17:25:53 Duration: 4s484ms
15 11m57s 4,794 118ms 1s149ms 149ms 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 #15
Day Hour Count Duration Avg duration Nov 24 11 770 1m58s 153ms 12 1,025 2m36s 152ms 13 707 1m45s 149ms 14 737 1m47s 145ms 15 344 52s885ms 153ms 16 287 42s425ms 147ms 17 340 49s250ms 144ms 18 231 31s456ms 136ms 19 121 16s208ms 133ms 20 119 15s938ms 133ms 21 92 18s942ms 205ms 22 21 2s961ms 141ms -
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:30 Duration: 1s149ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:24 Duration: 1s66ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:19 Duration: 957ms
16 11m34s 3,198 152ms 768ms 217ms 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"."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 #16
Day Hour Count Duration Avg duration Nov 24 11 230 50s476ms 219ms 12 459 1m41s 220ms 13 139 29s915ms 215ms 14 397 1m25s 215ms 15 724 2m45s 229ms 16 352 1m16s 215ms 17 897 3m5s 206ms -
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" = '449658')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:09 Duration: 768ms
-
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" = '8490028')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:13 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" = '452420')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:12 Duration: 382ms
17 10m52s 17,483 28ms 68ms 37ms select "collection_policy".id from "collection_policy" where ("collection_policy"."shipping_id" = ?) order by "collection_policy"."id";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Nov 24 11 1,669 1m2s 37ms 12 3,067 1m53s 36ms 13 1,708 1m3s 37ms 14 2,116 1m17s 36ms 15 2,262 1m25s 37ms 16 2,009 1m15s 37ms 17 2,943 1m53s 38ms 18 429 15s801ms 36ms 19 681 25s56ms 36ms 20 509 18s31ms 35ms 21 90 3s104ms 34ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2481908) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:32:05 Duration: 68ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2471355) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:32:05 Duration: 67ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2458129) ORDER BY "collection_policy"."id";
Date: 2024-11-24 17:59:32 Duration: 65ms
18 10m32s 2,887 192ms 293ms 218ms 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 true order by "shipping_policy"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Nov 24 12 1,886 6m52s 218ms 13 949 3m28s 219ms 15 15 3s440ms 229ms 16 37 7s992ms 216ms -
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" = '7677490')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:43 Duration: 293ms
-
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" = '7677485')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:40 Duration: 283ms
-
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" = '7677484')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:39 Duration: 283ms
19 10m17s 2,367 17ms 2s553ms 260ms select count(*) from ( select from "cash_policy" left join "policy_number" AS "cash_policy__policy_id" on ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") where (("cash_policy"."active" = true) and (("cash_policy"."state" != ?) or "cash_policy"."state" is null)) and ((("cash_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("cash_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("cash_policy__policy_id"."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)))))) limit ?) t;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Nov 24 11 215 54s169ms 251ms 12 390 1m30s 232ms 13 379 1m36s 255ms 14 352 1m27s 248ms 15 277 1m22s 299ms 16 187 1m 323ms 17 130 35s115ms 270ms 18 144 42s864ms 297ms 19 70 20s802ms 297ms 20 143 23s416ms 163ms 21 44 14s222ms 323ms 22 36 8s628ms 239ms -
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:30:57 Duration: 2s553ms
-
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:26:06 Duration: 973ms
-
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:26:59 Duration: 878ms
20 8m26s 28,815 10ms 45ms 17ms select "cash_policy_line".id from "cash_policy_line" where ("cash_policy_line"."cash_policy_id" in (...)) order by "cash_policy_line"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Nov 24 11 836 14s160ms 16ms 12 1,052 17s610ms 16ms 13 1,405 23s798ms 16ms 14 2,317 37s45ms 15ms 15 2,558 43s854ms 17ms 16 1,088 18s11ms 16ms 17 10,932 3m23s 18ms 18 6,606 1m57s 17ms 19 684 10s585ms 15ms 20 1,102 16s441ms 14ms 21 106 1s855ms 17ms 22 129 2s167ms 16ms -
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7687910)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 15:31:13 Duration: 45ms
-
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7654200)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 21:26:05 Duration: 44ms
-
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7609854)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 17:59:43 Duration: 43ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,722,911 1m35s 0ms 1ms 0ms discard all;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Nov 24 11 111,828 5s468ms 0ms 12 209,163 11s793ms 0ms 13 195,453 10s934ms 0ms 14 189,283 10s751ms 0ms 15 193,929 11s566ms 0ms 16 169,913 9s651ms 0ms 17 175,006 9s320ms 0ms 18 145,491 7s506ms 0ms 19 112,815 6s30ms 0ms 20 87,275 4s658ms 0ms 21 80,808 4s921ms 0ms 22 51,947 2s843ms 0ms -
DISCARD ALL;
Date: 2024-11-24 21:27:00 Duration: 1ms
-
DISCARD ALL;
Date: 2024-11-24 21:59:25 Duration: 1ms
-
DISCARD ALL;
Date: 2024-11-24 12:30:48 Duration: 1ms
2 1,368,964 22s81ms 0ms 1ms 0ms begin isolation level repeatable read;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Nov 24 11 96,585 1s447ms 0ms 12 176,489 2s836ms 0ms 13 156,907 2s472ms 0ms 14 148,204 2s358ms 0ms 15 153,162 2s555ms 0ms 16 128,306 2s52ms 0ms 17 139,983 2s223ms 0ms 18 114,542 1s782ms 0ms 19 86,287 1s400ms 0ms 20 66,027 1s70ms 0ms 21 62,719 1s213ms 0ms 22 39,753 667ms 0ms -
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2024-11-24 15:25:44 Duration: 1ms
-
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2024-11-24 15:13:50 Duration: 1ms
-
BEGIN ISOLATION LEVEL REPEATABLE READ;
Date: 2024-11-24 11:33:22 Duration: 0ms
3 872,628 9s530ms 0ms 0ms 0ms rollback;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 24 11 56,851 631ms 0ms 12 106,148 1s146ms 0ms 13 98,993 1s45ms 0ms 14 96,074 1s25ms 0ms 15 98,304 1s118ms 0ms 16 86,005 937ms 0ms 17 88,390 999ms 0ms 18 73,577 765ms 0ms 19 56,966 602ms 0ms 20 44,145 466ms 0ms 21 40,834 504ms 0ms 22 26,341 286ms 0ms -
ROLLBACK;
Date: 2024-11-24 12:47:53 Duration: 0ms
-
ROLLBACK;
Date: 2024-11-24 21:28:09 Duration: 0ms
-
ROLLBACK;
Date: 2024-11-24 21:30:56 Duration: 0ms
4 866,323 2m41s 0ms 12ms 0ms select payload from http_sessions where sid = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Nov 24 11 56,574 10s841ms 0ms 12 105,581 19s817ms 0ms 13 98,795 17s526ms 0ms 14 95,309 16s881ms 0ms 15 97,242 18s197ms 0ms 16 85,309 15s444ms 0ms 17 87,858 16s561ms 0ms 18 73,068 13s79ms 0ms 19 56,535 10s574ms 0ms 20 43,686 8s201ms 0ms 21 40,381 9s6ms 0ms 22 25,985 5s45ms 0ms -
SELECT payload FROM http_sessions WHERE sid = '7f156c3290fdf6035cbe7f625e87dbb5cffa7e21';
Date: 2024-11-24 14:43:59 Duration: 12ms
-
SELECT payload FROM http_sessions WHERE sid = '07b70d5aedcec3f4554c7f3407648896d4af968c';
Date: 2024-11-24 12:19:00 Duration: 11ms
-
SELECT payload FROM http_sessions WHERE sid = 'eda50933997e849cec55534e758a998b7b0e435b';
Date: 2024-11-24 12:44:08 Duration: 8ms
5 859,944 1m20s 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 Nov 24 11 55,893 5s421ms 0ms 12 104,375 9s965ms 0ms 13 97,555 9s27ms 0ms 14 94,496 8s715ms 0ms 15 96,808 9s308ms 0ms 16 84,800 7s759ms 0ms 17 87,352 8s367ms 0ms 18 72,621 6s606ms 0ms 19 56,301 5s201ms 0ms 20 43,507 3s954ms 0ms 21 40,325 4s240ms 0ms 22 25,911 2s418ms 0ms -
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2024-11-24 19:35:05 Duration: 1ms
-
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2024-11-24 15:52:28 Duration: 1ms
-
SELECT base_registry_signaling.last_value, base_cache_signaling.last_value FROM base_registry_signaling, base_cache_signaling;
Date: 2024-11-24 20:35:46 Duration: 0ms
6 496,330 1m14s 0ms 37ms 0ms commit;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Nov 24 11 39,732 5s552ms 0ms 12 70,341 9s808ms 0ms 13 57,913 7s906ms 0ms 14 52,132 7s542ms 0ms 15 54,857 8s256ms 0ms 16 42,298 5s890ms 0ms 17 51,583 8s300ms 0ms 18 40,973 6s29ms 0ms 19 29,318 4s547ms 0ms 20 21,877 3s562ms 0ms 21 21,891 4s563ms 0ms 22 13,415 2s488ms 0ms -
COMMIT;
Date: 2024-11-24 17:53:07 Duration: 37ms
-
COMMIT;
Date: 2024-11-24 16:39:34 Duration: 32ms
-
COMMIT;
Date: 2024-11-24 11:54:28 Duration: 31ms
7 457,595 1m6s 0ms 8ms 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 #7
Day Hour Count Duration Avg duration Nov 24 11 35,076 5s336ms 0ms 12 61,210 9s782ms 0ms 13 49,170 7s263ms 0ms 14 43,931 6s497ms 0ms 15 48,711 7s892ms 0ms 16 37,429 5s373ms 0ms 17 56,160 6s542ms 0ms 18 45,024 4s909ms 0ms 19 27,442 3s979ms 0ms 20 21,689 3s251ms 0ms 21 21,284 3s648ms 0ms 22 10,469 1s556ms 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 (5099920, 5367754, 5099035, 5208680, 5099027, 5100204, 5099406, 5099009, 5099010, 5120647, 5099007, 5110453, 5107762, 5100738, 5099037, 5099401, 5102228, 5106301, 5109925, 5250460, 5099013, 5099102, 5099831, 5382991, 5099712, 5099006, 5103046, 5099144, 5099119, 5099901, 5099264, 5101653, 5099677, 5101048, 5099300, 5099346, 5101915, 5382962, 5111406, 5099236, 5115997, 5102933, 5099855, 5099287, 5100499, 5099046, 5100004, 5099254, 5099540, 5099130, 5099523, 5102909, 5100726, 5220922, 5099788, 5128797, 5099500, 5099285, 5100854, 5099008, 5099169, 5100714, 5099669, 5099246, 5103091, 5319126, 5102762, 5099644, 5099128, 5099759, 5099581, 5121723, 5100541, 5100052, 5099296, 5099321, 5103356, 5118299, 5119390, 5099446, 5099434, 5099174, 5102344, 5100005, 5101104, 5114624, 5109522, 5099678, 5100547, 5105555, 5103422, 5102645, 5099867, 5287869, 5099187, 5099590, 5112797, 5367504, 5106226, 5367682, 5103293, 5099403, 5105651, 5106006, 5100443);
Date: 2024-11-24 17:21:50 Duration: 8ms
-
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 (5099920, 5367754, 5099035, 5208680, 5099027, 5100204, 5099406, 5099009, 5099010, 5120647, 5099007, 5110453, 5107762, 5100738, 5099037, 5099401, 5102228, 5106301, 5109925, 5250460, 5099013, 5099102, 5099831, 5382991, 5099712, 5099006, 5103046, 5099144, 5099119, 5099901, 5099264, 5101653, 5099677, 5101048, 5099300, 5099346, 5100321, 5101915, 5382962, 5111406, 5099236, 5115997, 5102933, 5099855, 5099287, 5100499, 5099046, 5100004, 5099254, 5099540, 5099130, 5099523, 5102909, 5100726, 5220922, 5099788, 5128797, 5099500, 5099285, 5100854, 5099008, 5099169, 5100714, 5099669, 5099246, 5103091, 5319126, 5102762, 5099644, 5099128, 5099759, 5099581, 5121723, 5100541, 5100052, 5099296, 5099321, 5103356, 5118299, 5119390, 5099446, 5099434, 5099174, 5102344, 5100005, 5101104, 5114624, 5109522, 5099678, 5100547, 5105555, 5103422, 5102645, 5099867, 5287869, 5099187, 5099590, 5112797, 5367504, 5106226, 5367682, 5103293, 5099403, 5105651, 5106006, 5100443);
Date: 2024-11-24 17:21:50 Duration: 8ms
-
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 (5099920, 5367754, 5099035, 5208680, 5099027, 5100204, 5099406, 5099009, 5099010, 5120647, 5099007, 5110453, 5107762, 5100738, 5099037, 5099401, 5102228, 5106301, 5109925, 5250460, 5099013, 5099102, 5099831, 5382991, 5099712, 5099006, 5103046, 5099144, 5099119, 5099901, 5099264, 5101653, 5099677, 5101048, 5099300, 5099346, 5100321, 5101915, 5382962, 5111406, 5099236, 5115997, 5102933, 5099855, 5099287, 5100499, 5099046, 5100004, 5099254, 5099540, 5099130, 5099523, 5102909, 5100726, 5220922, 5099788, 5128797, 5099500, 5099285, 5100854, 5099008, 5099169, 5100714, 5099669, 5099246, 5103091, 5319126, 5102762, 5099644, 5099128, 5099759, 5099581, 5121723, 5100541, 5100052, 5099296, 5099321, 5103356, 5118299, 5119390, 5099446, 5099434, 5099174, 5102344, 5100005, 5101104, 5114624, 5109522, 5099678, 5100547, 5105555, 5103422, 5102645, 5099867, 5287869, 5099187, 5099590, 5112797, 5367504, 5106226, 5367682, 5103293, 5099403, 5105651, 5106006);
Date: 2024-11-24 17:21:50 Duration: 7ms
8 443,107 27s838ms 0ms 2ms 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 #8
Day Hour Count Duration Avg duration Nov 24 11 32,857 2s107ms 0ms 12 57,588 3s787ms 0ms 13 48,553 2s962ms 0ms 14 44,398 2s819ms 0ms 15 46,733 3s200ms 0ms 16 36,539 2s267ms 0ms 17 55,076 3s333ms 0ms 18 43,701 2s438ms 0ms 19 26,754 1s586ms 0ms 20 20,117 1s175ms 0ms 21 18,890 1s414ms 0ms 22 11,901 745ms 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 (1);
Date: 2024-11-24 13:34:32 Duration: 2ms
-
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: 2024-11-24 21:38:00 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 (30, 66, 119, 55, 39, 17, 26, 74, 52, 51, 60, 64, 67, 70, 14, 79, 61, 85, 40, 53);
Date: 2024-11-24 21:34:25 Duration: 1ms
9 285,092 52s10ms 0ms 13ms 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 #9
Day Hour Count Duration Avg duration Nov 24 11 23,300 4s293ms 0ms 12 41,070 7s582ms 0ms 13 34,427 6s145ms 0ms 14 32,066 5s451ms 0ms 15 33,253 6s159ms 0ms 16 25,507 4s484ms 0ms 17 24,272 4s712ms 0ms 18 20,340 3s655ms 0ms 19 16,988 3s30ms 0ms 20 12,947 2s232ms 0ms 21 12,836 2s697ms 0ms 22 8,086 1s564ms 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 (8004725);
Date: 2024-11-24 17:21:50 Duration: 13ms
-
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 (8006454);
Date: 2024-11-24 17:21:50 Duration: 13ms
-
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 (8006491);
Date: 2024-11-24 17:21:50 Duration: 7ms
10 237,031 17s185ms 0ms 16ms 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"."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 #10
Day Hour Count Duration Avg duration Nov 24 11 18,590 1s396ms 0ms 12 33,998 2s508ms 0ms 13 28,076 2s9ms 0ms 14 26,161 1s772ms 0ms 15 27,871 2s70ms 0ms 16 21,007 1s480ms 0ms 17 20,393 1s544ms 0ms 18 17,480 1s180ms 0ms 19 14,106 966ms 0ms 20 11,307 753ms 0ms 21 11,382 978ms 0ms 22 6,660 523ms 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"."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 (1);
Date: 2024-11-24 17:18:15 Duration: 16ms
-
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"."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 (821);
Date: 2024-11-24 12:04:04 Duration: 1ms
-
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"."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 (2);
Date: 2024-11-24 11:24:07 Duration: 1ms
11 210,812 46s980ms 0ms 23ms 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 #11
Day Hour Count Duration Avg duration Nov 24 11 14,425 3s645ms 0ms 12 25,511 6s280ms 0ms 13 21,606 4s984ms 0ms 14 20,339 4s521ms 0ms 15 23,463 5s652ms 0ms 16 17,277 3s947ms 0ms 17 27,093 5s379ms 0ms 18 21,028 3s785ms 0ms 19 13,717 2s820ms 0ms 20 11,604 2s399ms 0ms 21 9,767 2s449ms 0ms 22 4,982 1s113ms 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 (39380928, 39708446, 39791219, 40094278, 40370005, 32612252, 41055964, 40041227, 41085297, 40482579, 39870635, 39918566, 32623565, 40378247, 40515602, 40373327, 41085295, 40301997, 41018080, 41018079, 39856349, 41018083, 41018085, 40159799, 39945841, 40208298, 39859093, 39884680, 32610433, 37854822, 39872941, 39443011, 40158755, 41085292, 41018545, 41018075, 40012087, 41018078, 40012085, 40012081, 40371158, 41085308, 41018081, 40623867, 41018084, 40577633, 39804612, 32605440, 38891489, 41085294, 40376423, 40079091, 38550532, 40314371, 32614024, 40079085, 39699829, 40105182, 39914262, 40300910, 39680566, 40869134, 39999830, 39680567, 40373467, 41085343, 39936228, 32598247, 41085299, 41018544, 40445880, 41018542, 40422822, 41018076, 41018077, 38977331, 32590449, 41085298, 40012084, 40059711, 39778410, 40272801, 39880870, 41085306, 39839186, 32604316, 41018082, 41085300, 40331522, 41085307, 39731568, 39913293, 39974066, 40943833, 39973768, 40187675, 39974065, 41085342, 40477371, 40040885, 41085309, 32582356, 40422823, 40003087, 40293917, 40002042, 40441656, 40190656, 40375831, 40252462, 40522490, 40451459, 40544386, 39804153, 41085293, 40318999, 40003685, 39759315, 39958958, 39637823, 39839191, 41056718, 39602641, 40504207, 40228254, 39927427);
Date: 2024-11-24 17:21:51 Duration: 23ms
-
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 (40730747, 40259522, 40227663, 32613992, 32614001, 39935086, 32613848, 39935189, 40085619, 32595888, 32595460, 32595766, 39934686, 40083227, 40083217, 39750167, 39748878, 40084810, 40023782, 40421855, 40229827, 40024487, 40230068, 40023475, 40227997, 40231241, 40024126, 39712763, 40084351, 39835690, 40421389, 40084341, 40084349, 40084353, 40084350, 40023774, 40024414, 39711682, 40083662, 40084300, 40024447, 40024451, 40589652, 39655664, 39655665, 40422296, 39714460, 39959044, 39714458, 39987065, 32613870, 40514783, 40647737, 39871793, 40517097, 40589888, 40648782, 40229361, 40084319, 39712126, 40083922, 40258714, 39986614, 40866424, 40024038, 39959293, 40083509, 39492175, 40022292, 40023279, 40258795, 39836649, 39958971, 39749598, 40083508, 40421994, 39749599, 39749702, 40422126, 40729866, 39934401, 40023642, 40084119, 40096329, 39987086, 40375325, 40230266, 40260108, 40229390, 40948370, 39987219, 32595727, 39987124, 39714329, 32595853, 40422005, 39307098, 40948423, 40590420, 39532416);
Date: 2024-11-24 17:21:58 Duration: 12ms
-
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 (39570092, 40246250, 39750167, 39878822, 38557925, 39417115, 39641987, 39769815, 39853805, 39742445, 40012072, 39856944, 39956348, 40246284, 39613497, 37644384, 39791280, 39931878, 32589166, 32595766, 39641907, 38977619, 39956369, 39684974, 39684909, 39668685, 39918468, 39379175, 39932363, 39742084, 39684886, 40144841, 39665142, 39741853, 39423184, 32595774, 38937732, 39804003, 39475572, 32583155, 39609713, 39609725, 39641662, 39511332, 39791498, 39208991, 38945533, 39756342, 39571785, 39571782, 39571786, 39774217, 39571801, 39571798, 39571797, 39571791, 39541885, 39202877, 39753143, 39762561, 39846776, 39779282, 39621889, 40305648, 39837868, 39746800, 39631056, 38977310, 39458317, 38534880, 39754865, 39754866, 39680125, 32592497, 39264566, 39615320, 39622687, 39838379, 39593816, 39734712, 39838378, 39833141, 39547073, 39587775, 39612041, 39371966, 39708246, 39188327, 39708247, 40389462, 39778696, 39807945, 39839488, 39441264, 39778783, 39735525, 39559983, 32591803, 39441287, 39441286);
Date: 2024-11-24 17:22:15 Duration: 10ms
12 193,762 19h55m43s 287ms 3s341ms 370ms 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 #12
Day Hour Count Duration Avg duration Nov 24 11 11,650 1h14m24s 383ms 12 18,897 2h1m1s 384ms 13 14,099 1h29m7s 379ms 14 14,338 1h30m24s 378ms 15 18,898 2h6m14s 400ms 16 13,195 1h24m41s 385ms 17 15,635 1h38m18s 377ms 18 13,057 1h13m35s 338ms 19 15,648 1h30m41s 347ms 20 12,075 1h7m48s 336ms 21 28,696 2h58m52s 374ms 22 17,574 1h40m33s 343ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958025)) AND (("shipping_track"."id" not in (23984110, 23984110)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:36 Duration: 3s341ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958038)) AND (("shipping_track"."id" not in (23984269, 23984269)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:27:02 Duration: 2s650ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2957972)) AND (("shipping_track"."id" not in (23983803, 23983803)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:25:46 Duration: 2s648ms
13 193,073 1m47s 0ms 42ms 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"."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 #13
Day Hour Count Duration Avg duration Nov 24 11 8,199 4s471ms 0ms 12 13,281 8s190ms 0ms 13 13,812 7s376ms 0ms 14 12,942 7s908ms 0ms 15 19,336 11s764ms 0ms 16 12,837 7s411ms 0ms 17 22,996 13s821ms 0ms 18 12,848 7s809ms 0ms 19 8,644 4s675ms 0ms 20 6,655 3s669ms 0ms 21 43,267 21s961ms 0ms 22 18,256 8s589ms 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"."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 (2724196, 2549756, 2378140, 2382059, 2723621, 2613548, 2835496, 2835504, 2213996, 2613103, 2645798, 2618858, 2766850, 2466021, 2728374, 2711269, 2821097, 2722775, 2766857, 2390898, 2723602, 2825287, 2775395, 2595186, 2544275, 2824055, 2144640, 2773475, 2833393, 2835376, 2608929, 2778262, 2778264, 2646325, 2654229, 2539171, 2775372, 2832223, 2780290, 2651126, 2835506, 2864877, 2835492, 2366930, 2277692, 2781007, 2646329, 2536993, 2766137, 2770383, 2770384, 2766864, 2766177, 2771935, 2766868, 2710099, 2765670, 2709489, 2492117, 2549308, 2728762, 2651018, 2766832, 2778034, 2777756, 2596343, 2698152, 2710084, 2713001, 2346075, 2723595, 2728586, 2730157, 2772613, 2646315, 2728807, 2777266, 2772399, 2422639, 2726305, 2727987, 2713255, 2780937, 2766786, 2772547, 2539132, 2457265, 2771750, 2726251, 2722944, 2685342, 2727334, 2457255, 2648543, 2592508, 2710153, 2683938, 1584241, 2714717, 2710162, 2647399, 2710144, 2646326, 2723271, 2724751, 2422827, 2646317, 2382896, 2714933, 2653151, 2651331, 2616101, 2502329, 2651128, 2686130, 2652881, 2426589, 2049975, 2129293, 2649516, 2650272, 2647398, 2387591, 2646012, 2629372, 2646318, 2053580, 2617190, 2653256, 2653125, 2289776, 2542966, 2640494, 2392333, 2291672, 2504546, 2629374, 2607832, 2323930, 2137820, 2645803, 2650648, 2615188, 2629375, 2617193, 2361703, 2453872, 2593785, 2592484, 2503826, 2457264, 2652876, 2609485, 2614941, 2324452, 2544356, 2454025, 2617195, 2607823, 2607826, 2544358, 2549203, 2387309, 2607486, 2454023, 2004025, 2607480, 2457266, 2617188, 2539155, 2607829, 2384325, 2510923, 2539181, 2049984, 2539176, 2544333, 2546883, 2458755, 2545053, 2547803, 2542949, 2545511, 2541248, 2545045, 2550743, 2548195, 2548215, 2382895, 2408080, 2455074, 2388033, 2325618, 2459140, 2458956, 2458960, 2346564, 2385998, 2349035, 2347843);
Date: 2024-11-24 17:21:50 Duration: 42ms
-
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"."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 (2724196, 2549756, 2378140, 2382059, 2723621, 2613548, 2835496, 2835504, 2213996, 2613103, 2645798, 2618858, 2766850, 2466021, 2728374, 2711269, 2821097, 2722775, 2766857, 2390898, 2723602, 2825287, 2775395, 2595186, 2544275, 2824055, 2144640, 2773475, 2833393, 2835376, 2608929, 2778262, 2778264, 2646325, 2654229, 2539171, 2775372, 2832223, 2780290, 2651126, 2835506, 2864877, 2835492, 2366930, 2277692, 2781007, 2646329, 2536993, 2766137, 2770383, 2770384, 2766864, 2766177, 2771935, 2766868, 2710099, 2765670, 2709489, 2390574, 2492117, 2549308, 2728762, 2651018, 2766832, 2778034, 2777756, 2596343, 2698152, 2710084, 2713001, 2346075, 2723595, 2728586, 2730157, 2772613, 2646315, 2728807, 2777266, 2772399, 2422639, 2726305, 2727987, 2713255, 2780937, 2766786, 2772547, 2539132, 2457265, 2771750, 2726251, 2722944, 2685342, 2727334, 2457255, 2648543, 2592508, 2710153, 2683938, 1584241, 2714717, 2710162, 2504508, 2647399, 2710144, 2646326, 2723271, 2724751, 2422827, 2646317, 2382896, 2714933, 2653151, 2651331, 2616101, 2502329, 2651128, 2686130, 2652881, 2426589, 2049975, 2129293, 2649516, 2650272, 2647398, 2387591, 2646012, 2629372, 2646318, 2053580, 2617190, 2653256, 2653125, 2289776, 2542966, 2640494, 2392333, 2291672, 2504546, 2629374, 2607832, 2323930, 2137820, 2645803, 2650648, 2615188, 2629375, 2617193, 2361703, 2453872, 2593785, 2592484, 2503826, 2457264, 2652876, 2609485, 2614941, 2324452, 2544356, 2454025, 2617195, 2607823, 2607826, 2544358, 2549203, 2387309, 2607486, 2454023, 2004025, 2607480, 2457266, 2617188, 2539155, 2607829, 2384325, 2510923, 2539181, 2049984, 2539176, 2544333, 2546883, 2458755, 2545053, 2547803, 2542949, 2545511, 2541248, 2545045, 2550743, 2548195, 2548215, 2382895, 2408080, 2455074, 2388033, 2325618, 2459140, 2458956, 2458960, 2346564, 2385998);
Date: 2024-11-24 17:21:50 Duration: 42ms
-
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"."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 (2724196, 2549756, 2378140, 2382059, 2723621, 2613548, 2835496, 2835504, 2213996, 2613103, 2645798, 2618858, 2766850, 2466021, 2728374, 2711269, 2821097, 2722775, 2766857, 2390898, 2723602, 2825287, 2775395, 2595186, 2544275, 2824055, 2144640, 2773475, 2833393, 2835376, 2608929, 2778262, 2778264, 2646325, 2654229, 2539171, 2775372, 2832223, 2780290, 2651126, 2835506, 2864877, 2835492, 2366930, 2277692, 2781007, 2646329, 2536993, 2766137, 2770383, 2770384, 2766864, 2766177, 2771935, 2766868, 2710099, 2765670, 2709489, 2390574, 2492117, 2549308, 2728762, 2651018, 2766832, 2778034, 2777756, 2596343, 2698152, 2710084, 2713001, 2346075, 2723595, 2728586, 2730157, 2772613, 2646315, 2728807, 2777266, 2772399, 2422639, 2726305, 2727987, 2713255, 2780937, 2766786, 2772547, 2539132, 2457265, 2771750, 2726251, 2722944, 2685342, 2727334, 2457255, 2648543, 2592508, 2710153, 2683938, 1584241, 2714717, 2710162, 2647399, 2710144, 2646326, 2723271, 2724751, 2422827, 2646317, 2382896, 2714933, 2653151, 2651331, 2616101, 2502329, 2651128, 2686130, 2652881, 2426589, 2049975, 2129293, 2649516, 2650272, 2647398, 2387591, 2646012, 2629372, 2646318, 2053580, 2617190, 2653256, 2653125, 2289776, 2542966, 2640494, 2392333, 2291672, 2504546, 2629374, 2607832, 2323930, 2137820, 2645803, 2650648, 2615188, 2629375, 2617193, 2361703, 2453872, 2593785, 2592484, 2503826, 2457264, 2652876, 2609485, 2614941, 2324452, 2544356, 2454025, 2617195, 2607823, 2607826, 2544358, 2549203, 2387309, 2607486, 2454023, 2004025, 2607480, 2457266, 2617188, 2539155, 2607829, 2384325, 2510923, 2539181, 2049984, 2539176, 2544333, 2546883, 2458755, 2545053, 2547803, 2542949, 2545511, 2541248, 2545045, 2550743, 2548195, 2548215, 2382895, 2408080, 2455074, 2388033, 2325618, 2459140, 2458956, 2458960, 2346564, 2385998, 2349035);
Date: 2024-11-24 17:21:50 Duration: 41ms
14 161,387 11s529ms 0ms 1ms 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 #14
Day Hour Count Duration Avg duration Nov 24 11 12,292 957ms 0ms 12 21,918 1s620ms 0ms 13 17,799 1s155ms 0ms 14 15,812 1s44ms 0ms 15 16,966 1s254ms 0ms 16 12,883 905ms 0ms 17 21,801 1s642ms 0ms 18 16,908 1s180ms 0ms 19 8,484 542ms 0ms 20 6,544 426ms 0ms 21 6,363 540ms 0ms 22 3,617 258ms 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: 2024-11-24 17:21:50 Duration: 1ms
-
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: 2024-11-24 17:21:50 Duration: 1ms
-
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: 2024-11-24 17:21:50 Duration: 1ms
15 144,813 52s440ms 0ms 4ms 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 #15
Day Hour Count Duration Avg duration Nov 24 11 9,392 3s462ms 0ms 12 17,574 6s502ms 0ms 13 15,146 5s506ms 0ms 14 13,650 4s921ms 0ms 15 15,074 5s687ms 0ms 16 12,409 4s425ms 0ms 17 20,940 7s498ms 0ms 18 13,668 4s751ms 0ms 19 10,276 3s592ms 0ms 20 6,979 2s371ms 0ms 21 5,745 2s308ms 0ms 22 3,960 1s414ms 0ms -
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id = m.id) WHERE m.model = 'urgent.warehouse' 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 = 1089) OR r.global) ORDER BY r.id;
Date: 2024-11-24 17:25:26 Duration: 4ms
-
SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id = m.id) WHERE m.model = 'cash.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 = 861) OR r.global) ORDER BY r.id;
Date: 2024-11-24 19:27:50 Duration: 2ms
-
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 = 1086) OR r.global) ORDER BY r.id;
Date: 2024-11-24 21:28:36 Duration: 2ms
16 131,115 7h45m28s 148ms 1s482ms 213ms 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 Nov 24 11 5,473 20m13s 221ms 12 8,334 30m55s 222ms 13 10,145 38m47s 229ms 14 6,369 23m1s 216ms 15 13,182 51m11s 233ms 16 13,938 52m42s 226ms 17 14,048 45m49s 195ms 18 2,635 7m19s 166ms 19 6,569 18m38s 170ms 20 8,176 22m37s 166ms 21 38,015 2h21m52s 223ms 22 4,231 12m19s 174ms -
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" = '438569')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:12 Duration: 1s482ms
-
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" = '8978479')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:26:57 Duration: 1s413ms
-
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" = '8779081')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:09 Duration: 1s406ms
17 116,387 1h7m13s 24ms 189ms 34ms 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 #17
Day Hour Count Duration Avg duration Nov 24 11 9,286 5m38s 36ms 12 15,426 9m23s 36ms 13 12,403 7m25s 35ms 14 11,420 6m46s 35ms 15 10,421 6m27s 37ms 16 9,403 5m35s 35ms 17 10,546 6m3s 34ms 18 8,927 4m35s 30ms 19 9,788 5m5s 31ms 20 7,545 3m50s 30ms 21 7,606 4m27s 35ms 22 3,616 1m54s 31ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2903714, 2902554, 2902480, 2900907, 2900879, 2900715, 2887795, 2885208, 2835280, 2755388, 2666942)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:27:43 Duration: 189ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2958030)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:26:55 Duration: 150ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2857829)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:28:12 Duration: 145ms
18 100,087 17s510ms 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 #18
Day Hour Count Duration Avg duration Nov 24 11 6,728 1s186ms 0ms 12 11,848 2s121ms 0ms 13 10,075 1s739ms 0ms 14 9,471 1s629ms 0ms 15 10,932 1s934ms 0ms 16 8,595 1s466ms 0ms 17 13,966 2s614ms 0ms 18 8,660 1s480ms 0ms 19 6,549 1s103ms 0ms 20 4,864 798ms 0ms 21 5,225 917ms 0ms 22 3,174 517ms 0ms -
SELECT 1 FROM res_groups_users_rel WHERE uid = 968 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'base' AND name = 'group_erp_manager' AND model = 'res.groups');
Date: 2024-11-24 19:30:39 Duration: 1ms
-
SELECT 1 FROM res_groups_users_rel WHERE uid = 821 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'base' AND name = 'group_erp_manager' AND model = 'res.groups');
Date: 2024-11-24 11:25:05 Duration: 1ms
-
SELECT 1 FROM res_groups_users_rel WHERE uid = 1079 AND gid IN ( SELECT res_id FROM ir_model_data WHERE module = 'urgent_shipping_policy' AND name = 'group_user_good' AND model = 'res.groups');
Date: 2024-11-24 17:21:50 Duration: 1ms
19 90,018 9s536ms 0ms 14ms 0ms insert into "mail_tracking_value" ("create_date", "create_uid", "field", "field_desc", "field_type", "mail_message_id", "new_value_char", "old_value_char", "tracking_sequence", "write_date", "write_uid") values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) returning "id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Nov 24 11 6,139 732ms 0ms 12 10,608 1s235ms 0ms 13 8,015 880ms 0ms 14 8,863 878ms 0ms 15 8,205 915ms 0ms 16 7,849 807ms 0ms 17 8,762 971ms 0ms 18 8,109 845ms 0ms 19 8,010 737ms 0ms 20 6,384 559ms 0ms 21 6,106 694ms 0ms 22 2,968 277ms 0ms -
INSERT INTO "mail_tracking_value" ("create_date", "create_uid", "field", "field_desc", "field_type", "mail_message_id", "new_value_char", "old_value_char", "tracking_sequence", "write_date", "write_uid") VALUES ('2024-11-24 12:53:54.217917', 874, 7312, 'الحالة', 'selection', 21301333, 'تم استلام العميل', 'تم التوصيل', 100, '2024-11-24 12:53:54.217917', 874) RETURNING "id";
Date: 2024-11-24 13:54:49 Duration: 14ms
-
INSERT INTO "mail_tracking_value" ("create_date", "create_uid", "field", "field_desc", "field_type", "mail_message_id", "new_value_char", "old_value_char", "tracking_sequence", "write_date", "write_uid") VALUES ('2024-11-24 14:33:19.627045', 953, 7312, 'الحالة', 'selection', 21331262, 'في الطريق الي العميل', 'موجلة', 100, '2024-11-24 14:33:19.627045', 953) RETURNING "id";
Date: 2024-11-24 15:33:49 Duration: 14ms
-
INSERT INTO "mail_tracking_value" ("create_date", "create_uid", "field", "field_desc", "field_type", "mail_message_id", "new_value_char", "old_value_char", "tracking_sequence", "write_date", "write_uid") VALUES ('2024-11-24 11:56:42.993797', 969, 7312, 'الحالة', 'selection', 21283448, 'تم استلام العميل', 'في الطريق الي العميل', 100, '2024-11-24 11:56:42.993797', 969) RETURNING "id";
Date: 2024-11-24 12:57:46 Duration: 14ms
20 84,713 26s411ms 0ms 2ms 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 #20
Day Hour Count Duration Avg duration Nov 24 11 1,477 635ms 0ms 12 1,182 580ms 0ms 13 1,063 380ms 0ms 14 3,043 1s85ms 0ms 15 5,342 1s881ms 0ms 16 8,062 2s489ms 0ms 17 11,376 3s626ms 0ms 18 11,263 3s249ms 0ms 19 14,563 4s248ms 0ms 20 12,882 3s582ms 0ms 21 10,711 3s583ms 0ms 22 3,749 1s68ms 0ms -
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 30) AND ("price_list"."to_office_id" = 7)) ORDER BY "price_list"."id";
Date: 2024-11-24 17:22:05 Duration: 2ms
-
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 10) AND ("price_list"."to_office_id" = 79)) ORDER BY "price_list"."id";
Date: 2024-11-24 15:31:21 Duration: 1ms
-
SELECT "price_list".id FROM "price_list" WHERE (("price_list"."from_office_id" = 22) AND ("price_list"."to_office_id" = 48)) ORDER BY "price_list"."id";
Date: 2024-11-24 18:16:13 Duration: 1ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 444ms 4s740ms 3s415ms 232 13m12s select "policy_number".id from "policy_number" where ((("policy_number"."active" = true) 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"."office_id" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) 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"."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 (...)))))))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Nov 24 11 2 7s797ms 3s898ms 12 6 22s871ms 3s811ms 13 15 53s23ms 3s534ms 14 32 1m54s 3s569ms 15 15 53s580ms 3s572ms 16 23 1m16s 3s329ms 17 36 2m3s 3s419ms 18 20 1m10s 3s510ms 19 29 1m28s 3s39ms 20 22 1m11s 3s257ms 21 24 1m25s 3s560ms 22 8 25s783ms 3s222ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (115))))))) 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 (115)))))) OR (("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"."id" in (115)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (115)))))) AND ("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 (115))))))))) 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 (115)))))))) AND ("policy_number"."name"::text ilike '%8%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 17:25:52 Duration: 4s740ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (5))))))) 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 (5)))))) OR (("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"."id" in (5)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5)))))) AND ("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 (5))))))))) 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 (5)))))))) AND ("policy_number"."name"::text ilike '%8882912%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 21:24:35 Duration: 4s539ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) 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 (115))))))) 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 (115)))))) OR (("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"."id" in (115)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (115)))))) AND ("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 (115))))))))) 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 (115)))))))) AND ("policy_number"."name"::text ilike '%833%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2024-11-24 17:25:53 Duration: 4s484ms
2 202ms 2s34ms 961ms 9,462 2h31m35s 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 #2
Day Hour Count Duration Avg duration Nov 24 11 5 5s276ms 1s55ms 12 15 15s692ms 1s46ms 13 65 1m8s 1s61ms 14 334 5m44s 1s30ms 15 509 8m56s 1s54ms 16 1,166 19m46s 1s17ms 17 1,211 20m24s 1s10ms 18 1,479 22m47s 924ms 19 2,035 31m45s 936ms 20 1,157 17m22s 901ms 21 1,020 16m13s 954ms 22 466 7m4s 911ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '9063003')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:26:17 Duration: 2s34ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8994650')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:27:21 Duration: 2s13ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8994646')) 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 (55))))))) 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 (55)))))) 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 (55)))))) 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 (55))))))))) ORDER BY "policy_number"."id";
Date: 2024-11-24 21:27:09 Duration: 1s941ms
3 288ms 2s724ms 376ms 38,695 4h3m6s select "shipping_track".id from "shipping_track" where ("shipping_track"."shipping_id" in (...)) order by "shipping_track"."id";Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Nov 24 11 2,594 17m7s 396ms 12 4,573 30m17s 397ms 13 4,890 31m37s 388ms 14 4,179 26m46s 384ms 15 4,366 29m23s 403ms 16 3,074 19m55s 388ms 17 3,461 21m36s 374ms 18 3,191 17m34s 330ms 19 2,625 14m42s 336ms 20 2,082 11m24s 328ms 21 2,318 14m47s 382ms 22 1,342 7m52s 352ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2899775, 2896700, 2834820, 2774409, 2711261, 2695742, 2630971, 2563630)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:38 Duration: 2s724ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2958030, 2958028, 2958025, 2958022, 2958017, 2958014, 2958010, 2958006, 2957999, 2957993, 2957992, 2957988, 2957983, 2957980, 2957976, 2957973, 2957970, 2957967, 2957963)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:58 Duration: 2s623ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2883732, 2883665, 2854088)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:25:47 Duration: 2s480ms
4 287ms 3s341ms 370ms 193,762 19h55m43s 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 #4
Day Hour Count Duration Avg duration Nov 24 11 11,650 1h14m24s 383ms 12 18,897 2h1m1s 384ms 13 14,099 1h29m7s 379ms 14 14,338 1h30m24s 378ms 15 18,898 2h6m14s 400ms 16 13,195 1h24m41s 385ms 17 15,635 1h38m18s 377ms 18 13,057 1h13m35s 338ms 19 15,648 1h30m41s 347ms 20 12,075 1h7m48s 336ms 21 28,696 2h58m52s 374ms 22 17,574 1h40m33s 343ms -
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958025)) AND (("shipping_track"."id" not in (23984110, 23984110)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:26:36 Duration: 3s341ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2958038)) AND (("shipping_track"."id" not in (23984269, 23984269)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:27:02 Duration: 2s650ms
-
SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2957972)) AND (("shipping_track"."id" not in (23983803, 23983803)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id";
Date: 2024-11-24 21:25:46 Duration: 2s648ms
5 205ms 850ms 301ms 3,013 15m9s 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" = ?) and ((((("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 "collection_policy"."id";Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Nov 24 11 288 1m27s 304ms 12 408 2m5s 307ms 13 58 17s106ms 294ms 14 451 2m12s 294ms 15 596 3m10s 319ms 16 352 1m45s 300ms 17 860 4m10s 291ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8553735') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:15 Duration: 850ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8490028') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:13 Duration: 521ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '452420') AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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 "collection_policy"."id";
Date: 2024-11-24 15:31:12 Duration: 498ms
6 215ms 941ms 293ms 16,408 1h20m9s 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 #6
Day Hour Count Duration Avg duration Nov 24 11 2,036 10m17s 303ms 12 2,567 13m2s 304ms 13 1,501 7m25s 296ms 14 2,179 10m50s 298ms 15 2,259 11m40s 310ms 16 1,895 9m25s 298ms 17 2,115 9m41s 274ms 18 376 1m38s 261ms 19 882 3m40s 249ms 20 516 2m4s 241ms 21 82 22s41ms 268ms -
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" = '8336724')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 17:59:46 Duration: 941ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8674452')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:31:24 Duration: 527ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."type" = 'from_receiver') 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" = '8564557')))) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:31:17 Duration: 469ms
7 17ms 2s553ms 260ms 2,367 10m17s select count(*) from ( select from "cash_policy" left join "policy_number" AS "cash_policy__policy_id" on ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") where (("cash_policy"."active" = true) and (("cash_policy"."state" != ?) or "cash_policy"."state" is null)) and ((("cash_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("cash_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("cash_policy__policy_id"."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)))))) limit ?) t;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Nov 24 11 215 54s169ms 251ms 12 390 1m30s 232ms 13 379 1m36s 255ms 14 352 1m27s 248ms 15 277 1m22s 299ms 16 187 1m 323ms 17 130 35s115ms 270ms 18 144 42s864ms 297ms 19 70 20s802ms 297ms 20 143 23s416ms 163ms 21 44 14s222ms 323ms 22 36 8s628ms 239ms -
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:30:57 Duration: 2s553ms
-
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (29))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:26:06 Duration: 973ms
-
SELECT COUNT(*) FROM ( SELECT FROM "cash_policy" LEFT JOIN "policy_number" AS "cash_policy__policy_id" ON ("cash_policy"."policy_id" = "cash_policy__policy_id"."id") WHERE (("cash_policy"."active" = true) AND (("cash_policy"."state" != 'cancel') OR "cash_policy"."state" IS NULL)) AND ((("cash_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (5))))) OR ("cash_policy__policy_id"."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)))))) LIMIT 10001) t;
Date: 2024-11-24 21:26:59 Duration: 878ms
8 191ms 1s851ms 260ms 10,703 46m24s 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 #8
Day Hour Count Duration Avg duration Nov 24 11 166 48s314ms 291ms 12 13 3s707ms 285ms 13 130 36s15ms 277ms 14 234 1m11s 303ms 15 636 3m3s 288ms 16 758 3m35s 284ms 17 1,627 7m43s 284ms 18 1,325 5m26s 246ms 19 1,620 6m28s 239ms 20 2,075 8m1s 232ms 21 1,672 7m41s 275ms 22 447 1m44s 233ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8387371')) 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: 2024-11-24 21:25:44 Duration: 1s851ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8919427')) 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: 2024-11-24 21:26:06 Duration: 1s695ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."name" = '8919095')) 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: 2024-11-24 21:26:31 Duration: 1s542ms
9 89ms 964ms 235ms 39,822 2h36m35s 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 #9
Day Hour Count Duration Avg duration Nov 24 11 338 1m25s 253ms 12 54 11s118ms 205ms 13 378 1m36s 256ms 14 1,102 4m54s 266ms 15 2,268 10m5s 266ms 16 3,780 14m57s 237ms 17 5,610 23m21s 249ms 18 5,542 20m29s 221ms 19 7,253 27m14s 225ms 20 6,367 23m17s 219ms 21 5,318 21m49s 246ms 22 1,812 7m12s 238ms -
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'عبدالرحمن')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 21:28:39 Duration: 964ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'محمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 21:28:39 Duration: 947ms
-
SELECT "urgent_customer".id FROM "urgent_customer" WHERE (("urgent_customer"."active" = true) AND ("urgent_customer"."name" = 'احمد')) ORDER BY "urgent_customer"."id" LIMIT 1;
Date: 2024-11-24 17:08:00 Duration: 829ms
10 192ms 293ms 218ms 2,887 10m32s 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 true order by "shipping_policy"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Nov 24 12 1,886 6m52s 218ms 13 949 3m28s 219ms 15 15 3s440ms 229ms 16 37 7s992ms 216ms -
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" = '7677490')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:43 Duration: 293ms
-
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" = '7677485')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:40 Duration: 283ms
-
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" = '7677484')) AND TRUE ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 13:16:39 Duration: 283ms
11 152ms 768ms 217ms 3,198 11m34s 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"."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 #11
Day Hour Count Duration Avg duration Nov 24 11 230 50s476ms 219ms 12 459 1m41s 220ms 13 139 29s915ms 215ms 14 397 1m25s 215ms 15 724 2m45s 229ms 16 352 1m16s 215ms 17 897 3m5s 206ms -
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" = '449658')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:09 Duration: 768ms
-
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" = '8490028')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:13 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" = '452420')) AND ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 127, 113, 44, 10, 2, 36, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 70, 61, 46, 11, 77, 26, 62, 51, 55, 30, 67, 66, 79, 68, 95, 128, 83, 112))))) 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: 2024-11-24 15:31:12 Duration: 382ms
12 153ms 512ms 214ms 4,470 15m57s 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 #12
Day Hour Count Duration Avg duration Nov 24 11 271 1m 222ms 12 785 2m52s 220ms 13 1,149 4m7s 215ms 14 854 3m1s 212ms 15 689 2m39s 232ms 16 215 46s814ms 217ms 17 19 4s6ms 210ms 18 27 4s478ms 165ms 19 15 2s551ms 170ms 20 152 24s728ms 162ms 21 213 39s309ms 184ms 22 81 14s129ms 174ms -
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" = '7862010')) 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: 2024-11-24 15:31:17 Duration: 512ms
-
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" = '8734187')) 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: 2024-11-24 15:31:25 Duration: 370ms
-
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" = '8868460')) 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: 2024-11-24 15:31:22 Duration: 367ms
13 148ms 1s482ms 213ms 131,115 7h45m28s 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 Nov 24 11 5,473 20m13s 221ms 12 8,334 30m55s 222ms 13 10,145 38m47s 229ms 14 6,369 23m1s 216ms 15 13,182 51m11s 233ms 16 13,938 52m42s 226ms 17 14,048 45m49s 195ms 18 2,635 7m19s 166ms 19 6,569 18m38s 170ms 20 8,176 22m37s 166ms 21 38,015 2h21m52s 223ms 22 4,231 12m19s 174ms -
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" = '438569')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:12 Duration: 1s482ms
-
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" = '8978479')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:26:57 Duration: 1s413ms
-
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" = '8779081')) ORDER BY "shipping_policy"."id" DESC;
Date: 2024-11-24 21:27:09 Duration: 1s406ms
14 118ms 1s149ms 149ms 4,794 11m57s 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 #14
Day Hour Count Duration Avg duration Nov 24 11 770 1m58s 153ms 12 1,025 2m36s 152ms 13 707 1m45s 149ms 14 737 1m47s 145ms 15 344 52s885ms 153ms 16 287 42s425ms 147ms 17 340 49s250ms 144ms 18 231 31s456ms 136ms 19 121 16s208ms 133ms 20 119 15s938ms 133ms 21 92 18s942ms 205ms 22 21 2s961ms 141ms -
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:30 Duration: 1s149ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:24 Duration: 1s66ms
-
SELECT "res_partner".id FROM "res_partner" WHERE (("res_partner"."active" = true) AND ("res_partner"."office_id" = 11)) 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: 2024-11-24 21:26:19 Duration: 957ms
15 64ms 416ms 90ms 18,275 27m28s select "cash_track".id from "cash_track" where ("cash_track"."cash_policy_id" in (...)) order by "cash_track"."id";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Nov 24 11 174 17s361ms 99ms 12 331 32s494ms 98ms 13 284 27s459ms 96ms 14 338 32s723ms 96ms 15 256 25s480ms 99ms 16 112 10s345ms 92ms 17 9,969 15m15s 91ms 18 6,539 9m24s 86ms 19 118 9s571ms 81ms 20 68 5s474ms 80ms 21 44 4s40ms 91ms 22 42 3s732ms 88ms -
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 17:59:45 Duration: 416ms
-
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 17:59:43 Duration: 364ms
-
SELECT "cash_track".id FROM "cash_track" WHERE ("cash_track"."cash_policy_id" in (7609854)) ORDER BY "cash_track"."id";
Date: 2024-11-24 18:10:25 Duration: 222ms
16 62ms 542ms 86ms 17,914 25m42s 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 #16
Day Hour Count Duration Avg duration Nov 24 11 1,279 1m52s 87ms 12 2,109 3m7s 88ms 13 2,343 3m24s 87ms 14 3,008 4m18s 85ms 15 3,383 5m3s 89ms 16 1,004 1m29s 88ms 17 1,511 2m10s 86ms 18 662 51s323ms 77ms 19 714 55s814ms 78ms 20 1,244 1m33s 74ms 21 426 38s115ms 89ms 22 231 18s413ms 79ms -
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7703571)) AND (("cash_track"."id" not in (4859762)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 21:30:23 Duration: 542ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7701222)) AND (("cash_track"."id" not in (4836988)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 15:31:42 Duration: 498ms
-
SELECT "cash_track".id FROM "cash_track" WHERE (("cash_track"."cash_policy_id" in (7703557)) AND (("cash_track"."id" not in (4859708)) OR "cash_track"."id" IS NULL)) ORDER BY "cash_track"."id";
Date: 2024-11-24 21:25:56 Duration: 229ms
17 32ms 190ms 41ms 42,057 29m20s 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 #17
Day Hour Count Duration Avg duration Nov 24 11 3,106 2m9s 41ms 12 6,594 4m37s 42ms 13 4,452 3m4s 41ms 14 4,339 2m59s 41ms 15 5,175 3m40s 42ms 16 4,955 3m25s 41ms 17 6,628 4m44s 42ms 18 2,330 1m36s 41ms 19 2,057 1m23s 40ms 20 1,319 52s577ms 39ms 21 1,008 42s489ms 42ms 22 94 4s69ms 43ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2883752) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:26:59 Duration: 190ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2888751) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:30:28 Duration: 175ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE (("collection_policy"."shipping_id" = 2852727) AND ("collection_policy"."state" = 'confirm')) ORDER BY "collection_policy"."id";
Date: 2024-11-24 21:26:00 Duration: 173ms
18 28ms 68ms 37ms 17,483 10m52s select "collection_policy".id from "collection_policy" where ("collection_policy"."shipping_id" = ?) order by "collection_policy"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Nov 24 11 1,669 1m2s 37ms 12 3,067 1m53s 36ms 13 1,708 1m3s 37ms 14 2,116 1m17s 36ms 15 2,262 1m25s 37ms 16 2,009 1m15s 37ms 17 2,943 1m53s 38ms 18 429 15s801ms 36ms 19 681 25s56ms 36ms 20 509 18s31ms 35ms 21 90 3s104ms 34ms -
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2481908) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:32:05 Duration: 68ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2471355) ORDER BY "collection_policy"."id";
Date: 2024-11-24 15:32:05 Duration: 67ms
-
SELECT "collection_policy".id FROM "collection_policy" WHERE ("collection_policy"."shipping_id" = 2458129) ORDER BY "collection_policy"."id";
Date: 2024-11-24 17:59:32 Duration: 65ms
19 24ms 189ms 34ms 116,387 1h7m13s 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 #19
Day Hour Count Duration Avg duration Nov 24 11 9,286 5m38s 36ms 12 15,426 9m23s 36ms 13 12,403 7m25s 35ms 14 11,420 6m46s 35ms 15 10,421 6m27s 37ms 16 9,403 5m35s 35ms 17 10,546 6m3s 34ms 18 8,927 4m35s 30ms 19 9,788 5m5s 31ms 20 7,545 3m50s 30ms 21 7,606 4m27s 35ms 22 3,616 1m54s 31ms -
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2903714, 2902554, 2902480, 2900907, 2900879, 2900715, 2887795, 2885208, 2835280, 2755388, 2666942)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:27:43 Duration: 189ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2958030)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:26:55 Duration: 150ms
-
SELECT "shipping_policy_items".id FROM "shipping_policy_items" WHERE ("shipping_policy_items"."shipping_policy_id" in (2857829)) ORDER BY "shipping_policy_items"."id" DESC;
Date: 2024-11-24 21:28:12 Duration: 145ms
20 10ms 45ms 17ms 28,815 8m26s select "cash_policy_line".id from "cash_policy_line" where ("cash_policy_line"."cash_policy_id" in (...)) order by "cash_policy_line"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Nov 24 11 836 14s160ms 16ms 12 1,052 17s610ms 16ms 13 1,405 23s798ms 16ms 14 2,317 37s45ms 15ms 15 2,558 43s854ms 17ms 16 1,088 18s11ms 16ms 17 10,932 3m23s 18ms 18 6,606 1m57s 17ms 19 684 10s585ms 15ms 20 1,102 16s441ms 14ms 21 106 1s855ms 17ms 22 129 2s167ms 16ms -
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7687910)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 15:31:13 Duration: 45ms
-
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7654200)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 21:26:05 Duration: 44ms
-
SELECT "cash_policy_line".id FROM "cash_policy_line" WHERE ("cash_policy_line"."cash_policy_id" in (7609854)) ORDER BY "cash_policy_line"."id" DESC;
Date: 2024-11-24 17:59:43 Duration: 43ms
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
- 12,558,957 Log entries
Events distribution
Key values
- 0 PANIC entries
- 156 FATAL entries
- 153 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 119 Max number of times the same event was reported
- 309 Total events found
Rank Times reported Error 1 119 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Nov 24 11 11 12 5 13 10 14 1 15 22 16 12 17 9 18 1 19 7 20 2 21 26 22 13 - 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 "archive_date" = '2024-11-24', "state" = 'archive', "write_date" = '2024-11-24 10:24:07.076602', "write_uid" = 1078 WHERE id IN (2506707)
Date: 2024-11-24 11:24:12
Statement: UPDATE "shipping_policy" SET "review_date" = '2024-11-24', "review_state" = 'reviewed', "write_date" = '2024-11-24 10:26:26.975556', "write_uid" = 1081 WHERE id IN (2542087, 2542097, 2542099, 2546275, 2546269, 2546254, 2546243, 2546239, 2545819, 2545815, 2545814, 2545794, 2545793, 2545787, 2545786, 2545785, 2545780, 2545783, 2546296, 2546290, 2545423, 2545790, 2531711, 2542153, 2542159, 2541974, 2545400, 2545403, 2542076, 2542083, 2542085, 2545445, 2545373, 2545380, 2545394, 2545364, 2545382, 2541986, 2542027, 2542012, 2545792, 2531692, 2542010, 2542147, 2545784, 2506978, 2545796, 2545410, 2545392, 2542112, 2546267, 2542077, 2546280, 2546250, 2545395, 2546260, 2546284, 2545417)
Date: 2024-11-24 11:26:50
Statement: update shipping_policy set count_search=3 where id=2305864
Date: 2024-11-24 11:28:36
2 84 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #2
Day Hour Count Nov 24 17 84 - 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: 2024-11-24 17:20:01
Statement: SELECT "shipping_track".id FROM "shipping_track" WHERE (("shipping_track"."shipping_id" in (2946012)) AND (("shipping_track"."id" not in (23923930, 23923930)) OR "shipping_track"."id" IS NULL)) ORDER BY "shipping_track"."id"
Date: 2024-11-24 17:20:01
3 29 FATAL: database "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Nov 24 12 7 13 3 14 2 15 2 16 5 18 2 19 3 20 1 22 4 4 28 FATAL: terminating background worker "..." due to administrator command
Times Reported Most Frequent Error / Event #4
Day Hour Count Nov 24 17 28 - FATAL: terminating background worker "parallel worker" due to administrator command
- FATAL: terminating background worker "parallel worker" due to administrator command
- FATAL: terminating background worker "parallel worker" due to administrator command
Statement: 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" = '8984904')) ORDER BY "shipping_policy"."id" DESC
Date: 2024-11-24 17:20:01
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2024-11-24 17:20:01
Statement: 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" = '8709467')) ORDER BY "shipping_policy"."id" DESC
Date: 2024-11-24 17:20:01
5 9 FATAL: password authentication failed for user "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Nov 24 11 3 19 3 22 3 - 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: 2024-11-24 11:46:41
6 9 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #6
Day Hour Count Nov 24 11 1 12 2 13 1 14 4 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 (5393201, null, 827, 827, null, 0000000039, null, null, t, 2024-11-24 10:46:23.07037, 2024-11-24 10:46:23.07037, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2024-11-24 10:46:23.070370', 827, '0000000039', '2024-11-24 10:46:23.070370', 827) RETURNING "id"Date: 2024-11-24 11:46:23
Detail: Failing row contains (5393215, null, 827, 827, null, 01007142211, null, null, t, 2024-11-24 11:20:30.659905, 2024-11-24 11:20:30.659905, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2024-11-24 11:20:30.659905', 827, '01007142211', '2024-11-24 11:20:30.659905', 827) RETURNING "id"Date: 2024-11-24 12:20:30
Detail: Failing row contains (5393221, null, 827, 827, null, 0100181998, null, null, t, 2024-11-24 11:39:23.868202, 2024-11-24 11:39:23.868202, null, null).
Statement: INSERT INTO "urgent_customer" ("active", "create_date", "create_uid", "phone", "write_date", "write_uid") VALUES (true, '2024-11-24 11:39:23.868202', 827, '0100181998', '2024-11-24 11:39:23.868202', 827) RETURNING "id"Date: 2024-11-24 12:39:23
7 7 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Nov 24 12 2 13 1 21 4 - ERROR: syntax error at or near ")" at character 159
- 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 cash_policy as po inner join policy_number as policy on policy.id=po.policy_id where policy.name in ('8691220',)
Date: 2024-11-24 12:21:17
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 ('8858000',)
Date: 2024-11-24 12:21:22
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 ('9031820',)
Date: 2024-11-24 13:13:08
8 5 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #8
Day Hour Count Nov 24 11 4 17 1 9 5 ERROR: terminating background worker "..." due to administrator command
Times Reported Most Frequent Error / Event #9
Day Hour Count Nov 24 17 5 - ERROR: terminating background worker "parallel worker" due to administrator command
- ERROR: terminating background worker "parallel worker" due to administrator command
- ERROR: terminating background worker "parallel worker" due to administrator command
Context: parallel worker
Statement: 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" = '8984904')) ORDER BY "shipping_policy"."id" DESCDate: 2024-11-24 17:20:01
Context: parallel worker
Statement: 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" = '8709467')) ORDER BY "shipping_policy"."id" DESCDate: 2024-11-24 17:20:01
Context: parallel worker
Statement: SELECT "shipping_track".id FROM "shipping_track" WHERE ("shipping_track"."shipping_id" in (2677899)) ORDER BY "shipping_track"."id"Date: 2024-11-24 17:20:01
10 3 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #10
Day Hour Count Nov 24 12 1 14 1 15 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 2403922 waits for ShareLock on transaction 208872; blocked by process 2403836. Process 2403836 waits for ShareLock on transaction 208759; blocked by process 2403922. Process 2403922: update shipping_policy set count_search=2 where id=2454870 Process 2403836: update shipping_policy set count_search=1 where id=2454880
Context: while updating tuple (50811,13) in relation "shipping_policy"
Hint: See server log for query details.
Statement: update shipping_policy set count_search=2 where id=2454870Date: 2024-11-24 12:43:50
Detail: Process 2403745 waits for ShareLock on transaction 218326; blocked by process 2403776. Process 2403776 waits for ShareLock on transaction 218314; blocked by process 2403745. Process 2403745: update shipping_policy set count_search=2 where id=2167550 Process 2403776: UPDATE "shipping_policy" SET "state_collection" = 'confirm', "write_date" = '2024-11-24 13:33:18.078571', "write_uid" = 1113 WHERE id IN (2459966, 2456142, 2455459, 2455445, 2455440, 2455422, 2455381, 2453848, 2453770, 2451388, 2450989, 2449384, 2447568, 2446762, 2445367, 2445019, 2444964, 2444265, 2441752, 2437880, 2437125, 2435741, 2435206, 2434552, 2432681, 2432640, 2431182, 2430692, 2429299, 2420833, 2420815, 2418098, 2417998, 2416520, 2415806, 2415020, 2411664, 2410080, 2408118, 2407726, 2405170, 2399871, 2398426, 2395607, 2384899, 2381762, 2374179, 2367939, 2363870, 2360353, 2358828, 2355336, 2321306, 2315792, 2220383, 2167550, 2164764)
Context: while updating tuple (43772,24) in relation "shipping_policy"
Hint: See server log for query details.
Statement: update shipping_policy set count_search=2 where id=2167550Date: 2024-11-24 14:33:24
Detail: Process 2403709 waits for ShareLock on transaction 220656; blocked by process 2403692. Process 2403692 waits for ShareLock on transaction 220663; blocked by process 2403709. Process 2403709: update shipping_policy set count_search=6 where id=2482828 Process 2403692: update shipping_policy set count_search=5 where id=2482787
Context: while updating tuple (55507,29) in relation "shipping_policy"
Hint: See server log for query details.
Statement: update shipping_policy set count_search=6 where id=2482828Date: 2024-11-24 15:05:06
11 3 LOG: could not send data to client: Connection reset by peer
Times Reported Most Frequent Error / Event #11
Day Hour Count Nov 24 17 3 12 2 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #12
Day Hour Count Nov 24 14 1 15 1 13 2 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #13
Day Hour Count Nov 24 14 1 15 1 14 2 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #14
Day Hour Count Nov 24 14 1 15 1 15 2 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #15
Day Hour Count Nov 24 17 2