-
Global information
- Generated on Mon Aug 12 00:50:06 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 172,261 log entries in 4s
- Log start from 2024-08-11 00:02:47 to 2024-08-11 23:59:59
-
Overview
Global Stats
- 212 Number of unique normalized queries
- 59,929 Number of queries
- 2h49m24s Total query duration
- 2024-08-11 00:02:47 First query
- 2024-08-11 23:59:59 Last query
- 15 queries/s at 2024-08-11 10:42:14 Query peak
- 2h49m24s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2h49m24s Execute total duration
- 701 Number of events
- 2 Number of unique normalized events
- 697 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
- 59,929 Average queries per session
- 2h49m24s 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
- 15 queries/s Query Peak
- 2024-08-11 10:42:14 Date
SELECT Traffic
Key values
- 15 queries/s Query Peak
- 2024-08-11 10:42:14 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 6 queries/s Query Peak
- 2024-08-11 11:41:14 Date
Queries duration
Key values
- 2h49m24s 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) Aug 11 00 2,001 120ms 506ms 134ms 5s560ms 5s700ms 7s555ms 01 2,068 120ms 527ms 134ms 5s419ms 5s603ms 5s896ms 02 2,039 120ms 494ms 132ms 5s221ms 5s542ms 7s204ms 03 2,140 120ms 337ms 131ms 5s268ms 5s788ms 11s 04 2,029 120ms 419ms 130ms 4s963ms 5s85ms 6s99ms 05 1,950 120ms 466ms 132ms 5s6ms 5s934ms 6s473ms 06 1,952 120ms 548ms 135ms 5s230ms 6s137ms 6s826ms 07 2,101 120ms 454ms 133ms 5s845ms 6s297ms 7s149ms 08 2,011 120ms 434ms 132ms 5s84ms 5s225ms 6s414ms 09 2,165 120ms 3m57s 496ms 59s216ms 2m6s 4m38s 10 4,657 120ms 5s203ms 201ms 36s663ms 42s503ms 48s265ms 11 8,626 120ms 1s900ms 223ms 41s712ms 46s31ms 47s272ms 12 3,451 120ms 1s892ms 196ms 37s295ms 43s815ms 44s466ms 13 1,943 120ms 499ms 135ms 5s530ms 6s99ms 8s341ms 14 1,959 120ms 1s703ms 140ms 6s280ms 7s 15s478ms 15 1,989 120ms 511ms 135ms 5s414ms 6s520ms 8s377ms 16 2,125 120ms 1s403ms 143ms 5s752ms 6s391ms 24s819ms 17 2,092 120ms 442ms 130ms 5s447ms 5s693ms 5s707ms 18 2,169 120ms 1s294ms 138ms 6s83ms 6s919ms 12s799ms 19 2,050 120ms 450ms 132ms 5s471ms 5s820ms 7s14ms 20 1,961 120ms 507ms 131ms 5s342ms 5s649ms 7s142ms 21 1,978 120ms 472ms 134ms 5s377ms 6s210ms 8s847ms 22 2,138 120ms 408ms 131ms 5s392ms 5s858ms 6s206ms 23 2,335 120ms 728ms 149ms 10s493ms 11s860ms 21s429ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 11 00 2,001 0 134ms 5s305ms 5s560ms 5s852ms 01 2,068 0 134ms 5s183ms 5s419ms 5s733ms 02 2,039 0 132ms 4s769ms 5s221ms 5s635ms 03 2,140 0 131ms 4s997ms 5s268ms 6s139ms 04 2,029 0 130ms 4s795ms 4s963ms 5s361ms 05 1,950 0 132ms 4s814ms 5s6ms 6s407ms 06 1,952 0 135ms 5s52ms 5s230ms 6s785ms 07 2,101 0 133ms 5s118ms 5s845ms 6s384ms 08 2,010 0 132ms 4s862ms 5s84ms 5s236ms 09 2,050 115 496ms 5s510ms 54s492ms 2m20s 10 2,429 0 232ms 16s913ms 22s674ms 35s459ms 11 3,469 0 306ms 22s689ms 30s837ms 39s277ms 12 2,260 0 212ms 7s266ms 23s345ms 32s412ms 13 1,943 0 135ms 5s19ms 5s530ms 6s100ms 14 1,959 0 140ms 4s934ms 6s280ms 7s608ms 15 1,989 0 135ms 4s961ms 5s414ms 7s25ms 16 2,112 0 143ms 5s413ms 5s752ms 7s506ms 17 2,092 0 130ms 5s77ms 5s447ms 5s698ms 18 2,169 0 138ms 5s387ms 6s83ms 7s629ms 19 2,050 0 132ms 4s882ms 5s471ms 5s900ms 20 1,961 0 131ms 4s890ms 5s342ms 6s231ms 21 1,978 0 134ms 5s10ms 5s377ms 6s707ms 22 2,138 0 131ms 5s121ms 5s392ms 5s955ms 23 2,271 0 148ms 6s143ms 8s480ms 13s79ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 11 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 1 0 0 167ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 2,228 0 0 167ms 1s382ms 15s9ms 24s481ms 11 0 5,157 0 0 166ms 13s975ms 19s610ms 28s800ms 12 0 1,191 0 0 166ms 0ms 8s827ms 20s470ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 13 0 0 167ms 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 64 0 0 170ms 0ms 0ms 2s13ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Aug 11 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 Aug 11 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 Aug 11 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 Aug 11 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 Aug 11 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) Aug 11 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 Aug 11 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 Aug 11 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
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Aug 11 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
- 51,160 Total read queries
- 8,769 Total write queries
Queries by database
Key values
- unknown Main database
- 59,929 Requests
- 2h49m24s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 59,929 Requests
User Request type Count Duration unknown Total 59,929 2h49m24s copy to 115 13m23s select 51,160 2h11m57s update 8,654 24m4s Duration by user
Key values
- 2h49m24s (unknown) Main time consuming user
User Request type Count Duration unknown Total 59,929 2h49m24s copy to 115 13m23s select 51,160 2h11m57s update 8,654 24m4s Queries by host
Key values
- unknown Main host
- 59,929 Requests
- 2h49m24s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 59,929 Requests
- 2h49m24s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-08-11 19:58:14 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 59,139 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m57s 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-08-11 09:10:21 ]
2 2m6s 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-08-11 09:04:09 ]
3 1m59s 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-08-11 09:06:23 ]
4 37s93ms 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-08-11 09:00:59 ]
5 22s786ms 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-08-11 09:12:30 ]
6 18s458ms 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-08-11 09:01:27 ]
7 15s881ms 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, reconcile_date_from_add) TO stdout;[ Date: 2024-08-11 09:00:22 ]
8 12s424ms 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-08-11 09:10:35 ]
9 11s558ms COPY public.bus_bus (id, channel, message, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-08-11 09:01:39 ]
10 10s500ms 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, product_cost) TO stdout;[ Date: 2024-08-11 09:12:55 ]
11 10s467ms COPY public.queue_job (id, uuid, graph_uuid, user_id, company_id, name, model_name, method_name, records, dependencies, args, kwargs, func_string, state, priority, exc_name, exc_message, exc_info, result, date_created, date_started, date_enqueued, date_done, exec_time, date_cancelled, eta, retry, max_retries, channel_method_name, job_function_id, channel, identity_key, worker_pid, sale_id, picking_id, repair_id, message_main_attachment_id) TO stdout;[ Date: 2024-08-11 09:12:00 ]
12 9s294ms 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-08-11 09:13:32 ]
13 7s544ms 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-08-11 09:01:54 ]
14 7s319ms 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-08-11 09:13:02 ]
15 7s294ms 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-08-11 09:13:17 ]
16 6s137ms COPY public.website_track (id, visitor_id, page_id, url, visit_datetime, product_id) TO stdout;[ Date: 2024-08-11 09:13:23 ]
17 6s127ms 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, is_ohio_tax_free) TO stdout;[ Date: 2024-08-11 09:12:38 ]
18 5s653ms 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-08-11 09:13:08 ]
19 5s203ms select count(id) from item_list_line where item_demand_plan_id = 3912;[ Date: 2024-08-11 10:36:34 ]
20 4s805ms 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, campaign_id, source_id, medium_id, message_main_attachment_id) TO stdout;[ Date: 2024-08-11 09:10:43 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1h33m57s 42,498 120ms 594ms 132ms 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 #1
Day Hour Count Duration Avg duration Aug 11 00 1,760 3m53s 132ms 01 1,808 3m59s 132ms 02 1,793 3m54s 130ms 03 1,817 3m53s 128ms 04 1,785 3m50s 128ms 05 1,710 3m43s 130ms 06 1,709 3m50s 134ms 07 1,802 3m52s 129ms 08 1,765 3m50s 130ms 09 1,778 3m49s 129ms 10 1,596 3m49s 143ms 11 1,773 4m20s 147ms 12 1,686 3m49s 136ms 13 1,691 3m47s 134ms 14 1,684 3m41s 131ms 15 1,743 3m53s 134ms 16 1,812 3m57s 130ms 17 1,846 3m58s 129ms 18 1,915 4m14s 133ms 19 1,806 3m56s 130ms 20 1,716 3m42s 129ms 21 1,720 3m46s 131ms 22 1,888 4m4s 129ms 23 1,895 4m16s 135ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 11:10:29') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19566]', '["pointspring_master","mail.channel",242]', '["pointspring_master","mail.channel",431]', '["pointspring_master","mail.channel",505]', '["pointspring_master","mail.channel",523]', '["pointspring_master","mail.channel",635]', '["pointspring_master","res.partner",19566]', '["pointspring_master","ir.needaction",19566]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-11 11:11:20 Duration: 594ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 11:10:29') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"', '["pointspring_master","calendar.alarm",19549]', '["pointspring_master","mail.channel",445]', '["pointspring_master","mail.channel",446]', '["pointspring_master","mail.channel",447]', '["pointspring_master","res.partner",19549]', '["pointspring_master","ir.needaction",19549]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-11 11:11:20 Duration: 592ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 12:06:05') AND ("bus_bus"."channel" in ('["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-08-11 12:06:55 Duration: 583ms
2 23m50s 8,576 158ms 253ms 166ms 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 #2
Day Hour Count Duration Avg duration Aug 11 10 2,228 6m12s 167ms 11 5,157 14m20s 166ms 12 1,191 3m17s 166ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209345) and warehouse_id = (45));
Date: 2024-08-11 11:28:10 Duration: 253ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (217882) and warehouse_id = (43));
Date: 2024-08-11 11:08:29 Duration: 247ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (206532) and warehouse_id = (37));
Date: 2024-08-11 11:59:19 Duration: 213ms
3 15m5s 526 1s695ms 1s900ms 1s720ms 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 #3
Day Hour Count Duration Avg duration Aug 11 10 119 3m24s 1s717ms 11 340 9m45s 1s721ms 12 67 1m55s 1s726ms -
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 11:56:50 Duration: 1s900ms
-
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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:06:56 Duration: 1s892ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:01:55 Duration: 1s858ms
4 13m42s 5,749 139ms 232ms 143ms 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 #4
Day Hour Count Duration Avg duration Aug 11 00 229 33s69ms 144ms 01 240 34s353ms 143ms 02 240 34s248ms 142ms 03 240 34s208ms 142ms 04 240 34s83ms 142ms 05 240 34s221ms 142ms 06 240 34s457ms 143ms 07 240 34s205ms 142ms 08 240 34s163ms 142ms 09 240 34s234ms 142ms 10 240 34s701ms 144ms 11 240 35s605ms 148ms 12 240 34s529ms 143ms 13 240 34s227ms 142ms 14 240 34s305ms 142ms 15 240 34s390ms 143ms 16 240 34s304ms 142ms 17 240 34s142ms 142ms 18 240 34s310ms 142ms 19 240 34s238ms 142ms 20 240 34s274ms 142ms 21 240 34s127ms 142ms 22 240 34s244ms 142ms 23 240 34s176ms 142ms -
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_amproc', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amop', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_views', 'pg_catalog.pg_index', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_namespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_constraint', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_policy', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_indexes', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_locks', 'pg_catalog.pg_extension', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_sizing', 'information_schema.collations', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.sql_implementation_info', 'information_schema.user_defined_types', 'information_schema.enabled_roles', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.parameters', 'information_schema.routine_table_usage', 'information_schema.triggered_update_columns', 'information_schema.column_column_usage', 'information_schema.sql_features', 'information_schema.foreign_table_options', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-11 13:14:19 Duration: 232ms
-
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_settings', 'pg_catalog.pg_range', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_sequences', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_extension', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_class', 'pg_catalog.pg_inherits', 'pg_catalog.pg_operator', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_roles', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_collation', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_enum', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_group', 'pg_catalog.pg_subscription', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_slru', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_sizing', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.sequences', 'information_schema.views', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.foreign_data_wrappers', 'information_schema.role_table_grants', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.table_privileges', 'information_schema.column_column_usage', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.role_routine_grants', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.attributes', 'information_schema.triggers', 'information_schema.view_table_usage', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.tables', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.constraint_table_usage', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-08-11 11:41:04 Duration: 229ms
-
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 ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_type', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_user', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_amproc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_class', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_rules', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_description', 'pg_catalog.pg_extension', 'pg_catalog.pg_publication', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_group', 'pg_catalog.pg_operator', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_enum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_namespace', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_policies', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_tables', 'information_schema.character_sets', 'information_schema.element_types', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.columns', 'information_schema.view_column_usage', 'information_schema.administrable_role_authorizations', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.data_type_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_table_usage', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.enabled_roles', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_udt_usage', 'information_schema.triggers', 'information_schema.foreign_server_options', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.views', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.udt_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage');
Date: 2024-08-11 11:22:48 Duration: 220ms
5 3m57s 1 3m57s 3m57s 3m57s copy public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 11 09 1 3m57s 3m57s -
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-08-11 09:10:21 Duration: 3m57s
6 2m6s 1 2m6s 2m6s 2m6s 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 Aug 11 09 1 2m6s 2m6s -
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-08-11 09:04:09 Duration: 2m6s
7 1m59s 1 1m59s 1m59s 1m59s 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 Aug 11 09 1 1m59s 1m59s -
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-08-11 09:06:23 Duration: 1m59s
8 1m23s 526 133ms 282ms 158ms 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 Aug 11 10 119 19s103ms 160ms 11 340 53s642ms 157ms 12 67 10s699ms 159ms -
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 = 3005;
Date: 2024-08-11 10:52:41 Duration: 282ms
-
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 = 2990;
Date: 2024-08-11 10:58:34 Duration: 190ms
-
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 = 3018;
Date: 2024-08-11 11:19:42 Duration: 185ms
9 44s504ms 310 135ms 163ms 143ms 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 Aug 11 10 73 10s415ms 142ms 11 204 29s390ms 144ms 12 33 4s698ms 142ms -
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 = 3091 and pwi.warehouse_id = 41 and pwi.product_id not in (188198, 188189, 188188, 188187);
Date: 2024-08-11 12:07:36 Duration: 163ms
-
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 = 2928 and pwi.warehouse_id = 43 and pwi.product_id not in (173771, 173710, 173641);
Date: 2024-08-11 11:05:15 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 = 2970 and pwi.warehouse_id = 46 and pwi.product_id not in (177345);
Date: 2024-08-11 11:35:11 Duration: 160ms
10 44s453ms 344 120ms 166ms 129ms 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 #10
Day Hour Count Duration Avg duration Aug 11 10 77 9s906ms 128ms 11 221 28s549ms 129ms 12 46 5s997ms 130ms -
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 12:04:21' and warehouse_id = 41 and inventory_vendor_id = 2965 and qty_available < min_product_uom_qty;
Date: 2024-08-11 12:04:21 Duration: 166ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 12:01:00' and warehouse_id = 37 and inventory_vendor_id = 3090 and qty_available < min_product_uom_qty;
Date: 2024-08-11 12:01:00 Duration: 166ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 11:17:12' and warehouse_id = 38 and inventory_vendor_id = 2925 and qty_available < min_product_uom_qty;
Date: 2024-08-11 11:17:12 Duration: 157ms
11 37s93ms 1 37s93ms 37s93ms 37s93ms 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 #11
Day Hour Count Duration Avg duration Aug 11 09 1 37s93ms 37s93ms -
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-08-11 09:00:59 Duration: 37s93ms
12 30s778ms 216 135ms 192ms 142ms 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 #12
Day Hour Count Duration Avg duration Aug 11 10 46 6s582ms 143ms 11 136 19s353ms 142ms 12 34 4s842ms 142ms -
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 = 3100 and pwi.warehouse_id = 42;
Date: 2024-08-11 10:50:06 Duration: 192ms
-
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 = 3276 and pwi.warehouse_id = 46;
Date: 2024-08-11 11:41:01 Duration: 180ms
-
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 = 2906 and pwi.warehouse_id = 37;
Date: 2024-08-11 12:02:09 Duration: 164ms
13 24s184ms 75 307ms 474ms 322ms 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 #13
Day Hour Count Duration Avg duration Aug 11 01 3 957ms 319ms 07 6 1s896ms 316ms 09 6 1s885ms 314ms 10 18 6s31ms 335ms 11 15 4s983ms 332ms 14 3 955ms 318ms 20 3 941ms 313ms 21 3 927ms 309ms 22 6 1s859ms 309ms 23 12 3s745ms 312ms -
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-08-11 10:45:36 Duration: 474ms
-
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-08-11 11:00:01 Duration: 402ms
-
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-08-11 10:48:46 Duration: 355ms
14 22s873ms 32 701ms 750ms 714ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 11 16 7 5s66ms 723ms 23 25 17s806ms 712ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:23 Duration: 750ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28c%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28c%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28c%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:26 Duration: 734ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%Lf9009%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%Lf9009%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%Lf9009%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 23:01:28 Duration: 728ms
15 22s786ms 1 22s786ms 22s786ms 22s786ms 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 #15
Day Hour Count Duration Avg duration Aug 11 09 1 22s786ms 22s786ms -
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-08-11 09:12:30 Duration: 22s786ms
16 21s397ms 66 309ms 407ms 324ms 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 #16
Day Hour Count Duration Avg duration Aug 11 00 6 1s937ms 322ms 01 3 948ms 316ms 07 6 1s899ms 316ms 08 3 961ms 320ms 09 3 954ms 318ms 10 21 6s912ms 329ms 11 15 4s917ms 327ms 13 3 952ms 317ms 16 3 956ms 318ms 18 3 957ms 319ms -
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-08-11 10:48:57 Duration: 407ms
-
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-08-11 10:46:52 Duration: 354ms
-
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-08-11 10:48:57 Duration: 347ms
17 20s539ms 160 120ms 164ms 128ms 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 #17
Day Hour Count Duration Avg duration Aug 11 10 32 4s63ms 126ms 11 110 14s125ms 128ms 12 18 2s350ms 130ms -
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 37 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2949 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:58:29 Duration: 164ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 44 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2926 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:04:01 Duration: 148ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 38 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2925 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:17:12 Duration: 148ms
18 18s458ms 1 18s458ms 18s458ms 18s458ms 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 #18
Day Hour Count Duration Avg duration Aug 11 09 1 18s458ms 18s458ms -
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-08-11 09:01:27 Duration: 18s458ms
19 15s987ms 78 192ms 296ms 204ms 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 #19
Day Hour Count Duration Avg duration Aug 11 03 26 5s390ms 207ms 07 26 5s324ms 204ms 23 26 5s272ms 202ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (56330)) AND (("account_move"."id" not in (1586765)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:36:19 Duration: 296ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53834)) AND (("account_move"."id" not in (1498048, 1498049)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 07:06:30 Duration: 272ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (55422)) AND (("account_move"."id" not in (1553425, 1553424)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:18:23 Duration: 252ms
20 15s881ms 1 15s881ms 15s881ms 15s881ms 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, reconcile_date_from_add) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 11 09 1 15s881ms 15s881ms -
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, reconcile_date_from_add) TO stdout;
Date: 2024-08-11 09:00:22 Duration: 15s881ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 42,498 1h33m57s 120ms 594ms 132ms 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 #1
Day Hour Count Duration Avg duration Aug 11 00 1,760 3m53s 132ms 01 1,808 3m59s 132ms 02 1,793 3m54s 130ms 03 1,817 3m53s 128ms 04 1,785 3m50s 128ms 05 1,710 3m43s 130ms 06 1,709 3m50s 134ms 07 1,802 3m52s 129ms 08 1,765 3m50s 130ms 09 1,778 3m49s 129ms 10 1,596 3m49s 143ms 11 1,773 4m20s 147ms 12 1,686 3m49s 136ms 13 1,691 3m47s 134ms 14 1,684 3m41s 131ms 15 1,743 3m53s 134ms 16 1,812 3m57s 130ms 17 1,846 3m58s 129ms 18 1,915 4m14s 133ms 19 1,806 3m56s 130ms 20 1,716 3m42s 129ms 21 1,720 3m46s 131ms 22 1,888 4m4s 129ms 23 1,895 4m16s 135ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 11:10:29') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19566]', '["pointspring_master","mail.channel",242]', '["pointspring_master","mail.channel",431]', '["pointspring_master","mail.channel",505]', '["pointspring_master","mail.channel",523]', '["pointspring_master","mail.channel",635]', '["pointspring_master","res.partner",19566]', '["pointspring_master","ir.needaction",19566]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-11 11:11:20 Duration: 594ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 11:10:29') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"', '["pointspring_master","calendar.alarm",19549]', '["pointspring_master","mail.channel",445]', '["pointspring_master","mail.channel",446]', '["pointspring_master","mail.channel",447]', '["pointspring_master","res.partner",19549]', '["pointspring_master","ir.needaction",19549]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-11 11:11:20 Duration: 592ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-11 12:06:05') AND ("bus_bus"."channel" in ('["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-08-11 12:06:55 Duration: 583ms
2 8,576 23m50s 158ms 253ms 166ms 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 #2
Day Hour Count Duration Avg duration Aug 11 10 2,228 6m12s 167ms 11 5,157 14m20s 166ms 12 1,191 3m17s 166ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209345) and warehouse_id = (45));
Date: 2024-08-11 11:28:10 Duration: 253ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (217882) and warehouse_id = (43));
Date: 2024-08-11 11:08:29 Duration: 247ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (206532) and warehouse_id = (37));
Date: 2024-08-11 11:59:19 Duration: 213ms
3 5,749 13m42s 139ms 232ms 143ms 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 #3
Day Hour Count Duration Avg duration Aug 11 00 229 33s69ms 144ms 01 240 34s353ms 143ms 02 240 34s248ms 142ms 03 240 34s208ms 142ms 04 240 34s83ms 142ms 05 240 34s221ms 142ms 06 240 34s457ms 143ms 07 240 34s205ms 142ms 08 240 34s163ms 142ms 09 240 34s234ms 142ms 10 240 34s701ms 144ms 11 240 35s605ms 148ms 12 240 34s529ms 143ms 13 240 34s227ms 142ms 14 240 34s305ms 142ms 15 240 34s390ms 143ms 16 240 34s304ms 142ms 17 240 34s142ms 142ms 18 240 34s310ms 142ms 19 240 34s238ms 142ms 20 240 34s274ms 142ms 21 240 34s127ms 142ms 22 240 34s244ms 142ms 23 240 34s176ms 142ms -
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_amproc', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amop', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_views', 'pg_catalog.pg_index', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_namespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_constraint', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_policy', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_indexes', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_locks', 'pg_catalog.pg_extension', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_sizing', 'information_schema.collations', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.sql_implementation_info', 'information_schema.user_defined_types', 'information_schema.enabled_roles', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.parameters', 'information_schema.routine_table_usage', 'information_schema.triggered_update_columns', 'information_schema.column_column_usage', 'information_schema.sql_features', 'information_schema.foreign_table_options', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-11 13:14:19 Duration: 232ms
-
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_settings', 'pg_catalog.pg_range', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_sequences', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_extension', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_class', 'pg_catalog.pg_inherits', 'pg_catalog.pg_operator', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_roles', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_collation', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_enum', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_group', 'pg_catalog.pg_subscription', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_slru', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_sizing', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.sequences', 'information_schema.views', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.foreign_data_wrappers', 'information_schema.role_table_grants', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.table_privileges', 'information_schema.column_column_usage', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.role_routine_grants', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.attributes', 'information_schema.triggers', 'information_schema.view_table_usage', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.tables', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.constraint_table_usage', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-08-11 11:41:04 Duration: 229ms
-
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 ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_type', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_user', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_amproc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_class', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_rules', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_description', 'pg_catalog.pg_extension', 'pg_catalog.pg_publication', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_group', 'pg_catalog.pg_operator', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_enum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_namespace', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_policies', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_tables', 'information_schema.character_sets', 'information_schema.element_types', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.columns', 'information_schema.view_column_usage', 'information_schema.administrable_role_authorizations', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.data_type_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_table_usage', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.enabled_roles', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_udt_usage', 'information_schema.triggers', 'information_schema.foreign_server_options', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.views', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.udt_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage');
Date: 2024-08-11 11:22:48 Duration: 220ms
4 526 15m5s 1s695ms 1s900ms 1s720ms 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 Aug 11 10 119 3m24s 1s717ms 11 340 9m45s 1s721ms 12 67 1m55s 1s726ms -
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 11:56:50 Duration: 1s900ms
-
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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:06:56 Duration: 1s892ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:01:55 Duration: 1s858ms
5 526 1m23s 133ms 282ms 158ms 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 Aug 11 10 119 19s103ms 160ms 11 340 53s642ms 157ms 12 67 10s699ms 159ms -
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 = 3005;
Date: 2024-08-11 10:52:41 Duration: 282ms
-
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 = 2990;
Date: 2024-08-11 10:58:34 Duration: 190ms
-
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 = 3018;
Date: 2024-08-11 11:19:42 Duration: 185ms
6 344 44s453ms 120ms 166ms 129ms 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 #6
Day Hour Count Duration Avg duration Aug 11 10 77 9s906ms 128ms 11 221 28s549ms 129ms 12 46 5s997ms 130ms -
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 12:04:21' and warehouse_id = 41 and inventory_vendor_id = 2965 and qty_available < min_product_uom_qty;
Date: 2024-08-11 12:04:21 Duration: 166ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 12:01:00' and warehouse_id = 37 and inventory_vendor_id = 3090 and qty_available < min_product_uom_qty;
Date: 2024-08-11 12:01:00 Duration: 166ms
-
select id from product_warehouse_inventory where freeze_date is not null and freeze_date > '2024-08-11 11:17:12' and warehouse_id = 38 and inventory_vendor_id = 2925 and qty_available < min_product_uom_qty;
Date: 2024-08-11 11:17:12 Duration: 157ms
7 310 44s504ms 135ms 163ms 143ms 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 #7
Day Hour Count Duration Avg duration Aug 11 10 73 10s415ms 142ms 11 204 29s390ms 144ms 12 33 4s698ms 142ms -
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 = 3091 and pwi.warehouse_id = 41 and pwi.product_id not in (188198, 188189, 188188, 188187);
Date: 2024-08-11 12:07:36 Duration: 163ms
-
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 = 2928 and pwi.warehouse_id = 43 and pwi.product_id not in (173771, 173710, 173641);
Date: 2024-08-11 11:05:15 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 = 2970 and pwi.warehouse_id = 46 and pwi.product_id not in (177345);
Date: 2024-08-11 11:35:11 Duration: 160ms
8 216 30s778ms 135ms 192ms 142ms 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 #8
Day Hour Count Duration Avg duration Aug 11 10 46 6s582ms 143ms 11 136 19s353ms 142ms 12 34 4s842ms 142ms -
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 = 3100 and pwi.warehouse_id = 42;
Date: 2024-08-11 10:50:06 Duration: 192ms
-
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 = 3276 and pwi.warehouse_id = 46;
Date: 2024-08-11 11:41:01 Duration: 180ms
-
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 = 2906 and pwi.warehouse_id = 37;
Date: 2024-08-11 12:02:09 Duration: 164ms
9 160 20s539ms 120ms 164ms 128ms 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 Aug 11 10 32 4s63ms 126ms 11 110 14s125ms 128ms 12 18 2s350ms 130ms -
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 37 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2949 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:58:29 Duration: 164ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 44 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2926 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:04:01 Duration: 148ms
-
select id, qty_reserve, product_id, product_tmpl_id from product_warehouse_inventory where qty_reserve > 0 and warehouse_id = 38 and ((COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0)) - COALESCE(qty_reserve, 0)) < 0 and inventory_vendor_id = 2925 and COALESCE(superceded, False) = False and COALESCE(discontinued, False) = False and COALESCE(is_core, False) = False;
Date: 2024-08-11 11:17:12 Duration: 148ms
10 78 15s987ms 192ms 296ms 204ms 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 #10
Day Hour Count Duration Avg duration Aug 11 03 26 5s390ms 207ms 07 26 5s324ms 204ms 23 26 5s272ms 202ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (56330)) AND (("account_move"."id" not in (1586765)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:36:19 Duration: 296ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53834)) AND (("account_move"."id" not in (1498048, 1498049)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 07:06:30 Duration: 272ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (55422)) AND (("account_move"."id" not in (1553425, 1553424)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:18:23 Duration: 252ms
11 78 10s320ms 120ms 305ms 132ms 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 Aug 11 10 26 3s394ms 130ms 11 37 4s974ms 134ms 12 6 740ms 123ms 16 4 540ms 135ms 23 5 670ms 134ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (186049)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-08-11 11:55:51 Duration: 305ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209456)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-08-11 11:11:19 Duration: 248ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (180186)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-08-11 10:49:21 Duration: 181ms
12 75 24s184ms 307ms 474ms 322ms 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 #12
Day Hour Count Duration Avg duration Aug 11 01 3 957ms 319ms 07 6 1s896ms 316ms 09 6 1s885ms 314ms 10 18 6s31ms 335ms 11 15 4s983ms 332ms 14 3 955ms 318ms 20 3 941ms 313ms 21 3 927ms 309ms 22 6 1s859ms 309ms 23 12 3s745ms 312ms -
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-08-11 10:45:36 Duration: 474ms
-
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-08-11 11:00:01 Duration: 402ms
-
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-08-11 10:48:46 Duration: 355ms
13 66 21s397ms 309ms 407ms 324ms 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 Aug 11 00 6 1s937ms 322ms 01 3 948ms 316ms 07 6 1s899ms 316ms 08 3 961ms 320ms 09 3 954ms 318ms 10 21 6s912ms 329ms 11 15 4s917ms 327ms 13 3 952ms 317ms 16 3 956ms 318ms 18 3 957ms 319ms -
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-08-11 10:48:57 Duration: 407ms
-
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-08-11 10:46:52 Duration: 354ms
-
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-08-11 10:48:57 Duration: 347ms
14 51 12s153ms 232ms 262ms 238ms 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 #14
Day Hour Count Duration Avg duration Aug 11 00 3 721ms 240ms 01 9 2s121ms 235ms 02 3 700ms 233ms 07 6 1s427ms 237ms 09 3 729ms 243ms 10 21 5s53ms 240ms 17 3 698ms 232ms 19 3 701ms 233ms -
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-08-11 10:45:58 Duration: 262ms
-
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-08-11 09:56:05 Duration: 255ms
-
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-08-11 10:49:07 Duration: 244ms
15 46 6s496ms 132ms 171ms 141ms select "queue_job".id from "queue_job" where ((("queue_job"."date_done" <= ?) or ("queue_job"."date_cancelled" <= ?)) and ("queue_job"."channel" = ?)) order by "queue_job"."date_created" desc, "queue_job"."date_done" desc limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 11 03 46 6s496ms 141ms -
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-07-12 03:39:08.517799') OR ("queue_job"."date_cancelled" <= '2024-07-12 03:39:08.517799')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-08-11 03:39:10 Duration: 171ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-07-12 03:39:08.517799') OR ("queue_job"."date_cancelled" <= '2024-07-12 03:39:08.517799')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-08-11 03:39:10 Duration: 158ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-07-12 03:39:08.517799') OR ("queue_job"."date_cancelled" <= '2024-07-12 03:39:08.517799')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-08-11 03:39:08 Duration: 156ms
16 43 5s874ms 120ms 212ms 136ms 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"."website_sequence" asc, "product_template"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 11 01 2 247ms 123ms 03 2 283ms 141ms 04 1 128ms 128ms 08 2 269ms 134ms 09 10 1s331ms 133ms 10 5 658ms 131ms 11 8 1s50ms 131ms 12 5 828ms 165ms 15 3 436ms 145ms 16 2 243ms 121ms 19 1 131ms 131ms 20 2 262ms 131ms -
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-08-11 12:01:54 Duration: 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 (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-08-11 12:01:54 Duration: 209ms
-
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-08-11 03:39:10 Duration: 160ms
17 36 8s683ms 232ms 318ms 241ms 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 Aug 11 01 3 713ms 237ms 02 3 714ms 238ms 07 6 1s419ms 236ms 09 3 713ms 237ms 10 18 4s411ms 245ms 15 3 710ms 236ms -
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-08-11 10:49:18 Duration: 318ms
-
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-08-11 10:49:18 Duration: 255ms
-
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-08-11 10:48:20 Duration: 249ms
18 32 22s873ms 701ms 750ms 714ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 11 16 7 5s66ms 723ms 23 25 17s806ms 712ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:23 Duration: 750ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28c%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28c%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28c%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:26 Duration: 734ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%Lf9009%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%Lf9009%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%Lf9009%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 23:01:28 Duration: 728ms
19 29 4s893ms 163ms 181ms 168ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 11 16 4 668ms 167ms 23 25 4s225ms 169ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(20.0, 0) + COALESCE(0.0, 0) - COALESCE(8.0, 0) WHERE product_id = 256059 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-11 23:13:24 Duration: 181ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(12.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 266018 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-11 23:05:34 Duration: 171ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(12.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 266018 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-11 23:05:35 Duration: 171ms
20 28 5s736ms 192ms 213ms 204ms 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 #20
Day Hour Count Duration Avg duration Aug 11 03 9 1s838ms 204ms 07 9 1s836ms 204ms 23 10 2s62ms 206ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (56048, 56041, 56049, 56056, 56060, 56075, 56101, 56107, 56117, 56125, 56138, 56139, 56143, 56145, 56146, 56154, 56156, 56164, 56165, 56167, 56169, 56174, 56175, 56178, 56180, 56185, 56195, 56196, 56202, 56203, 56208, 56210, 56212, 56219, 56220, 56225, 56226, 56229, 56230, 56231)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 07:30:31 Duration: 213ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (56237, 56236, 56243, 56249, 56251, 56256, 56262, 56263, 56269, 56272, 56284, 56289, 56292, 56293, 56295, 56296, 56299, 56300, 56307, 56310, 56312, 56315, 56316, 56320, 56324, 56326, 56330, 56332, 56336, 56337, 56338, 56339, 56345, 56350, 56353, 56356, 56359, 56363, 56365, 56367)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:36:18 Duration: 212ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49670, 50939, 51353, 51368, 51432, 51443, 51677, 51835, 51864, 52181, 52378, 52544, 52640, 52703, 52855, 52946, 53057, 53171, 53241, 53316, 53358, 53365, 53425, 53563, 53588, 53824, 53834, 53845, 53946, 54168, 54210, 54257, 54272, 54283, 54331, 54346, 54353, 54367, 54388, 54394)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 23:07:25 Duration: 212ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3m57s 3m57s 3m57s 1 3m57s 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 Aug 11 09 1 3m57s 3m57s -
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-08-11 09:10:21 Duration: 3m57s
2 2m6s 2m6s 2m6s 1 2m6s 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 Aug 11 09 1 2m6s 2m6s -
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-08-11 09:04:09 Duration: 2m6s
3 1m59s 1m59s 1m59s 1 1m59s 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 Aug 11 09 1 1m59s 1m59s -
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-08-11 09:06:23 Duration: 1m59s
4 37s93ms 37s93ms 37s93ms 1 37s93ms 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 Aug 11 09 1 37s93ms 37s93ms -
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-08-11 09:00:59 Duration: 37s93ms
5 22s786ms 22s786ms 22s786ms 1 22s786ms 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 Aug 11 09 1 22s786ms 22s786ms -
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-08-11 09:12:30 Duration: 22s786ms
6 18s458ms 18s458ms 18s458ms 1 18s458ms 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 Aug 11 09 1 18s458ms 18s458ms -
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-08-11 09:01:27 Duration: 18s458ms
7 15s881ms 15s881ms 15s881ms 1 15s881ms 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, reconcile_date_from_add) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 11 09 1 15s881ms 15s881ms -
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, reconcile_date_from_add) TO stdout;
Date: 2024-08-11 09:00:22 Duration: 15s881ms
8 1s695ms 1s900ms 1s720ms 526 15m5s 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 #8
Day Hour Count Duration Avg duration Aug 11 10 119 3m24s 1s717ms 11 340 9m45s 1s721ms 12 67 1m55s 1s726ms -
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 3080 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 11:56:50 Duration: 1s900ms
-
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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 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 = 41 and pwi.inventory_vendor_id = 3085 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:06:56 Duration: 1s892ms
-
select pwi.product_id, pt.min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pt.min_product_uom_qty > 0 and pwi.stocking_flag = True and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) <= 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, abs(((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0))) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = False and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - COALESCE(pwi.qty_reserve, 0)) < 0 and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.discontinued, False) = False and COALESCE(pt.never_stock, False) = True and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False UNION ALL select pwi.product_id, COALESCE(pwi.qty_on_perm_order, 0) as min_product_uom_qty from product_warehouse_inventory pwi LEFT JOIN product_product as pp ON pwi.product_id = pp.id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id where pt.is_core = False and pwi.stocking_flag = True and COALESCE(pwi.qty_on_perm_order, 0) > 0 and ((COALESCE(pwi.qty_available, 0) + COALESCE(pwi.qty_on_order, 0)) - (COALESCE(pwi.qty_reserve, 0) + COALESCE(pwi.qty_on_perm_order, 0))) < 0 and pt.discontinued = False and pwi.warehouse_id = 37 and pwi.inventory_vendor_id = 2958 and COALESCE(pt.superceded, False) = False and COALESCE(pt.obsolete, False) = False;
Date: 2024-08-11 12:01:55 Duration: 1s858ms
9 701ms 750ms 714ms 32 22s873ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 11 16 7 5s66ms 723ms 23 25 17s806ms 712ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:23 Duration: 750ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%ab1d28c%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ab1d28c%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ab1d28c%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 16:32:26 Duration: 734ms
-
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%Lf9009%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%Lf9009%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%Lf9009%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-11 23:01:28 Duration: 728ms
10 309ms 407ms 324ms 66 21s397ms 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 #10
Day Hour Count Duration Avg duration Aug 11 00 6 1s937ms 322ms 01 3 948ms 316ms 07 6 1s899ms 316ms 08 3 961ms 320ms 09 3 954ms 318ms 10 21 6s912ms 329ms 11 15 4s917ms 327ms 13 3 952ms 317ms 16 3 956ms 318ms 18 3 957ms 319ms -
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-08-11 10:48:57 Duration: 407ms
-
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-08-11 10:46:52 Duration: 354ms
-
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-08-11 10:48:57 Duration: 347ms
11 307ms 474ms 322ms 75 24s184ms 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 #11
Day Hour Count Duration Avg duration Aug 11 01 3 957ms 319ms 07 6 1s896ms 316ms 09 6 1s885ms 314ms 10 18 6s31ms 335ms 11 15 4s983ms 332ms 14 3 955ms 318ms 20 3 941ms 313ms 21 3 927ms 309ms 22 6 1s859ms 309ms 23 12 3s745ms 312ms -
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-08-11 10:45:36 Duration: 474ms
-
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-08-11 11:00:01 Duration: 402ms
-
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-08-11 10:48:46 Duration: 355ms
12 232ms 318ms 241ms 36 8s683ms 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 #12
Day Hour Count Duration Avg duration Aug 11 01 3 713ms 237ms 02 3 714ms 238ms 07 6 1s419ms 236ms 09 3 713ms 237ms 10 18 4s411ms 245ms 15 3 710ms 236ms -
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-08-11 10:49:18 Duration: 318ms
-
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-08-11 10:49:18 Duration: 255ms
-
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-08-11 10:48:20 Duration: 249ms
13 232ms 262ms 238ms 51 12s153ms 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 #13
Day Hour Count Duration Avg duration Aug 11 00 3 721ms 240ms 01 9 2s121ms 235ms 02 3 700ms 233ms 07 6 1s427ms 237ms 09 3 729ms 243ms 10 21 5s53ms 240ms 17 3 698ms 232ms 19 3 701ms 233ms -
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-08-11 10:45:58 Duration: 262ms
-
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-08-11 09:56:05 Duration: 255ms
-
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-08-11 10:49:07 Duration: 244ms
14 192ms 296ms 204ms 78 15s987ms 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 #14
Day Hour Count Duration Avg duration Aug 11 03 26 5s390ms 207ms 07 26 5s324ms 204ms 23 26 5s272ms 202ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (56330)) AND (("account_move"."id" not in (1586765)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:36:19 Duration: 296ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53834)) AND (("account_move"."id" not in (1498048, 1498049)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 07:06:30 Duration: 272ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (55422)) AND (("account_move"."id" not in (1553425, 1553424)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:18:23 Duration: 252ms
15 192ms 213ms 204ms 28 5s736ms 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 Aug 11 03 9 1s838ms 204ms 07 9 1s836ms 204ms 23 10 2s62ms 206ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (56048, 56041, 56049, 56056, 56060, 56075, 56101, 56107, 56117, 56125, 56138, 56139, 56143, 56145, 56146, 56154, 56156, 56164, 56165, 56167, 56169, 56174, 56175, 56178, 56180, 56185, 56195, 56196, 56202, 56203, 56208, 56210, 56212, 56219, 56220, 56225, 56226, 56229, 56230, 56231)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 07:30:31 Duration: 213ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (56237, 56236, 56243, 56249, 56251, 56256, 56262, 56263, 56269, 56272, 56284, 56289, 56292, 56293, 56295, 56296, 56299, 56300, 56307, 56310, 56312, 56315, 56316, 56320, 56324, 56326, 56330, 56332, 56336, 56337, 56338, 56339, 56345, 56350, 56353, 56356, 56359, 56363, 56365, 56367)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 03:36:18 Duration: 212ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (49670, 50939, 51353, 51368, 51432, 51443, 51677, 51835, 51864, 52181, 52378, 52544, 52640, 52703, 52855, 52946, 53057, 53171, 53241, 53316, 53358, 53365, 53425, 53563, 53588, 53824, 53834, 53845, 53946, 54168, 54210, 54257, 54272, 54283, 54331, 54346, 54353, 54367, 54388, 54394)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-11 23:07:25 Duration: 212ms
16 163ms 181ms 168ms 29 4s893ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 11 16 4 668ms 167ms 23 25 4s225ms 169ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(20.0, 0) + COALESCE(0.0, 0) - COALESCE(8.0, 0) WHERE product_id = 256059 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-11 23:13:24 Duration: 181ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(12.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 266018 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-11 23:05:34 Duration: 171ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(12.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 266018 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-11 23:05:35 Duration: 171ms
17 158ms 253ms 166ms 8,576 23m50s 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 #17
Day Hour Count Duration Avg duration Aug 11 10 2,228 6m12s 167ms 11 5,157 14m20s 166ms 12 1,191 3m17s 166ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209345) and warehouse_id = (45));
Date: 2024-08-11 11:28:10 Duration: 253ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (217882) and warehouse_id = (43));
Date: 2024-08-11 11:08:29 Duration: 247ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (206532) and warehouse_id = (37));
Date: 2024-08-11 11:59:19 Duration: 213ms
18 133ms 282ms 158ms 526 1m23s 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 #18
Day Hour Count Duration Avg duration Aug 11 10 119 19s103ms 160ms 11 340 53s642ms 157ms 12 67 10s699ms 159ms -
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 = 3005;
Date: 2024-08-11 10:52:41 Duration: 282ms
-
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 = 2990;
Date: 2024-08-11 10:58:34 Duration: 190ms
-
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 = 3018;
Date: 2024-08-11 11:19:42 Duration: 185ms
19 135ms 163ms 143ms 310 44s504ms 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 #19
Day Hour Count Duration Avg duration Aug 11 10 73 10s415ms 142ms 11 204 29s390ms 144ms 12 33 4s698ms 142ms -
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 = 3091 and pwi.warehouse_id = 41 and pwi.product_id not in (188198, 188189, 188188, 188187);
Date: 2024-08-11 12:07:36 Duration: 163ms
-
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 = 2928 and pwi.warehouse_id = 43 and pwi.product_id not in (173771, 173710, 173641);
Date: 2024-08-11 11:05:15 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 = 2970 and pwi.warehouse_id = 46 and pwi.product_id not in (177345);
Date: 2024-08-11 11:35:11 Duration: 160ms
20 139ms 232ms 143ms 5,749 13m42s 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 #20
Day Hour Count Duration Avg duration Aug 11 00 229 33s69ms 144ms 01 240 34s353ms 143ms 02 240 34s248ms 142ms 03 240 34s208ms 142ms 04 240 34s83ms 142ms 05 240 34s221ms 142ms 06 240 34s457ms 143ms 07 240 34s205ms 142ms 08 240 34s163ms 142ms 09 240 34s234ms 142ms 10 240 34s701ms 144ms 11 240 35s605ms 148ms 12 240 34s529ms 143ms 13 240 34s227ms 142ms 14 240 34s305ms 142ms 15 240 34s390ms 143ms 16 240 34s304ms 142ms 17 240 34s142ms 142ms 18 240 34s310ms 142ms 19 240 34s238ms 142ms 20 240 34s274ms 142ms 21 240 34s127ms 142ms 22 240 34s244ms 142ms 23 240 34s176ms 142ms -
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_amproc', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amop', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_views', 'pg_catalog.pg_index', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_namespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_constraint', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_policy', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_indexes', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_locks', 'pg_catalog.pg_extension', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_sizing', 'information_schema.collations', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.sql_implementation_info', 'information_schema.user_defined_types', 'information_schema.enabled_roles', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.parameters', 'information_schema.routine_table_usage', 'information_schema.triggered_update_columns', 'information_schema.column_column_usage', 'information_schema.sql_features', 'information_schema.foreign_table_options', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-11 13:14:19 Duration: 232ms
-
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_settings', 'pg_catalog.pg_range', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_sequences', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_extension', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_class', 'pg_catalog.pg_inherits', 'pg_catalog.pg_operator', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_roles', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_collation', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_enum', 'pg_catalog.pg_sequence', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_group', 'pg_catalog.pg_subscription', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_slru', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_sizing', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.sequences', 'information_schema.views', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.foreign_data_wrappers', 'information_schema.role_table_grants', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.table_privileges', 'information_schema.column_column_usage', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.role_routine_grants', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.attributes', 'information_schema.triggers', 'information_schema.view_table_usage', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.tables', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.constraint_table_usage', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-08-11 11:41:04 Duration: 229ms
-
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 ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_type', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_user', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_amproc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_class', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_rules', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_description', 'pg_catalog.pg_extension', 'pg_catalog.pg_publication', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_group', 'pg_catalog.pg_operator', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_enum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_namespace', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_policies', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_tables', 'information_schema.character_sets', 'information_schema.element_types', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.columns', 'information_schema.view_column_usage', 'information_schema.administrable_role_authorizations', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.data_type_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_table_usage', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.enabled_roles', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_udt_usage', 'information_schema.triggers', 'information_schema.foreign_server_options', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.views', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.udt_privileges', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage');
Date: 2024-08-11 11:22:48 Duration: 220ms
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
- 61,331 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 701 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 697 Max number of times the same event was reported
- 701 Total events found
Rank Times reported Error 1 697 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Aug 11 00 28 01 28 02 24 03 33 04 26 05 24 06 33 07 29 08 25 09 26 10 32 11 34 12 31 13 28 14 25 15 29 16 33 17 28 18 29 19 31 20 31 21 31 22 28 23 31 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- 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-08-11 04:50:05
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-08-11 05:00:10
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=66 FOR UPDATE NOWAIT
Date: 2024-08-11 05:40:09
2 4 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Aug 11 14 3 16 1 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-08-11 14:41:54',"last_presence"='2024-08-11 14:41:53.786092' WHERE id IN (80)
Date: 2024-08-11 14:41:54
Statement: UPDATE "bus_presence" SET "last_poll"='2024-08-11 14:43:07',"last_presence"='2024-08-11 14:43:06.970608' WHERE id IN (80)
Date: 2024-08-11 14:43:07
Statement: UPDATE "bus_presence" SET "last_poll"='2024-08-11 14:46:04',"last_presence"='2024-08-11 14:46:04.782096' WHERE id IN (80)
Date: 2024-08-11 14:46:04