-
Global information
- Generated on Sat Jul 29 23:50:23 2023
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 24,959 log entries in 21s
- Log start from 2023-07-29 00:00:00 to 2023-07-29 23:50:00
-
Overview
Global Stats
- 185 Number of unique normalized queries
- 10,142 Number of queries
- 2h51m38s Total query duration
- 2023-07-29 00:00:00 First query
- 2023-07-29 23:47:09 Last query
- 14 queries/s at 2023-07-29 00:29:26 Query peak
- 2h51m38s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2h51m38s Execute total duration
- 500 Number of events
- 2 Number of unique normalized events
- 443 Max number of times the same event was reported
- 0 Number of cancellation
- 0 Total number of automatic vacuums
- 0 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 0 Total number of sessions
- 0 sessions at Session peak
- 0ms Total duration of sessions
- 0ms Average duration of sessions
- 10,142 Average queries per session
- 2h51m38s 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
- 14 queries/s Query Peak
- 2023-07-29 00:29:26 Date
SELECT Traffic
Key values
- 14 queries/s Query Peak
- 2023-07-29 00:29:26 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 8 queries/s Query Peak
- 2023-07-29 22:48:05 Date
Queries duration
Key values
- 2h51m38s 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
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 29 00 3,717 0ms 11s113ms 854ms 2m52s 3m23s 3m53s 01 1,356 127ms 6s651ms 1s89ms 26s274ms 26s419ms 27s455ms 02 1,336 525ms 6s644ms 1s113ms 26s351ms 28s834ms 31s325ms 03 1,318 525ms 6s661ms 1s129ms 26s865ms 28s885ms 30s12ms 04 1,336 137ms 7s409ms 1s123ms 26s804ms 29s47ms 37s203ms 05 68 0ms 1s705ms 1s17ms 24s699ms 24s699ms 24s699ms 06 2 0ms 1s820ms 1s456ms 2s912ms 2s912ms 2s912ms 07 11 0ms 2s856ms 1s6ms 6s104ms 6s104ms 6s104ms 08 0 0ms 0ms 0ms 0ms 0ms 0ms 09 78 0ms 3m43s 7s149ms 4m23s 4m23s 4m23s 10 81 0ms 25s514ms 3s908ms 49s286ms 50s820ms 50s820ms 11 1 0ms 155ms 155ms 155ms 155ms 155ms 12 11 0ms 744ms 368ms 1s435ms 1s435ms 1s435ms 13 5 0ms 896ms 464ms 1s789ms 1s789ms 1s789ms 14 63 0ms 1s808ms 338ms 2s953ms 3s279ms 3s575ms 15 26 0ms 10s915ms 1s133ms 3s378ms 16s106ms 16s106ms 16 0 0ms 0ms 0ms 0ms 0ms 0ms 17 4 0ms 244ms 220ms 730ms 730ms 730ms 18 3 0ms 242ms 241ms 725ms 725ms 725ms 19 9 0ms 244ms 200ms 1s69ms 1s69ms 1s69ms 20 6 0ms 278ms 217ms 767ms 767ms 767ms 21 41 0ms 607ms 326ms 5s375ms 5s375ms 5s375ms 22 661 0ms 1s810ms 194ms 32s334ms 54s752ms 54s752ms 23 9 0ms 2s733ms 871ms 3s847ms 3s847ms 3s847ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 29 00 3,519 0 811ms 1m58s 2m52s 3m53s 01 1,345 0 1s96ms 25s743ms 26s271ms 26s923ms 02 1,336 0 1s113ms 26s164ms 26s351ms 28s922ms 03 1,318 0 1s129ms 26s345ms 26s865ms 29s65ms 04 1,332 0 1s115ms 26s271ms 26s804ms 29s47ms 05 68 0 1s17ms 23s554ms 24s699ms 24s699ms 06 0 0 0ms 0ms 0ms 0ms 07 5 0 171ms 199ms 531ms 531ms 08 0 0 0ms 0ms 0ms 0ms 09 1 77 7s149ms 1m18s 4m23s 4m23s 10 13 0 161ms 243ms 348ms 1s108ms 11 1 0 155ms 0ms 155ms 155ms 12 9 0 392ms 964ms 1s180ms 1s180ms 13 5 0 464ms 1s789ms 1s789ms 1s789ms 14 53 0 292ms 1s430ms 1s521ms 3s575ms 15 20 0 506ms 733ms 2s784ms 3s378ms 16 0 0 0ms 0ms 0ms 0ms 17 4 0 220ms 153ms 730ms 730ms 18 3 0 241ms 0ms 725ms 725ms 19 9 0 200ms 731ms 1s69ms 1s69ms 20 6 0 217ms 540ms 767ms 767ms 21 26 0 391ms 1s711ms 5s375ms 5s375ms 22 307 0 199ms 6s232ms 12s328ms 19s477ms 23 5 0 218ms 225ms 744ms 744ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 29 00 0 184 1 0 1s678ms 0ms 1s32ms 48s241ms 01 0 5 6 0 213ms 0ms 0ms 376ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 3s750ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 2 0 1s456ms 0ms 2s912ms 2s912ms 07 0 0 6 0 1s702ms 0ms 4s109ms 6s104ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 68 0 4s625ms 30s348ms 38s885ms 50s576ms 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 2 6 2 0 586ms 0ms 0ms 2s907ms 15 0 0 6 0 3s222ms 0ms 0ms 16s106ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 2 13 0 0 215ms 353ms 828ms 986ms 22 1 351 2 0 189ms 1s502ms 2s605ms 35s274ms 23 0 0 4 0 1s688ms 0ms 2s907ms 3s847ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 29 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jul 29 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Jul 29 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 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
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Jul 29 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 29 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 29 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jul 29 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.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
Day Hour Count Total size Average size Jul 29 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 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
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Jul 29 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 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
- 9,385 Total read queries
- 757 Total write queries
Queries by database
Key values
- unknown Main database
- 10,142 Requests
- 2h51m38s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 43,578 Requests
User Request type Count Duration unknown Total 43,578 7h22m10s copy to 154 18m35s cte 103 1m42s delete 1,194 26m25s insert 335 1m2s select 30,495 5h12m18s update 11,297 1h22m7s Duration by user
Key values
- 7h22m10s (unknown) Main time consuming user
User Request type Count Duration unknown Total 43,578 7h22m10s copy to 154 18m35s cte 103 1m42s delete 1,194 26m25s insert 335 1m2s select 30,495 5h12m18s update 11,297 1h22m7s Queries by host
Key values
- unknown Main host
- 43,578 Requests
- 7h22m10s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 10,142 Requests
- 2h51m38s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2023-07-29 04:10:32 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 3,982 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 3m43s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2023-07-29 09:07:14 ]
2 1m14s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2023-07-29 09:02:13 ]
3 1m13s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2023-07-29 09:03:31 ]
4 28s281ms COPY public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) TO stdout;[ Date: 2023-07-29 09:09:25 ]
5 25s514ms DELETE FROM account_move_line WHERE id IN (2804585, 2804586, 2797543, 2797544, 2797545, 2797546, 2797547, 2797548, 2797549, 2797550, 2797551, 2797552, 2797553, 2797554, 2797555, 2797556, 2797557, 2797558, 2797559, 2797560, 2797561, 2797562, 2797563, 2797564, 2797565, 2797566, 2797567, 2797568);[ Date: 2023-07-29 10:35:27 ]
6 21s814ms DELETE FROM account_move_line WHERE id IN (2808543, 2808544, 2808545, 2808546, 2808547, 2808548, 2808549, 2808550, 2808551, 2808552, 2808553, 2808554, 2808555, 2808556, 2808557, 2808558, 2808559, 2808560, 2808561, 2808562, 2808563, 2808564, 2808577, 2808578);[ Date: 2023-07-29 10:30:37 ]
7 21s358ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id) TO stdout;[ Date: 2023-07-29 09:08:17 ]
8 20s830ms DELETE FROM account_move_line WHERE id IN (2809250, 2809251, 2768083, 2768084, 2768085, 2768086, 2768087, 2768088, 2768089, 2768090, 2768091, 2768092, 2768093, 2768094, 2768095, 2768096, 2768097, 2768098, 2768099, 2768100, 2768101, 2768102, 2768103);[ Date: 2023-07-29 10:23:44 ]
9 17s739ms COPY public.website_track (id, visitor_id, page_id, url, visit_datetime, product_id) TO stdout;[ Date: 2023-07-29 09:08:57 ]
10 17s261ms DELETE FROM account_move_line WHERE id IN (2772180, 2772181, 2772182, 2772183, 2772184, 2772185, 2772186, 2772187, 2772188, 2772189, 2772190, 2772191, 2772192, 2772193, 2772194, 2772195, 2798004, 2798005, 2798006);[ Date: 2023-07-29 10:29:49 ]
11 15s969ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax) TO stdout;[ Date: 2023-07-29 09:00:26 ]
12 13s750ms DELETE FROM account_move_line WHERE id IN (2817053, 2817054, 2726848, 2726849, 2726850, 2726851, 2726852, 2726853, 2726854, 2726855, 2726856, 2726857, 2726858, 2817051, 2817052);[ Date: 2023-07-29 10:36:18 ]
13 12s729ms DELETE FROM account_move_line WHERE id IN (2798373, 2798374, 2798375, 2798376, 2798377, 2798378, 2798379, 2798380, 2798381, 2798382, 2798383, 2798408, 2798409, 2798410);[ Date: 2023-07-29 10:17:39 ]
14 12s718ms DELETE FROM account_move_line WHERE id IN (2815946, 2815947, 2726880, 2726881, 2726882, 2726883, 2726884, 2726885, 2726886, 2726887, 2726888, 2726889, 2726890, 2726891);[ Date: 2023-07-29 10:17:57 ]
15 11s927ms DELETE FROM account_move_line WHERE id IN (2821358, 2821359, 2821360, 2821361, 2821362, 2821363, 2821364, 2821365, 2821366, 2821367, 2821368, 2821369, 2821370);[ Date: 2023-07-29 10:36:35 ]
16 11s113ms SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189092)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;[ Date: 2023-07-29 00:32:47 ]
17 10s915ms DELETE FROM account_move_line WHERE id IN (2821373, 2821374, 2821375, 2821376, 2821377, 2821378, 2821379, 2821380, 2821381, 2821382, 2821383, 2821384);[ Date: 2023-07-29 15:35:20 ]
18 10s891ms DELETE FROM account_move_line WHERE id IN (2820992, 2820993, 2820982, 2820983, 2820984, 2820985, 2820986, 2820987, 2820988, 2820989, 2820990, 2820991);[ Date: 2023-07-29 10:24:02 ]
19 10s468ms COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2023-07-29 09:00:42 ]
20 10s47ms DELETE FROM account_move_line WHERE id IN (2816475, 2816476, 2816477, 2816478, 2816479, 2816480, 2816481, 2816482, 2816483, 2816484, 2816485);[ Date: 2023-07-29 10:30:04 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1h41m57s 3,524 977ms 11s113ms 1s735ms select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 29 00 838 26m7s 1s870ms 01 665 18m33s 1s673ms 02 668 18m48s 1s689ms 03 659 18m54s 1s720ms 04 663 18m43s 1s693ms 05 31 51s342ms 1s656ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189092)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:32:47 Duration: 11s113ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 213564)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:37:14 Duration: 8s917ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189114)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:38:42 Duration: 7s770ms
2 36m22s 3,699 525ms 3s157ms 590ms select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 29 00 1,013 12m16s 727ms 01 665 5m58s 538ms 02 668 5m59s 537ms 03 659 5m54s 538ms 04 663 5m57s 539ms 05 31 16s612ms 535ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 172946 and item_demand_plan_id = 3708 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:41:36 Duration: 3s157ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 210042 and item_demand_plan_id = 3704 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:30:22 Duration: 3s112ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 209620 and item_demand_plan_id = 3703 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:32:08 Duration: 2s958ms
3 4m56s 54 897ms 25s514ms 5s492ms delete from account_move_line where id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 29 00 1 1s32ms 1s32ms 06 1 1s820ms 1s820ms 07 3 6s619ms 2s206ms 10 42 4m23s 6s267ms 14 1 1s808ms 1s808ms 15 3 15s731ms 5s243ms 22 1 1s810ms 1s810ms 23 2 4s543ms 2s271ms -
DELETE FROM account_move_line WHERE id IN (2804585, 2804586, 2797543, 2797544, 2797545, 2797546, 2797547, 2797548, 2797549, 2797550, 2797551, 2797552, 2797553, 2797554, 2797555, 2797556, 2797557, 2797558, 2797559, 2797560, 2797561, 2797562, 2797563, 2797564, 2797565, 2797566, 2797567, 2797568);
Date: 2023-07-29 10:35:27 Duration: 25s514ms
-
DELETE FROM account_move_line WHERE id IN (2808543, 2808544, 2808545, 2808546, 2808547, 2808548, 2808549, 2808550, 2808551, 2808552, 2808553, 2808554, 2808555, 2808556, 2808557, 2808558, 2808559, 2808560, 2808561, 2808562, 2808563, 2808564, 2808577, 2808578);
Date: 2023-07-29 10:30:37 Duration: 21s814ms
-
DELETE FROM account_move_line WHERE id IN (2809250, 2809251, 2768083, 2768084, 2768085, 2768086, 2768087, 2768088, 2768089, 2768090, 2768091, 2768092, 2768093, 2768094, 2768095, 2768096, 2768097, 2768098, 2768099, 2768100, 2768101, 2768102, 2768103);
Date: 2023-07-29 10:23:44 Duration: 20s830ms
4 4m55s 177 1s643ms 1s880ms 1s670ms update item_list_line set method = ?, min_product_len_1 = ?, min_product_len_2 = ?, min_baseline_size = ?, seasonal_period = ? where product_id = ? and item_demand_plan_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 29 00 177 4m55s 1s670ms -
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 220302 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:17 Duration: 1s880ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 195964 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:00:20 Duration: 1s758ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 221920 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:31 Duration: 1s754ms
5 3m43s 1 3m43s 3m43s 3m43s copy public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 29 09 1 3m43s 3m43s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2023-07-29 09:07:14 Duration: 3m43s
6 2m58s 975 120ms 559ms 182ms select id from ( select id, row_number() over w as rnum from forecasted_data where product_id = ? and date::date = date ?::timestamp and item_demand_plan_id = ? and active = true and is_forcast = true window w as (partition by product_id, date, min_product_uom_qty, max_product_uom_qty order by id)) t where t.rnum > ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 29 00 975 2m58s 182ms -
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209298 and date::date = DATE '2023-08-06T00:00:00'::timestamp and item_demand_plan_id = 3711 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:33:28 Duration: 559ms
-
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209776 and date::date = DATE '2023-08-06T00:00:00'::timestamp and item_demand_plan_id = 3703 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:33:08 Duration: 539ms
-
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209317 and date::date = DATE '2023-08-27T00:00:00'::timestamp and item_demand_plan_id = 3711 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:34:04 Duration: 499ms
7 1m27s 58 795ms 5s775ms 1s502ms select count(id) as total_count from item_list_line where item_demand_plan_id = ? and active = true;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 29 00 56 1m25s 1s527ms 15 2 1s617ms 808ms -
select count(id) as total_count from item_list_line where item_demand_plan_id = 3711 and active = True;
Date: 2023-07-29 00:33:06 Duration: 5s775ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3709 and active = True;
Date: 2023-07-29 00:32:23 Duration: 5s758ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3701 and active = True;
Date: 2023-07-29 00:35:16 Duration: 5s637ms
8 1m14s 1 1m14s 1m14s 1m14s copy public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 29 09 1 1m14s 1m14s -
COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;
Date: 2023-07-29 09:02:13 Duration: 1m14s
9 1m13s 1 1m13s 1m13s 1m13s copy public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 29 09 1 1m13s 1m13s -
COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;
Date: 2023-07-29 09:03:31 Duration: 1m13s
10 1m8s 58 766ms 2s237ms 1s177ms select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 29 00 56 1m6s 1s191ms 15 2 1s601ms 800ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3711 and ill.method not in (8, 7);
Date: 2023-07-29 00:31:51 Duration: 2s237ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3709 and ill.method not in (8, 7);
Date: 2023-07-29 00:33:40 Duration: 2s207ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3708 and ill.method not in (8, 7);
Date: 2023-07-29 00:28:53 Duration: 2s73ms
11 1m3s 37 1s90ms 3s367ms 1s729ms delete from account_move where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 29 06 1 1s91ms 1s91ms 07 3 3s594ms 1s198ms 10 26 51s283ms 1s972ms 14 1 1s99ms 1s99ms 15 3 3s602ms 1s200ms 22 1 1s98ms 1s98ms 23 2 2s211ms 1s105ms -
DELETE FROM account_move WHERE id IN (789006, 760661, 789005);
Date: 2023-07-29 10:36:22 Duration: 3s367ms
-
DELETE FROM account_move WHERE id IN (786205, 732866);
Date: 2023-07-29 10:29:22 Duration: 2s343ms
-
DELETE FROM account_move WHERE id IN (789586, 784659);
Date: 2023-07-29 10:41:31 Duration: 2s333ms
12 51s660ms 57 632ms 1s447ms 906ms select ill.item_demand_plan_id from item_list_line ill left join item_demand_plan as idp on ill.item_demand_plan_id = idp.id where ill.method is null and idp.active = true and ill.item_demand_plan_id = ? group by ill.item_demand_plan_id having count(ill.id) > ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 29 00 55 50s364ms 915ms 15 2 1s295ms 647ms -
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3709 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:32:37 Duration: 1s447ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3706 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:03 Duration: 1s435ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3704 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:36 Duration: 1s410ms
13 47s645ms 237 120ms 374ms 201ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 29 00 237 47s645ms 201ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:31:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:32:24 Duration: 374ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:28:00') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_980"', '["pointspring_master","calendar.alarm",19518]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",27]', '["pointspring_master","mail.channel",28]', '["pointspring_master","mail.channel",489]', '["pointspring_master","res.partner",19518]', '["pointspring_master","ir.needaction",19518]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:28:51 Duration: 366ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:33:11') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_952"', '["pointspring_master","calendar.alarm",19490]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",68]', '["pointspring_master","mail.channel",70]', '["pointspring_master","mail.channel",522]', '["pointspring_master","res.partner",19490]', '["pointspring_master","ir.needaction",19490]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:34:02 Duration: 366ms
14 45s62ms 58 512ms 1s686ms 776ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 29 00 56 44s11ms 785ms 15 2 1s51ms 525ms -
select count(id) from item_list_line where item_demand_plan_id = 3711;
Date: 2023-07-29 00:33:08 Duration: 1s686ms
-
select count(id) from item_list_line where item_demand_plan_id = 3709;
Date: 2023-07-29 00:32:25 Duration: 1s520ms
-
select count(id) from item_list_line where item_demand_plan_id = 3708;
Date: 2023-07-29 00:29:00 Duration: 1s374ms
15 30s361ms 245 120ms 148ms 123ms select "sale_line_report".id from "sale_line_report" where ("sale_line_report"."real_line_id" in (...)) order by "sale_line_report"."id";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 29 21 2 249ms 124ms 22 243 30s111ms 123ms -
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205668)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:47:24 Duration: 148ms
-
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205665)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:48:15 Duration: 147ms
-
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205664)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:47:44 Duration: 143ms
16 28s281ms 1 28s281ms 28s281ms 28s281ms copy public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 29 09 1 28s281ms 28s281ms -
COPY public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) TO stdout;
Date: 2023-07-29 09:09:25 Duration: 28s281ms
17 24s929ms 141 155ms 271ms 176ms update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 29 22 141 24s929ms 176ms -
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205664);
Date: 2023-07-29 22:47:45 Duration: 271ms
-
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205669);
Date: 2023-07-29 22:47:26 Duration: 260ms
-
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205666);
Date: 2023-07-29 22:47:46 Duration: 213ms
18 21s358ms 1 21s358ms 21s358ms 21s358ms copy public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 29 09 1 21s358ms 21s358ms -
COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id) TO stdout;
Date: 2023-07-29 09:08:17 Duration: 21s358ms
19 20s753ms 9 805ms 5s482ms 2s305ms select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...) and ill.method is not null;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 29 00 9 20s753ms 2s305ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3710 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:32:16 Duration: 5s482ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3709 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:32:41 Duration: 5s103ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3711 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:31:51 Duration: 2s291ms
20 20s38ms 131 120ms 266ms 152ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 29 00 131 20s38ms 152ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209324, 209130, 209137, 209151, 209206, 209210, 209225, 209227, 209231, 209233, 209241, 209250, 209251, 209259, 209268, 209271, 209298, 209305, 209308, 209312, 209314, 209316, 209317, 209320, 209322, 209323, 209326, 209329, 209331, 209333, 209334, 209335, 209354, 209356, 209361, 209366, 209370, 209371, 209372, 209373, 209374, 209375, 209378, 209380, 209381, 209382, 209390, 209398, 209423, 209435, 209468, 209469, 209502, 209505, 209513, 209517, 209518, 209524, 209525, 209526, 209527, 209528, 209529, 209555, 209561, 209562, 209563, 209567, 209572, 209603, 209605, 209606, 209607, 209608, 209609, 209610, 209612, 209616, 209620, 209626, 209699, 209754, 209766, 209782, 209800, 209802, 209804, 209805, 209818, 209819, 209832, 209844, 209852, 209857, 209860, 209876, 209880, 209886, 209899, 209901, 209905, 209906, 209907, 209933, 209938, 209941, 209952, 209995, 210020, 210023, 210025, 210027, 210034, 210041, 210051, 210052, 210070, 210076, 210079, 210103, 210115, 210118, 210124)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:34:22 Duration: 266ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209909, 209371, 209373, 209603, 209608, 209610, 209612, 209620, 209643, 209644, 209694, 209703, 209730, 209736, 209775, 209789, 209795, 209800, 209801, 209818, 209819, 209859, 209860, 209873, 209885, 209886, 209888, 209901, 209972, 209993, 210021, 210025, 210041, 210042, 210052, 210092, 210103, 210113)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:29:44 Duration: 247ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209278)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:41:07 Duration: 237ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 3,699 36m22s 525ms 3s157ms 590ms select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 29 00 1,013 12m16s 727ms 01 665 5m58s 538ms 02 668 5m59s 537ms 03 659 5m54s 538ms 04 663 5m57s 539ms 05 31 16s612ms 535ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 172946 and item_demand_plan_id = 3708 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:41:36 Duration: 3s157ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 210042 and item_demand_plan_id = 3704 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:30:22 Duration: 3s112ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 209620 and item_demand_plan_id = 3703 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:32:08 Duration: 2s958ms
2 3,524 1h41m57s 977ms 11s113ms 1s735ms select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 29 00 838 26m7s 1s870ms 01 665 18m33s 1s673ms 02 668 18m48s 1s689ms 03 659 18m54s 1s720ms 04 663 18m43s 1s693ms 05 31 51s342ms 1s656ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189092)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:32:47 Duration: 11s113ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 213564)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:37:14 Duration: 8s917ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189114)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:38:42 Duration: 7s770ms
3 975 2m58s 120ms 559ms 182ms select id from ( select id, row_number() over w as rnum from forecasted_data where product_id = ? and date::date = date ?::timestamp and item_demand_plan_id = ? and active = true and is_forcast = true window w as (partition by product_id, date, min_product_uom_qty, max_product_uom_qty order by id)) t where t.rnum > ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 29 00 975 2m58s 182ms -
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209298 and date::date = DATE '2023-08-06T00:00:00'::timestamp and item_demand_plan_id = 3711 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:33:28 Duration: 559ms
-
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209776 and date::date = DATE '2023-08-06T00:00:00'::timestamp and item_demand_plan_id = 3703 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:33:08 Duration: 539ms
-
SELECT id FROM ( SELECT id, row_number() OVER w as rnum FROM forecasted_data where product_id = 209317 and date::date = DATE '2023-08-27T00:00:00'::timestamp and item_demand_plan_id = 3711 and active = True and is_forcast = True WINDOW w AS (PARTITION BY product_id, date, min_product_uom_qty, max_product_uom_qty ORDER BY id)) t WHERE t.rnum > 0;
Date: 2023-07-29 00:34:04 Duration: 499ms
4 245 30s361ms 120ms 148ms 123ms select "sale_line_report".id from "sale_line_report" where ("sale_line_report"."real_line_id" in (...)) order by "sale_line_report"."id";Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 29 21 2 249ms 124ms 22 243 30s111ms 123ms -
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205668)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:47:24 Duration: 148ms
-
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205665)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:48:15 Duration: 147ms
-
SELECT "sale_line_report".id FROM "sale_line_report" WHERE ("sale_line_report"."real_line_id" in (205664)) ORDER BY "sale_line_report"."id";
Date: 2023-07-29 22:47:44 Duration: 143ms
5 237 47s645ms 120ms 374ms 201ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 29 00 237 47s645ms 201ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:31:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:32:24 Duration: 374ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:28:00') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_980"', '["pointspring_master","calendar.alarm",19518]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",27]', '["pointspring_master","mail.channel",28]', '["pointspring_master","mail.channel",489]', '["pointspring_master","res.partner",19518]', '["pointspring_master","ir.needaction",19518]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:28:51 Duration: 366ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:33:11') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_952"', '["pointspring_master","calendar.alarm",19490]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",68]', '["pointspring_master","mail.channel",70]', '["pointspring_master","mail.channel",522]', '["pointspring_master","res.partner",19490]', '["pointspring_master","ir.needaction",19490]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:34:02 Duration: 366ms
6 177 4m55s 1s643ms 1s880ms 1s670ms update item_list_line set method = ?, min_product_len_1 = ?, min_product_len_2 = ?, min_baseline_size = ?, seasonal_period = ? where product_id = ? and item_demand_plan_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 29 00 177 4m55s 1s670ms -
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 220302 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:17 Duration: 1s880ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 195964 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:00:20 Duration: 1s758ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 221920 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:31 Duration: 1s754ms
7 141 24s929ms 155ms 271ms 176ms update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 29 22 141 24s929ms 176ms -
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205664);
Date: 2023-07-29 22:47:45 Duration: 271ms
-
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205669);
Date: 2023-07-29 22:47:26 Duration: 260ms
-
UPDATE "sale_order_line" SET "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205666);
Date: 2023-07-29 22:47:46 Duration: 213ms
8 131 20s38ms 120ms 266ms 152ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 29 00 131 20s38ms 152ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209324, 209130, 209137, 209151, 209206, 209210, 209225, 209227, 209231, 209233, 209241, 209250, 209251, 209259, 209268, 209271, 209298, 209305, 209308, 209312, 209314, 209316, 209317, 209320, 209322, 209323, 209326, 209329, 209331, 209333, 209334, 209335, 209354, 209356, 209361, 209366, 209370, 209371, 209372, 209373, 209374, 209375, 209378, 209380, 209381, 209382, 209390, 209398, 209423, 209435, 209468, 209469, 209502, 209505, 209513, 209517, 209518, 209524, 209525, 209526, 209527, 209528, 209529, 209555, 209561, 209562, 209563, 209567, 209572, 209603, 209605, 209606, 209607, 209608, 209609, 209610, 209612, 209616, 209620, 209626, 209699, 209754, 209766, 209782, 209800, 209802, 209804, 209805, 209818, 209819, 209832, 209844, 209852, 209857, 209860, 209876, 209880, 209886, 209899, 209901, 209905, 209906, 209907, 209933, 209938, 209941, 209952, 209995, 210020, 210023, 210025, 210027, 210034, 210041, 210051, 210052, 210070, 210076, 210079, 210103, 210115, 210118, 210124)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:34:22 Duration: 266ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209909, 209371, 209373, 209603, 209608, 209610, 209612, 209620, 209643, 209644, 209694, 209703, 209730, 209736, 209775, 209789, 209795, 209800, 209801, 209818, 209819, 209859, 209860, 209873, 209885, 209886, 209888, 209901, 209972, 209993, 210021, 210025, 210041, 210042, 210052, 210092, 210103, 210113)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:29:44 Duration: 247ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209278)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-07-29 00:41:07 Duration: 237ms
9 84 14s844ms 155ms 222ms 176ms update "sale_order_line" set "margin" = ?, "margin_percent" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 29 22 84 14s844ms 176ms -
UPDATE "sale_order_line" SET "margin" = '51.86', "margin_percent" = 0.3648002250984806, "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205665);
Date: 2023-07-29 22:47:44 Duration: 222ms
-
UPDATE "sale_order_line" SET "margin" = '96.80', "margin_percent" = 0.2911103091543366, "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205668);
Date: 2023-07-29 22:47:47 Duration: 199ms
-
UPDATE "sale_order_line" SET "margin" = '56.10', "margin_percent" = 0.3299805893770955, "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205664);
Date: 2023-07-29 22:47:45 Duration: 196ms
10 58 1m27s 795ms 5s775ms 1s502ms select count(id) as total_count from item_list_line where item_demand_plan_id = ? and active = true;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 29 00 56 1m25s 1s527ms 15 2 1s617ms 808ms -
select count(id) as total_count from item_list_line where item_demand_plan_id = 3711 and active = True;
Date: 2023-07-29 00:33:06 Duration: 5s775ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3709 and active = True;
Date: 2023-07-29 00:32:23 Duration: 5s758ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3701 and active = True;
Date: 2023-07-29 00:35:16 Duration: 5s637ms
11 58 1m8s 766ms 2s237ms 1s177ms select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 29 00 56 1m6s 1s191ms 15 2 1s601ms 800ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3711 and ill.method not in (8, 7);
Date: 2023-07-29 00:31:51 Duration: 2s237ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3709 and ill.method not in (8, 7);
Date: 2023-07-29 00:33:40 Duration: 2s207ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3708 and ill.method not in (8, 7);
Date: 2023-07-29 00:28:53 Duration: 2s73ms
12 58 45s62ms 512ms 1s686ms 776ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 29 00 56 44s11ms 785ms 15 2 1s51ms 525ms -
select count(id) from item_list_line where item_demand_plan_id = 3711;
Date: 2023-07-29 00:33:08 Duration: 1s686ms
-
select count(id) from item_list_line where item_demand_plan_id = 3709;
Date: 2023-07-29 00:32:25 Duration: 1s520ms
-
select count(id) from item_list_line where item_demand_plan_id = 3708;
Date: 2023-07-29 00:29:00 Duration: 1s374ms
13 57 51s660ms 632ms 1s447ms 906ms select ill.item_demand_plan_id from item_list_line ill left join item_demand_plan as idp on ill.item_demand_plan_id = idp.id where ill.method is null and idp.active = true and ill.item_demand_plan_id = ? group by ill.item_demand_plan_id having count(ill.id) > ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 29 00 55 50s364ms 915ms 15 2 1s295ms 647ms -
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3709 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:32:37 Duration: 1s447ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3706 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:03 Duration: 1s435ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3704 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:36 Duration: 1s410ms
14 54 4m56s 897ms 25s514ms 5s492ms delete from account_move_line where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 29 00 1 1s32ms 1s32ms 06 1 1s820ms 1s820ms 07 3 6s619ms 2s206ms 10 42 4m23s 6s267ms 14 1 1s808ms 1s808ms 15 3 15s731ms 5s243ms 22 1 1s810ms 1s810ms 23 2 4s543ms 2s271ms -
DELETE FROM account_move_line WHERE id IN (2804585, 2804586, 2797543, 2797544, 2797545, 2797546, 2797547, 2797548, 2797549, 2797550, 2797551, 2797552, 2797553, 2797554, 2797555, 2797556, 2797557, 2797558, 2797559, 2797560, 2797561, 2797562, 2797563, 2797564, 2797565, 2797566, 2797567, 2797568);
Date: 2023-07-29 10:35:27 Duration: 25s514ms
-
DELETE FROM account_move_line WHERE id IN (2808543, 2808544, 2808545, 2808546, 2808547, 2808548, 2808549, 2808550, 2808551, 2808552, 2808553, 2808554, 2808555, 2808556, 2808557, 2808558, 2808559, 2808560, 2808561, 2808562, 2808563, 2808564, 2808577, 2808578);
Date: 2023-07-29 10:30:37 Duration: 21s814ms
-
DELETE FROM account_move_line WHERE id IN (2809250, 2809251, 2768083, 2768084, 2768085, 2768086, 2768087, 2768088, 2768089, 2768090, 2768091, 2768092, 2768093, 2768094, 2768095, 2768096, 2768097, 2768098, 2768099, 2768100, 2768101, 2768102, 2768103);
Date: 2023-07-29 10:23:44 Duration: 20s830ms
15 44 8s321ms 167ms 329ms 189ms update "sale_order_line" set "currency_id" = ?, "margin" = ?, "margin_percent" = ?.?, "purchase_price" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 29 22 44 8s321ms 189ms -
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:47:50 Duration: 329ms
-
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:48:07 Duration: 317ms
-
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:47:59 Duration: 315ms
16 37 1m3s 1s90ms 3s367ms 1s729ms delete from account_move where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 29 06 1 1s91ms 1s91ms 07 3 3s594ms 1s198ms 10 26 51s283ms 1s972ms 14 1 1s99ms 1s99ms 15 3 3s602ms 1s200ms 22 1 1s98ms 1s98ms 23 2 2s211ms 1s105ms -
DELETE FROM account_move WHERE id IN (789006, 760661, 789005);
Date: 2023-07-29 10:36:22 Duration: 3s367ms
-
DELETE FROM account_move WHERE id IN (786205, 732866);
Date: 2023-07-29 10:29:22 Duration: 2s343ms
-
DELETE FROM account_move WHERE id IN (789586, 784659);
Date: 2023-07-29 10:41:31 Duration: 2s333ms
17 31 4s347ms 133ms 154ms 140ms select "sale_order_line".id from "sale_order_line" where (("sale_order_line"."core_sol_id" = ?) and "sale_order_line"."product_id" is not null) order by "sale_order_line"."id" asc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 29 22 31 4s347ms 140ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (("sale_order_line"."core_sol_id" = 205664) AND "sale_order_line"."product_id" IS NOT NULL) ORDER BY "sale_order_line"."id" ASC LIMIT 1;
Date: 2023-07-29 22:48:00 Duration: 154ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (("sale_order_line"."core_sol_id" = 205665) AND "sale_order_line"."product_id" IS NOT NULL) ORDER BY "sale_order_line"."id" ASC LIMIT 1;
Date: 2023-07-29 22:47:22 Duration: 146ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (("sale_order_line"."core_sol_id" = 205669) AND "sale_order_line"."product_id" IS NOT NULL) ORDER BY "sale_order_line"."id" ASC LIMIT 1;
Date: 2023-07-29 22:47:25 Duration: 145ms
18 28 9s484ms 288ms 445ms 338ms select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pt.min_product_uom_qty > ? and pwi.stocking_flag = true and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) <= ? and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.discontinued, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false union all select pwi.product_id, abs(((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?))) as min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pwi.stocking_flag = false and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) < ? and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = true and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false union all select pwi.product_id, coalesce(pwi.qty_on_perm_order, ?) as min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pwi.stocking_flag = true and coalesce(pwi.qty_on_perm_order, ?) > ? and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - (coalesce(pwi.qty_reserve, ?) + coalesce(pwi.qty_on_perm_order, ?))) < ? and pt.discontinued = false and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 29 00 16 5s855ms 365ms 14 5 1s523ms 304ms 15 7 2s105ms 300ms -
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:39:37 Duration: 445ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:40:26 Duration: 444ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:41:05 Duration: 439ms
19 22 5s550ms 212ms 550ms 252ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 29 00 8 2s524ms 315ms 01 5 1s80ms 216ms 04 1 239ms 239ms 12 2 426ms 213ms 21 4 853ms 213ms 22 2 426ms 213ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:30:20 Duration: 550ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5826980/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:30:19 Duration: 548ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:37:03 Duration: 299ms
20 21 5s186ms 242ms 278ms 246ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 29 14 9 2s213ms 245ms 17 3 730ms 243ms 19 3 731ms 243ms 20 3 767ms 255ms 23 3 744ms 248ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 20:06:44 Duration: 278ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 23:10:49 Duration: 253ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 14:08:01 Duration: 249ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3m43s 3m43s 3m43s 1 3m43s copy public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 29 09 1 3m43s 3m43s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2023-07-29 09:07:14 Duration: 3m43s
2 1m14s 1m14s 1m14s 1 1m14s copy public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 29 09 1 1m14s 1m14s -
COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;
Date: 2023-07-29 09:02:13 Duration: 1m14s
3 1m13s 1m13s 1m13s 1 1m13s copy public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 29 09 1 1m13s 1m13s -
COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;
Date: 2023-07-29 09:03:31 Duration: 1m13s
4 28s281ms 28s281ms 28s281ms 1 28s281ms copy public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 29 09 1 28s281ms 28s281ms -
COPY public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) TO stdout;
Date: 2023-07-29 09:09:25 Duration: 28s281ms
5 21s358ms 21s358ms 21s358ms 1 21s358ms copy public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 29 09 1 21s358ms 21s358ms -
COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id) TO stdout;
Date: 2023-07-29 09:08:17 Duration: 21s358ms
6 897ms 25s514ms 5s492ms 54 4m56s delete from account_move_line where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 29 00 1 1s32ms 1s32ms 06 1 1s820ms 1s820ms 07 3 6s619ms 2s206ms 10 42 4m23s 6s267ms 14 1 1s808ms 1s808ms 15 3 15s731ms 5s243ms 22 1 1s810ms 1s810ms 23 2 4s543ms 2s271ms -
DELETE FROM account_move_line WHERE id IN (2804585, 2804586, 2797543, 2797544, 2797545, 2797546, 2797547, 2797548, 2797549, 2797550, 2797551, 2797552, 2797553, 2797554, 2797555, 2797556, 2797557, 2797558, 2797559, 2797560, 2797561, 2797562, 2797563, 2797564, 2797565, 2797566, 2797567, 2797568);
Date: 2023-07-29 10:35:27 Duration: 25s514ms
-
DELETE FROM account_move_line WHERE id IN (2808543, 2808544, 2808545, 2808546, 2808547, 2808548, 2808549, 2808550, 2808551, 2808552, 2808553, 2808554, 2808555, 2808556, 2808557, 2808558, 2808559, 2808560, 2808561, 2808562, 2808563, 2808564, 2808577, 2808578);
Date: 2023-07-29 10:30:37 Duration: 21s814ms
-
DELETE FROM account_move_line WHERE id IN (2809250, 2809251, 2768083, 2768084, 2768085, 2768086, 2768087, 2768088, 2768089, 2768090, 2768091, 2768092, 2768093, 2768094, 2768095, 2768096, 2768097, 2768098, 2768099, 2768100, 2768101, 2768102, 2768103);
Date: 2023-07-29 10:23:44 Duration: 20s830ms
7 805ms 5s482ms 2s305ms 9 20s753ms select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...) and ill.method is not null;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 29 00 9 20s753ms 2s305ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3710 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:32:16 Duration: 5s482ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3709 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:32:41 Duration: 5s103ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3711 and ill.method not in (8, 7) and ill.method is Not NULL;
Date: 2023-07-29 00:31:51 Duration: 2s291ms
8 977ms 11s113ms 1s735ms 3,524 1h41m57s select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 29 00 838 26m7s 1s870ms 01 665 18m33s 1s673ms 02 668 18m48s 1s689ms 03 659 18m54s 1s720ms 04 663 18m43s 1s693ms 05 31 51s342ms 1s656ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189092)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:32:47 Duration: 11s113ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 213564)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:37:14 Duration: 8s917ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189114)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 3708)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-07-29 00:38:42 Duration: 7s770ms
9 1s90ms 3s367ms 1s729ms 37 1m3s delete from account_move where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 29 06 1 1s91ms 1s91ms 07 3 3s594ms 1s198ms 10 26 51s283ms 1s972ms 14 1 1s99ms 1s99ms 15 3 3s602ms 1s200ms 22 1 1s98ms 1s98ms 23 2 2s211ms 1s105ms -
DELETE FROM account_move WHERE id IN (789006, 760661, 789005);
Date: 2023-07-29 10:36:22 Duration: 3s367ms
-
DELETE FROM account_move WHERE id IN (786205, 732866);
Date: 2023-07-29 10:29:22 Duration: 2s343ms
-
DELETE FROM account_move WHERE id IN (789586, 784659);
Date: 2023-07-29 10:41:31 Duration: 2s333ms
10 1s643ms 1s880ms 1s670ms 177 4m55s update item_list_line set method = ?, min_product_len_1 = ?, min_product_len_2 = ?, min_baseline_size = ?, seasonal_period = ? where product_id = ? and item_demand_plan_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 29 00 177 4m55s 1s670ms -
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 220302 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:17 Duration: 1s880ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 195964 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:00:20 Duration: 1s758ms
-
update item_list_line set method = 8, min_product_len_1 = 31, min_product_len_2 = 41, min_baseline_size = 36, seasonal_period = 0 where product_id = 221920 and item_demand_plan_id = 3708;
Date: 2023-07-29 00:03:31 Duration: 1s754ms
11 795ms 5s775ms 1s502ms 58 1m27s select count(id) as total_count from item_list_line where item_demand_plan_id = ? and active = true;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 29 00 56 1m25s 1s527ms 15 2 1s617ms 808ms -
select count(id) as total_count from item_list_line where item_demand_plan_id = 3711 and active = True;
Date: 2023-07-29 00:33:06 Duration: 5s775ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3709 and active = True;
Date: 2023-07-29 00:32:23 Duration: 5s758ms
-
select count(id) as total_count from item_list_line where item_demand_plan_id = 3701 and active = True;
Date: 2023-07-29 00:35:16 Duration: 5s637ms
12 766ms 2s237ms 1s177ms 58 1m8s select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 29 00 56 1m6s 1s191ms 15 2 1s601ms 800ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3711 and ill.method not in (8, 7);
Date: 2023-07-29 00:31:51 Duration: 2s237ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3709 and ill.method not in (8, 7);
Date: 2023-07-29 00:33:40 Duration: 2s207ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 3708 and ill.method not in (8, 7);
Date: 2023-07-29 00:28:53 Duration: 2s73ms
13 632ms 1s447ms 906ms 57 51s660ms select ill.item_demand_plan_id from item_list_line ill left join item_demand_plan as idp on ill.item_demand_plan_id = idp.id where ill.method is null and idp.active = true and ill.item_demand_plan_id = ? group by ill.item_demand_plan_id having count(ill.id) > ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 29 00 55 50s364ms 915ms 15 2 1s295ms 647ms -
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3709 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:32:37 Duration: 1s447ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3706 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:03 Duration: 1s435ms
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True and ill.item_demand_plan_id = 3704 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2023-07-29 00:34:36 Duration: 1s410ms
14 512ms 1s686ms 776ms 58 45s62ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 29 00 56 44s11ms 785ms 15 2 1s51ms 525ms -
select count(id) from item_list_line where item_demand_plan_id = 3711;
Date: 2023-07-29 00:33:08 Duration: 1s686ms
-
select count(id) from item_list_line where item_demand_plan_id = 3709;
Date: 2023-07-29 00:32:25 Duration: 1s520ms
-
select count(id) from item_list_line where item_demand_plan_id = 3708;
Date: 2023-07-29 00:29:00 Duration: 1s374ms
15 525ms 3s157ms 590ms 3,699 36m22s select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 29 00 1,013 12m16s 727ms 01 665 5m58s 538ms 02 668 5m59s 537ms 03 659 5m54s 538ms 04 663 5m57s 539ms 05 31 16s612ms 535ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 172946 and item_demand_plan_id = 3708 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:41:36 Duration: 3s157ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 210042 and item_demand_plan_id = 3704 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:30:22 Duration: 3s112ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 209620 and item_demand_plan_id = 3703 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-07-29 00:32:08 Duration: 2s958ms
16 288ms 445ms 338ms 28 9s484ms select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pt.min_product_uom_qty > ? and pwi.stocking_flag = true and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) <= ? and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.discontinued, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false union all select pwi.product_id, abs(((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?))) as min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pwi.stocking_flag = false and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) < ? and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = true and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false union all select pwi.product_id, coalesce(pwi.qty_on_perm_order, ?) as min_product_uom_qty from product_warehouse_inventory pwi left join product_product as pp on pwi.product_id = pp.id left join product_template as pt on pt.id = pp.product_tmpl_id where pt.is_core = false and pwi.stocking_flag = true and coalesce(pwi.qty_on_perm_order, ?) > ? and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - (coalesce(pwi.qty_reserve, ?) + coalesce(pwi.qty_on_perm_order, ?))) < ? and pt.discontinued = false and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ? and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 29 00 16 5s855ms 365ms 14 5 1s523ms 304ms 15 7 2s105ms 300ms -
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 35 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:39:37 Duration: 445ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:40:26 Duration: 444ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2983 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2023-07-29 00:41:05 Duration: 439ms
17 212ms 550ms 252ms 22 5s550ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 29 00 8 2s524ms 315ms 01 5 1s80ms 216ms 04 1 239ms 239ms 12 2 426ms 213ms 21 4 853ms 213ms 22 2 426ms 213ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:30:20 Duration: 550ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5826980/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:30:19 Duration: 548ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-07-29 00:37:03 Duration: 299ms
18 242ms 278ms 246ms 21 5s186ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 29 14 9 2s213ms 245ms 17 3 730ms 243ms 19 3 731ms 243ms 20 3 767ms 255ms 23 3 744ms 248ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 20:06:44 Duration: 278ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 23:10:49 Duration: 253ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2023-07-29 14:08:01 Duration: 249ms
19 120ms 374ms 201ms 237 47s645ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 29 00 237 47s645ms 201ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:31:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:32:24 Duration: 374ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:28:00') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_980"', '["pointspring_master","calendar.alarm",19518]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",27]', '["pointspring_master","mail.channel",28]', '["pointspring_master","mail.channel",489]', '["pointspring_master","res.partner",19518]', '["pointspring_master","ir.needaction",19518]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:28:51 Duration: 366ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-07-29 00:33:11') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_952"', '["pointspring_master","calendar.alarm",19490]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",68]', '["pointspring_master","mail.channel",70]', '["pointspring_master","mail.channel",522]', '["pointspring_master","res.partner",19490]', '["pointspring_master","ir.needaction",19490]'))) ORDER BY "bus_bus"."id";
Date: 2023-07-29 00:34:02 Duration: 366ms
20 167ms 329ms 189ms 44 8s321ms update "sale_order_line" set "currency_id" = ?, "margin" = ?, "margin_percent" = ?.?, "purchase_price" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 29 22 44 8s321ms 189ms -
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:47:50 Duration: 329ms
-
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:48:07 Duration: 317ms
-
UPDATE "sale_order_line" SET "currency_id" = 2, "margin" = '0.00', "margin_percent" = 0.0, "purchase_price" = '0.00', "write_uid" = 1146, "write_date" = (now() at time zone 'UTC') WHERE id IN (205667, 205670);
Date: 2023-07-29 22:47:59 Duration: 315ms
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
- 11,142 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 500 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 443 Max number of times the same event was reported
- 500 Total events found
Rank Times reported Error 1 443 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 29 00 30 01 50 02 17 03 15 04 12 05 14 06 11 07 42 08 11 09 15 10 72 11 12 12 13 13 13 14 13 15 12 16 15 17 11 18 12 19 12 20 12 21 13 22 13 23 3 - ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2023-07-29 00:00:18
2 57 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 29 00 26 01 11 14 1 20 1 21 1 22 17 - ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2023-07-29 00:23:06' WHERE id IN (33)
Date: 2023-07-29 00:23:06