-
Global information
- Generated on Wed Jul 22 23:45:04 2026
- Log file: /var/lib/pgsql/16/data/log/postgresql.log
- Parsed 15,114 log entries in 2s
- Log start from 2026-07-22 02:00:10 to 2026-07-23 01:44:41
-
Overview
Global Stats
- 152 Number of unique normalized queries
- 1,127 Number of queries
- 2h10m57s Total query duration
- 2026-07-22 02:24:45 First query
- 2026-07-23 01:06:03 Last query
- 4 queries/s at 2026-07-22 20:51:34 Query peak
- 2h10m57s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2h10m57s Execute total duration
- 2,890 Number of events
- 11 Number of unique normalized events
- 2,607 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
- 1,127 Average queries per session
- 2h10m57s 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
- 4 queries/s Query Peak
- 2026-07-22 20:51:34 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-22 20:51:34 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-22 08:07:03 Date
Queries duration
Key values
- 2h10m57s 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) Jul 22 02 41 0ms 8s566ms 4s890ms 13s711ms 24s521ms 59s83ms 03 6 0ms 8s923ms 5s111ms 0ms 3s222ms 20s852ms 04 1 0ms 18s318ms 18s318ms 0ms 0ms 18s318ms 05 0 0ms 0ms 0ms 0ms 0ms 0ms 06 10 0ms 5s670ms 5s53ms 0ms 5s239ms 35s331ms 07 1 0ms 4s488ms 4s488ms 0ms 0ms 4s488ms 08 106 0ms 12m52s 26s574ms 1m29s 5m53s 12m56s 09 14 0ms 7s845ms 3s757ms 3s321ms 3s814ms 14s677ms 10 26 0ms 4s142ms 3s406ms 6s283ms 6s771ms 13s882ms 11 42 0ms 9s757ms 4s197ms 7s378ms 13s905ms 28s715ms 12 50 0ms 11s643ms 5s100ms 13s118ms 22s185ms 38s747ms 13 60 0ms 11s466ms 4s124ms 14s569ms 16s832ms 21s935ms 14 50 0ms 9s424ms 4s153ms 11s102ms 12s810ms 17s466ms 15 87 0ms 10s960ms 5s170ms 18s784ms 33s770ms 2m9s 16 58 0ms 10s24ms 5s137ms 16s812ms 42s310ms 43s693ms 17 43 0ms 12s300ms 4s949ms 11s922ms 28s539ms 34s765ms 18 116 0ms 19s614ms 4s817ms 24s768ms 43s512ms 58s255ms 19 69 0ms 8s693ms 4s168ms 17s851ms 23s597ms 52s28ms 20 185 0ms 12s983ms 6s78ms 1m16s 1m19s 3m14s 21 51 0ms 9s348ms 4s440ms 14s657ms 24s787ms 52s474ms 22 43 0ms 11s934ms 6s254ms 12s106ms 24s807ms 42s821ms 23 33 0ms 12s227ms 3s920ms 12s227ms 13s530ms 21s539ms Jul 23 00 26 0ms 9s436ms 4s196ms 6s790ms 17s921ms 33s282ms 01 9 0ms 9s549ms 4s767ms 3s505ms 3s532ms 19s31ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 22 02 41 0 4s890ms 0ms 13s711ms 43s470ms 03 6 0 5s111ms 0ms 0ms 3s420ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 10 0 5s53ms 0ms 0ms 5s394ms 07 1 0 4s488ms 0ms 0ms 0ms 08 76 30 26s574ms 56s126ms 1m29s 6m4s 09 14 0 3s757ms 0ms 3s321ms 10s878ms 10 26 0 3s406ms 3s430ms 6s283ms 6s904ms 11 42 0 4s197ms 3s671ms 7s378ms 25s941ms 12 50 0 5s100ms 6s809ms 13s118ms 27s840ms 13 60 0 4s124ms 7s174ms 14s569ms 18s327ms 14 50 0 4s153ms 7s293ms 11s102ms 13s59ms 15 87 0 5s170ms 11s864ms 18s784ms 35s200ms 16 58 0 5s137ms 3s837ms 16s812ms 42s818ms 17 43 0 4s949ms 3s690ms 11s922ms 29s211ms 18 110 0 4s744ms 18s147ms 24s768ms 47s534ms 19 69 0 4s168ms 7s36ms 17s851ms 34s969ms 20 185 0 6s78ms 28s271ms 1m16s 1m25s 21 51 0 4s440ms 6s542ms 14s657ms 30s448ms 22 43 0 6s254ms 10s593ms 12s106ms 27s424ms 23 33 0 3s920ms 3s516ms 12s227ms 21s339ms Jul 23 00 26 0 4s196ms 0ms 6s790ms 21s930ms 01 9 0 4s767ms 0ms 3s505ms 19s31ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 22 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 1 0 0 18s318ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 1 5 0 6s168ms 0ms 0ms 7s45ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Jul 23 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 22 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Jul 23 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% Day Hour Count Average / Second Jul 22 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Jul 23 00 0 0.00/s 01 0 0.00/s Day Hour Count Average Duration Average idle time Jul 22 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms Jul 23 00 0 0ms 0ms 01 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
- 291,928 buffers Checkpoint Peak
- 2026-07-22 04:39:40 Date
- 270.144 seconds Highest write time
- 0.015 seconds Sync time
Checkpoints Wal files
Key values
- 128 files Wal files usage Peak
- 2026-07-22 04:39:40 Date
Checkpoints distance
Key values
- 4,087.32 Mo Distance Peak
- 2026-07-22 04:39:40 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 22 02 70,039 2,969.021s 0.026s 2,969.083s 03 78,096 3,239.541s 0.024s 3,239.615s 04 365,657 3,222.552s 0.031s 3,222.665s 05 62,995 2,969.185s 0.034s 2,969.27s 06 33,378 2,180.553s 0.022s 2,180.605s 07 54,128 2,627.408s 0.038s 2,627.483s 08 71,177 2,960.205s 0.04s 2,960.288s 09 131,653 3,239.554s 0.036s 3,239.647s 10 205,099 3,239.576s 0.04s 3,239.674s 11 274,850 2,969.721s 0.044s 2,969.841s 12 251,741 3,239.589s 0.04s 3,239.687s 13 205,987 3,239.498s 0.044s 3,239.606s 14 182,802 2,969.714s 0.043s 2,969.813s 15 178,134 3,239.532s 0.044s 3,239.63s 16 185,344 3,239.471s 0.042s 3,239.567s 17 203,716 2,969.804s 0.057s 2,969.92s 18 429,005 3,239.54s 0.064s 3,239.69s 19 227,872 3,239.532s 0.047s 3,239.642s 20 221,797 2,969.681s 0.052s 2,969.792s 21 153,297 3,239.53s 0.043s 3,239.632s 22 209,396 3,239.519s 0.035s 3,239.605s 23 174,105 2,969.23s 0.058s 2,969.34s Jul 23 00 129,353 3,239.586s 0.04s 3,239.67s 01 88,901 2,429.687s 0.024s 2,429.746s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 22 02 0 0 29 2,643 0.002s 0.011s 03 0 0 32 2,631 0.002s 0.012s 04 0 7 156 2,268 0.002s 0.012s 05 0 7 19 1,877 0.006s 0.012s 06 0 0 14 1,344 0.002s 0.012s 07 0 0 22 1,793 0.014s 0.012s 08 0 0 25 2,478 0.008s 0.012s 09 0 0 55 3,453 0.002s 0.012s 10 0 0 88 4,102 0.002s 0.012s 11 0 0 112 4,231 0.004s 0.012s 12 0 0 107 4,290 0.002s 0.012s 13 0 0 84 4,311 0.002s 0.012s 14 0 0 70 4,288 0.005s 0.012s 15 0 0 70 4,307 0.002s 0.012s 16 0 0 76 4,443 0.004s 0.012s 17 0 0 85 4,379 0.006s 0.012s 18 0 0 193 4,832 0.005s 0.012s 19 0 0 97 4,529 0.002s 0.012s 20 0 0 96 4,595 0.006s 0.012s 21 0 0 65 4,299 0.002s 0.012s 22 0 0 88 4,232 0.002s 0.012s 23 0 0 73 4,158 0.006s 0.012s Jul 23 00 0 0 56 3,786 0.002s 0.012s 01 0 0 39 2,605 0.002s 0.009s Day Hour Count Avg time (sec) Jul 22 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Jul 23 00 0 0s 01 0 0s Day Hour Mean distance Mean estimate Jul 22 02 42,980.27 kB 62,970.27 kB 03 44,205.83 kB 76,401.25 kB 04 222,722.50 kB 755,065.83 kB 05 34,465.75 kB 147,320.92 kB 06 19,224.33 kB 40,555.58 kB 07 30,559.08 kB 46,265.25 kB 08 33,796.08 kB 45,432.08 kB 09 75,869.50 kB 82,494.50 kB 10 119,305.67 kB 132,266.67 kB 11 152,820.83 kB 184,118.08 kB 12 146,757.00 kB 177,197.00 kB 13 114,998.75 kB 148,296.50 kB 14 94,904.58 kB 118,327.67 kB 15 95,002.08 kB 122,125.58 kB 16 103,972.25 kB 118,177.33 kB 17 117,076.75 kB 138,185.92 kB 18 263,364.50 kB 908,679.83 kB 19 132,157.25 kB 432,823.92 kB 20 130,559.42 kB 157,622.92 kB 21 88,575.92 kB 149,439.75 kB 22 120,103.25 kB 194,397.75 kB 23 100,800.50 kB 138,220.42 kB Jul 23 00 76,283.17 kB 110,181.00 kB 01 70,208.00 kB 92,558.00 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 Jul 22 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 Jul 23 00 0 0 0 01 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
Vacuum throughput per table
Key values
- unknown (0) Max CPU elapsed for vacuum on database
- unknown (0 ms) Max I/O read time for vacuum on database
- unknown (0 ms) Max I/O write time for vacuum on database
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 Jul 22 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 Jul 23 00 0 0 01 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
- 1,090 Total read queries
- 37 Total write queries
Queries by database
Key values
- unknown Main database
- 1,127 Requests
- 2h10m57s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 1,127 Requests
User Request type Count Duration unknown Total 1,127 2h10m57s copy to 30 38m40s delete 5 17s394ms select 1,090 1h31m21s update 2 37s932ms Duration by user
Key values
- 2h10m57s (unknown) Main time consuming user
User Request type Count Duration unknown Total 1,127 2h10m57s copy to 30 38m40s delete 5 17s394ms select 1,090 1h31m21s update 2 37s932ms Queries by host
Key values
- unknown Main host
- 1,127 Requests
- 2h10m57s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 1,127 Requests
- 2h10m57s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-22 16:11:37 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 1,067 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 12m52s COPY public.mail_message (id, parent_id, res_id, subtype_id, mail_activity_type_id, author_id, author_guest_id, mail_server_id, create_uid, write_uid, subject, model, record_name, message_type, email_from, message_id, reply_to, email_layout_xmlid, body, is_internal, reply_to_force_new, email_add_signature, date, create_date, write_date) TO stdout;[ Date: 2026-07-22 08:23:42 ]
2 5m53s COPY public.mail_tracking_value (id, field, old_value_integer, new_value_integer, currency_id, mail_message_id, tracking_sequence, create_uid, write_uid, field_desc, field_type, old_value_char, new_value_char, old_value_text, new_value_text, old_value_datetime, new_value_datetime, create_date, write_date, old_value_float, old_value_monetary, new_value_float, new_value_monetary) TO stdout;[ Date: 2026-07-22 08:29:40 ]
3 5m16s COPY public.shipping_track (id, office_id, state_id, warehouse_id, next_office_id, next_warehouse_id, car_id, delegate_id, driver_id, user_id, shipping_id, cash_policy_id, create_uid, write_uid, state, receive_man_id_no, receive_man_id, action_date, change_date, create_date, write_date) TO stdout;[ Date: 2026-07-22 08:41:08 ]
4 3m47s COPY public.shipping_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, office_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, cash_policy_id, last_driver, last_office, last_car, last_office_warehouse, last_warehouse, destination_office, total_no_items, cancel_shipping_policy, create_uid, write_uid, search_name, name, pol_name, state, review_state, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, return_reason, wating_reason, scan_code, destination_type, state_collection, paid_by_customer, last_action, confirm_date, client_date, archive_date, cancel_date, return_date, wating_date, create_date, active, cash, cheques, total_collection_amount, new_destination_button, edit_cash_button, create_cash_policy_button, client_delivery_button, return_button, delegate_button, old_policy, review_date, write_date, total_amount_cash_lines, cash_amount, collection_amount_sender, collection_amount_receive, total_shipping_price, v_10_id, driver_id, delegate_id, out_date, attachment_date, count_search, notes, return_before, from_poilcy, x_from_poilcy, before_office_id, policy_name, x_review_date, state_id, attachment_user, d_date, d_unlink_delete, zero_date_change, zero_date_change_user, is_change_cash_price, transfer_date, is_imported, client_delivery_user, cash_amount_written, total_shipping_price_written, review_state_department, review_date_department, in_office_date, x_state_hold, x_date_sales, delivery_method_id, x_is_color, x_sales_move_date, x_return_office_id, privous_last_office, privous_last_warehouse, supervious_ids, x_direction_name, x_count_delivery, x_total_shipping_price, x_collection_amount_sender, x_collection_amount_receive, x_total_amount_cash_lines, x_total_shipping_price_written, x_collection_amount_left, x_cash_amount_written, x_is_block_delievery, x_is_update, x_is_inventory, delay_reason_id, return_reason_id, date_sales_policy, is_color_policy, sale_policy_id) TO stdout;[ Date: 2026-07-22 08:35:04 ]
5 2m6s COPY public.bus_bus (id, create_uid, write_uid, channel, message, create_date, write_date) TO stdout;[ Date: 2026-07-22 08:05:13 ]
6 1m4s COPY public.cash_track (id, office_id, user_id, cash_policy_id, create_uid, write_uid, state, receive_man_id, action_date, create_date, write_date, action_date_time) TO stdout;[ Date: 2026-07-22 08:08:08 ]
7 56s63ms COPY public.cash_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, delivery_method_id, shipping_payment, shipping_payment_at_receive, total_paid_by_sender, total_paid_by_receiver, user_delivered_id, user_confirm_payment_id, create_uid, write_uid, name, pol_name, state, state_previous, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, confirmation_code, source, create_date_policy, confirm_payment_date, receive_main_office_date, confirm_payment_main_office_date, suspended_date, payment_delivered_date, policy_delivered_date, archive_date, flag_date, notes, total_amount_cash_lines_at_receive, cash, cheques, active, old_system_policy, custom_shipping, paid, create_date, write_date, cash_amount, total_amount_cash_lines, v_10_id, sp_id_10, sp_id, attachment_date, count_search, policy_name, attachment_user, change_date_recievable, sale_id, is_more_year, x_delivery_10, x_daily_move_date, is_color_polciy_cash_after_confirm, is_block_delievery, x_total_amount_cash_lines_at_receive, x_shipping_payment_at_receive, x_shipping_payment, x_cash_amount, x_total_amount_cash_lines, x_is_update, x_total_paid_by_sender, x_total_paid_by_receiver, x_daily_movement_id, x_other_daily_movement_id, sale_policy_id) TO stdout;[ Date: 2026-07-22 08:06:09 ]
8 48s469ms COPY public.policy_number (id, notebook_id, office_id, delegate_id, package_id, create_uid, write_uid, name, reason, damaged, done, active, create_date, write_date, reason_date, from_poilcy, deliver_date, note) TO stdout;[ Date: 2026-07-22 08:30:32 ]
9 47s578ms COPY public.cash_policy_tracking (id, create_uid, write_uid, name, shipping_id, cash_id, create_date, write_date) TO stdout;[ Date: 2026-07-22 08:07:03 ]
10 42s328ms COPY public.shipping_policy_items (id, product_id, shipping_policy_id, amount, create_uid, write_uid, desc_name, change_reason, paid, create_date, write_date, shipping_cost, shipping_cost_basic, total_shipping_cost) TO stdout;[ Date: 2026-07-22 08:35:48 ]
11 37s662ms COPY public.mail_followers (id, res_id, partner_id, res_model) TO stdout;[ Date: 2026-07-22 08:10:06 ]
12 36s985ms COPY public.urgent_customer (id, message_main_attachment_id, create_uid, write_uid, name, phone, code, address, active, create_date, write_date, v_10_id, receive_man_id_no, is_company, user_id) TO stdout;[ Date: 2026-07-22 08:41:46 ]
13 32s699ms COPY public.collection_policy (id, office_id, user_id, shipping_id, customer_id, create_uid, write_uid, type, state, action_date, confirm_date, create_date, write_date, amount, sale_model, active, differance_cash, is_sale, sale_model_policy, is_sale_policy) TO stdout;[ Date: 2026-07-22 08:09:09 ]
14 29s724ms COPY public.mail_mail (id, mail_message_id, fetchmail_server_id, create_uid, write_uid, email_cc, state, failure_type, body_html, "references", headers, email_to, failure_reason, is_notification, auto_delete, to_delete, scheduled_date, create_date, write_date) TO stdout;[ Date: 2026-07-22 08:10:49 ]
15 24s56ms COPY public.policy_search (id, create_uid, write_uid, name, model, model_char, search_domain, missing_data, create_date, write_date, type, count_search, filter_name, active_p, is_inventory) TO stdout;[ Date: 2026-07-22 08:30:58 ]
16 20s962ms COPY public.cash_transfer (id, message_main_attachment_id, office_id, shipping_co_id, customer_id, to_office_id, from_office_id, cash_policy_id, create_uid, write_uid, email_cc, type, state, state_string, name, create_date_transfer, receive_date, in_notes, out_notes, is_move_daily, create_date, write_date, amount, amount_in_cash_policy, active, is_more_year) TO stdout;[ Date: 2026-07-22 08:08:29 ]
17 19s614ms update cash_policy set active = '0' where from_office in (39, 13, 115, 58, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 81, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 84, 127, 113, 44, 10, 2, 36, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 57, 59, 51, 55, 30, 97, 101, 68, 79, 108, 66, 83, 118, 95, 120, 112, 63, 69, 31, 129, 124, 12, 37, 122, 82, 20, 86) and archive_date >= '2026-05-01' and archive_date <= '2026-07-22' and x_daily_movement_id is Not Null and x_other_daily_movement_id is Not Null;[ Date: 2026-07-22 18:06:14 ]
18 18s318ms update shipping_policy set active = '0' where from_office in (39, 13, 115, 58, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 126, 24, 110, 19, 81, 119, 32, 6, 3, 80, 4, 35, 5, 8, 7, 1, 38, 121, 9, 84, 127, 113, 44, 10, 2, 36, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 57, 62, 59, 51, 55, 97, 30, 101, 68, 79, 66, 108, 83, 118, 95, 120, 112, 63, 69, 31, 129, 12, 124, 122, 37, 82, 20, 86) and archive_date is NOT NULL and archive_date >= '2026-07-01' and archive_date <= '2026-07-22';[ Date: 2026-07-22 04:33:27 ]
19 16s126ms COPY public.res_partner (id, company_id, create_date, name, title, parent_id, user_id, state_id, country_id, industry_id, color, commercial_partner_id, create_uid, write_uid, display_name, ref, lang, tz, vat, company_registry, website, function, type, street, street2, zip, city, email, phone, mobile, commercial_company_name, company_name, date, comment, partner_latitude, partner_longitude, active, employee, is_company, partner_share, write_date, message_main_attachment_id, message_bounce, email_normalized, signup_type, signup_expiration, signup_token, office_id, office_driver_id, employee_traffic, code, type_employee, type_driver, v_10_id, x_is_client, x_precentage_office, website_id, is_published) TO stdout;[ Date: 2026-07-22 08:31:15 ]
20 13s606ms COPY public.mail_followers_mail_message_subtype_rel (mail_followers_id, mail_message_subtype_id) TO stdout;[ Date: 2026-07-22 08:10:20 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 23m25s 152 7s783ms 11s312ms 9s245ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."customer_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))) or ("shipping_policy"."customer_receive_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 22 02 1 8s566ms 8s566ms 03 2 17s645ms 8s822ms 09 1 7s845ms 7s845ms 11 5 46s490ms 9s298ms 12 10 1m37s 9s751ms 13 1 9s499ms 9s499ms 14 2 17s884ms 8s942ms 15 22 3m26s 9s389ms 16 8 1m16s 9s532ms 17 1 8s557ms 8s557ms 18 23 3m16s 8s546ms 19 6 49s554ms 8s259ms 20 57 9m5s 9s562ms 21 3 27s540ms 9s180ms 22 7 1m1s 8s763ms Jul 23 00 1 9s436ms 9s436ms 01 2 19s31ms 9s515ms -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s312ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s246ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:46:44 Duration: 11s52ms
2 13m19s 225 3s119ms 5s811ms 3s553ms 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 #2
Day Hour Count Duration Avg duration Jul 22 02 1 3s295ms 3s295ms 09 4 14s677ms 3s669ms 11 2 7s291ms 3s645ms 12 7 25s792ms 3s684ms 14 5 17s369ms 3s473ms 16 8 34s430ms 4s303ms 17 8 30s403ms 3s800ms 18 34 2m1s 3s583ms 19 34 1m59s 3s525ms 20 31 1m49s 3s536ms 21 31 1m46s 3s427ms 22 14 49s370ms 3s526ms 23 28 1m37s 3s476ms Jul 23 00 18 1m2s 3s444ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:48:18 Duration: 5s811ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:39 Duration: 5s589ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (55)))) 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"."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)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:12:54 Duration: 5s194ms
3 12m52s 1 12m52s 12m52s 12m52s copy public.mail_message (id, parent_id, res_id, subtype_id, mail_activity_type_id, author_id, author_guest_id, mail_server_id, create_uid, write_uid, subject, model, record_name, message_type, email_from, message_id, reply_to, email_layout_xmlid, body, is_internal, reply_to_force_new, email_add_signature, date, create_date, write_date) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 22 08 1 12m52s 12m52s -
COPY public.mail_message (id, parent_id, res_id, subtype_id, mail_activity_type_id, author_id, author_guest_id, mail_server_id, create_uid, write_uid, subject, model, record_name, message_type, email_from, message_id, reply_to, email_layout_xmlid, body, is_internal, reply_to_force_new, email_add_signature, date, create_date, write_date) TO stdout;
Date: 2026-07-22 08:23:42 Duration: 12m52s
4 8m46s 153 3s33ms 5s39ms 3s442ms select count(*) from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."customer_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))) or ("shipping_policy"."customer_receive_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?)))));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 22 02 1 3s372ms 3s372ms 03 2 6s378ms 3s189ms 09 1 3s33ms 3s33ms 11 5 16s874ms 3s374ms 12 10 33s873ms 3s387ms 13 1 3s647ms 3s647ms 14 3 10s57ms 3s352ms 15 21 1m15s 3s586ms 16 8 27s832ms 3s479ms 17 1 3s428ms 3s428ms 18 23 1m14s 3s241ms 19 7 22s437ms 3s205ms 20 57 3m23s 3s562ms 21 3 10s4ms 3s334ms 22 7 23s295ms 3s327ms Jul 23 00 1 3s172ms 3s172ms 01 2 6s388ms 3s194ms -
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056)))));
Date: 2026-07-22 20:00:27 Duration: 5s39ms
-
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056)))));
Date: 2026-07-22 20:42:11 Duration: 4s515ms
-
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107)))));
Date: 2026-07-22 20:43:21 Duration: 4s149ms
5 6m37s 58 6s531ms 7s487ms 6s860ms select "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" from "shipping_report_details" where "shipping_report_details".id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 22 08 57 6m31s 6s860ms Jul 23 00 1 6s854ms 6s854ms -
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22326859, 22239961, 22494081, 22351916, 22003779, 22334259, 22270051, 22467069, 22446348, 22300580, 22389423, 22034550, 22488297, 21932545, 22326566, 22390673, 22302855, 20824099, 21972953, 21068481, 22065995);
Date: 2026-07-22 08:40:36 Duration: 7s487ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22467495, 22466387, 22295325, 22236420);
Date: 2026-07-22 08:40:06 Duration: 7s465ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22436206, 22517468, 22404212, 22496863, 22475083, 22453055, 22497040, 22239844, 22341670);
Date: 2026-07-22 08:43:08 Duration: 7s384ms
6 5m53s 1 5m53s 5m53s 5m53s copy public.mail_tracking_value (id, field, old_value_integer, new_value_integer, currency_id, mail_message_id, tracking_sequence, create_uid, write_uid, field_desc, field_type, old_value_char, new_value_char, old_value_text, new_value_text, old_value_datetime, new_value_datetime, create_date, write_date, old_value_float, old_value_monetary, new_value_float, new_value_monetary) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 22 08 1 5m53s 5m53s -
COPY public.mail_tracking_value (id, field, old_value_integer, new_value_integer, currency_id, mail_message_id, tracking_sequence, create_uid, write_uid, field_desc, field_type, old_value_char, new_value_char, old_value_text, new_value_text, old_value_datetime, new_value_datetime, create_date, write_date, old_value_float, old_value_monetary, new_value_float, new_value_monetary) TO stdout;
Date: 2026-07-22 08:29:40 Duration: 5m53s
7 5m16s 1 5m16s 5m16s 5m16s copy public.shipping_track (id, office_id, state_id, warehouse_id, next_office_id, next_warehouse_id, car_id, delegate_id, driver_id, user_id, shipping_id, cash_policy_id, create_uid, write_uid, state, receive_man_id_no, receive_man_id, action_date, change_date, create_date, write_date) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 22 08 1 5m16s 5m16s -
COPY public.shipping_track (id, office_id, state_id, warehouse_id, next_office_id, next_warehouse_id, car_id, delegate_id, driver_id, user_id, shipping_id, cash_policy_id, create_uid, write_uid, state, receive_man_id_no, receive_man_id, action_date, change_date, create_date, write_date) TO stdout;
Date: 2026-07-22 08:41:08 Duration: 5m16s
8 3m47s 1 3m47s 3m47s 3m47s copy public.shipping_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, office_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, cash_policy_id, last_driver, last_office, last_car, last_office_warehouse, last_warehouse, destination_office, total_no_items, cancel_shipping_policy, create_uid, write_uid, search_name, name, pol_name, state, review_state, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, return_reason, wating_reason, scan_code, destination_type, state_collection, paid_by_customer, last_action, confirm_date, client_date, archive_date, cancel_date, return_date, wating_date, create_date, active, cash, cheques, total_collection_amount, new_destination_button, edit_cash_button, create_cash_policy_button, client_delivery_button, return_button, delegate_button, old_policy, review_date, write_date, total_amount_cash_lines, cash_amount, collection_amount_sender, collection_amount_receive, total_shipping_price, v_10_id, driver_id, delegate_id, out_date, attachment_date, count_search, notes, return_before, from_poilcy, x_from_poilcy, before_office_id, policy_name, x_review_date, state_id, attachment_user, d_date, d_unlink_delete, zero_date_change, zero_date_change_user, is_change_cash_price, transfer_date, is_imported, client_delivery_user, cash_amount_written, total_shipping_price_written, review_state_department, review_date_department, in_office_date, x_state_hold, x_date_sales, delivery_method_id, x_is_color, x_sales_move_date, x_return_office_id, privous_last_office, privous_last_warehouse, supervious_ids, x_direction_name, x_count_delivery, x_total_shipping_price, x_collection_amount_sender, x_collection_amount_receive, x_total_amount_cash_lines, x_total_shipping_price_written, x_collection_amount_left, x_cash_amount_written, x_is_block_delievery, x_is_update, x_is_inventory, delay_reason_id, return_reason_id, date_sales_policy, is_color_policy, sale_policy_id) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 22 08 1 3m47s 3m47s -
COPY public.shipping_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, office_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, cash_policy_id, last_driver, last_office, last_car, last_office_warehouse, last_warehouse, destination_office, total_no_items, cancel_shipping_policy, create_uid, write_uid, search_name, name, pol_name, state, review_state, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, return_reason, wating_reason, scan_code, destination_type, state_collection, paid_by_customer, last_action, confirm_date, client_date, archive_date, cancel_date, return_date, wating_date, create_date, active, cash, cheques, total_collection_amount, new_destination_button, edit_cash_button, create_cash_policy_button, client_delivery_button, return_button, delegate_button, old_policy, review_date, write_date, total_amount_cash_lines, cash_amount, collection_amount_sender, collection_amount_receive, total_shipping_price, v_10_id, driver_id, delegate_id, out_date, attachment_date, count_search, notes, return_before, from_poilcy, x_from_poilcy, before_office_id, policy_name, x_review_date, state_id, attachment_user, d_date, d_unlink_delete, zero_date_change, zero_date_change_user, is_change_cash_price, transfer_date, is_imported, client_delivery_user, cash_amount_written, total_shipping_price_written, review_state_department, review_date_department, in_office_date, x_state_hold, x_date_sales, delivery_method_id, x_is_color, x_sales_move_date, x_return_office_id, privous_last_office, privous_last_warehouse, supervious_ids, x_direction_name, x_count_delivery, x_total_shipping_price, x_collection_amount_sender, x_collection_amount_receive, x_total_amount_cash_lines, x_total_shipping_price_written, x_collection_amount_left, x_cash_amount_written, x_is_block_delievery, x_is_update, x_is_inventory, delay_reason_id, return_reason_id, date_sales_policy, is_color_policy, sale_policy_id) TO stdout;
Date: 2026-07-22 08:35:04 Duration: 3m47s
9 3m43s 28 4s175ms 10s165ms 7s989ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 22 08 7 49s970ms 7s138ms 14 1 8s801ms 8s801ms 16 2 19s134ms 9s567ms 17 7 53s458ms 7s636ms 18 2 16s659ms 8s329ms 20 2 17s957ms 8s978ms 21 7 57s733ms 8s247ms -
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 58, 75, 28, 50, 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, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 51, 55, 30, 68, 79, 66, 83, 95, 63, 69)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%5028242%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 08:58:00 Duration: 10s165ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."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 ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))) AND ("policy_number"."name"::text ilike '%892403%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:03:13 Duration: 10s50ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2414)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (123)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%9729196%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:47 Duration: 9s610ms
10 2m38s 22 5s38ms 10s259ms 7s220ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null)))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 22 16 5 36s686ms 7s337ms 18 2 14s516ms 7s258ms 19 6 37s115ms 6s185ms 20 6 47s482ms 7s913ms 23 1 8s502ms 8s502ms Jul 23 00 2 14s555ms 7s277ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (53)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%855065%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:14:00 Duration: 10s259ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (27)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%236932%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:40:09 Duration: 9s895ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (51)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%289537%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:08:38 Duration: 9s719ms
11 2m18s 39 3s97ms 3s788ms 3s538ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 22 09 3 9s579ms 3s193ms 10 2 6s714ms 3s357ms 11 7 25s296ms 3s613ms 12 3 10s892ms 3s630ms 13 2 7s248ms 3s624ms 14 4 14s123ms 3s530ms 15 12 42s919ms 3s576ms 16 1 3s718ms 3s718ms 18 1 3s558ms 3s558ms Jul 23 01 4 13s954ms 3s488ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%كفرالشيخ%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (56)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) 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: 2026-07-22 14:05:06 Duration: 3s788ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%نجع%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (79)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44))))) 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: 2026-07-22 15:32:11 Duration: 3s760ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%منص%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (59, 60, 61)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22))))) 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: 2026-07-22 12:07:57 Duration: 3s740ms
12 2m14s 14 8s350ms 12s983ms 9s601ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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"."policy_id" limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 22 19 1 8s350ms 8s350ms 20 13 2m6s 9s697ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 500;
Date: 2026-07-22 20:51:45 Duration: 12s983ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:02:51 Duration: 9s972ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:07:23 Duration: 9s835ms
13 2m6s 1 2m6s 2m6s 2m6s copy public.bus_bus (id, create_uid, write_uid, channel, message, create_date, write_date) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 22 08 1 2m6s 2m6s -
COPY public.bus_bus (id, create_uid, write_uid, channel, message, create_date, write_date) TO stdout;
Date: 2026-07-22 08:05:13 Duration: 2m6s
14 1m59s 11 10s473ms 12s227ms 10s908ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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))))) or (("shipping_policy"."state" in (...)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) order by "shipping_policy"."policy_id" limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 22 22 10 1m47s 10s776ms 23 1 12s227ms 12s227ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 23:16:10 Duration: 12s227ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:31:42 Duration: 11s259ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:59:14 Duration: 11s105ms
15 1m46s 30 3s174ms 3s773ms 3s548ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 22 09 1 3s174ms 3s174ms 10 1 3s235ms 3s235ms 12 3 10s840ms 3s613ms 13 12 42s790ms 3s565ms 14 3 11s7ms 3s669ms 16 1 3s388ms 3s388ms 17 6 21s551ms 3s591ms 18 1 3s735ms 3s735ms 20 1 3s338ms 3s338ms 21 1 3s381ms 3s381ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%بهت%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (105)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) 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: 2026-07-22 12:32:23 Duration: 3s773ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%اسوان%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (82, 118)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) 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: 2026-07-22 17:24:03 Duration: 3s758ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%وسط البلد%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (102)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) 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: 2026-07-22 18:29:21 Duration: 3s735ms
16 1m10s 21 3s107ms 3s837ms 3s371ms select "cash_policy".id 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)))))) order by "cash_policy"."policy_id" limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 22 13 2 7s234ms 3s617ms 14 5 16s562ms 3s312ms 15 2 6s352ms 3s176ms 16 1 3s107ms 3s107ms 17 3 10s499ms 3s499ms 18 4 13s887ms 3s471ms 19 3 10s23ms 3s341ms Jul 23 00 1 3s128ms 3s128ms -
SELECT "cash_policy".id 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 (16)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 18:00:24 Duration: 3s837ms
-
SELECT "cash_policy".id 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 (76)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (76))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 13:49:23 Duration: 3s725ms
-
SELECT "cash_policy".id 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 (60)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (60))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 19:04:22 Duration: 3s576ms
17 1m5s 13 4s541ms 5s670ms 5s10ms select min("shipping_policy".id) as id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" AS "write_uid" from "shipping_policy" left join "res_users" AS "shipping_policy__write_uid" on ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") left join "res_partner" AS "shipping_policy__write_uid__partner_id" on ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or ("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))))))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) group by "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" order by "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 22 02 4 19s169ms 4s792ms 06 9 45s965ms 5s107ms -
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:03 Duration: 5s670ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:05 Duration: 5s466ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:12:07 Duration: 5s394ms
18 1m4s 1 1m4s 1m4s 1m4s copy public.cash_track (id, office_id, user_id, cash_policy_id, create_uid, write_uid, state, receive_man_id, action_date, create_date, write_date, action_date_time) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 22 08 1 1m4s 1m4s -
COPY public.cash_track (id, office_id, user_id, cash_policy_id, create_uid, write_uid, state, receive_man_id, action_date, create_date, write_date, action_date_time) TO stdout;
Date: 2026-07-22 08:08:08 Duration: 1m4s
19 1m3s 18 3s241ms 3s721ms 3s527ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 22 10 1 3s313ms 3s313ms 13 10 35s538ms 3s553ms 14 4 14s226ms 3s556ms 19 1 3s241ms 3s241ms 20 2 7s183ms 3s591ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%شبرا الخيمة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) 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: 2026-07-22 14:30:52 Duration: 3s721ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%شبرا الخيمة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) 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: 2026-07-22 14:31:48 Duration: 3s719ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%امبابة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (88)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41))))) 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: 2026-07-22 20:04:27 Duration: 3s701ms
20 56s63ms 1 56s63ms 56s63ms 56s63ms copy public.cash_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, delivery_method_id, shipping_payment, shipping_payment_at_receive, total_paid_by_sender, total_paid_by_receiver, user_delivered_id, user_confirm_payment_id, create_uid, write_uid, name, pol_name, state, state_previous, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, confirmation_code, source, create_date_policy, confirm_payment_date, receive_main_office_date, confirm_payment_main_office_date, suspended_date, payment_delivered_date, policy_delivered_date, archive_date, flag_date, notes, total_amount_cash_lines_at_receive, cash, cheques, active, old_system_policy, custom_shipping, paid, create_date, write_date, cash_amount, total_amount_cash_lines, v_10_id, sp_id_10, sp_id, attachment_date, count_search, policy_name, attachment_user, change_date_recievable, sale_id, is_more_year, x_delivery_10, x_daily_move_date, is_color_polciy_cash_after_confirm, is_block_delievery, x_total_amount_cash_lines_at_receive, x_shipping_payment_at_receive, x_shipping_payment, x_cash_amount, x_total_amount_cash_lines, x_is_update, x_total_paid_by_sender, x_total_paid_by_receiver, x_daily_movement_id, x_other_daily_movement_id, sale_policy_id) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 22 08 1 56s63ms 56s63ms -
COPY public.cash_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, delivery_method_id, shipping_payment, shipping_payment_at_receive, total_paid_by_sender, total_paid_by_receiver, user_delivered_id, user_confirm_payment_id, create_uid, write_uid, name, pol_name, state, state_previous, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, confirmation_code, source, create_date_policy, confirm_payment_date, receive_main_office_date, confirm_payment_main_office_date, suspended_date, payment_delivered_date, policy_delivered_date, archive_date, flag_date, notes, total_amount_cash_lines_at_receive, cash, cheques, active, old_system_policy, custom_shipping, paid, create_date, write_date, cash_amount, total_amount_cash_lines, v_10_id, sp_id_10, sp_id, attachment_date, count_search, policy_name, attachment_user, change_date_recievable, sale_id, is_more_year, x_delivery_10, x_daily_move_date, is_color_polciy_cash_after_confirm, is_block_delievery, x_total_amount_cash_lines_at_receive, x_shipping_payment_at_receive, x_shipping_payment, x_cash_amount, x_total_amount_cash_lines, x_is_update, x_total_paid_by_sender, x_total_paid_by_receiver, x_daily_movement_id, x_other_daily_movement_id, sale_policy_id) TO stdout;
Date: 2026-07-22 08:06:09 Duration: 56s63ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 225 13m19s 3s119ms 5s811ms 3s553ms 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 Jul 22 02 1 3s295ms 3s295ms 09 4 14s677ms 3s669ms 11 2 7s291ms 3s645ms 12 7 25s792ms 3s684ms 14 5 17s369ms 3s473ms 16 8 34s430ms 4s303ms 17 8 30s403ms 3s800ms 18 34 2m1s 3s583ms 19 34 1m59s 3s525ms 20 31 1m49s 3s536ms 21 31 1m46s 3s427ms 22 14 49s370ms 3s526ms 23 28 1m37s 3s476ms Jul 23 00 18 1m2s 3s444ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:48:18 Duration: 5s811ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:39 Duration: 5s589ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (55)))) 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"."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)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:12:54 Duration: 5s194ms
2 153 8m46s 3s33ms 5s39ms 3s442ms select count(*) from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."customer_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))) or ("shipping_policy"."customer_receive_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?)))));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 22 02 1 3s372ms 3s372ms 03 2 6s378ms 3s189ms 09 1 3s33ms 3s33ms 11 5 16s874ms 3s374ms 12 10 33s873ms 3s387ms 13 1 3s647ms 3s647ms 14 3 10s57ms 3s352ms 15 21 1m15s 3s586ms 16 8 27s832ms 3s479ms 17 1 3s428ms 3s428ms 18 23 1m14s 3s241ms 19 7 22s437ms 3s205ms 20 57 3m23s 3s562ms 21 3 10s4ms 3s334ms 22 7 23s295ms 3s327ms Jul 23 00 1 3s172ms 3s172ms 01 2 6s388ms 3s194ms -
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056)))));
Date: 2026-07-22 20:00:27 Duration: 5s39ms
-
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2056)))));
Date: 2026-07-22 20:42:11 Duration: 4s515ms
-
SELECT COUNT(*) FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107)))));
Date: 2026-07-22 20:43:21 Duration: 4s149ms
3 152 23m25s 7s783ms 11s312ms 9s245ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."customer_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))) or ("shipping_policy"."customer_receive_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 22 02 1 8s566ms 8s566ms 03 2 17s645ms 8s822ms 09 1 7s845ms 7s845ms 11 5 46s490ms 9s298ms 12 10 1m37s 9s751ms 13 1 9s499ms 9s499ms 14 2 17s884ms 8s942ms 15 22 3m26s 9s389ms 16 8 1m16s 9s532ms 17 1 8s557ms 8s557ms 18 23 3m16s 8s546ms 19 6 49s554ms 8s259ms 20 57 9m5s 9s562ms 21 3 27s540ms 9s180ms 22 7 1m1s 8s763ms Jul 23 00 1 9s436ms 9s436ms 01 2 19s31ms 9s515ms -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s312ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s246ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:46:44 Duration: 11s52ms
4 58 6m37s 6s531ms 7s487ms 6s860ms select "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" from "shipping_report_details" where "shipping_report_details".id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 22 08 57 6m31s 6s860ms Jul 23 00 1 6s854ms 6s854ms -
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22326859, 22239961, 22494081, 22351916, 22003779, 22334259, 22270051, 22467069, 22446348, 22300580, 22389423, 22034550, 22488297, 21932545, 22326566, 22390673, 22302855, 20824099, 21972953, 21068481, 22065995);
Date: 2026-07-22 08:40:36 Duration: 7s487ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22467495, 22466387, 22295325, 22236420);
Date: 2026-07-22 08:40:06 Duration: 7s465ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22436206, 22517468, 22404212, 22496863, 22475083, 22453055, 22497040, 22239844, 22341670);
Date: 2026-07-22 08:43:08 Duration: 7s384ms
5 39 2m18s 3s97ms 3s788ms 3s538ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 22 09 3 9s579ms 3s193ms 10 2 6s714ms 3s357ms 11 7 25s296ms 3s613ms 12 3 10s892ms 3s630ms 13 2 7s248ms 3s624ms 14 4 14s123ms 3s530ms 15 12 42s919ms 3s576ms 16 1 3s718ms 3s718ms 18 1 3s558ms 3s558ms Jul 23 01 4 13s954ms 3s488ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%كفرالشيخ%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (56)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) 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: 2026-07-22 14:05:06 Duration: 3s788ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%نجع%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (79)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (44))))) 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: 2026-07-22 15:32:11 Duration: 3s760ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%منص%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (59, 60, 61)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22))))) 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: 2026-07-22 12:07:57 Duration: 3s740ms
6 30 1m46s 3s174ms 3s773ms 3s548ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 22 09 1 3s174ms 3s174ms 10 1 3s235ms 3s235ms 12 3 10s840ms 3s613ms 13 12 42s790ms 3s565ms 14 3 11s7ms 3s669ms 16 1 3s388ms 3s388ms 17 6 21s551ms 3s591ms 18 1 3s735ms 3s735ms 20 1 3s338ms 3s338ms 21 1 3s381ms 3s381ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%بهت%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (105)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) 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: 2026-07-22 12:32:23 Duration: 3s773ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%اسوان%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (82, 118)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) 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: 2026-07-22 17:24:03 Duration: 3s758ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%وسط البلد%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (102)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) 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: 2026-07-22 18:29:21 Duration: 3s735ms
7 28 3m43s 4s175ms 10s165ms 7s989ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 22 08 7 49s970ms 7s138ms 14 1 8s801ms 8s801ms 16 2 19s134ms 9s567ms 17 7 53s458ms 7s636ms 18 2 16s659ms 8s329ms 20 2 17s957ms 8s978ms 21 7 57s733ms 8s247ms -
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 58, 75, 28, 50, 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, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 51, 55, 30, 68, 79, 66, 83, 95, 63, 69)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%5028242%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 08:58:00 Duration: 10s165ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."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 ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))) AND ("policy_number"."name"::text ilike '%892403%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:03:13 Duration: 10s50ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2414)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (123)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%9729196%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:47 Duration: 9s610ms
8 22 2m38s 5s38ms 10s259ms 7s220ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null)))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 22 16 5 36s686ms 7s337ms 18 2 14s516ms 7s258ms 19 6 37s115ms 6s185ms 20 6 47s482ms 7s913ms 23 1 8s502ms 8s502ms Jul 23 00 2 14s555ms 7s277ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (53)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%855065%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:14:00 Duration: 10s259ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (27)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%236932%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:40:09 Duration: 9s895ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (51)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%289537%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:08:38 Duration: 9s719ms
9 21 1m10s 3s107ms 3s837ms 3s371ms select "cash_policy".id 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)))))) order by "cash_policy"."policy_id" limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 22 13 2 7s234ms 3s617ms 14 5 16s562ms 3s312ms 15 2 6s352ms 3s176ms 16 1 3s107ms 3s107ms 17 3 10s499ms 3s499ms 18 4 13s887ms 3s471ms 19 3 10s23ms 3s341ms Jul 23 00 1 3s128ms 3s128ms -
SELECT "cash_policy".id 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 (16)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (16))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 18:00:24 Duration: 3s837ms
-
SELECT "cash_policy".id 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 (76)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (76))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 13:49:23 Duration: 3s725ms
-
SELECT "cash_policy".id 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 (60)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (60))))) 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)))))) ORDER BY "cash_policy"."policy_id" LIMIT 200;
Date: 2026-07-22 19:04:22 Duration: 3s576ms
10 18 1m3s 3s241ms 3s721ms 3s527ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 22 10 1 3s313ms 3s313ms 13 10 35s538ms 3s553ms 14 4 14s226ms 3s556ms 19 1 3s241ms 3s241ms 20 2 7s183ms 3s591ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%شبرا الخيمة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) 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: 2026-07-22 14:30:52 Duration: 3s721ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%شبرا الخيمة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (109)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (68))))) 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: 2026-07-22 14:31:48 Duration: 3s719ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%امبابة%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (88)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (41))))) 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: 2026-07-22 20:04:27 Duration: 3s701ms
11 14 2m14s 8s350ms 12s983ms 9s601ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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"."policy_id" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 22 19 1 8s350ms 8s350ms 20 13 2m6s 9s697ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 500;
Date: 2026-07-22 20:51:45 Duration: 12s983ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:02:51 Duration: 9s972ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:07:23 Duration: 9s835ms
12 13 1m5s 4s541ms 5s670ms 5s10ms select min("shipping_policy".id) as id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" AS "write_uid" from "shipping_policy" left join "res_users" AS "shipping_policy__write_uid" on ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") left join "res_partner" AS "shipping_policy__write_uid__partner_id" on ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or ("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))))))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) group by "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" order by "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 22 02 4 19s169ms 4s792ms 06 9 45s965ms 5s107ms -
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:03 Duration: 5s670ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:05 Duration: 5s466ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:12:07 Duration: 5s394ms
13 13 47s992ms 3s411ms 4s31ms 3s691ms 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 #13
Day Hour Count Duration Avg duration Jul 22 13 4 14s975ms 3s743ms 17 8 29s170ms 3s646ms 21 1 3s846ms 3s846ms -
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 '%8920%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 13:42:27 Duration: 4s31ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 17:31:21 Duration: 3s971ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 (102))))))) 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 (102)))))) 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 (102)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (102)))))) 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 (102))))))))) 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 (102))))))) AND ("policy_number"."name"::text ilike '%714107%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 21:39:03 Duration: 3s846ms
14 12 41s265ms 3s59ms 3s678ms 3s438ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."state" = ?) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."name"::text ilike ?))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))))) 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))))) or (("shipping_policy"."state" in (...)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 22 08 2 6s278ms 3s139ms 10 2 6s340ms 3s170ms 11 4 14s272ms 3s568ms 12 4 14s374ms 3s593ms -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."state" = 'in_way') AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."name"::text ilike '%الزقازيق%'))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%الزقازيق%'))))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (64)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 11:21:32 Duration: 3s678ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."state" = 'in_way') AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."name"::text ilike '%الزقازيق%'))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%الزقازيق%'))))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (64)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 12:16:18 Duration: 3s624ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."state" = 'in_way') AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."name"::text ilike '%الزقازيق%'))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%الزقازيق%'))))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (64)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (19)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 12:15:03 Duration: 3s616ms
15 11 1m59s 10s473ms 12s227ms 10s908ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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))))) or (("shipping_policy"."state" in (...)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) order by "shipping_policy"."policy_id" limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 22 22 10 1m47s 10s776ms 23 1 12s227ms 12s227ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 23:16:10 Duration: 12s227ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:31:42 Duration: 11s259ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:59:14 Duration: 11s105ms
16 11 41s718ms 3s82ms 5s306ms 3s792ms select "policy_number".id from "policy_number" where (("policy_number"."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"."office_id" in (...)))) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 22 08 1 5s306ms 5s306ms 09 3 11s32ms 3s677ms 10 2 7s165ms 3s582ms 13 1 3s717ms 3s717ms 15 1 3s932ms 3s932ms 16 3 10s563ms 3s521ms -
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (64)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 08:27:40 Duration: 5s306ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (65)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 15:06:59 Duration: 3s932ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (78)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 16:18:12 Duration: 3s837ms
17 11 38s285ms 3s6ms 4s305ms 3s480ms select "cash_policy".id 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)))))) order by "cash_policy"."receive_man_id" asc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 22 13 4 14s815ms 3s703ms 15 3 9s654ms 3s218ms 16 2 6s412ms 3s206ms 17 1 3s123ms 3s123ms 18 1 4s280ms 4s280ms -
SELECT "cash_policy".id 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 (48)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (48))))) 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)))))) ORDER BY "cash_policy"."receive_man_id" ASC LIMIT 200;
Date: 2026-07-22 13:18:00 Duration: 4s305ms
-
SELECT "cash_policy".id 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 (48)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (48))))) 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)))))) ORDER BY "cash_policy"."receive_man_id" ASC LIMIT 200;
Date: 2026-07-22 18:08:48 Duration: 4s280ms
-
SELECT "cash_policy".id 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 (48)))) OR ("cash_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (48))))) 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)))))) ORDER BY "cash_policy"."receive_man_id" ASC LIMIT 200;
Date: 2026-07-22 13:51:03 Duration: 3s659ms
18 10 37s317ms 3s474ms 3s983ms 3s731ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."last_action" < ?) and ("shipping_policy"."state" = ?)))) and true order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 22 14 5 18s296ms 3s659ms 15 3 11s867ms 3s955ms 16 2 7s152ms 3s576ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s983ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s959ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s924ms
19 10 35s136ms 3s202ms 3s801ms 3s513ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) 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))))) or (("shipping_policy"."state" in (...)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 22 10 2 6s633ms 3s316ms 11 1 3s671ms 3s671ms 13 1 3s700ms 3s700ms 16 1 3s801ms 3s801ms 18 4 13s863ms 3s465ms 20 1 3s466ms 3s466ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%دار%'))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (94)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (85)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (85))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (85))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (85)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 16:07:10 Duration: 3s801ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%عبود%'))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (107)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 13:49:23 Duration: 3s700ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%عبود%'))))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (107)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (66)))))) ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 11:58:06 Duration: 3s671ms
20 9 34s194ms 3s475ms 4s336ms 3s799ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 22 08 1 4s127ms 4s127ms 14 1 3s475ms 3s475ms 16 2 7s462ms 3s731ms 18 1 4s336ms 4s336ms 20 2 7s574ms 3s787ms 21 2 7s217ms 3s608ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."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 ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:03:05 Duration: 4s336ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 58, 75, 28, 50, 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, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 51, 55, 30, 68, 79, 66, 83, 95, 63, 69)))))) AND ("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" LIMIT 8;
Date: 2026-07-22 08:57:51 Duration: 4s127ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2414)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (123)))))) AND ("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" LIMIT 8;
Date: 2026-07-22 16:46:38 Duration: 3s979ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 12m52s 12m52s 12m52s 1 12m52s copy public.mail_message (id, parent_id, res_id, subtype_id, mail_activity_type_id, author_id, author_guest_id, mail_server_id, create_uid, write_uid, subject, model, record_name, message_type, email_from, message_id, reply_to, email_layout_xmlid, body, is_internal, reply_to_force_new, email_add_signature, date, create_date, write_date) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 22 08 1 12m52s 12m52s -
COPY public.mail_message (id, parent_id, res_id, subtype_id, mail_activity_type_id, author_id, author_guest_id, mail_server_id, create_uid, write_uid, subject, model, record_name, message_type, email_from, message_id, reply_to, email_layout_xmlid, body, is_internal, reply_to_force_new, email_add_signature, date, create_date, write_date) TO stdout;
Date: 2026-07-22 08:23:42 Duration: 12m52s
2 5m53s 5m53s 5m53s 1 5m53s copy public.mail_tracking_value (id, field, old_value_integer, new_value_integer, currency_id, mail_message_id, tracking_sequence, create_uid, write_uid, field_desc, field_type, old_value_char, new_value_char, old_value_text, new_value_text, old_value_datetime, new_value_datetime, create_date, write_date, old_value_float, old_value_monetary, new_value_float, new_value_monetary) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 22 08 1 5m53s 5m53s -
COPY public.mail_tracking_value (id, field, old_value_integer, new_value_integer, currency_id, mail_message_id, tracking_sequence, create_uid, write_uid, field_desc, field_type, old_value_char, new_value_char, old_value_text, new_value_text, old_value_datetime, new_value_datetime, create_date, write_date, old_value_float, old_value_monetary, new_value_float, new_value_monetary) TO stdout;
Date: 2026-07-22 08:29:40 Duration: 5m53s
3 5m16s 5m16s 5m16s 1 5m16s copy public.shipping_track (id, office_id, state_id, warehouse_id, next_office_id, next_warehouse_id, car_id, delegate_id, driver_id, user_id, shipping_id, cash_policy_id, create_uid, write_uid, state, receive_man_id_no, receive_man_id, action_date, change_date, create_date, write_date) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 22 08 1 5m16s 5m16s -
COPY public.shipping_track (id, office_id, state_id, warehouse_id, next_office_id, next_warehouse_id, car_id, delegate_id, driver_id, user_id, shipping_id, cash_policy_id, create_uid, write_uid, state, receive_man_id_no, receive_man_id, action_date, change_date, create_date, write_date) TO stdout;
Date: 2026-07-22 08:41:08 Duration: 5m16s
4 3m47s 3m47s 3m47s 1 3m47s copy public.shipping_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, office_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, cash_policy_id, last_driver, last_office, last_car, last_office_warehouse, last_warehouse, destination_office, total_no_items, cancel_shipping_policy, create_uid, write_uid, search_name, name, pol_name, state, review_state, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, return_reason, wating_reason, scan_code, destination_type, state_collection, paid_by_customer, last_action, confirm_date, client_date, archive_date, cancel_date, return_date, wating_date, create_date, active, cash, cheques, total_collection_amount, new_destination_button, edit_cash_button, create_cash_policy_button, client_delivery_button, return_button, delegate_button, old_policy, review_date, write_date, total_amount_cash_lines, cash_amount, collection_amount_sender, collection_amount_receive, total_shipping_price, v_10_id, driver_id, delegate_id, out_date, attachment_date, count_search, notes, return_before, from_poilcy, x_from_poilcy, before_office_id, policy_name, x_review_date, state_id, attachment_user, d_date, d_unlink_delete, zero_date_change, zero_date_change_user, is_change_cash_price, transfer_date, is_imported, client_delivery_user, cash_amount_written, total_shipping_price_written, review_state_department, review_date_department, in_office_date, x_state_hold, x_date_sales, delivery_method_id, x_is_color, x_sales_move_date, x_return_office_id, privous_last_office, privous_last_warehouse, supervious_ids, x_direction_name, x_count_delivery, x_total_shipping_price, x_collection_amount_sender, x_collection_amount_receive, x_total_amount_cash_lines, x_total_shipping_price_written, x_collection_amount_left, x_cash_amount_written, x_is_block_delievery, x_is_update, x_is_inventory, delay_reason_id, return_reason_id, date_sales_policy, is_color_policy, sale_policy_id) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 22 08 1 3m47s 3m47s -
COPY public.shipping_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, office_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, cash_policy_id, last_driver, last_office, last_car, last_office_warehouse, last_warehouse, destination_office, total_no_items, cancel_shipping_policy, create_uid, write_uid, search_name, name, pol_name, state, review_state, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, return_reason, wating_reason, scan_code, destination_type, state_collection, paid_by_customer, last_action, confirm_date, client_date, archive_date, cancel_date, return_date, wating_date, create_date, active, cash, cheques, total_collection_amount, new_destination_button, edit_cash_button, create_cash_policy_button, client_delivery_button, return_button, delegate_button, old_policy, review_date, write_date, total_amount_cash_lines, cash_amount, collection_amount_sender, collection_amount_receive, total_shipping_price, v_10_id, driver_id, delegate_id, out_date, attachment_date, count_search, notes, return_before, from_poilcy, x_from_poilcy, before_office_id, policy_name, x_review_date, state_id, attachment_user, d_date, d_unlink_delete, zero_date_change, zero_date_change_user, is_change_cash_price, transfer_date, is_imported, client_delivery_user, cash_amount_written, total_shipping_price_written, review_state_department, review_date_department, in_office_date, x_state_hold, x_date_sales, delivery_method_id, x_is_color, x_sales_move_date, x_return_office_id, privous_last_office, privous_last_warehouse, supervious_ids, x_direction_name, x_count_delivery, x_total_shipping_price, x_collection_amount_sender, x_collection_amount_receive, x_total_amount_cash_lines, x_total_shipping_price_written, x_collection_amount_left, x_cash_amount_written, x_is_block_delievery, x_is_update, x_is_inventory, delay_reason_id, return_reason_id, date_sales_policy, is_color_policy, sale_policy_id) TO stdout;
Date: 2026-07-22 08:35:04 Duration: 3m47s
5 2m6s 2m6s 2m6s 1 2m6s copy public.bus_bus (id, create_uid, write_uid, channel, message, create_date, write_date) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 22 08 1 2m6s 2m6s -
COPY public.bus_bus (id, create_uid, write_uid, channel, message, create_date, write_date) TO stdout;
Date: 2026-07-22 08:05:13 Duration: 2m6s
6 1m4s 1m4s 1m4s 1 1m4s copy public.cash_track (id, office_id, user_id, cash_policy_id, create_uid, write_uid, state, receive_man_id, action_date, create_date, write_date, action_date_time) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 22 08 1 1m4s 1m4s -
COPY public.cash_track (id, office_id, user_id, cash_policy_id, create_uid, write_uid, state, receive_man_id, action_date, create_date, write_date, action_date_time) TO stdout;
Date: 2026-07-22 08:08:08 Duration: 1m4s
7 56s63ms 56s63ms 56s63ms 1 56s63ms copy public.cash_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, delivery_method_id, shipping_payment, shipping_payment_at_receive, total_paid_by_sender, total_paid_by_receiver, user_delivered_id, user_confirm_payment_id, create_uid, write_uid, name, pol_name, state, state_previous, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, confirmation_code, source, create_date_policy, confirm_payment_date, receive_main_office_date, confirm_payment_main_office_date, suspended_date, payment_delivered_date, policy_delivered_date, archive_date, flag_date, notes, total_amount_cash_lines_at_receive, cash, cheques, active, old_system_policy, custom_shipping, paid, create_date, write_date, cash_amount, total_amount_cash_lines, v_10_id, sp_id_10, sp_id, attachment_date, count_search, policy_name, attachment_user, change_date_recievable, sale_id, is_more_year, x_delivery_10, x_daily_move_date, is_color_polciy_cash_after_confirm, is_block_delievery, x_total_amount_cash_lines_at_receive, x_shipping_payment_at_receive, x_shipping_payment, x_cash_amount, x_total_amount_cash_lines, x_is_update, x_total_paid_by_sender, x_total_paid_by_receiver, x_daily_movement_id, x_other_daily_movement_id, sale_policy_id) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 22 08 1 56s63ms 56s63ms -
COPY public.cash_policy (id, message_main_attachment_id, notebook_package_id, policy_id, delegate_policy_id, from_office, to_office, from_state, to_state, customer_id, customer_receive_id, delivery_method_id, shipping_payment, shipping_payment_at_receive, total_paid_by_sender, total_paid_by_receiver, user_delivered_id, user_confirm_payment_id, create_uid, write_uid, name, pol_name, state, state_previous, sender_mob, sender_name, receive_mob, receive_name, sender_add, receive_add, receive_man_id, receive_man_id_no, cheque_desc, confirmation_code, source, create_date_policy, confirm_payment_date, receive_main_office_date, confirm_payment_main_office_date, suspended_date, payment_delivered_date, policy_delivered_date, archive_date, flag_date, notes, total_amount_cash_lines_at_receive, cash, cheques, active, old_system_policy, custom_shipping, paid, create_date, write_date, cash_amount, total_amount_cash_lines, v_10_id, sp_id_10, sp_id, attachment_date, count_search, policy_name, attachment_user, change_date_recievable, sale_id, is_more_year, x_delivery_10, x_daily_move_date, is_color_polciy_cash_after_confirm, is_block_delievery, x_total_amount_cash_lines_at_receive, x_shipping_payment_at_receive, x_shipping_payment, x_cash_amount, x_total_amount_cash_lines, x_is_update, x_total_paid_by_sender, x_total_paid_by_receiver, x_daily_movement_id, x_other_daily_movement_id, sale_policy_id) TO stdout;
Date: 2026-07-22 08:06:09 Duration: 56s63ms
8 10s473ms 12s227ms 10s908ms 11 1m59s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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))))) or (("shipping_policy"."state" in (...)) and ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))))) order by "shipping_policy"."policy_id" limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 22 22 10 1m47s 10s776ms 23 1 12s227ms 12s227ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 23:16:10 Duration: 12s227ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:31:42 Duration: 11s259ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND ((("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (81)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2))))) 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))))) OR (("shipping_policy"."state" in ('in_way_to_client', 'wating')) AND ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (2)))))) ORDER BY "shipping_policy"."policy_id" LIMIT 100;
Date: 2026-07-22 22:59:14 Duration: 11s105ms
9 8s350ms 12s983ms 9s601ms 14 2m14s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and ((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false))) 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"."policy_id" limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 22 19 1 8s350ms 8s350ms 20 13 2m6s 9s697ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 500;
Date: 2026-07-22 20:51:45 Duration: 12s983ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:02:51 Duration: 9s972ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (80)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (10))))) 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"."policy_id" LIMIT 100;
Date: 2026-07-22 20:07:23 Duration: 9s835ms
10 7s783ms 11s312ms 9s245ms 152 23m25s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (("shipping_policy"."customer_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))) or ("shipping_policy"."customer_receive_id" in ( select "urgent_customer".id from "urgent_customer" where ("urgent_customer"."user_id" = ?))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 22 02 1 8s566ms 8s566ms 03 2 17s645ms 8s822ms 09 1 7s845ms 7s845ms 11 5 46s490ms 9s298ms 12 10 1m37s 9s751ms 13 1 9s499ms 9s499ms 14 2 17s884ms 8s942ms 15 22 3m26s 9s389ms 16 8 1m16s 9s532ms 17 1 8s557ms 8s557ms 18 23 3m16s 8s546ms 19 6 49s554ms 8s259ms 20 57 9m5s 9s562ms 21 3 27s540ms 9s180ms 22 7 1m1s 8s763ms Jul 23 00 1 9s436ms 9s436ms 01 2 19s31ms 9s515ms -
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s312ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:51:31 Duration: 11s246ms
-
SELECT "shipping_policy".id FROM "shipping_policy" WHERE (("shipping_policy"."active" = true) AND (("shipping_policy"."customer_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))) OR ("shipping_policy"."customer_receive_id" in ( SELECT "urgent_customer".id FROM "urgent_customer" WHERE ("urgent_customer"."user_id" = 2107))))) ORDER BY "shipping_policy"."id" DESC LIMIT 10;
Date: 2026-07-22 20:46:44 Duration: 11s52ms
11 4s175ms 10s165ms 7s989ms 28 3m43s 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 22 08 7 49s970ms 7s138ms 14 1 8s801ms 8s801ms 16 2 19s134ms 9s567ms 17 7 53s458ms 7s636ms 18 2 16s659ms 8s329ms 20 2 17s957ms 8s978ms 21 7 57s733ms 8s247ms -
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 58, 75, 28, 50, 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, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 51, 55, 30, 68, 79, 66, 83, 95, 63, 69)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%5028242%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 08:58:00 Duration: 10s165ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."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 ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))) AND ("policy_number"."name"::text ilike '%892403%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:03:13 Duration: 10s50ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2414)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (123)))))) AND ("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))) AND ("policy_number"."name"::text ilike '%9729196%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:47 Duration: 9s610ms
12 5s38ms 10s259ms 7s220ms 22 2m38s 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null)))) and ("policy_number"."name"::text ilike ?)) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 22 16 5 36s686ms 7s337ms 18 2 14s516ms 7s258ms 19 6 37s115ms 6s185ms 20 6 47s482ms 7s913ms 23 1 8s502ms 8s502ms Jul 23 00 2 14s555ms 7s277ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (53)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%855065%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:14:00 Duration: 10s259ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (27)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%236932%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 20:40:09 Duration: 9s895ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (51)))))) AND ("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)))) AND ("policy_number"."name"::text ilike '%289537%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:08:38 Duration: 9s719ms
13 6s531ms 7s487ms 6s860ms 58 6m37s select "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" from "shipping_report_details" where "shipping_report_details".id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 22 08 57 6m31s 6s860ms Jul 23 00 1 6s854ms 6s854ms -
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22326859, 22239961, 22494081, 22351916, 22003779, 22334259, 22270051, 22467069, 22446348, 22300580, 22389423, 22034550, 22488297, 21932545, 22326566, 22390673, 22302855, 20824099, 21972953, 21068481, 22065995);
Date: 2026-07-22 08:40:36 Duration: 7s487ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22467495, 22466387, 22295325, 22236420);
Date: 2026-07-22 08:40:06 Duration: 7s465ms
-
SELECT "shipping_report_details"."id" AS "id", "shipping_report_details"."last_office" AS "last_office", "shipping_report_details"."delegate_id" AS "delegate_id", "shipping_report_details"."last_car" AS "last_car", "shipping_report_details"."total_count" AS "total_count", "shipping_report_details"."received_count" AS "received_count", "shipping_report_details"."delay_count" AS "delay_count", "shipping_report_details"."out_date" AS "out_date" FROM "shipping_report_details" WHERE "shipping_report_details".id IN (22436206, 22517468, 22404212, 22496863, 22475083, 22453055, 22497040, 22239844, 22341670);
Date: 2026-07-22 08:43:08 Duration: 7s384ms
14 4s541ms 5s670ms 5s10ms 13 1m5s select min("shipping_policy".id) as id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" AS "write_uid" from "shipping_policy" left join "res_users" AS "shipping_policy__write_uid" on ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") left join "res_partner" AS "shipping_policy__write_uid__partner_id" on ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or (("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))) or ("shipping_policy"."write_uid" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where ("res_users__partner_id"."name"::text ilike ?) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and ((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or (("res_users__partner_id"."company_id" in (...)) or "res_users__partner_id"."company_id" is null)) and ((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null)))))))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) group by "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" order by "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 22 02 4 19s169ms 4s792ms 06 9 45s965ms 5s107ms -
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:03 Duration: 5s670ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:10:05 Duration: 5s466ms
-
SELECT min("shipping_policy".id) AS id, count("shipping_policy".id) AS "write_uid_count", sum("shipping_policy"."total_no_items") AS "total_no_items", sum("shipping_policy"."x_total_shipping_price") AS "x_total_shipping_price", sum("shipping_policy"."x_total_shipping_price_written") AS "x_total_shipping_price_written", sum("shipping_policy"."x_collection_amount_sender") AS "x_collection_amount_sender", sum("shipping_policy"."x_collection_amount_receive") AS "x_collection_amount_receive", sum("shipping_policy"."x_total_amount_cash_lines") AS "x_total_amount_cash_lines", sum("shipping_policy"."x_cash_amount_written") AS "x_cash_amount_written", "shipping_policy"."write_uid" as "write_uid" FROM "shipping_policy" LEFT JOIN "res_users" AS "shipping_policy__write_uid" ON ("shipping_policy"."write_uid" = "shipping_policy__write_uid"."id") LEFT JOIN "res_partner" AS "shipping_policy__write_uid__partner_id" ON ("shipping_policy__write_uid"."partner_id" = "shipping_policy__write_uid__partner_id"."id") WHERE (("shipping_policy"."active" = true) AND (((("shipping_policy"."state" != 'cancel') OR "shipping_policy"."state" IS NULL) AND ("shipping_policy"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الصعيد%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%اسلام شامية%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%احمد جا%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR (("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%الاسوان%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))) OR ("shipping_policy"."write_uid" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE ("res_users__partner_id"."name"::text ilike '%ابو يوسف%') AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND ((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR (("res_users__partner_id"."company_id" in (1)) OR "res_users__partner_id"."company_id" IS NULL)) AND ((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL)))))))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (14, 15, 16, 17, 18, 40, 129, 130)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 75, 28, 50, 123, 27, 64, 78, 102, 76, 16, 48, 73, 65, 22, 24, 110, 19, 81, 32, 6, 3, 4, 14))))) OR ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."client_office" = true))))) GROUP BY "shipping_policy"."write_uid", "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" ORDER BY "shipping_policy__write_uid__partner_id"."name", "shipping_policy__write_uid"."login" LIMIT 80;
Date: 2026-07-22 06:12:07 Duration: 5s394ms
15 3s475ms 4s336ms 3s799ms 9 34s194ms 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 ("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"."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 ("policy_number"."notebook_id" in ( select "notebook".id from "notebook" where "notebook"."deliver_date" is not null))) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 22 08 1 4s127ms 4s127ms 14 1 3s475ms 3s475ms 16 2 7s462ms 3s731ms 18 1 4s336ms 4s336ms 20 2 7s574ms 3s787ms 21 2 7s217ms 3s608ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."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 ("policy_number"."notebook_id" in ( SELECT "notebook".id FROM "notebook" WHERE "notebook"."deliver_date" IS NOT NULL))) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:03:05 Duration: 4s336ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (39, 13, 115, 58, 75, 28, 50, 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, 33, 34, 42, 114, 71, 17, 14, 74, 41, 40, 52, 111, 53, 29, 85, 60, 49, 43, 70, 54, 61, 46, 11, 26, 23, 128, 77, 67, 62, 51, 55, 30, 68, 79, 66, 83, 95, 63, 69)))))) AND ("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" LIMIT 8;
Date: 2026-07-22 08:57:51 Duration: 4s127ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2414)) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (123)))))) AND ("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" LIMIT 8;
Date: 2026-07-22 16:46:38 Duration: 3s979ms
16 3s82ms 5s306ms 3s792ms 11 41s718ms select "policy_number".id from "policy_number" where (("policy_number"."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"."office_id" in (...)))) order by "policy_number"."id" limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 22 08 1 5s306ms 5s306ms 09 3 11s32ms 3s677ms 10 2 7s165ms 3s582ms 13 1 3s717ms 3s717ms 15 1 3s932ms 3s932ms 16 3 10s563ms 3s521ms -
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (64)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 08:27:40 Duration: 5s306ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (65)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 15:06:59 Duration: 3s932ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (("policy_number"."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"."office_id" in (78)))) ORDER BY "policy_number"."id" LIMIT 80;
Date: 2026-07-22 16:18:12 Duration: 3s837ms
17 3s474ms 3s983ms 3s731ms 10 37s317ms select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and (("shipping_policy"."last_action" < ?) and ("shipping_policy"."state" = ?)))) and true order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 22 14 5 18s296ms 3s659ms 15 3 11s867ms 3s955ms 16 2 7s152ms 3s576ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s983ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s959ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND (("shipping_policy"."last_action" < '2026-07-18') AND ("shipping_policy"."state" = 'in_way')))) AND TRUE ORDER BY "shipping_policy"."id" DESC LIMIT 100;
Date: 2026-07-22 15:02:55 Duration: 3s924ms
18 3s411ms 4s31ms 3s691ms 13 47s992ms 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 #18
Day Hour Count Duration Avg duration Jul 22 13 4 14s975ms 3s743ms 17 8 29s170ms 3s646ms 21 1 3s846ms 3s846ms -
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 '%8920%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 13:42:27 Duration: 4s31ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 17:31:21 Duration: 3s971ms
-
SELECT "policy_number".id FROM "policy_number" WHERE (((((((("policy_number"."active" = true) AND ("policy_number"."package_id" = 2425)) 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 (102))))))) 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 (102)))))) 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 (102)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (102)))))) 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 (102))))))))) 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 (102))))))) AND ("policy_number"."name"::text ilike '%714107%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 21:39:03 Duration: 3s846ms
19 3s119ms 5s811ms 3s553ms 225 13m19s 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 #19
Day Hour Count Duration Avg duration Jul 22 02 1 3s295ms 3s295ms 09 4 14s677ms 3s669ms 11 2 7s291ms 3s645ms 12 7 25s792ms 3s684ms 14 5 17s369ms 3s473ms 16 8 34s430ms 4s303ms 17 8 30s403ms 3s800ms 18 34 2m1s 3s583ms 19 34 1m59s 3s525ms 20 31 1m49s 3s536ms 21 31 1m46s 3s427ms 22 14 49s370ms 3s526ms 23 28 1m37s 3s476ms Jul 23 00 18 1m2s 3s444ms -
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:48:18 Duration: 5s811ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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 (22))))))) 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 (22)))))) 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 (22)))) AND ("notebook"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (22)))))) 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 (22))))))))) 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 (22)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 16:46:39 Duration: 5s589ms
-
SELECT "policy_number".id FROM "policy_number" WHERE ((("policy_number"."active" = true) AND (((((("policy_number"."package_id" = 2425) 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"."office_id" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (55)))) 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"."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)))))))) AND ("policy_number"."name"::text ilike '%7%')) ORDER BY "policy_number"."id" LIMIT 8;
Date: 2026-07-22 18:12:54 Duration: 5s194ms
20 3s174ms 3s773ms 3s548ms 30 1m46s select "shipping_policy".id from "shipping_policy" where (("shipping_policy"."active" = true) and (((("shipping_policy"."state" != ?) or "shipping_policy"."state" is null) and ("shipping_policy"."x_is_inventory" is null or "shipping_policy"."x_is_inventory" = false)) and ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."name"::text ilike ?))))) and (("shipping_policy"."last_warehouse" in ( select "urgent_warehouse".id from "urgent_warehouse" where ("urgent_warehouse"."id" in (...)))) or ((((("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."last_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."id" in (...))))) or ("shipping_policy"."to_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true)))) or ("shipping_policy"."from_office" in ( select "urgent_office".id from "urgent_office" where ("urgent_office"."client_office" = true))))) order by "shipping_policy"."id" desc limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 22 09 1 3s174ms 3s174ms 10 1 3s235ms 3s235ms 12 3 10s840ms 3s613ms 13 12 42s790ms 3s565ms 14 3 11s7ms 3s669ms 16 1 3s388ms 3s388ms 17 6 21s551ms 3s591ms 18 1 3s735ms 3s735ms 20 1 3s338ms 3s338ms 21 1 3s381ms 3s381ms -
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%بهت%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (105)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (30))))) 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: 2026-07-22 12:32:23 Duration: 3s773ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%اسوان%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (82, 118)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (36))))) 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: 2026-07-22 17:24:03 Duration: 3s758ms
-
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"."x_is_inventory" IS NULL or "shipping_policy"."x_is_inventory" = false)) AND ("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."name"::text ilike '%وسط البلد%'))))) AND (("shipping_policy"."last_warehouse" in ( SELECT "urgent_warehouse".id FROM "urgent_warehouse" WHERE ("urgent_warehouse"."id" in (102)))) OR ((((("shipping_policy"."to_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62)))) OR ("shipping_policy"."from_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) OR ("shipping_policy"."last_office" in ( SELECT "urgent_office".id FROM "urgent_office" WHERE ("urgent_office"."id" in (62))))) 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: 2026-07-22 18:29:21 Duration: 3s735ms
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 7,485 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 97 FATAL entries
- 2781 ERROR entries
- 0 WARNING entries
- 12 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 2,607 Max number of times the same event was reported
- 2,890 Total events found
Rank Times reported Error 1 2,607 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 22 02 110 03 111 04 110 05 110 06 110 07 105 08 110 09 110 10 109 11 110 12 110 13 111 14 110 15 110 16 110 17 109 18 109 19 110 20 110 21 110 22 110 23 110 Jul 23 00 110 01 83 - ERROR: column res_partner.x_precentage_office does not exist at character 2190
- ERROR: column res_partner.x_precentage_office does not exist at character 2190
- ERROR: column res_partner.x_precentage_office does not exist at character 2190
Statement: 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"."x_is_client" AS "x_is_client", "res_partner"."x_precentage_office" AS "x_precentage_office", "res_partner"."signup_type" AS "signup_type", "res_partner"."signup_expiration" AS "signup_expiration" FROM "res_partner" WHERE "res_partner".id IN (2)
Date: 2026-07-22 02:00:23
Statement: 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"."x_is_client" AS "x_is_client", "res_partner"."x_precentage_office" AS "x_precentage_office", "res_partner"."signup_type" AS "signup_type", "res_partner"."signup_expiration" AS "signup_expiration" FROM "res_partner" WHERE "res_partner".id IN (2)
Date: 2026-07-22 02:00:44
Statement: 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"."x_is_client" AS "x_is_client", "res_partner"."x_precentage_office" AS "x_precentage_office", "res_partner"."signup_type" AS "signup_type", "res_partner"."signup_expiration" AS "signup_expiration" FROM "res_partner" WHERE "res_partner".id IN (2)
Date: 2026-07-22 02:01:26
2 91 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 22 02 1 03 1 04 1 12 1 16 1 17 2 18 41 19 19 20 7 22 5 23 6 Jul 23 00 3 01 3 - 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 "policy_tracking_missing" SET "count" = 1416, "shipping_id" = 22580126, "to_policy_id" = 55064512, "write_date" = '2026-07-22 00:00:46.849774', "write_uid" = 1224 WHERE id IN (19736)
Date: 2026-07-22 02:00:57
Statement: INSERT INTO policy_number_policy_tracking_missing_rel (policy_tracking_missing_id, policy_number_id) VALUES (19728, 54908075), (19728, 54908076), (19728, 54908077), (19728, 54908078) ON CONFLICT DO NOTHING
Date: 2026-07-22 03:04:29
Statement: UPDATE "policy_tracking_missing" SET "count" = 58, "shipping_id" = 22584285, "to_policy_id" = 55149292, "write_date" = '2026-07-22 02:43:24.579485', "write_uid" = 1764 WHERE id IN (19853)
Date: 2026-07-22 04:43:34
3 78 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 22 05 7 07 1 08 9 11 12 14 14 17 13 20 12 23 10 - FATAL: terminating connection due to administrator command
- FATAL: terminating connection due to administrator command
- FATAL: terminating connection due to administrator command
Date: 2026-07-22 05:00:07
Date: 2026-07-22 05:00:07
Date: 2026-07-22 05:00:07
4 72 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 22 02 4 06 3 07 3 08 3 09 4 10 2 11 5 12 8 13 7 14 2 15 5 16 13 17 4 18 5 20 3 Jul 23 00 1 - ERROR: syntax error at or near ")" at character 163
- ERROR: syntax error at or near ")" at character 162
- ERROR: syntax error at or near ")" at character 162
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 ('9978572',)
Date: 2026-07-22 02:03:12
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 ('757607',)
Date: 2026-07-22 02:09:27
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 ('634787',)
Date: 2026-07-22 02:38:57
5 12 FATAL: the database system is shutting down
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 22 05 1 08 1 11 2 14 2 17 2 20 2 23 2 - FATAL: the database system is shutting down
- FATAL: the database system is shutting down
- FATAL: the database system is shutting down
Date: 2026-07-22 05:00:07
Date: 2026-07-22 08:00:07
Date: 2026-07-22 11:00:06
6 9 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 22 02 1 05 1 07 1 08 1 11 1 14 1 17 1 20 1 23 1 - LOG: database system was shut down at 2026-07-22 02:00:07 CEST
- LOG: database system was shut down at 2026-07-22 05:00:07 CEST
- LOG: database system was shut down at 2026-07-22 07:20:02 CEST
Date: 2026-07-22 02:00:10
Date: 2026-07-22 05:00:10
Date: 2026-07-22 07:22:02
7 6 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 22 11 2 12 1 19 1 21 2 - ERROR: duplicate key value violates unique constraint "ir_filters_name_model_uid_unique_action_index"
- ERROR: duplicate key value violates unique constraint "ir_filters_name_model_uid_unique_action_index"
- ERROR: duplicate key value violates unique constraint "ir_filters_name_model_uid_unique_action_index"
Detail: Key (model_id, COALESCE(user_id, '-1'::integer), COALESCE(action_id, '-1'::integer), lower(name::text))=(shipping.policy, -1, -1, اسلام22/7) already exists.
Statement: INSERT INTO "ir_filters" ("active", "context", "create_date", "create_uid", "domain", "model_id", "name", "sort", "write_date", "write_uid") VALUES (true, '{}', '2026-07-22 07:01:50.579373', 1485, '[(''id'', ''in'', [22549471, 5138246, 21981369, 5606956, 22574319, 5395484, 22575739, 5411400, 22550222, 5761563, 22550303, 5554380, 22554180, 5915304, 22554186, 5903456, 22554190, 5933131, 22577003, 5479250, 22561512, 5543661, 5534498, 22574333, 22569568, 5540652, 22554171, 5611660, 5559174, 22548100, 5559163, 22548860, 22580309, 5597769, 22559601, 5601916, 22553559, 5531782, 5644836, 22498148, 22493930, 5714210, 22564583, 5570953, 22564607, 22575154, 5796659, 22580317, 5803450, 22558488, 6034600, 22559303, 5578377, 22536880, 5592031, 22531850, 6010091, 6111485, 22553130, 6385195, 22554796, 5740651, 22541744, 5617527, 22557721, 22550377, 5791410, 5778710, 22562570, 22576645, 5621846, 22555939, 5667573, 22574426, 5838103, 22557764, 22547793, 5742076, 5707750, 22550633, 22503083, 5884187, 22525401, 5857847, 22560704, 5858033, 5807107, 22541771, 22580323, 5994823, 22573710, 7756881, 22573627, 6194788, 22526669, 5959048, 5802212, 22552285, 5815079, 22561457, 22548174, 5941016, 22558925, 6014909, 6038299, 22557888, 22576874, 5849053, 6009922, 22539153, 5860916, 22560994, 5861189, 22573661, 22573619, 5908916, 22541736, 5885234, 22573643, 5879594, 22573488, 5851270, 22580325, 6107459, 22559968, 6165575]), (''state'', ''!='', ''cancel''), (''x_is_inventory'', ''='', False)]', 'shipping.policy', 'اسلام22/7', '[]', '2026-07-22 07:01:50.579373', 1485) RETURNING "id"Date: 2026-07-22 11:01:50
Detail: Key (model_id, COALESCE(user_id, '-1'::integer), COALESCE(action_id, '-1'::integer), lower(name::text))=(shipping.policy, -1, 661, كريم عادل22/7) already exists.
Statement: INSERT INTO "ir_filters" ("action_id", "active", "context", "create_date", "create_uid", "domain", "is_default", "model_id", "name", "sort", "user_id", "write_date", "write_uid") VALUES (661, true, '{''group_by'': []}', '2026-07-22 07:31:45.036324', 1535, '["|", ("pol_name", "=", "671653"), "|", ("pol_name", "=", "671654"), "|", ("pol_name", "=", "732670"), "|", ("pol_name", "=", "858240"), "|", ("pol_name", "=", "594948"), "|", ("pol_name", "=", "670536"), "|", ("pol_name", "=", "38290"), "|", ("pol_name", "=", "683430"), "|", ("pol_name", "=", "670556"), "|", ("pol_name", "=", "567375"), "|", ("pol_name", "=", "581777"), "|", ("pol_name", "=", "760658"), "|", ("pol_name", "=", "887958"), "|", ("pol_name", "=", "680020"), "|", ("pol_name", "=", "355337"), "|", ("pol_name", "=", "750465"), ("pol_name", "=", "683958")]', false, 'shipping.policy', 'كريم عادل22/7', '[]', NULL, '2026-07-22 07:31:45.036324', 1535) RETURNING "id"Date: 2026-07-22 11:31:45
Detail: Key (model_id, COALESCE(user_id, '-1'::integer), COALESCE(action_id, '-1'::integer), lower(name::text))=(shipping.policy, -1, -1, البرنس22/7) already exists.
Statement: INSERT INTO "ir_filters" ("active", "context", "create_date", "create_uid", "domain", "model_id", "name", "sort", "write_date", "write_uid") VALUES (true, '{}', '2026-07-22 08:44:36.590902', 1485, '[(''id'', ''in'', [22559274, 4881955, 22548229, 4563347, 22557843, 4972783, 22555262, 5281384, 4912666, 21934297, 5415288, 22522379, 1608071, 5519870, 22515297, 2686364, 22553223, 5396421, 22552282, 6069019, 22550033, 9693138, 22550034, 5422348, 22550759, 22554007, 5464338, 5534520, 22561514, 22561468, 5543923, 6601029, 22551216, 22557508, 5617907, 5553742, 22561899, 22561895, 5553490, 5932981, 22551397, 22551988, 5703064, 22575744, 5800964, 22580310, 6708083, 22346894, 5539367, 5637819, 22556352, 7444534, 22574528, 5583682, 22556509, 22515494, 5657176, 5778712, 22562567, 22575736, 5678477, 22575748, 5986596, 6034944, 22575751, 22553530, 5985798, 22573713, 5923732, 22574068, 10035946, 5793685, 22571056, 22571047, 5725834, 22571629, 5885604, 22553351, 5837185, 5649916, 22555095, 22547355, 5921541, 6183102, 22559816, 22551566, 5796839, 22547750, 5802257, 5693564, 22552147, 5737772, 22489764, 22580357, 5848934, 22580344, 6089163, 22573704, 6035192, 5815748, 22535821, 5841382, 22561459, 22558867, 6014988, 5715738, 22531799, 5840352, 22580293, 7337555, 22562088, 22556801, 5897771, 5814984, 22550975, 22580338, 6943729, 22573694, 6490019, 22573691, 6646002, 22574469, 6166125, 21934372, 3705777, 22372248, 4348639, 22372250, 4388004]), (''state'', ''!='', ''cancel''), (''x_is_inventory'', ''='', False)]', 'shipping.policy', 'البرنس22/7', '[]', '2026-07-22 08:44:36.590902', 1485) RETURNING "id"Date: 2026-07-22 12:44:36
8 5 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 22 17 2 Jul 23 00 2 01 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 206055 waits for ShareLock on transaction 83436023; blocked by process 4019313. Process 4019313 waits for ShareLock on transaction 83436026; blocked by process 206055. Process 206055: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 15:27:18.425696', "write_uid" = 2040 WHERE id IN (22492388, 22492387, 22492385, 22492384, 22492383, 22490300, 22490295, 22490292, 22490261, 22490253, 22490244, 22489059, 22489041, 22489039, 22489027, 22489023, 22488994, 22488984, 22488982, 22488858, 22487153, 22486984, 22486904, 22486903, 22486550, 22486538, 22486537, 22486503, 22486497, 22486474, 22486407, 22486337, 22486320, 22486304, 22485937, 22484738, 22484669, 22484659, 22484650, 22484640, 22484597, 22484594, 22484584, 22484574, 22484566, 22484532, 22484521, 22484201, 22483862, 22483846, 22482369, 22482079, 22481938, 22481886, 22481102, 22481060, 22481039, 22481036, 22481035, 22481034, 22481013, 22479985, 22479650, 22478625, 22478618, 22478587, 22478585, 22478579, 22478398, 22478361, 22478206, 22478194, 22477790, 22477774, 22477494, 22477489, 22477483, 22477365, 22477345, 22477342, 22477310, 22477308, 22477023, 22476964, 22476638, 22476636, 22476 Process 4019313: update shipping_policy set state_collection='confirm' where id=22464737
Context: while updating tuple (135226,45) in relation "shipping_policy"
Hint: See server log for query details.
Statement: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 15:27:18.425696', "write_uid" = 2040 WHERE id IN (22492388, 22492387, 22492385, 22492384, 22492383, 22490300, 22490295, 22490292, 22490261, 22490253, 22490244, 22489059, 22489041, 22489039, 22489027, 22489023, 22488994, 22488984, 22488982, 22488858, 22487153, 22486984, 22486904, 22486903, 22486550, 22486538, 22486537, 22486503, 22486497, 22486474, 22486407, 22486337, 22486320, 22486304, 22485937, 22484738, 22484669, 22484659, 22484650, 22484640, 22484597, 22484594, 22484584, 22484574, 22484566, 22484532, 22484521, 22484201, 22483862, 22483846, 22482369, 22482079, 22481938, 22481886, 22481102, 22481060, 22481039, 22481036, 22481035, 22481034, 22481013, 22479985, 22479650, 22478625, 22478618, 22478587, 22478585, 22478579, 22478398, 22478361, 22478206, 22478194, 22477790, 22477774, 22477494, 22477489, 22477483, 22477365, 22477345, 22477342, 22477310, 22477308, 22477023, 22476964, 22476638, 22476636, 22476522, 22476013, 22475526, 22475157, 22475132, 22475101, 22474535, 22474461, 22474426, 22474369, 22474018, 22473491, 22473480, 22473426, 22473386, 22473376, 22473306, 22473223, 22472519, 22472024, 22471480, 22470770, 22470595, 22470380, 22470312, 22470090, 22470009, 22469908, 22469831, 22469825, 22469635, 22469634, 22469445, 22469403, 22469362, 22469357, 22469158, 22469096, 22469005, 22468991, 22468893, 22468623, 22468581, 22468210, 22467957, 22467838, 22467802, 22467576, 22467552, 22467549, 22467455, 22467221, 22467095, 22466950, 22466937, 22466820, 22466423, 22466326, 22465814, 22465812, 22465642, 22465632, 22465631, 22465628, 22465586, 22465582, 22465571, 22465136, 22465075, 22465074, 22465072, 22465044, 22465042, 22464817, 22464813, 22464737, 22464734, 22464652, 22464495, 22464048, 22461374, 22461321, 22459787, 22458359, 22458039, 22457962, 22452811, 22452336, 22451801, 22435464, 22427897, 22426933, 22425954, 22424057, 22422428, 22421595, 22421431, 22421416, 22409839, 22406685, 22396400, 22393466, 22368334, 22360803, 22354120, 22343955, 22342203, 22040161)Date: 2026-07-22 17:27:19
Detail: Process 2183566 waits for ShareLock on transaction 83438910; blocked by process 4019697. Process 4019697 waits for ShareLock on transaction 83438911; blocked by process 2183566. Process 2183566: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 15:51:50.247262', "write_uid" = 2040 WHERE id IN (22516950, 22516949, 22516945, 22516942, 22516941, 22516939, 22516938, 22516936, 22516935, 22516934, 22516933, 22516932, 22516931, 22516857, 22514939, 22514938, 22514936, 22514935, 22514463, 22514299, 22514268, 22514187, 22513481, 22513430, 22513428, 22513399, 22513398, 22513397, 22513395, 22513394, 22513393, 22513392, 22513391, 22513390, 22513388, 22513329, 22512856, 22512804, 22512797, 22512583, 22512342, 22512312, 22510787, 22510784, 22510747, 22510716, 22510710, 22510705, 22510700, 22509816, 22509792, 22509749, 22509744, 22509493, 22509335, 22508139, 22507853, 22507847, 22507106, 22506805, 22506544, 22506438, 22506311, 22505385, 22504991, 22504980, 22504977, 22504966, 22504957, 22504954, 22504706, 22504209, 22504200, 22503919, 22503559, 22503448, 22503399, 22503284, 22503279, 22503077, 22502979, 22502234, 22501679, 22501623, 22501469, 22501335, 22501 Process 4019697: update shipping_policy set state_collection='confirm' where id=22474327
Context: while updating tuple (244614,32) in relation "shipping_policy"
Hint: See server log for query details.
Statement: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 15:51:50.247262', "write_uid" = 2040 WHERE id IN (22516950, 22516949, 22516945, 22516942, 22516941, 22516939, 22516938, 22516936, 22516935, 22516934, 22516933, 22516932, 22516931, 22516857, 22514939, 22514938, 22514936, 22514935, 22514463, 22514299, 22514268, 22514187, 22513481, 22513430, 22513428, 22513399, 22513398, 22513397, 22513395, 22513394, 22513393, 22513392, 22513391, 22513390, 22513388, 22513329, 22512856, 22512804, 22512797, 22512583, 22512342, 22512312, 22510787, 22510784, 22510747, 22510716, 22510710, 22510705, 22510700, 22509816, 22509792, 22509749, 22509744, 22509493, 22509335, 22508139, 22507853, 22507847, 22507106, 22506805, 22506544, 22506438, 22506311, 22505385, 22504991, 22504980, 22504977, 22504966, 22504957, 22504954, 22504706, 22504209, 22504200, 22503919, 22503559, 22503448, 22503399, 22503284, 22503279, 22503077, 22502979, 22502234, 22501679, 22501623, 22501469, 22501335, 22501322, 22501315, 22501294, 22501123, 22500676, 22500552, 22500537, 22500380, 22500327, 22499516, 22499513, 22499504, 22499493, 22499331, 22498860, 22498163, 22498134, 22498065, 22498056, 22498055, 22498027, 22497984, 22497773, 22497232, 22497141, 22496853, 22495837, 22495562, 22495541, 22495476, 22495280, 22495206, 22495205, 22495186, 22495185, 22495140, 22495028, 22494918, 22494865, 22494633, 22494386, 22494122, 22494105, 22494016, 22493728, 22493537, 22493528, 22493455, 22493454, 22493444, 22493441, 22493431, 22493291, 22493159, 22493156, 22493097, 22493047, 22493045, 22493037, 22492821, 22492335, 22489907, 22489475, 22488526, 22481942, 22480347, 22478490, 22477459, 22476788, 22475369, 22475233, 22474327, 22470795, 22470499, 22464014, 22461784, 22457202, 22456920, 22455654, 22454792, 22452173, 22450891, 22450879)Date: 2026-07-22 17:51:51
Detail: Process 186724 waits for ShareLock on transaction 83843933; blocked by process 3366499. Process 3366499 waits for ShareLock on transaction 83843946; blocked by process 186724. Process 186724: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 22:36:03.862410', "write_uid" = 2117 WHERE id IN (22492802, 22492801, 22490436, 22490434, 22490433, 22490432, 22490431, 22490430, 22490429, 22490428, 22490427, 22490426, 22490424, 22490423, 22490303, 22490293, 22490287, 22490282, 22490262, 22490235, 22489057, 22489056, 22489054, 22489008, 22488991, 22488977, 22488974, 22488855, 22487564, 22487152, 22486899, 22486894, 22486893, 22486890, 22486874, 22486867, 22486858, 22486642, 22486546, 22486542, 22486541, 22486535, 22486514, 22486509, 22486508, 22486499, 22486490, 22486478, 22486473, 22486451, 22486446, 22486436, 22486430, 22486416, 22486405, 22486400, 22486388, 22486381, 22486380, 22486378, 22486366, 22486348, 22486346, 22486339, 22486307, 22486305, 22486300, 22486298, 22486288, 22486283, 22485938, 22485907, 22485902, 22485895, 22484698, 22484697, 22484696, 22484674, 22484656, 22484655, 22484646, 22484630, 22484621, 22484618, 22484617, 22484610, 22484 Process 3366499: update shipping_policy set state_collection='confirm' where id=22475113
Context: while updating tuple (216031,21) in relation "shipping_policy"
Hint: See server log for query details.
Statement: UPDATE "shipping_policy" SET "archive_date" = '2026-07-22', "state" = 'archive', "write_date" = '2026-07-22 22:36:03.862410', "write_uid" = 2117 WHERE id IN (22492802, 22492801, 22490436, 22490434, 22490433, 22490432, 22490431, 22490430, 22490429, 22490428, 22490427, 22490426, 22490424, 22490423, 22490303, 22490293, 22490287, 22490282, 22490262, 22490235, 22489057, 22489056, 22489054, 22489008, 22488991, 22488977, 22488974, 22488855, 22487564, 22487152, 22486899, 22486894, 22486893, 22486890, 22486874, 22486867, 22486858, 22486642, 22486546, 22486542, 22486541, 22486535, 22486514, 22486509, 22486508, 22486499, 22486490, 22486478, 22486473, 22486451, 22486446, 22486436, 22486430, 22486416, 22486405, 22486400, 22486388, 22486381, 22486380, 22486378, 22486366, 22486348, 22486346, 22486339, 22486307, 22486305, 22486300, 22486298, 22486288, 22486283, 22485938, 22485907, 22485902, 22485895, 22484698, 22484697, 22484696, 22484674, 22484656, 22484655, 22484646, 22484630, 22484621, 22484618, 22484617, 22484610, 22484604, 22484602, 22484570, 22484568, 22484549, 22484546, 22484541, 22484091, 22483832, 22482306, 22481219, 22481128, 22481125, 22481097, 22481073, 22481023, 22480005, 22479649, 22478868, 22478866, 22478746, 22478720, 22478622, 22478621, 22478613, 22478612, 22478608, 22478607, 22478604, 22478602, 22478592, 22478590, 22478588, 22478578, 22478573, 22478366, 22478360, 22478353, 22478351, 22478203, 22477795, 22477482, 22477471, 22477462, 22477416, 22477368, 22477334, 22477326, 22477324, 22477014, 22476685, 22476680, 22475841, 22475750, 22475749, 22475531, 22475527, 22475516, 22475508, 22475507, 22475499, 22475467, 22475456, 22475442, 22475423, 22475417, 22475139, 22475113, 22475102, 22474839, 22474691, 22474684, 22474593, 22474425, 22474365, 22474020, 22473819, 22473818, 22473817, 22473815, 22473813, 22473393, 22473384, 22473381, 22473177, 22473107, 22472746, 22472589, 22472551, 22472176, 22472119, 22471764, 22471391, 22471225, 22471206, 22471177, 22471174, 22471049, 22471026, 22470933, 22470922, 22470704, 22470562, 22470500, 22470485, 22470473, 22470385, 22470343, 22470145, 22469619, 22469615, 22469555, 22469460, 22469368, 22469268, 22469266, 22469176, 22469155, 22469154, 22469047, 22469036, 22469003, 22468965, 22468963, 22468920, 22468856, 22468793, 22468533, 22468196, 22468006, 22467951, 22467885, 22467881, 22467855, 22467837, 22467692, 22467619, 22467530, 22467527, 22467104, 22466948, 22466859, 22466830, 22466829, 22466808, 22466751, 22466643, 22466398, 22466382, 22466331, 22465975, 22465922, 22465854, 22465732, 22465721, 22465640, 22465572, 22465172, 22465061, 22465053, 22464877, 22464771, 22464760, 22464639, 22464599, 22464430, 22464425, 22464061, 22464050, 22461382, 22460854, 22459793, 22459237, 22458028, 22455189, 22454723, 22454380, 22453969, 22452241, 22447678, 22443163, 22441911, 22440760, 22437175, 22435696, 22435593)Date: 2026-07-23 00:36:05
9 5 FATAL: terminating background worker "..." due to administrator command
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 22 07 5 - 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 name from shipping_policy order by create_date desc limit 10
Date: 2026-07-22 07:20:01
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2026-07-22 07:20:01
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2026-07-22 07:20:01
10 3 LOG: could not send data to client: Broken pipe
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 22 07 1 18 2 - LOG: could not send data to client: Broken pipe
- LOG: could not send data to client: Broken pipe
- LOG: could not send data to client: Broken pipe
Statement: select name from shipping_policy order by create_date desc limit 10
Date: 2026-07-22 07:20:01
Date: 2026-07-22 18:00:04
Date: 2026-07-22 18:00:04
11 2 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 22 18 2 - FATAL: connection to client lost
- FATAL: connection to client lost
Date: 2026-07-22 18:00:04
Date: 2026-07-22 18:00:04