-
Global information
- Generated on Mon Apr 15 00:50:04 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 46,123 log entries in 3s
- Log start from 2024-04-14 00:02:00 to 2024-04-14 23:59:48
-
Overview
Global Stats
- 147 Number of unique normalized queries
- 18,409 Number of queries
- 1h21s Total query duration
- 2024-04-14 00:02:00 First query
- 2024-04-14 23:59:48 Last query
- 14 queries/s at 2024-04-14 16:54:10 Query peak
- 1h21s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1h21s Execute total duration
- 700 Number of events
- 1 Number of unique normalized events
- 700 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
- 18,409 Average queries per session
- 1h21s 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
- 2024-04-14 16:54:10 Date
SELECT Traffic
Key values
- 14 queries/s Query Peak
- 2024-04-14 16:54:10 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 7 queries/s Query Peak
- 2024-04-14 11:07:50 Date
Queries duration
Key values
- 1h21s 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) Apr 14 00 281 120ms 472ms 168ms 573ms 4s368ms 4s711ms 01 301 126ms 485ms 166ms 1s209ms 4s122ms 4s824ms 02 282 127ms 524ms 164ms 674ms 2s714ms 7s40ms 03 311 120ms 1s9ms 171ms 1s741ms 3s553ms 6s690ms 04 260 134ms 396ms 149ms 559ms 579ms 3s749ms 05 257 125ms 453ms 146ms 566ms 736ms 4s62ms 06 261 123ms 2s179ms 160ms 584ms 2s214ms 5s210ms 07 295 128ms 1s8ms 158ms 1s365ms 2s301ms 5s479ms 08 316 120ms 702ms 172ms 1s796ms 4s566ms 5s257ms 09 376 122ms 3m53s 1s996ms 52s975ms 1m40s 4m35s 10 3,664 120ms 29s436ms 163ms 29s984ms 33s809ms 40s918ms 11 8,300 120ms 1s21ms 154ms 35s280ms 37s342ms 40s652ms 12 295 120ms 428ms 159ms 1s135ms 3s456ms 3s776ms 13 315 120ms 414ms 163ms 1s348ms 3s503ms 4s290ms 14 300 123ms 552ms 163ms 2s20ms 3s80ms 4s706ms 15 346 121ms 468ms 176ms 1s455ms 2s636ms 4s599ms 16 326 122ms 2s177ms 228ms 2s327ms 5s512ms 14s996ms 17 282 122ms 440ms 158ms 1s406ms 1s547ms 4s722ms 18 304 123ms 438ms 164ms 2s697ms 3s613ms 4s25ms 19 276 120ms 433ms 151ms 564ms 3s162ms 3s476ms 20 289 120ms 454ms 160ms 676ms 3s779ms 4s466ms 21 240 133ms 166ms 136ms 551ms 563ms 573ms 22 240 133ms 163ms 136ms 551ms 556ms 569ms 23 292 120ms 415ms 148ms 1s35ms 1s345ms 3s879ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 14 00 281 0 168ms 551ms 573ms 4s443ms 01 301 0 166ms 553ms 1s209ms 4s781ms 02 282 0 164ms 553ms 674ms 4s235ms 03 311 0 171ms 667ms 1s741ms 3s645ms 04 260 0 149ms 554ms 559ms 3s81ms 05 257 0 146ms 553ms 566ms 1s418ms 06 254 0 141ms 550ms 577ms 812ms 07 292 0 154ms 571ms 1s246ms 3s35ms 08 314 0 170ms 574ms 1s796ms 4s703ms 09 272 104 1s996ms 585ms 52s265ms 1m58s 10 922 0 220ms 6s265ms 8s648ms 16s73ms 11 1,675 0 192ms 7s990ms 10s36ms 12s402ms 12 295 0 159ms 554ms 1s135ms 3s556ms 13 315 0 163ms 672ms 1s348ms 3s769ms 14 299 0 162ms 556ms 2s20ms 3s729ms 15 346 0 176ms 1s418ms 1s455ms 3s218ms 16 326 0 228ms 1s406ms 2s327ms 6s302ms 17 282 0 158ms 555ms 1s406ms 3s878ms 18 304 0 164ms 549ms 2s697ms 3s708ms 19 276 0 151ms 551ms 564ms 3s336ms 20 289 0 160ms 568ms 676ms 3s843ms 21 240 0 136ms 548ms 551ms 571ms 22 240 0 136ms 548ms 551ms 556ms 23 292 0 148ms 552ms 1s35ms 3s672ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 14 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 2 0 0 520ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 2,742 0 0 144ms 444ms 15s525ms 26s653ms 11 0 6,625 0 0 144ms 17s133ms 22s186ms 31s539ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 1 0 0 400ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Apr 14 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 Apr 14 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 Apr 14 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 Apr 14 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 Apr 14 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) Apr 14 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 Apr 14 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 Apr 14 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 Apr 14 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
- 8,925 Total read queries
- 9,484 Total write queries
Queries by database
Key values
- unknown Main database
- 18,409 Requests
- 1h21s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 18,409 Requests
User Request type Count Duration unknown Total 18,409 1h21s copy to 104 11m48s select 8,925 25m51s tcl 10 7s835ms update 9,370 22m33s Duration by user
Key values
- 1h21s (unknown) Main time consuming user
User Request type Count Duration unknown Total 18,409 1h21s copy to 104 11m48s select 8,925 25m51s tcl 10 7s835ms update 9,370 22m33s Queries by host
Key values
- unknown Main host
- 18,409 Requests
- 1h21s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 18,409 Requests
- 1h21s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-04-14 03:17:00 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 18,275 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m53s 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: 2024-04-14 09:09:16 ]
2 1m49s 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: 2024-04-14 09:03:33 ]
3 1m39s 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: 2024-04-14 09:05:22 ]
4 30s583ms 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, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-04-14 09:00:50 ]
5 29s436ms select count(id) from item_list_line where item_demand_plan_id = 3861;[ Date: 2024-04-14 10:36:53 ]
6 21s510ms 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, inventory_vendor_id, product_type) TO stdout;[ Date: 2024-04-14 09:10:55 ]
7 16s616ms COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-04-14 09:01:14 ]
8 12s940ms COPY public.account_move (id, access_token, message_main_attachment_id, name, date, ref, narration, state, posted_before, move_type, to_check, journal_id, company_id, currency_id, partner_id, commercial_partner_id, is_move_sent, partner_bank_id, payment_reference, payment_id, statement_line_id, amount_untaxed, amount_tax, amount_total, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_total_signed, amount_residual_signed, payment_state, tax_cash_basis_rec_id, tax_cash_basis_move_id, auto_post, reversed_entry_id, fiscal_position_id, invoice_user_id, invoice_date, invoice_date_due, invoice_origin, invoice_payment_term_id, invoice_incoterm_id, qr_code_method, invoice_source_email, invoice_partner_display_name, invoice_cash_rounding_id, secure_sequence_number, inalterable_hash, sequence_prefix, sequence_number, create_uid, create_date, write_uid, write_date, payment_state_before_switch, duplicated_vendor_ref, extract_state, extract_status_code, extract_remote_id, transfer_model_id, tax_closing_end_date, tax_report_control_error, asset_id, asset_remaining_value, asset_depreciated_value, asset_manually_modified, asset_value_change, campaign_id, source_id, medium_id, team_id, partner_shipping_id, stock_move_id, preferred_payment_method_id, website_id, branch_id, branch_name, invoice_action, sign_amount_total, sign_amount_residual, sign_amount_untaxed, invoice_part_id, invoice_product_qty, balance_entry, to_check_negative, non_inventory_entry, direct_order, warranty_invoice, email_send_eod, email_sent, order_type, carrier_id, release_to_pay, release_to_pay_manual, force_release_to_pay, invoice_origin_new, debit_origin_id, paid_by_vc, payment_details, expense_choice, edi_810_id, cash_tendered, change_amount, sequence_generated, open_invoice, edi_split_lock, edi_billed, is_edi_bill, payment_details_compute, edi_done_date, partner_address_type, from_ar, auto_reconcile, related_payment_id, discount_amount_applied) TO stdout;[ Date: 2024-04-14 09:00:19 ]
9 11s752ms 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: 2024-04-14 09:11:57 ]
10 10s354ms COPY public.price_sheet (id, price_sheet_control_id, inventory_vendor_id, vendor_short_name, part_type_id, part_type_option, default_code, name, description_sale, description, additional_description_sale, condensed_product_name, manufacturer_product_name, weight, uom_id, standard_price, current_cost, rebate_cost, purchase_cost, list_price, better, best, list_jobber, core_part_no, cores_per_part, core_cost, core_price_part_dmg_1, core_price_part_dmg_2, used_core_description, man_cost_update, call_for_prise, product_update_date, standard_carton_quantity, active, volume, is_exception, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-04-14 09:09:27 ]
11 9s100ms COPY public.bus_bus (id, channel, message, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-04-14 09:01:24 ]
12 8s603ms COPY public.stock_move (id, name, sequence, priority, create_date, date, date_deadline, company_id, product_id, description_picking, product_qty, product_uom_qty, product_uom, location_id, location_dest_id, partner_id, picking_id, note, state, price_unit, origin, procure_method, scrapped, group_id, rule_id, propagate_cancel, delay_alert_date, picking_type_id, inventory_id, origin_returned_move_id, restrict_partner_id, warehouse_id, additional, reference, package_level_id, next_serial, next_serial_count, orderpoint_id, create_uid, write_uid, write_date, to_refund, sale_line_id, purchase_line_id, created_purchase_line_id, is_done, created_production_id, production_id, raw_material_production_id, unbuild_id, consume_unbuild_id, operation_id, workorder_id, bom_line_id, byproduct_id, unit_factor, branch_id, weight, move_options, related_core_sale_line_id, related_core_purchase_line_id, sm_line_id, core_qty, bom_action, mrp_core_move, repair_id, repair_line_id, related_core_repair_line_id, related_bom_line_id, mrp_finish_core_move, picking_code, transfer_line_id, src_warehouse_id, dest_warehouse_id, current_warehouse_qty, is_core, inventory_vendor_id, technician_name_required, technician_id) TO stdout;[ Date: 2024-04-14 09:11:19 ]
13 8s194ms COPY public.website_track (id, visitor_id, page_id, url, visit_datetime, product_id) TO stdout;[ Date: 2024-04-14 09:11:46 ]
14 6s305ms COPY public.forecasted_data (id, date, min_product_uom_qty, max_product_uom_qty, item_supply_plan_id, po_qty, 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, default_code, ext_cost, qty_available, qty_reserve, qty_on_order, qty_on_perm_order, qty_mtd_sold, lead_days, mon_1_qty, mon_2_qty, mon_3_qty, mon_4_qty, mon_5_qty, mon_6_qty, mon_7_qty, mon_8_qty, mon_9_qty, mon_10_qty, mon_11_qty, mon_12_qty, seasonal, stocking_flag, freeze_date, warehouse_min_product_uom_qty, is_forcast, modify_qty, req_po_qty, supercede_product_id, superceded, final_branch_id, po_id, unit_ext_cost, is_freeze, qty_in_transist, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, is_new_stock_product, ref_id, ref, product_name, is_stock_flag_product, class_code_id, sft_stk_qty, need_qty_with_sft_stk) TO stdout;[ Date: 2024-04-14 09:01:36 ]
15 6s29ms COPY public.stock_move_line (id, picking_id, move_id, company_id, product_id, product_uom_id, product_qty, product_uom_qty, qty_done, package_id, package_level_id, lot_id, lot_name, result_package_id, date, owner_id, location_id, location_dest_id, state, reference, description_picking, create_uid, create_date, write_uid, write_date, workorder_id, production_id, related_core_sale_line_id, related_sale_line_id, related_core_purchase_line_id, related_purchase_line_id, related_core_stock_line_id, move_options, purchase_qty, related_repair_line_id, related_core_repair_line_id, branch_id, related_core_bom_line_id, related_bom_line_id, related_raw_material_production_id, linked_has_core_ml_id, order_purchase_qty, current_warehouse_qty, description) TO stdout;[ Date: 2024-04-14 09:11:25 ]
16 5s946ms COPY public.stock_valuation_layer (id, company_id, product_id, quantity, unit_cost, value, remaining_qty, remaining_value, description, stock_valuation_layer_id, stock_move_id, account_move_id, create_uid, create_date, write_uid, write_date, move_options, other_action, final_action) TO stdout;[ Date: 2024-04-14 09:11:37 ]
17 5s848ms COPY public.stock_inventory_line (id, is_editable, inventory_id, partner_id, product_id, product_uom_id, product_qty, categ_id, location_id, package_id, prod_lot_id, company_id, theoretical_qty, inventory_date, create_uid, create_date, write_uid, write_date, main_line_id, sale_action, action_selection, auto_created) TO stdout;[ Date: 2024-04-14 09:11:10 ]
18 5s98ms COPY public.product_library (id, price_sheet_control_id, inventory_vendor_id, vendor_short_name, part_type_id, part_type_option, default_code, name, description_sale, description, condensed_product_name, manufacturer_product_name, weight, uom_id, standard_price, current_cost, rebate_cost, purchase_cost, list_price, better, best, list_jobber, core_part_no, cores_per_part, core_cost, core_price_part_dmg_1, core_price_part_dmg_2, used_core_description, man_cost_update, call_for_prise, product_update_date, standard_carton_quantity, additional_description_sale, active, volume, is_exception, create_uid, create_date, write_uid, write_date, library_duplicate_check) TO stdout;[ Date: 2024-04-14 09:09:35 ]
19 5s5ms COPY public.sale_order_line (id, order_id, name, sequence, invoice_status, price_unit, price_subtotal, price_tax, price_total, price_reduce, price_reduce_taxinc, price_reduce_taxexcl, discount, product_id, product_uom_qty, product_uom, qty_delivered_method, qty_delivered, qty_delivered_manual, qty_to_invoice, qty_invoiced, untaxed_amount_invoiced, untaxed_amount_to_invoice, salesman_id, currency_id, company_id, order_partner_id, is_expense, is_downpayment, state, customer_lead, display_type, create_uid, create_date, write_uid, write_date, product_packaging, route_id, project_id, task_id, is_service, linked_line_id, warning_stock, margin, margin_percent, purchase_price, is_delivery, so_line_id, return_rule_skiped, move_options, core_qty, core_bank_transaction, rebate_amount, is_visible_in_report, is_call_for_price_prod, open_qty_fil_moved0, core_sol_id, core_bank_id, product_pricelist_item_id, branch_id, open_qty_fil_moved1, open_qty_fil_moved2, open_qty_fil_moved3, open_qty_fil_moved4, tick, open_qty_fil_moved5, open_qty_fil_moved6, open_qty_fil_moved7, open_qty_fil_moved8, open_qty_fil_moved9, open_qty_fil_moved10, open_qty_fil_moved11, open_qty_fil_moved12, open_qty_fil_moved13, open_qty_fil_moved14, open_qty_fil, exception_sale, manual_price_changed, cus_date_order, cus_user_id, cus_part_route, is_legacy, inventory_vendor_id, warehouse_id, original_price, is_core) TO stdout;[ Date: 2024-04-14 09:11:01 ]
20 4s643ms COPY public.stock_picking (id, message_main_attachment_id, name, origin, note, backorder_id, move_type, state, group_id, priority, scheduled_date, date_deadline, has_deadline_issue, date, date_done, location_id, location_dest_id, picking_type_id, partner_id, company_id, user_id, owner_id, printed, is_locked, immediate_transfer, create_uid, create_date, write_uid, write_date, sale_id, website_id, branch_id, carrier_price, carrier_id, weight, carrier_tracking_ref, saleorder_custom_id, purchaseorder_custom_id, stock_part_id, stock_product_qty, stock_type, stock_action, to_check_negative, next_picking_id, prev_picking_id, repair_id, is_intra_com, salesperson, date_order, part_route, move_branch_mrp_id, move_to_gear_id, supply_plan_id, all_references, src_warehouse_id, dest_warehouse_id, edi_810_id, batch_id, transfer_id, request_date, old_rec_update, is_rtv_picking) TO stdout;[ Date: 2024-04-14 09:11:30 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 22m32s 9,367 136ms 188ms 144ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 14 10 2,742 6m35s 144ms 11 6,625 15m56s 144ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188200) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 188ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188199) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 177ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (213240) and warehouse_id = (42));
Date: 2024-04-14 10:39:55 Duration: 176ms
2 13m7s 5,751 133ms 228ms 136ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 14 00 232 31s683ms 136ms 01 240 32s759ms 136ms 02 240 32s945ms 137ms 03 240 32s916ms 137ms 04 240 33s41ms 137ms 05 240 32s880ms 137ms 06 240 32s800ms 136ms 07 240 32s880ms 137ms 08 240 32s745ms 136ms 09 240 32s896ms 137ms 10 240 33s295ms 138ms 11 239 33s855ms 141ms 12 240 32s834ms 136ms 13 240 32s897ms 137ms 14 240 32s857ms 136ms 15 240 32s801ms 136ms 16 240 32s699ms 136ms 17 240 32s694ms 136ms 18 240 32s659ms 136ms 19 240 32s731ms 136ms 20 240 32s760ms 136ms 21 240 32s730ms 136ms 22 240 32s703ms 136ms 23 240 32s706ms 136ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_sequence', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_am', 'pg_catalog.pg_database', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_roles', 'pg_catalog.pg_index', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_namespace', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cast', 'pg_catalog.pg_enum', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_group', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_policy', 'pg_catalog.pg_extension', 'pg_catalog.pg_user', 'pg_catalog.pg_opclass', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_attribute', 'pg_catalog.pg_range', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication', 'information_schema.schemata', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.role_table_grants', 'information_schema.information_schema_catalog_name', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.user_mappings', 'information_schema.foreign_tables', 'information_schema.character_sets', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.column_options', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.role_routine_grants', 'information_schema.udt_privileges', 'information_schema.user_mapping_options', 'information_schema.attributes', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.domain_constraints', 'information_schema.tables', 'information_schema.domains', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.foreign_data_wrappers', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.collations', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_implementation_info', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-04-14 10:43:16 Duration: 228ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_extension', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_user', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_language', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_operator', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_attribute', 'pg_catalog.pg_conversion', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_class', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_tables', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_database', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_transform', 'pg_catalog.pg_policy', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_cluster', 'information_schema.tables', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.foreign_data_wrappers', 'information_schema.role_udt_grants', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.information_schema_catalog_name', 'information_schema.routines', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.view_table_usage', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.column_privileges', 'information_schema.parameters', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.key_column_usage', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.collations', 'information_schema.routine_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_table_options', 'information_schema.collation_character_set_applicability', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.domains', 'information_schema.column_column_usage', 'information_schema.sql_implementation_info', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.user_mappings', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.domain_constraints', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.applicable_roles', 'information_schema.sql_features', 'information_schema.view_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.columns', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-04-14 02:16:00 Duration: 214ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_wal', 'pg_catalog.pg_cast', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_matviews', 'pg_catalog.pg_views', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_constraint', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_collation', 'pg_catalog.pg_user', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_rules', 'pg_catalog.pg_class', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_extension', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_inherits', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_language', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_depend', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_sequence', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_operator', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_group', 'pg_catalog.pg_database', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_proc', 'pg_catalog.pg_amop', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policies', 'pg_catalog.pg_am', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_ts_dict', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.routine_table_usage', 'information_schema.foreign_server_options', 'information_schema.column_privileges', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.role_usage_grants', 'information_schema.administrable_role_authorizations', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.role_udt_grants', 'information_schema.usage_privileges', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.check_constraints', 'information_schema.constraint_table_usage', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.routines', 'information_schema.sequences', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.collation_character_set_applicability', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.sql_sizing', 'information_schema.foreign_tables', 'information_schema.character_sets', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.domain_constraints', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.domains', 'information_schema.views', 'information_schema.user_defined_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-04-14 11:45:46 Duration: 189ms
3 4m7s 940 120ms 524ms 263ms 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 #3
Day Hour Count Duration Avg duration Apr 14 00 49 15s773ms 321ms 01 55 16s70ms 292ms 02 42 13s473ms 320ms 03 44 11s230ms 255ms 04 20 5s730ms 286ms 05 14 3s953ms 282ms 06 11 2s676ms 243ms 07 28 8s328ms 297ms 08 74 20s735ms 280ms 09 31 9s216ms 297ms 10 61 9s186ms 150ms 11 69 10s857ms 157ms 12 55 14s326ms 260ms 13 72 17s780ms 246ms 14 44 12s545ms 285ms 15 33 8s926ms 270ms 16 43 13s828ms 321ms 17 23 6s766ms 294ms 18 64 17s460ms 272ms 19 36 9s113ms 253ms 20 49 13s661ms 278ms 23 23 6s297ms 273ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1295"', '["pointspring_master","calendar.alarm",53355]', '["pointspring_master","res.partner",53355]', '["pointspring_master","ir.needaction",53355]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 524ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 07:07:30') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1015"', '["pointspring_master","calendar.alarm",19553]', '["pointspring_master","mail.channel",51]', '["pointspring_master","mail.channel",52]', '["pointspring_master","mail.channel",53]', '["pointspring_master","mail.channel",346]', '["pointspring_master","mail.channel",347]', '["pointspring_master","mail.channel",457]', '["pointspring_master","res.partner",19553]', '["pointspring_master","ir.needaction",19553]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 07:08:21 Duration: 520ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 509ms
4 3m53s 1 3m53s 3m53s 3m53s 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 #4
Day Hour Count Duration Avg duration Apr 14 09 1 3m53s 3m53s -
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: 2024-04-14 09:09:16 Duration: 3m53s
5 3m6s 537 336ms 414ms 346ms 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 #5
Day Hour Count Duration Avg duration Apr 14 10 162 56s112ms 346ms 11 375 2m9s 346ms -
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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:22:06 Duration: 414ms
-
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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:02:33 Duration: 414ms
-
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 = 2933 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 = 2933 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 = 2933 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 10:49:13 Duration: 405ms
6 1m49s 1 1m49s 1m49s 1m49s 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 #6
Day Hour Count Duration Avg duration Apr 14 09 1 1m49s 1m49s -
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: 2024-04-14 09:03:33 Duration: 1m49s
7 1m39s 1 1m39s 1m39s 1m39s 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 #7
Day Hour Count Duration Avg duration Apr 14 09 1 1m39s 1m39s -
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: 2024-04-14 09:05:22 Duration: 1m39s
8 1m17s 537 125ms 188ms 144ms select pwi.product_id, coalesce(pwi.lead_days, ?), coalesce(pwi.min_product_uom_qty, ?) as min_qty, coalesce(pwi.max_product_uom_qty, ?) as max_qty, coalesce(pwi.max_product_uom_qty, ?) - ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) as need_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 coalesce(pt.is_core, false) = false and coalesce(pwi.stocking_flag, false) = true and coalesce(pt.discontinued, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) < coalesce(pwi.max_product_uom_qty, ?) and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 14 10 162 23s571ms 145ms 11 375 53s780ms 143ms -
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 3078;
Date: 2024-04-14 10:54:21 Duration: 188ms
-
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 38 and pwi.inventory_vendor_id = 3073;
Date: 2024-04-14 11:11:12 Duration: 184ms
-
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 3025;
Date: 2024-04-14 10:54:10 Duration: 184ms
9 40s512ms 302 127ms 162ms 134ms select pwi.product_id 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 coalesce(pwi.stocking_flag, false) = true and coalesce(pt.is_core, false) = false and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and pwi.inventory_vendor_id = ? and pwi.warehouse_id = ? and pwi.product_id not in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 14 10 102 13s566ms 133ms 11 200 26s946ms 134ms -
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3089 and pwi.warehouse_id = 41 and pwi.product_id not in (194200, 194562, 194719, 194958, 195036, 195166, 195223, 195752, 195753, 195863, 195866, 195998, 195185);
Date: 2024-04-14 11:51:21 Duration: 162ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3035 and pwi.warehouse_id = 43 and pwi.product_id not in (259036, 258374, 254211, 253083, 252378, 172617, 172586, 172570, 172559, 172400, 172319, 172228, 172215, 172210, 172186, 172157, 172153, 172152, 172134, 172053, 172052, 171996, 171970, 171959, 171957, 171894, 171891, 171794, 171776, 171886, 172567);
Date: 2024-04-14 11:03:36 Duration: 158ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3080 and pwi.warehouse_id = 45 and pwi.product_id not in (176928);
Date: 2024-04-14 11:15:03 Duration: 158ms
10 37s26ms 11 741ms 29s436ms 3s366ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 14 10 5 32s430ms 6s486ms 11 6 4s595ms 765ms -
select count(id) from item_list_line where item_demand_plan_id = 3861;
Date: 2024-04-14 10:36:53 Duration: 29s436ms
-
select count(id) from item_list_line where item_demand_plan_id = 3857;
Date: 2024-04-14 11:07:37 Duration: 835ms
-
select count(id) from item_list_line where item_demand_plan_id = 3864;
Date: 2024-04-14 10:56:47 Duration: 762ms
11 30s872ms 235 126ms 176ms 131ms select pwi.product_id 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 coalesce(pwi.stocking_flag, false) = true and coalesce(pt.is_core, false) = false and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and pwi.inventory_vendor_id = ? and pwi.warehouse_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 14 10 60 7s869ms 131ms 11 175 23s2ms 131ms -
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3280 and pwi.warehouse_id = 46;
Date: 2024-04-14 11:27:58 Duration: 176ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3105 and pwi.warehouse_id = 35;
Date: 2024-04-14 11:39:30 Duration: 160ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 2951 and pwi.warehouse_id = 38;
Date: 2024-04-14 11:08:41 Duration: 160ms
12 30s583ms 1 30s583ms 30s583ms 30s583ms 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, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 14 09 1 30s583ms 30s583ms -
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, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;
Date: 2024-04-14 09:00:50 Duration: 30s583ms
13 24s373ms 190 120ms 160ms 128ms select id from product_warehouse_inventory where freeze_date is not null and freeze_date > ? and warehouse_id = ? and inventory_vendor_id = ? and qty_available < min_product_uom_qty;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 14 10 66 8s383ms 127ms 11 124 15s990ms 128ms -
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 10:52:27' and warehouse_id = 36 and inventory_vendor_id = 3055 and qty_available < min_product_uom_qty;
Date: 2024-04-14 10:52:27 Duration: 160ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 11:17:34' and warehouse_id = 45 and inventory_vendor_id = 2983 and qty_available < min_product_uom_qty;
Date: 2024-04-14 11:17:34 Duration: 157ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 11:00:52' and warehouse_id = 43 and inventory_vendor_id = 3047 and qty_available < min_product_uom_qty;
Date: 2024-04-14 11:00:52 Duration: 156ms
14 21s510ms 1 21s510ms 21s510ms 21s510ms 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, inventory_vendor_id, product_type) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 14 09 1 21s510ms 21s510ms -
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, inventory_vendor_id, product_type) TO stdout;
Date: 2024-04-14 09:10:55 Duration: 21s510ms
15 19s223ms 66 283ms 359ms 291ms 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 #15
Day Hour Count Duration Avg duration Apr 14 15 39 11s343ms 290ms 16 18 5s269ms 292ms 17 9 2s609ms 289ms -
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: 2024-04-14 16:12:02 Duration: 359ms
-
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: 2024-04-14 15:09:47 Duration: 321ms
-
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: 2024-04-14 17:11:57 Duration: 307ms
16 16s616ms 1 16s616ms 16s616ms 16s616ms copy public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 14 09 1 16s616ms 16s616ms -
COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-04-14 09:01:14 Duration: 16s616ms
17 12s940ms 1 12s940ms 12s940ms 12s940ms copy public.account_move (id, access_token, message_main_attachment_id, name, date, ref, narration, state, posted_before, move_type, to_check, journal_id, company_id, currency_id, partner_id, commercial_partner_id, is_move_sent, partner_bank_id, payment_reference, payment_id, statement_line_id, amount_untaxed, amount_tax, amount_total, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_total_signed, amount_residual_signed, payment_state, tax_cash_basis_rec_id, tax_cash_basis_move_id, auto_post, reversed_entry_id, fiscal_position_id, invoice_user_id, invoice_date, invoice_date_due, invoice_origin, invoice_payment_term_id, invoice_incoterm_id, qr_code_method, invoice_source_email, invoice_partner_display_name, invoice_cash_rounding_id, secure_sequence_number, inalterable_hash, sequence_prefix, sequence_number, create_uid, create_date, write_uid, write_date, payment_state_before_switch, duplicated_vendor_ref, extract_state, extract_status_code, extract_remote_id, transfer_model_id, tax_closing_end_date, tax_report_control_error, asset_id, asset_remaining_value, asset_depreciated_value, asset_manually_modified, asset_value_change, campaign_id, source_id, medium_id, team_id, partner_shipping_id, stock_move_id, preferred_payment_method_id, website_id, branch_id, branch_name, invoice_action, sign_amount_total, sign_amount_residual, sign_amount_untaxed, invoice_part_id, invoice_product_qty, balance_entry, to_check_negative, non_inventory_entry, direct_order, warranty_invoice, email_send_eod, email_sent, order_type, carrier_id, release_to_pay, release_to_pay_manual, force_release_to_pay, invoice_origin_new, debit_origin_id, paid_by_vc, payment_details, expense_choice, edi_810_id, cash_tendered, change_amount, sequence_generated, open_invoice, edi_split_lock, edi_billed, is_edi_bill, payment_details_compute, edi_done_date, partner_address_type, from_ar, auto_reconcile, related_payment_id, discount_amount_applied) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 14 09 1 12s940ms 12s940ms -
COPY public.account_move (id, access_token, message_main_attachment_id, name, date, ref, narration, state, posted_before, move_type, to_check, journal_id, company_id, currency_id, partner_id, commercial_partner_id, is_move_sent, partner_bank_id, payment_reference, payment_id, statement_line_id, amount_untaxed, amount_tax, amount_total, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_total_signed, amount_residual_signed, payment_state, tax_cash_basis_rec_id, tax_cash_basis_move_id, auto_post, reversed_entry_id, fiscal_position_id, invoice_user_id, invoice_date, invoice_date_due, invoice_origin, invoice_payment_term_id, invoice_incoterm_id, qr_code_method, invoice_source_email, invoice_partner_display_name, invoice_cash_rounding_id, secure_sequence_number, inalterable_hash, sequence_prefix, sequence_number, create_uid, create_date, write_uid, write_date, payment_state_before_switch, duplicated_vendor_ref, extract_state, extract_status_code, extract_remote_id, transfer_model_id, tax_closing_end_date, tax_report_control_error, asset_id, asset_remaining_value, asset_depreciated_value, asset_manually_modified, asset_value_change, campaign_id, source_id, medium_id, team_id, partner_shipping_id, stock_move_id, preferred_payment_method_id, website_id, branch_id, branch_name, invoice_action, sign_amount_total, sign_amount_residual, sign_amount_untaxed, invoice_part_id, invoice_product_qty, balance_entry, to_check_negative, non_inventory_entry, direct_order, warranty_invoice, email_send_eod, email_sent, order_type, carrier_id, release_to_pay, release_to_pay_manual, force_release_to_pay, invoice_origin_new, debit_origin_id, paid_by_vc, payment_details, expense_choice, edi_810_id, cash_tendered, change_amount, sequence_generated, open_invoice, edi_split_lock, edi_billed, is_edi_bill, payment_details_compute, edi_done_date, partner_address_type, from_ar, auto_reconcile, related_payment_id, discount_amount_applied) TO stdout;
Date: 2024-04-14 09:00:19 Duration: 12s940ms
18 12s409ms 99 120ms 155ms 125ms select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > ? and warehouse_id = ? and ((coalesce(qty_available, ?) + coalesce(qty_on_order, ?)) - coalesce(qty_reserve, ?)) < ? and inventory_vendor_id = ? and coalesce(superceded, false) = false and coalesce(discontinued, false) = false and coalesce(is_core, false) = false;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 14 10 28 3s548ms 126ms 11 71 8s860ms 124ms -
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 42 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3035 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 10:43:16 Duration: 155ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 42 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3045 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 10:46:48 Duration: 148ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 41 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3026 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 11:51:45 Duration: 145ms
19 11s752ms 1 11s752ms 11s752ms 11s752ms 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 #19
Day Hour Count Duration Avg duration Apr 14 09 1 11s752ms 11s752ms -
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: 2024-04-14 09:11:57 Duration: 11s752ms
20 11s74ms 11 985ms 1s35ms 1s6ms 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 #20
Day Hour Count Duration Avg duration Apr 14 10 5 5s41ms 1s8ms 11 6 6s33ms 1s5ms -
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 = 3855 and ill.method not in (8, 7);
Date: 2024-04-14 10:49:03 Duration: 1s35ms
-
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 = 3854 and ill.method not in (8, 7);
Date: 2024-04-14 11:31:01 Duration: 1s21ms
-
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 = 3863 and ill.method not in (8, 7);
Date: 2024-04-14 11:12:11 Duration: 1s13ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 9,367 22m32s 136ms 188ms 144ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 14 10 2,742 6m35s 144ms 11 6,625 15m56s 144ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188200) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 188ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188199) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 177ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (213240) and warehouse_id = (42));
Date: 2024-04-14 10:39:55 Duration: 176ms
2 5,751 13m7s 133ms 228ms 136ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 14 00 232 31s683ms 136ms 01 240 32s759ms 136ms 02 240 32s945ms 137ms 03 240 32s916ms 137ms 04 240 33s41ms 137ms 05 240 32s880ms 137ms 06 240 32s800ms 136ms 07 240 32s880ms 137ms 08 240 32s745ms 136ms 09 240 32s896ms 137ms 10 240 33s295ms 138ms 11 239 33s855ms 141ms 12 240 32s834ms 136ms 13 240 32s897ms 137ms 14 240 32s857ms 136ms 15 240 32s801ms 136ms 16 240 32s699ms 136ms 17 240 32s694ms 136ms 18 240 32s659ms 136ms 19 240 32s731ms 136ms 20 240 32s760ms 136ms 21 240 32s730ms 136ms 22 240 32s703ms 136ms 23 240 32s706ms 136ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_sequence', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_am', 'pg_catalog.pg_database', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_roles', 'pg_catalog.pg_index', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_namespace', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cast', 'pg_catalog.pg_enum', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_group', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_policy', 'pg_catalog.pg_extension', 'pg_catalog.pg_user', 'pg_catalog.pg_opclass', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_attribute', 'pg_catalog.pg_range', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication', 'information_schema.schemata', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.role_table_grants', 'information_schema.information_schema_catalog_name', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.user_mappings', 'information_schema.foreign_tables', 'information_schema.character_sets', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.column_options', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.role_routine_grants', 'information_schema.udt_privileges', 'information_schema.user_mapping_options', 'information_schema.attributes', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.domain_constraints', 'information_schema.tables', 'information_schema.domains', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.foreign_data_wrappers', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.collations', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_implementation_info', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-04-14 10:43:16 Duration: 228ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_extension', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_user', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_language', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_operator', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_attribute', 'pg_catalog.pg_conversion', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_class', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_tables', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_database', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_transform', 'pg_catalog.pg_policy', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_cluster', 'information_schema.tables', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.foreign_data_wrappers', 'information_schema.role_udt_grants', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.information_schema_catalog_name', 'information_schema.routines', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.view_table_usage', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.column_privileges', 'information_schema.parameters', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.key_column_usage', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.collations', 'information_schema.routine_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_table_options', 'information_schema.collation_character_set_applicability', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.domains', 'information_schema.column_column_usage', 'information_schema.sql_implementation_info', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.user_mappings', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.domain_constraints', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.applicable_roles', 'information_schema.sql_features', 'information_schema.view_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.columns', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-04-14 02:16:00 Duration: 214ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_wal', 'pg_catalog.pg_cast', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_matviews', 'pg_catalog.pg_views', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_constraint', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_collation', 'pg_catalog.pg_user', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_rules', 'pg_catalog.pg_class', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_extension', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_inherits', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_language', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_depend', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_sequence', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_operator', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_group', 'pg_catalog.pg_database', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_proc', 'pg_catalog.pg_amop', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policies', 'pg_catalog.pg_am', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_ts_dict', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.routine_table_usage', 'information_schema.foreign_server_options', 'information_schema.column_privileges', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.role_usage_grants', 'information_schema.administrable_role_authorizations', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.role_udt_grants', 'information_schema.usage_privileges', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.check_constraints', 'information_schema.constraint_table_usage', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.routines', 'information_schema.sequences', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.collation_character_set_applicability', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.sql_sizing', 'information_schema.foreign_tables', 'information_schema.character_sets', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.domain_constraints', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.domains', 'information_schema.views', 'information_schema.user_defined_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-04-14 11:45:46 Duration: 189ms
3 940 4m7s 120ms 524ms 263ms 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 #3
Day Hour Count Duration Avg duration Apr 14 00 49 15s773ms 321ms 01 55 16s70ms 292ms 02 42 13s473ms 320ms 03 44 11s230ms 255ms 04 20 5s730ms 286ms 05 14 3s953ms 282ms 06 11 2s676ms 243ms 07 28 8s328ms 297ms 08 74 20s735ms 280ms 09 31 9s216ms 297ms 10 61 9s186ms 150ms 11 69 10s857ms 157ms 12 55 14s326ms 260ms 13 72 17s780ms 246ms 14 44 12s545ms 285ms 15 33 8s926ms 270ms 16 43 13s828ms 321ms 17 23 6s766ms 294ms 18 64 17s460ms 272ms 19 36 9s113ms 253ms 20 49 13s661ms 278ms 23 23 6s297ms 273ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1295"', '["pointspring_master","calendar.alarm",53355]', '["pointspring_master","res.partner",53355]', '["pointspring_master","ir.needaction",53355]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 524ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 07:07:30') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1015"', '["pointspring_master","calendar.alarm",19553]', '["pointspring_master","mail.channel",51]', '["pointspring_master","mail.channel",52]', '["pointspring_master","mail.channel",53]', '["pointspring_master","mail.channel",346]', '["pointspring_master","mail.channel",347]', '["pointspring_master","mail.channel",457]', '["pointspring_master","res.partner",19553]', '["pointspring_master","ir.needaction",19553]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 07:08:21 Duration: 520ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 509ms
4 537 3m6s 336ms 414ms 346ms 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 #4
Day Hour Count Duration Avg duration Apr 14 10 162 56s112ms 346ms 11 375 2m9s 346ms -
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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:22:06 Duration: 414ms
-
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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:02:33 Duration: 414ms
-
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 = 2933 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 = 2933 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 = 2933 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 10:49:13 Duration: 405ms
5 537 1m17s 125ms 188ms 144ms select pwi.product_id, coalesce(pwi.lead_days, ?), coalesce(pwi.min_product_uom_qty, ?) as min_qty, coalesce(pwi.max_product_uom_qty, ?) as max_qty, coalesce(pwi.max_product_uom_qty, ?) - ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) as need_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 coalesce(pt.is_core, false) = false and coalesce(pwi.stocking_flag, false) = true and coalesce(pt.discontinued, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and ((coalesce(pwi.qty_available, ?) + coalesce(pwi.qty_on_order, ?)) - coalesce(pwi.qty_reserve, ?)) < coalesce(pwi.max_product_uom_qty, ?) and pwi.warehouse_id = ? and pwi.inventory_vendor_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 14 10 162 23s571ms 145ms 11 375 53s780ms 143ms -
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 3078;
Date: 2024-04-14 10:54:21 Duration: 188ms
-
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 38 and pwi.inventory_vendor_id = 3073;
Date: 2024-04-14 11:11:12 Duration: 184ms
-
select pwi.product_id, COALESCE(pwi.lead_days, 7), COALESCE(pwi.min_product_uom_qty, 0) as min_qty, COALESCE(pwi.max_product_uom_qty, 0) as max_qty, COALESCE(pwi.max_product_uom_qty, 0) - ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) as need_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 COALESCE(pt.is_core, False) = False and COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < COALESCE(pwi.max_product_uom_qty, 0) and pwi.warehouse_id = 36 and pwi.inventory_vendor_id = 3025;
Date: 2024-04-14 10:54:10 Duration: 184ms
6 302 40s512ms 127ms 162ms 134ms select pwi.product_id 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 coalesce(pwi.stocking_flag, false) = true and coalesce(pt.is_core, false) = false and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and pwi.inventory_vendor_id = ? and pwi.warehouse_id = ? and pwi.product_id not in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 14 10 102 13s566ms 133ms 11 200 26s946ms 134ms -
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3089 and pwi.warehouse_id = 41 and pwi.product_id not in (194200, 194562, 194719, 194958, 195036, 195166, 195223, 195752, 195753, 195863, 195866, 195998, 195185);
Date: 2024-04-14 11:51:21 Duration: 162ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3035 and pwi.warehouse_id = 43 and pwi.product_id not in (259036, 258374, 254211, 253083, 252378, 172617, 172586, 172570, 172559, 172400, 172319, 172228, 172215, 172210, 172186, 172157, 172153, 172152, 172134, 172053, 172052, 171996, 171970, 171959, 171957, 171894, 171891, 171794, 171776, 171886, 172567);
Date: 2024-04-14 11:03:36 Duration: 158ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3080 and pwi.warehouse_id = 45 and pwi.product_id not in (176928);
Date: 2024-04-14 11:15:03 Duration: 158ms
7 235 30s872ms 126ms 176ms 131ms select pwi.product_id 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 coalesce(pwi.stocking_flag, false) = true and coalesce(pt.is_core, false) = false and coalesce(pt.discontinued, false) = false and coalesce(pt.never_stock, false) = false and coalesce(pt.superceded, false) = false and coalesce(pt.obsolete, false) = false and pwi.inventory_vendor_id = ? and pwi.warehouse_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 14 10 60 7s869ms 131ms 11 175 23s2ms 131ms -
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3280 and pwi.warehouse_id = 46;
Date: 2024-04-14 11:27:58 Duration: 176ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 3105 and pwi.warehouse_id = 35;
Date: 2024-04-14 11:39:30 Duration: 160ms
-
select pwi.product_id 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 COALESCE(pwi.stocking_flag, False) = True and COALESCE(pt.is_core, False) = False and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False and pwi.inventory_vendor_id = 2951 and pwi.warehouse_id = 38;
Date: 2024-04-14 11:08:41 Duration: 160ms
8 190 24s373ms 120ms 160ms 128ms select id from product_warehouse_inventory where freeze_date is not null and freeze_date > ? and warehouse_id = ? and inventory_vendor_id = ? and qty_available < min_product_uom_qty;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 14 10 66 8s383ms 127ms 11 124 15s990ms 128ms -
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 10:52:27' and warehouse_id = 36 and inventory_vendor_id = 3055 and qty_available < min_product_uom_qty;
Date: 2024-04-14 10:52:27 Duration: 160ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 11:17:34' and warehouse_id = 45 and inventory_vendor_id = 2983 and qty_available < min_product_uom_qty;
Date: 2024-04-14 11:17:34 Duration: 157ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-04-14 11:00:52' and warehouse_id = 43 and inventory_vendor_id = 3047 and qty_available < min_product_uom_qty;
Date: 2024-04-14 11:00:52 Duration: 156ms
9 99 12s409ms 120ms 155ms 125ms select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > ? and warehouse_id = ? and ((coalesce(qty_available, ?) + coalesce(qty_on_order, ?)) - coalesce(qty_reserve, ?)) < ? and inventory_vendor_id = ? and coalesce(superceded, false) = false and coalesce(discontinued, false) = false and coalesce(is_core, false) = false;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 14 10 28 3s548ms 126ms 11 71 8s860ms 124ms -
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 42 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3035 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 10:43:16 Duration: 155ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 42 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3045 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 10:46:48 Duration: 148ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 41 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 3026 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-04-14 11:51:45 Duration: 145ms
10 66 19s223ms 283ms 359ms 291ms 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 #10
Day Hour Count Duration Avg duration Apr 14 15 39 11s343ms 290ms 16 18 5s269ms 292ms 17 9 2s609ms 289ms -
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: 2024-04-14 16:12:02 Duration: 359ms
-
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: 2024-04-14 15:09:47 Duration: 321ms
-
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: 2024-04-14 17:11:57 Duration: 307ms
11 49 6s99ms 120ms 147ms 124ms 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 #11
Day Hour Count Duration Avg duration Apr 14 10 22 2s729ms 124ms 11 25 3s87ms 123ms 14 2 283ms 141ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (217541, 216568, 216670)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-04-14 14:29:03 Duration: 147ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (221980, 3)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-04-14 14:31:14 Duration: 135ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (172157)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-04-14 10:43:27 Duration: 131ms
12 45 6s359ms 129ms 167ms 141ms select "account_move".id from "account_move" where (("account_move"."edi_810_id" in (...)) and (("account_move"."id" not in (...)) or "account_move"."id" is null)) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 14 03 15 2s167ms 144ms 07 15 2s52ms 136ms 23 15 2s139ms 142ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (49715)) AND (("account_move"."id" not in (1346446, 1346456)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 23:36:05 Duration: 167ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (49612)) AND (("account_move"."id" not in (1345919)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:30:16 Duration: 163ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (49680)) AND (("account_move"."id" not in (1333936)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 23:30:04 Duration: 160ms
13 33 9s625ms 287ms 326ms 291ms 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") asc, "product_template"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 14 05 3 873ms 291ms 07 3 869ms 289ms 14 3 871ms 290ms 15 12 3s490ms 290ms 16 6 1s777ms 296ms 17 6 1s742ms 290ms -
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 16:57:43 Duration: 326ms
-
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 05:32:37 Duration: 296ms
-
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 17:13:01 Duration: 295ms
14 21 4s573ms 214ms 228ms 217ms select "product_template".id from "product_template" 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, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 14 01 3 658ms 219ms 15 15 3s267ms 217ms 16 3 647ms 215ms -
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 01:03:40 Duration: 228ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 15:24:02 Duration: 221ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 15:24:01 Duration: 220ms
15 20 2s976ms 133ms 170ms 148ms select "account_move".id from "account_move" where ("account_move"."edi_810_id" in (...)) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 14 03 6 951ms 158ms 07 6 837ms 139ms 23 8 1s187ms 148ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (43656, 43835, 43969, 43999, 44138, 44171, 44879, 45173, 45420, 45468, 45610, 45927, 45930, 46016, 46346, 46362, 46400, 46484, 46542, 46699, 46762, 47042, 47068, 47148, 47149, 47213, 47325, 47401, 47436, 47551, 47587, 47595, 47634, 47707, 47753, 47821, 47836, 47855, 47878, 47891)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:06:02 Duration: 170ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49686, 49684, 49687, 49688, 49689, 49690, 49691, 49692, 49694, 49695, 49696, 49697, 49698, 49699, 49701, 49702, 49703, 49704, 49705, 49706, 49709, 49710, 49712, 49714, 49715, 49716, 49717, 49718, 49721)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:36:02 Duration: 169ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49435, 49442, 49443, 49450, 49451, 49452, 49455, 49456, 49465, 49478, 49479, 49482, 49490, 49491, 49503, 49505, 49511, 49512, 49513, 49520, 49522, 49527, 49531, 49546, 49547, 49554, 49555, 49556, 49561, 49563, 49572, 49574, 49582, 49584, 49587, 49589, 49594, 49595, 49599, 49600)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:24:01 Duration: 164ms
16 18 3s826ms 209ms 215ms 212ms select "product_template".id from "product_template" 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, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 14 14 3 642ms 214ms 15 6 1s274ms 212ms 16 6 1s278ms 213ms 17 3 631ms 210ms -
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 14:59:41 Duration: 215ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 14:59:41 Duration: 214ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 16:08:56 Duration: 214ms
17 11 37s26ms 741ms 29s436ms 3s366ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 14 10 5 32s430ms 6s486ms 11 6 4s595ms 765ms -
select count(id) from item_list_line where item_demand_plan_id = 3861;
Date: 2024-04-14 10:36:53 Duration: 29s436ms
-
select count(id) from item_list_line where item_demand_plan_id = 3857;
Date: 2024-04-14 11:07:37 Duration: 835ms
-
select count(id) from item_list_line where item_demand_plan_id = 3864;
Date: 2024-04-14 10:56:47 Duration: 762ms
18 11 11s74ms 985ms 1s35ms 1s6ms 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 #18
Day Hour Count Duration Avg duration Apr 14 10 5 5s41ms 1s8ms 11 6 6s33ms 1s5ms -
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 = 3855 and ill.method not in (8, 7);
Date: 2024-04-14 10:49:03 Duration: 1s35ms
-
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 = 3854 and ill.method not in (8, 7);
Date: 2024-04-14 11:31:01 Duration: 1s21ms
-
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 = 3863 and ill.method not in (8, 7);
Date: 2024-04-14 11:12:11 Duration: 1s13ms
19 11 9s982ms 890ms 955ms 907ms 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 #19
Day Hour Count Duration Avg duration Apr 14 10 5 4s515ms 903ms 11 6 5s467ms 911ms -
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 = 3857 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 11:07:38 Duration: 955ms
-
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 = 3863 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 11:12:10 Duration: 912ms
-
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 = 3855 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 10:49:02 Duration: 911ms
20 10 7s835ms 319ms 2s179ms 783ms commit;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 14 06 7 6s74ms 867ms 07 3 1s760ms 586ms -
COMMIT;
Date: 2024-04-14 06:58:34 Duration: 2s179ms
-
COMMIT;
Date: 2024-04-14 07:01:09 Duration: 1s8ms
-
COMMIT;
Date: 2024-04-14 06:58:34 Duration: 960ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3m53s 3m53s 3m53s 1 3m53s 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 Apr 14 09 1 3m53s 3m53s -
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: 2024-04-14 09:09:16 Duration: 3m53s
2 1m49s 1m49s 1m49s 1 1m49s 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 Apr 14 09 1 1m49s 1m49s -
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: 2024-04-14 09:03:33 Duration: 1m49s
3 1m39s 1m39s 1m39s 1 1m39s 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 Apr 14 09 1 1m39s 1m39s -
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: 2024-04-14 09:05:22 Duration: 1m39s
4 30s583ms 30s583ms 30s583ms 1 30s583ms 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, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 14 09 1 30s583ms 30s583ms -
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, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;
Date: 2024-04-14 09:00:50 Duration: 30s583ms
5 21s510ms 21s510ms 21s510ms 1 21s510ms 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, inventory_vendor_id, product_type) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 14 09 1 21s510ms 21s510ms -
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, inventory_vendor_id, product_type) TO stdout;
Date: 2024-04-14 09:10:55 Duration: 21s510ms
6 16s616ms 16s616ms 16s616ms 1 16s616ms copy public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 14 09 1 16s616ms 16s616ms -
COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-04-14 09:01:14 Duration: 16s616ms
7 12s940ms 12s940ms 12s940ms 1 12s940ms copy public.account_move (id, access_token, message_main_attachment_id, name, date, ref, narration, state, posted_before, move_type, to_check, journal_id, company_id, currency_id, partner_id, commercial_partner_id, is_move_sent, partner_bank_id, payment_reference, payment_id, statement_line_id, amount_untaxed, amount_tax, amount_total, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_total_signed, amount_residual_signed, payment_state, tax_cash_basis_rec_id, tax_cash_basis_move_id, auto_post, reversed_entry_id, fiscal_position_id, invoice_user_id, invoice_date, invoice_date_due, invoice_origin, invoice_payment_term_id, invoice_incoterm_id, qr_code_method, invoice_source_email, invoice_partner_display_name, invoice_cash_rounding_id, secure_sequence_number, inalterable_hash, sequence_prefix, sequence_number, create_uid, create_date, write_uid, write_date, payment_state_before_switch, duplicated_vendor_ref, extract_state, extract_status_code, extract_remote_id, transfer_model_id, tax_closing_end_date, tax_report_control_error, asset_id, asset_remaining_value, asset_depreciated_value, asset_manually_modified, asset_value_change, campaign_id, source_id, medium_id, team_id, partner_shipping_id, stock_move_id, preferred_payment_method_id, website_id, branch_id, branch_name, invoice_action, sign_amount_total, sign_amount_residual, sign_amount_untaxed, invoice_part_id, invoice_product_qty, balance_entry, to_check_negative, non_inventory_entry, direct_order, warranty_invoice, email_send_eod, email_sent, order_type, carrier_id, release_to_pay, release_to_pay_manual, force_release_to_pay, invoice_origin_new, debit_origin_id, paid_by_vc, payment_details, expense_choice, edi_810_id, cash_tendered, change_amount, sequence_generated, open_invoice, edi_split_lock, edi_billed, is_edi_bill, payment_details_compute, edi_done_date, partner_address_type, from_ar, auto_reconcile, related_payment_id, discount_amount_applied) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 14 09 1 12s940ms 12s940ms -
COPY public.account_move (id, access_token, message_main_attachment_id, name, date, ref, narration, state, posted_before, move_type, to_check, journal_id, company_id, currency_id, partner_id, commercial_partner_id, is_move_sent, partner_bank_id, payment_reference, payment_id, statement_line_id, amount_untaxed, amount_tax, amount_total, amount_residual, amount_untaxed_signed, amount_tax_signed, amount_total_signed, amount_residual_signed, payment_state, tax_cash_basis_rec_id, tax_cash_basis_move_id, auto_post, reversed_entry_id, fiscal_position_id, invoice_user_id, invoice_date, invoice_date_due, invoice_origin, invoice_payment_term_id, invoice_incoterm_id, qr_code_method, invoice_source_email, invoice_partner_display_name, invoice_cash_rounding_id, secure_sequence_number, inalterable_hash, sequence_prefix, sequence_number, create_uid, create_date, write_uid, write_date, payment_state_before_switch, duplicated_vendor_ref, extract_state, extract_status_code, extract_remote_id, transfer_model_id, tax_closing_end_date, tax_report_control_error, asset_id, asset_remaining_value, asset_depreciated_value, asset_manually_modified, asset_value_change, campaign_id, source_id, medium_id, team_id, partner_shipping_id, stock_move_id, preferred_payment_method_id, website_id, branch_id, branch_name, invoice_action, sign_amount_total, sign_amount_residual, sign_amount_untaxed, invoice_part_id, invoice_product_qty, balance_entry, to_check_negative, non_inventory_entry, direct_order, warranty_invoice, email_send_eod, email_sent, order_type, carrier_id, release_to_pay, release_to_pay_manual, force_release_to_pay, invoice_origin_new, debit_origin_id, paid_by_vc, payment_details, expense_choice, edi_810_id, cash_tendered, change_amount, sequence_generated, open_invoice, edi_split_lock, edi_billed, is_edi_bill, payment_details_compute, edi_done_date, partner_address_type, from_ar, auto_reconcile, related_payment_id, discount_amount_applied) TO stdout;
Date: 2024-04-14 09:00:19 Duration: 12s940ms
8 11s752ms 11s752ms 11s752ms 1 11s752ms 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 #8
Day Hour Count Duration Avg duration Apr 14 09 1 11s752ms 11s752ms -
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: 2024-04-14 09:11:57 Duration: 11s752ms
9 741ms 29s436ms 3s366ms 11 37s26ms select count(id) from item_list_line where item_demand_plan_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 14 10 5 32s430ms 6s486ms 11 6 4s595ms 765ms -
select count(id) from item_list_line where item_demand_plan_id = 3861;
Date: 2024-04-14 10:36:53 Duration: 29s436ms
-
select count(id) from item_list_line where item_demand_plan_id = 3857;
Date: 2024-04-14 11:07:37 Duration: 835ms
-
select count(id) from item_list_line where item_demand_plan_id = 3864;
Date: 2024-04-14 10:56:47 Duration: 762ms
10 985ms 1s35ms 1s6ms 11 11s74ms 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 Apr 14 10 5 5s41ms 1s8ms 11 6 6s33ms 1s5ms -
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 = 3855 and ill.method not in (8, 7);
Date: 2024-04-14 10:49:03 Duration: 1s35ms
-
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 = 3854 and ill.method not in (8, 7);
Date: 2024-04-14 11:31:01 Duration: 1s21ms
-
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 = 3863 and ill.method not in (8, 7);
Date: 2024-04-14 11:12:11 Duration: 1s13ms
11 890ms 955ms 907ms 11 9s982ms 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 #11
Day Hour Count Duration Avg duration Apr 14 10 5 4s515ms 903ms 11 6 5s467ms 911ms -
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 = 3857 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 11:07:38 Duration: 955ms
-
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 = 3863 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 11:12:10 Duration: 912ms
-
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 = 3855 GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-04-14 10:49:02 Duration: 911ms
12 319ms 2s179ms 783ms 10 7s835ms commit;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 14 06 7 6s74ms 867ms 07 3 1s760ms 586ms -
COMMIT;
Date: 2024-04-14 06:58:34 Duration: 2s179ms
-
COMMIT;
Date: 2024-04-14 07:01:09 Duration: 1s8ms
-
COMMIT;
Date: 2024-04-14 06:58:34 Duration: 960ms
13 336ms 414ms 346ms 537 3m6s 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 #13
Day Hour Count Duration Avg duration Apr 14 10 162 56s112ms 346ms 11 375 2m9s 346ms -
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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 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 = 46 and pwi.inventory_vendor_id = 3048 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:22:06 Duration: 414ms
-
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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 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 = 43 and pwi.inventory_vendor_id = 2947 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 11:02:33 Duration: 414ms
-
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 = 2933 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 = 2933 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 = 2933 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-04-14 10:49:13 Duration: 405ms
14 287ms 326ms 291ms 33 9s625ms 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") asc, "product_template"."id" desc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 14 05 3 873ms 291ms 07 3 869ms 289ms 14 3 871ms 290ms 15 12 3s490ms 290ms 16 6 1s777ms 296ms 17 6 1s742ms 290ms -
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 16:57:43 Duration: 326ms
-
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 05:32:37 Duration: 296ms
-
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") ASC, "product_template"."id" DESC;
Date: 2024-04-14 17:13:01 Duration: 295ms
15 283ms 359ms 291ms 66 19s223ms 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 #15
Day Hour Count Duration Avg duration Apr 14 15 39 11s343ms 290ms 16 18 5s269ms 292ms 17 9 2s609ms 289ms -
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: 2024-04-14 16:12:02 Duration: 359ms
-
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: 2024-04-14 15:09:47 Duration: 321ms
-
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: 2024-04-14 17:11:57 Duration: 307ms
16 120ms 524ms 263ms 940 4m7s 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 #16
Day Hour Count Duration Avg duration Apr 14 00 49 15s773ms 321ms 01 55 16s70ms 292ms 02 42 13s473ms 320ms 03 44 11s230ms 255ms 04 20 5s730ms 286ms 05 14 3s953ms 282ms 06 11 2s676ms 243ms 07 28 8s328ms 297ms 08 74 20s735ms 280ms 09 31 9s216ms 297ms 10 61 9s186ms 150ms 11 69 10s857ms 157ms 12 55 14s326ms 260ms 13 72 17s780ms 246ms 14 44 12s545ms 285ms 15 33 8s926ms 270ms 16 43 13s828ms 321ms 17 23 6s766ms 294ms 18 64 17s460ms 272ms 19 36 9s113ms 253ms 20 49 13s661ms 278ms 23 23 6s297ms 273ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1295"', '["pointspring_master","calendar.alarm",53355]', '["pointspring_master","res.partner",53355]', '["pointspring_master","ir.needaction",53355]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 524ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 07:07:30') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1015"', '["pointspring_master","calendar.alarm",19553]', '["pointspring_master","mail.channel",51]', '["pointspring_master","mail.channel",52]', '["pointspring_master","mail.channel",53]', '["pointspring_master","mail.channel",346]', '["pointspring_master","mail.channel",347]', '["pointspring_master","mail.channel",457]', '["pointspring_master","res.partner",19553]', '["pointspring_master","ir.needaction",19553]'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 07:08:21 Duration: 520ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-04-14 02:15:10') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"'))) ORDER BY "bus_bus"."id";
Date: 2024-04-14 02:16:01 Duration: 509ms
17 214ms 228ms 217ms 21 4s573ms select "product_template".id from "product_template" 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, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 14 01 3 658ms 219ms 15 15 3s267ms 217ms 16 3 647ms 215ms -
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 01:03:40 Duration: 228ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 15:24:02 Duration: 221ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-04-14 15:24:01 Duration: 220ms
18 209ms 215ms 212ms 18 3s826ms select "product_template".id from "product_template" 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, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 14 14 3 642ms 214ms 15 6 1s274ms 212ms 16 6 1s278ms 213ms 17 3 631ms 210ms -
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 14:59:41 Duration: 215ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 14:59:41 Duration: 214ms
-
SELECT "product_template".id FROM "product_template" 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, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-04-14 16:08:56 Duration: 214ms
19 133ms 170ms 148ms 20 2s976ms select "account_move".id from "account_move" where ("account_move"."edi_810_id" in (...)) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 14 03 6 951ms 158ms 07 6 837ms 139ms 23 8 1s187ms 148ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (43656, 43835, 43969, 43999, 44138, 44171, 44879, 45173, 45420, 45468, 45610, 45927, 45930, 46016, 46346, 46362, 46400, 46484, 46542, 46699, 46762, 47042, 47068, 47148, 47149, 47213, 47325, 47401, 47436, 47551, 47587, 47595, 47634, 47707, 47753, 47821, 47836, 47855, 47878, 47891)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:06:02 Duration: 170ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49686, 49684, 49687, 49688, 49689, 49690, 49691, 49692, 49694, 49695, 49696, 49697, 49698, 49699, 49701, 49702, 49703, 49704, 49705, 49706, 49709, 49710, 49712, 49714, 49715, 49716, 49717, 49718, 49721)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:36:02 Duration: 169ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49435, 49442, 49443, 49450, 49451, 49452, 49455, 49456, 49465, 49478, 49479, 49482, 49490, 49491, 49503, 49505, 49511, 49512, 49513, 49520, 49522, 49527, 49531, 49546, 49547, 49554, 49555, 49556, 49561, 49563, 49572, 49574, 49582, 49584, 49587, 49589, 49594, 49595, 49599, 49600)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-04-14 03:24:01 Duration: 164ms
20 136ms 188ms 144ms 9,367 22m32s update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 14 10 2,742 6m35s 144ms 11 6,625 15m56s 144ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188200) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 188ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188199) and warehouse_id = (36));
Date: 2024-04-14 10:51:39 Duration: 177ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (213240) and warehouse_id = (42));
Date: 2024-04-14 10:39:55 Duration: 176ms
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
- 19,809 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 700 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 700 Max number of times the same event was reported
- 700 Total events found
Rank Times reported Error 1 700 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Apr 14 00 22 01 25 02 22 03 26 04 23 05 24 06 22 07 92 08 74 09 28 10 28 11 29 12 24 13 26 14 21 15 25 16 20 17 25 18 28 19 23 20 19 21 26 22 23 23 25 - 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=67 FOR UPDATE NOWAIT
Date: 2024-04-14 22:50:20