-
Global information
- Generated on Sat Jul 13 23:50:35 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 86,815 log entries in 33s
- Log start from 2024-07-13 00:00:02 to 2024-07-13 23:50:01
-
Overview
Global Stats
- 230 Number of unique normalized queries
- 30,868 Number of queries
- 2h6m Total query duration
- 2024-07-13 00:00:13 First query
- 2024-07-13 23:50:01 Last query
- 16 queries/s at 2024-07-13 19:11:32 Query peak
- 2h6m Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2h6m Execute total duration
- 1,056 Number of events
- 2 Number of unique normalized events
- 976 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
- 30,868 Average queries per session
- 2h6m 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
- 16 queries/s Query Peak
- 2024-07-13 19:11:32 Date
SELECT Traffic
Key values
- 16 queries/s Query Peak
- 2024-07-13 19:11:32 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2024-07-13 14:27:53 Date
Queries duration
Key values
- 2h6m Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 13 00 1,519 120ms 708ms 207ms 8s93ms 9s105ms 14s483ms 01 1,456 120ms 1s385ms 223ms 7s991ms 11s166ms 13s528ms 02 1,142 120ms 482ms 208ms 6s301ms 6s952ms 9s382ms 03 1,747 120ms 1s115ms 231ms 8s568ms 13s882ms 46s459ms 04 1,422 120ms 1s225ms 214ms 7s514ms 9s446ms 11s556ms 05 1,337 120ms 565ms 213ms 7s20ms 7s542ms 8s687ms 06 1,220 120ms 633ms 217ms 6s776ms 7s85ms 12s376ms 07 1,459 120ms 579ms 203ms 7s921ms 8s377ms 10s568ms 08 1,096 120ms 795ms 195ms 5s847ms 7s390ms 8s710ms 09 1,274 120ms 3m55s 1s5ms 1m4s 2m18s 4m48s 10 858 0ms 1s646ms 203ms 5s918ms 7s397ms 9s331ms 11 1,218 120ms 1s408ms 210ms 6s607ms 7s695ms 10s443ms 12 1,621 120ms 8s262ms 210ms 13s252ms 16s754ms 20s827ms 13 1,412 120ms 21s273ms 226ms 7s657ms 10s458ms 26s199ms 14 1,381 120ms 12s153ms 253ms 11s340ms 23s137ms 55s897ms 15 888 120ms 582ms 148ms 3s395ms 4s358ms 6s396ms 16 1,613 120ms 571ms 214ms 10s672ms 12s45ms 12s756ms 17 1,833 120ms 25s181ms 242ms 12s416ms 15s268ms 50s731ms 18 1,654 120ms 1s393ms 210ms 9s269ms 11s833ms 14s439ms 19 948 120ms 636ms 192ms 7s42ms 8s799ms 9s795ms 20 1,113 120ms 547ms 194ms 7s857ms 8s356ms 10s335ms 21 838 120ms 538ms 171ms 6s370ms 6s819ms 8s118ms 22 667 120ms 452ms 157ms 3s411ms 4s440ms 8s604ms 23 1,152 120ms 10s121ms 234ms 9s662ms 10s910ms 28s551ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 13 00 1,519 0 207ms 6s593ms 8s93ms 10s806ms 01 1,447 0 223ms 7s83ms 7s991ms 11s954ms 02 1,142 0 208ms 5s911ms 6s301ms 7s59ms 03 1,746 0 231ms 7s344ms 8s568ms 29s809ms 04 1,418 0 214ms 6s279ms 7s514ms 9s29ms 05 1,337 0 213ms 6s327ms 7s20ms 8s213ms 06 1,220 0 217ms 6s139ms 6s776ms 8s812ms 07 1,459 0 203ms 6s239ms 7s921ms 8s972ms 08 1,095 0 194ms 5s167ms 5s847ms 8s530ms 09 1,161 113 1s5ms 7s638ms 1m 4m20s 10 858 0 203ms 5s52ms 5s918ms 7s677ms 11 1,214 0 210ms 5s766ms 6s607ms 8s990ms 12 1,597 0 210ms 7s266ms 11s321ms 17s86ms 13 1,406 0 226ms 6s801ms 7s407ms 21s757ms 14 1,215 0 263ms 7s147ms 11s340ms 25s31ms 15 888 0 148ms 2s674ms 3s395ms 4s693ms 16 1,613 0 214ms 8s15ms 10s672ms 12s712ms 17 1,723 0 246ms 9s217ms 12s416ms 33s355ms 18 1,652 0 210ms 7s158ms 9s269ms 12s930ms 19 948 0 192ms 5s381ms 7s42ms 9s18ms 20 1,113 0 194ms 5s598ms 7s857ms 8s640ms 21 837 0 171ms 3s185ms 6s370ms 7s599ms 22 667 0 157ms 2s375ms 3s411ms 6s824ms 23 1,142 0 212ms 6s292ms 9s662ms 10s910ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 13 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 9 0 0 189ms 0ms 0ms 367ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 1 0 193ms 0ms 0ms 0ms 04 0 4 0 0 355ms 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 795ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 4 0 0 363ms 0ms 0ms 0ms 12 0 24 0 0 226ms 0ms 0ms 1s242ms 13 0 6 0 0 176ms 0ms 0ms 0ms 14 0 166 0 0 174ms 0ms 332ms 1s636ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 110 0 0 178ms 0ms 0ms 0ms 18 0 2 0 0 355ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 1 0 0 0 142ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 10 0 2s731ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 13 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jul 13 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Jul 13 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Jul 13 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 13 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 13 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jul 13 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Jul 13 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 Jul 13 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
- 30,417 Total read queries
- 451 Total write queries
Queries by database
Key values
- unknown Main database
- 30,868 Requests
- 2h6m (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 31,133 Requests
User Request type Count Duration unknown Total 31,133 2h7m15s copy to 113 12m59s delete 17 49s317ms insert 1 142ms select 30,676 1h52m24s update 326 1m1s Duration by user
Key values
- 2h7m15s (unknown) Main time consuming user
User Request type Count Duration unknown Total 31,133 2h7m15s copy to 113 12m59s delete 17 49s317ms insert 1 142ms select 30,676 1h52m24s update 326 1m1s Queries by host
Key values
- unknown Main host
- 31,133 Requests
- 2h7m15s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 30,868 Requests
- 2h6m (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-07-13 18:09:04 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 30,500 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m55s 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-07-13 09:10:07 ]
2 2m7s select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;[ Date: 2024-07-13 09:32:09 ]
3 2m6s select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;[ Date: 2024-07-13 09:32:09 ]
4 2m2s 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-07-13 09:04:01 ]
5 1m55s 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-07-13 09:06:10 ]
6 35s466ms 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-07-13 09:00:57 ]
7 25s181ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267922)) ORDER BY "item_list_line"."id";[ Date: 2024-07-13 17:09:41 ]
8 22s449ms 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-07-13 09:12:19 ]
9 21s273ms SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-07-06 13:46:16' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;[ Date: 2024-07-13 13:46:37 ]
10 17s942ms 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-07-13 09:01:24 ]
11 15s164ms SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;[ Date: 2024-07-13 17:08:28 ]
12 15s122ms 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-07-13 09:00:21 ]
13 13s216ms SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;[ Date: 2024-07-13 17:08:28 ]
14 12s704ms 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-07-13 09:10:21 ]
15 12s404ms 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-07-13 09:11:50 ]
16 12s153ms select * from ( select a.id, 'product.template' from product_template as a where a.is_core = False and (a.name ilike '%78746%' or a.condensed_internal_ref ilike '%78746%') and a.inventory_vendor_id = 2978 union all select b.id, 'product.library' from product_library as b where (b.name ilike '%78746%' or b.default_code ilike '%78746%' or b.condensed_product_name ilike '%78746%') and b.inventory_vendor_id = 2978) n;[ Date: 2024-07-13 14:27:07 ]
17 11s224ms COPY public.bus_bus (id, channel, message, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-07-13 09:01:36 ]
18 11s2ms select * from ( select a.id, 'product.template' from product_template as a where a.is_core = False and (a.name ilike '%78746%' or a.condensed_internal_ref ilike '%78746%') and a.inventory_vendor_id = 2978 union all select b.id, 'product.library' from product_library as b where (b.name ilike '%78746%' or b.default_code ilike '%78746%' or b.condensed_product_name ilike '%78746%') and b.inventory_vendor_id = 2978) n;[ Date: 2024-07-13 14:27:07 ]
19 10s121ms DELETE FROM account_move_line WHERE id IN (5398308);[ Date: 2024-07-13 23:00:42 ]
20 10s18ms 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-07-13 09:12:44 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 25m15s 10,182 120ms 647ms 148ms 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 Jul 13 00 596 1m31s 153ms 01 411 1m1s 149ms 02 351 53s869ms 153ms 03 429 1m4s 149ms 04 478 1m10s 146ms 05 383 59s346ms 154ms 06 339 51s269ms 151ms 07 507 1m16s 151ms 08 361 52s767ms 146ms 09 379 59s841ms 157ms 10 248 34s989ms 141ms 11 346 48s716ms 140ms 12 401 59s333ms 147ms 13 398 1m4s 161ms 14 440 1m6s 152ms 15 592 1m22s 139ms 16 464 1m5s 140ms 17 541 1m20s 148ms 18 571 1m16s 133ms 19 448 1m18s 176ms 20 466 1m8s 146ms 21 398 55s22ms 138ms 22 312 40s109ms 128ms 23 323 53s317ms 165ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 00:49:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1021"', '["pointspring_master","calendar.alarm",19559]', '["pointspring_master","mail.channel",132]', '["pointspring_master","mail.channel",133]', '["pointspring_master","mail.channel",134]', '["pointspring_master","mail.channel",135]', '["pointspring_master","mail.channel",499]', '["pointspring_master","res.partner",19559]', '["pointspring_master","ir.needaction",19559]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-13 00:50:25 Duration: 647ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 00:49:35') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19532]', '["pointspring_master","mail.channel",318]', '["pointspring_master","mail.channel",319]', '["pointspring_master","mail.channel",320]', '["pointspring_master","mail.channel",321]', '["pointspring_master","mail.channel",455]', '["pointspring_master","mail.channel",466]', '["pointspring_master","res.partner",19532]', '["pointspring_master","ir.needaction",19532]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-13 00:50:25 Duration: 641ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 19:58:06') 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-07-13 19:58:57 Duration: 636ms
2 17m39s 3,357 306ms 708ms 315ms 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 #2
Day Hour Count Duration Avg duration Jul 13 00 165 52s948ms 320ms 01 174 55s157ms 316ms 02 150 47s182ms 314ms 03 249 1m18s 313ms 04 189 59s661ms 315ms 05 174 54s689ms 314ms 06 219 1m8s 313ms 07 120 37s971ms 316ms 08 69 21s940ms 317ms 09 198 1m2s 314ms 10 84 26s294ms 313ms 11 189 59s479ms 314ms 12 168 53s153ms 316ms 13 153 48s129ms 314ms 14 39 12s240ms 313ms 15 12 3s815ms 317ms 16 186 58s780ms 316ms 17 237 1m15s 317ms 18 243 1m17s 317ms 19 54 17s137ms 317ms 20 111 35s125ms 316ms 21 27 8s505ms 315ms 22 12 3s801ms 316ms 23 135 42s613ms 315ms -
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-07-13 00:50:25 Duration: 708ms
-
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-07-13 04:08:15 Duration: 532ms
-
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-07-13 07:37:41 Duration: 481ms
3 16m26s 3,126 305ms 579ms 315ms 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 #3
Day Hour Count Duration Avg duration Jul 13 00 162 51s823ms 319ms 01 156 49s158ms 315ms 02 120 37s579ms 313ms 03 168 52s910ms 314ms 04 216 1m8s 315ms 05 138 43s431ms 314ms 06 156 49s136ms 314ms 07 162 51s315ms 316ms 08 57 18s20ms 316ms 09 150 47s258ms 315ms 10 135 42s878ms 317ms 11 102 32s390ms 317ms 12 162 51s51ms 315ms 13 168 52s915ms 314ms 14 33 10s405ms 315ms 15 6 1s911ms 318ms 16 225 1m11s 316ms 17 186 58s648ms 315ms 18 210 1m6s 315ms 19 51 16s87ms 315ms 20 126 39s567ms 314ms 21 63 19s932ms 316ms 22 36 11s292ms 313ms 23 138 43s328ms 313ms -
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-07-13 07:15:25 Duration: 579ms
-
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-07-13 11:03:00 Duration: 570ms
-
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-07-13 04:13:05 Duration: 498ms
4 13m34s 5,720 138ms 234ms 142ms 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 Jul 13 00 240 34s991ms 145ms 01 240 34s344ms 143ms 02 240 34s165ms 142ms 03 240 34s227ms 142ms 04 240 34s175ms 142ms 05 240 34s116ms 142ms 06 240 34s54ms 141ms 07 240 34s217ms 142ms 08 240 34s166ms 142ms 09 240 34s112ms 142ms 10 240 34s7ms 141ms 11 240 33s832ms 140ms 12 239 33s864ms 141ms 13 240 34s29ms 141ms 14 240 34s200ms 142ms 15 240 34s210ms 142ms 16 240 34s99ms 142ms 17 240 34s337ms 143ms 18 240 34s194ms 142ms 19 240 34s26ms 141ms 20 240 34s57ms 141ms 21 240 34s53ms 141ms 22 240 34s240ms 142ms 23 201 28s498ms 141ms -
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_language', 'pg_catalog.pg_namespace', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_conversion', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_transform', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_rules', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_amop', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_enum', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_cast', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_depend', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_operator', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_locks', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'information_schema.check_constraints', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.view_column_usage', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.constraint_column_usage', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.role_udt_grants', 'information_schema.sql_implementation_info', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.routine_sequence_usage', 'information_schema.tables', 'information_schema.routine_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.collations', 'information_schema.schemata', 'information_schema.role_usage_grants', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.sql_features', 'information_schema.user_mappings', 'information_schema.views', 'information_schema.character_sets', 'information_schema.routine_routine_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domain_constraints', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-13 20:43:01 Duration: 234ms
-
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_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_range', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_class', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_am', 'pg_catalog.pg_namespace', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_settings', 'pg_catalog.pg_amop', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_roles', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_conversion', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication', 'pg_catalog.pg_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_proc', 'pg_catalog.pg_index', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_wal_receiver', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.domains', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.user_defined_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.collations', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.column_options', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.routine_routine_usage', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.foreign_servers', 'information_schema.schemata', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.usage_privileges', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.check_constraint_routine_usage', 'information_schema.role_column_grants', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.view_table_usage', 'information_schema.collation_character_set_applicability', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.element_types', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.foreign_tables', 'information_schema.column_privileges', 'information_schema.domain_udt_usage', 'information_schema.routine_table_usage');
Date: 2024-07-13 07:45:14 Duration: 222ms
-
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_transform', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_cursors', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_index', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_publication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_group', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_description', 'pg_catalog.pg_language', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_attribute', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_matviews', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_namespace', 'pg_catalog.pg_database', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_subscription', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats_ext_exprs', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.user_defined_types', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'information_schema.sequences', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.udt_privileges', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.column_udt_usage', 'information_schema.sql_implementation_info', 'information_schema.column_column_usage', 'information_schema.parameters', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.table_constraints', 'information_schema.role_usage_grants', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.element_types', 'information_schema.view_column_usage', 'information_schema.routine_column_usage', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.column_privileges', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.table_privileges', 'information_schema.role_udt_grants', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.role_column_grants', 'information_schema.role_table_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.character_sets', 'information_schema.column_domain_usage', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.collations', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-13 00:36:13 Duration: 216ms
5 13m16s 3,393 228ms 488ms 234ms 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 #5
Day Hour Count Duration Avg duration Jul 13 00 174 41s132ms 236ms 01 198 46s587ms 235ms 02 138 32s223ms 233ms 03 201 47s103ms 234ms 04 159 37s205ms 233ms 05 192 44s840ms 233ms 06 168 39s199ms 233ms 07 174 40s697ms 233ms 08 60 14s3ms 233ms 09 126 29s614ms 235ms 10 123 28s963ms 235ms 11 201 46s954ms 233ms 12 183 42s942ms 234ms 13 156 36s608ms 234ms 14 36 8s468ms 235ms 15 9 2s114ms 234ms 16 267 1m2s 233ms 17 240 56s447ms 235ms 18 228 53s826ms 236ms 19 78 18s327ms 234ms 20 84 19s667ms 234ms 21 66 15s589ms 236ms 22 33 7s774ms 235ms 23 99 23s688ms 239ms -
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-07-13 23:47:22 Duration: 488ms
-
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-07-13 01:34:35 Duration: 393ms
-
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-07-13 10:58:11 Duration: 383ms
6 11m57s 3,048 229ms 353ms 235ms 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 #6
Day Hour Count Duration Avg duration Jul 13 00 177 41s824ms 236ms 01 189 44s318ms 234ms 02 138 32s231ms 233ms 03 198 46s540ms 235ms 04 132 31s45ms 235ms 05 201 47s36ms 234ms 06 96 22s494ms 234ms 07 180 42s398ms 235ms 08 303 1m11s 235ms 09 54 12s718ms 235ms 10 21 4s926ms 234ms 11 129 30s340ms 235ms 12 96 22s509ms 234ms 13 171 40s125ms 234ms 14 33 7s846ms 237ms 15 27 6s331ms 234ms 16 225 52s977ms 235ms 17 225 53s400ms 237ms 18 150 35s313ms 235ms 19 72 16s870ms 234ms 20 81 19s92ms 235ms 21 39 9s122ms 233ms 22 30 7s101ms 236ms 23 81 19s128ms 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" DESC, "product_template"."id" DESC;
Date: 2024-07-13 04:32:32 Duration: 353ms
-
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-07-13 00:46:28 Duration: 334ms
-
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-07-13 07:58:26 Duration: 305ms
7 4m16s 4 1s118ms 2m7s 1m4s select ill.item_demand_plan_id from item_list_line ill left join item_demand_plan as idp on ill.item_demand_plan_id = idp.id where ill.method is null and idp.active = true group by ill.item_demand_plan_id having count(ill.id) > ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 13 01 2 2s503ms 1s251ms 09 2 4m14s 2m7s -
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 09:32:09 Duration: 2m7s
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 09:32:09 Duration: 2m6s
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 01:00:03 Duration: 1s385ms
8 3m55s 1 3m55s 3m55s 3m55s 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 #8
Day Hour Count Duration Avg duration Jul 13 09 1 3m55s 3m55s -
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-07-13 09:10:07 Duration: 3m55s
9 2m2s 1 2m2s 2m2s 2m2s 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 #9
Day Hour Count Duration Avg duration Jul 13 09 1 2m2s 2m2s -
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-07-13 09:04:01 Duration: 2m2s
10 1m55s 1 1m55s 1m55s 1m55s 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 #10
Day Hour Count Duration Avg duration Jul 13 09 1 1m55s 1m55s -
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-07-13 09:06:10 Duration: 1m55s
11 1m1s 384 153ms 201ms 160ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 13 12 288 46s500ms 161ms 13 96 15s247ms 158ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 198495) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:13 Duration: 201ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206033) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:30 Duration: 199ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 209826) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:59 Duration: 195ms
12 1m 197 287ms 407ms 308ms 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 #12
Day Hour Count Duration Avg duration Jul 13 03 197 1m 308ms -
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:33 Duration: 407ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:41 Duration: 358ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:56 Duration: 356ms
13 54s243ms 169 270ms 414ms 320ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 13 01 22 6s888ms 313ms 12 12 4s18ms 334ms 13 3 825ms 275ms 14 124 39s969ms 322ms 17 8 2s542ms 317ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 01:25:36 Duration: 414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:07:57 Duration: 410ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:08:13 Duration: 404ms
14 35s466ms 1 35s466ms 35s466ms 35s466ms 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 #14
Day Hour Count Duration Avg duration Jul 13 09 1 35s466ms 35s466ms -
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-07-13 09:00:57 Duration: 35s466ms
15 33s534ms 168 178ms 1s646ms 199ms 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 #15
Day Hour Count Duration Avg duration Jul 13 03 45 8s337ms 185ms 07 45 8s367ms 185ms 10 1 1s646ms 1s646ms 23 77 15s183ms 197ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54824)) AND (("account_move"."id" not in (1517695)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 10:36:12 Duration: 1s646ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54552)) AND (("account_move"."id" not in (1525388)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 07:30:18 Duration: 250ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53662)) AND (("account_move"."id" not in (1454996)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:18:22 Duration: 229ms
16 33s142ms 10 126ms 15s164ms 3s314ms select "mail_message".id from "mail_message" where ((((("mail_message"."id" in ( select "mail_message_res_partner_needaction_rel"."mail_message_id" from "mail_message_res_partner_needaction_rel" where ("mail_message_res_partner_needaction_rel"."notification_status" in (...)))) and ("mail_message"."author_id" = ?)) and ("mail_message"."res_id" != ?)) and "mail_message"."model" is not null) and (("mail_message"."message_type" != ?) or "mail_message"."message_type" is null)) order by "mail_message"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 13 12 5 3s720ms 744ms 14 2 302ms 151ms 17 2 28s380ms 14s190ms 18 1 738ms 738ms -
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 17:08:28 Duration: 15s164ms
-
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 17:08:28 Duration: 13s216ms
-
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19496)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 12:45:30 Duration: 3s167ms
17 31s340ms 44 687ms 741ms 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" = ? 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"."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 #17
Day Hour Count Duration Avg duration Jul 13 14 44 31s340ms 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 ('%%CB716X%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CB7/16X%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%CB7/16X%'))) 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-07-13 14:04:47 Duration: 741ms
-
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 ('%%INSP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP%'))) 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-07-13 14:17:52 Duration: 739ms
-
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 ('%%INSPFED%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP-FED%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP-FED%'))) 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-07-13 14:16:01 Duration: 738ms
18 27s966ms 4 794ms 25s181ms 6s991ms select "item_list_line".id from "item_list_line" where ("item_list_line"."product_id" in (...)) order by "item_list_line"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 13 14 2 1s991ms 995ms 17 2 25s975ms 12s987ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267922)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 17:09:41 Duration: 25s181ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267921)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 14:27:45 Duration: 1s190ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267921)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 14:27:46 Duration: 801ms
19 27s316ms 10 1s899ms 10s121ms 2s731ms delete from account_move_line where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 13 23 10 27s316ms 2s731ms -
DELETE FROM account_move_line WHERE id IN (5398308);
Date: 2024-07-13 23:00:42 Duration: 10s121ms
-
DELETE FROM account_move_line WHERE id IN (5400425);
Date: 2024-07-13 23:01:39 Duration: 1s924ms
-
DELETE FROM account_move_line WHERE id IN (5153542);
Date: 2024-07-13 23:01:07 Duration: 1s917ms
20 26s209ms 59 435ms 488ms 444ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 13 00 3 1s318ms 439ms 01 12 5s286ms 440ms 05 3 1s345ms 448ms 12 10 4s475ms 447ms 14 21 9s256ms 440ms 17 5 2s273ms 454ms 18 2 908ms 454ms 21 3 1s347ms 449ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d7fc930/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:30 Duration: 488ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:25 Duration: 472ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 21:18:20 Duration: 472ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 10,182 25m15s 120ms 647ms 148ms 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 Jul 13 00 596 1m31s 153ms 01 411 1m1s 149ms 02 351 53s869ms 153ms 03 429 1m4s 149ms 04 478 1m10s 146ms 05 383 59s346ms 154ms 06 339 51s269ms 151ms 07 507 1m16s 151ms 08 361 52s767ms 146ms 09 379 59s841ms 157ms 10 248 34s989ms 141ms 11 346 48s716ms 140ms 12 401 59s333ms 147ms 13 398 1m4s 161ms 14 440 1m6s 152ms 15 592 1m22s 139ms 16 464 1m5s 140ms 17 541 1m20s 148ms 18 571 1m16s 133ms 19 448 1m18s 176ms 20 466 1m8s 146ms 21 398 55s22ms 138ms 22 312 40s109ms 128ms 23 323 53s317ms 165ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 00:49:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1021"', '["pointspring_master","calendar.alarm",19559]', '["pointspring_master","mail.channel",132]', '["pointspring_master","mail.channel",133]', '["pointspring_master","mail.channel",134]', '["pointspring_master","mail.channel",135]', '["pointspring_master","mail.channel",499]', '["pointspring_master","res.partner",19559]', '["pointspring_master","ir.needaction",19559]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-13 00:50:25 Duration: 647ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 00:49:35') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19532]', '["pointspring_master","mail.channel",318]', '["pointspring_master","mail.channel",319]', '["pointspring_master","mail.channel",320]', '["pointspring_master","mail.channel",321]', '["pointspring_master","mail.channel",455]', '["pointspring_master","mail.channel",466]', '["pointspring_master","res.partner",19532]', '["pointspring_master","ir.needaction",19532]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-13 00:50:25 Duration: 641ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-13 19:58:06') 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-07-13 19:58:57 Duration: 636ms
2 5,720 13m34s 138ms 234ms 142ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 13 00 240 34s991ms 145ms 01 240 34s344ms 143ms 02 240 34s165ms 142ms 03 240 34s227ms 142ms 04 240 34s175ms 142ms 05 240 34s116ms 142ms 06 240 34s54ms 141ms 07 240 34s217ms 142ms 08 240 34s166ms 142ms 09 240 34s112ms 142ms 10 240 34s7ms 141ms 11 240 33s832ms 140ms 12 239 33s864ms 141ms 13 240 34s29ms 141ms 14 240 34s200ms 142ms 15 240 34s210ms 142ms 16 240 34s99ms 142ms 17 240 34s337ms 143ms 18 240 34s194ms 142ms 19 240 34s26ms 141ms 20 240 34s57ms 141ms 21 240 34s53ms 141ms 22 240 34s240ms 142ms 23 201 28s498ms 141ms -
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_language', 'pg_catalog.pg_namespace', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_conversion', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_transform', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_rules', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_amop', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_enum', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_cast', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_depend', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_operator', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_locks', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'information_schema.check_constraints', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.view_column_usage', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.constraint_column_usage', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.role_udt_grants', 'information_schema.sql_implementation_info', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.routine_sequence_usage', 'information_schema.tables', 'information_schema.routine_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.collations', 'information_schema.schemata', 'information_schema.role_usage_grants', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.sql_features', 'information_schema.user_mappings', 'information_schema.views', 'information_schema.character_sets', 'information_schema.routine_routine_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domain_constraints', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-13 20:43:01 Duration: 234ms
-
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_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_range', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_class', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_am', 'pg_catalog.pg_namespace', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_settings', 'pg_catalog.pg_amop', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_roles', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_conversion', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication', 'pg_catalog.pg_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_proc', 'pg_catalog.pg_index', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_wal_receiver', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.domains', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.user_defined_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.collations', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.column_options', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.routine_routine_usage', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.foreign_servers', 'information_schema.schemata', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.usage_privileges', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.check_constraint_routine_usage', 'information_schema.role_column_grants', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.view_table_usage', 'information_schema.collation_character_set_applicability', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.element_types', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.foreign_tables', 'information_schema.column_privileges', 'information_schema.domain_udt_usage', 'information_schema.routine_table_usage');
Date: 2024-07-13 07:45:14 Duration: 222ms
-
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_transform', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_cursors', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_index', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_publication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_group', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_description', 'pg_catalog.pg_language', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_attribute', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_matviews', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_namespace', 'pg_catalog.pg_database', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_subscription', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats_ext_exprs', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.user_defined_types', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'information_schema.sequences', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.udt_privileges', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.column_udt_usage', 'information_schema.sql_implementation_info', 'information_schema.column_column_usage', 'information_schema.parameters', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.table_constraints', 'information_schema.role_usage_grants', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.element_types', 'information_schema.view_column_usage', 'information_schema.routine_column_usage', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.column_privileges', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.table_privileges', 'information_schema.role_udt_grants', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.constraint_column_usage', 'information_schema.schemata', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.role_column_grants', 'information_schema.role_table_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.character_sets', 'information_schema.column_domain_usage', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.collations', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-13 00:36:13 Duration: 216ms
3 3,393 13m16s 228ms 488ms 234ms 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 #3
Day Hour Count Duration Avg duration Jul 13 00 174 41s132ms 236ms 01 198 46s587ms 235ms 02 138 32s223ms 233ms 03 201 47s103ms 234ms 04 159 37s205ms 233ms 05 192 44s840ms 233ms 06 168 39s199ms 233ms 07 174 40s697ms 233ms 08 60 14s3ms 233ms 09 126 29s614ms 235ms 10 123 28s963ms 235ms 11 201 46s954ms 233ms 12 183 42s942ms 234ms 13 156 36s608ms 234ms 14 36 8s468ms 235ms 15 9 2s114ms 234ms 16 267 1m2s 233ms 17 240 56s447ms 235ms 18 228 53s826ms 236ms 19 78 18s327ms 234ms 20 84 19s667ms 234ms 21 66 15s589ms 236ms 22 33 7s774ms 235ms 23 99 23s688ms 239ms -
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-07-13 23:47:22 Duration: 488ms
-
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-07-13 01:34:35 Duration: 393ms
-
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-07-13 10:58:11 Duration: 383ms
4 3,357 17m39s 306ms 708ms 315ms 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 #4
Day Hour Count Duration Avg duration Jul 13 00 165 52s948ms 320ms 01 174 55s157ms 316ms 02 150 47s182ms 314ms 03 249 1m18s 313ms 04 189 59s661ms 315ms 05 174 54s689ms 314ms 06 219 1m8s 313ms 07 120 37s971ms 316ms 08 69 21s940ms 317ms 09 198 1m2s 314ms 10 84 26s294ms 313ms 11 189 59s479ms 314ms 12 168 53s153ms 316ms 13 153 48s129ms 314ms 14 39 12s240ms 313ms 15 12 3s815ms 317ms 16 186 58s780ms 316ms 17 237 1m15s 317ms 18 243 1m17s 317ms 19 54 17s137ms 317ms 20 111 35s125ms 316ms 21 27 8s505ms 315ms 22 12 3s801ms 316ms 23 135 42s613ms 315ms -
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-07-13 00:50:25 Duration: 708ms
-
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-07-13 04:08:15 Duration: 532ms
-
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-07-13 07:37:41 Duration: 481ms
5 3,126 16m26s 305ms 579ms 315ms 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 #5
Day Hour Count Duration Avg duration Jul 13 00 162 51s823ms 319ms 01 156 49s158ms 315ms 02 120 37s579ms 313ms 03 168 52s910ms 314ms 04 216 1m8s 315ms 05 138 43s431ms 314ms 06 156 49s136ms 314ms 07 162 51s315ms 316ms 08 57 18s20ms 316ms 09 150 47s258ms 315ms 10 135 42s878ms 317ms 11 102 32s390ms 317ms 12 162 51s51ms 315ms 13 168 52s915ms 314ms 14 33 10s405ms 315ms 15 6 1s911ms 318ms 16 225 1m11s 316ms 17 186 58s648ms 315ms 18 210 1m6s 315ms 19 51 16s87ms 315ms 20 126 39s567ms 314ms 21 63 19s932ms 316ms 22 36 11s292ms 313ms 23 138 43s328ms 313ms -
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-07-13 07:15:25 Duration: 579ms
-
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-07-13 11:03:00 Duration: 570ms
-
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-07-13 04:13:05 Duration: 498ms
6 3,048 11m57s 229ms 353ms 235ms 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 #6
Day Hour Count Duration Avg duration Jul 13 00 177 41s824ms 236ms 01 189 44s318ms 234ms 02 138 32s231ms 233ms 03 198 46s540ms 235ms 04 132 31s45ms 235ms 05 201 47s36ms 234ms 06 96 22s494ms 234ms 07 180 42s398ms 235ms 08 303 1m11s 235ms 09 54 12s718ms 235ms 10 21 4s926ms 234ms 11 129 30s340ms 235ms 12 96 22s509ms 234ms 13 171 40s125ms 234ms 14 33 7s846ms 237ms 15 27 6s331ms 234ms 16 225 52s977ms 235ms 17 225 53s400ms 237ms 18 150 35s313ms 235ms 19 72 16s870ms 234ms 20 81 19s92ms 235ms 21 39 9s122ms 233ms 22 30 7s101ms 236ms 23 81 19s128ms 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" DESC, "product_template"."id" DESC;
Date: 2024-07-13 04:32:32 Duration: 353ms
-
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-07-13 00:46:28 Duration: 334ms
-
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-07-13 07:58:26 Duration: 305ms
7 384 1m1s 153ms 201ms 160ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 13 12 288 46s500ms 161ms 13 96 15s247ms 158ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 198495) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:13 Duration: 201ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206033) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:30 Duration: 199ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 209826) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-13 12:50:59 Duration: 195ms
8 197 1m 287ms 407ms 308ms 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 #8
Day Hour Count Duration Avg duration Jul 13 03 197 1m 308ms -
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:33 Duration: 407ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:41 Duration: 358ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:56 Duration: 356ms
9 169 54s243ms 270ms 414ms 320ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 13 01 22 6s888ms 313ms 12 12 4s18ms 334ms 13 3 825ms 275ms 14 124 39s969ms 322ms 17 8 2s542ms 317ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 01:25:36 Duration: 414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:07:57 Duration: 410ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:08:13 Duration: 404ms
10 168 33s534ms 178ms 1s646ms 199ms 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 Jul 13 03 45 8s337ms 185ms 07 45 8s367ms 185ms 10 1 1s646ms 1s646ms 23 77 15s183ms 197ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54824)) AND (("account_move"."id" not in (1517695)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 10:36:12 Duration: 1s646ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54552)) AND (("account_move"."id" not in (1525388)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 07:30:18 Duration: 250ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53662)) AND (("account_move"."id" not in (1454996)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:18:22 Duration: 229ms
11 81 10s944ms 121ms 180ms 135ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 13 01 2 257ms 128ms 14 67 9s98ms 135ms 17 12 1s587ms 132ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 267921 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-13 14:27:49 Duration: 180ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 267921 and sol.warehouse_id = 38 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-13 14:27:52 Duration: 164ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 213911 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-13 14:07:57 Duration: 161ms
12 80 10s918ms 120ms 269ms 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 #12
Day Hour Count Duration Avg duration Jul 13 00 2 250ms 125ms 01 4 543ms 135ms 02 5 658ms 131ms 03 2 264ms 132ms 05 3 383ms 127ms 06 2 259ms 129ms 07 20 2s745ms 137ms 08 1 138ms 138ms 09 6 839ms 139ms 10 5 674ms 134ms 11 3 376ms 125ms 12 1 120ms 120ms 13 2 285ms 142ms 14 2 266ms 133ms 15 2 255ms 127ms 16 3 420ms 140ms 17 4 589ms 147ms 18 2 271ms 135ms 19 2 259ms 129ms 20 5 654ms 130ms 21 1 124ms 124ms 22 1 132ms 132ms 23 2 402ms 201ms -
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-07-13 23:47:22 Duration: 269ms
-
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-07-13 17:34:04 Duration: 169ms
-
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-07-13 16:19:09 Duration: 167ms
13 59 26s209ms 435ms 488ms 444ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 13 00 3 1s318ms 439ms 01 12 5s286ms 440ms 05 3 1s345ms 448ms 12 10 4s475ms 447ms 14 21 9s256ms 440ms 17 5 2s273ms 454ms 18 2 908ms 454ms 21 3 1s347ms 449ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d7fc930/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:30 Duration: 488ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:25 Duration: 472ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 21:18:20 Duration: 472ms
14 54 10s909ms 185ms 280ms 202ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 13 13 1 280ms 280ms 14 5 1s195ms 239ms 17 2 477ms 238ms 23 46 8s956ms 194ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32812))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 13:52:45 Duration: 280ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (35081))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 14:24:09 Duration: 273ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (31123))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 14:52:01 Duration: 257ms
15 44 31s340ms 687ms 741ms 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" = ? 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"."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 #15
Day Hour Count Duration Avg duration Jul 13 14 44 31s340ms 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 ('%%CB716X%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CB7/16X%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%CB7/16X%'))) 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-07-13 14:04:47 Duration: 741ms
-
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 ('%%INSP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP%'))) 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-07-13 14:17:52 Duration: 739ms
-
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 ('%%INSPFED%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP-FED%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP-FED%'))) 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-07-13 14:16:01 Duration: 738ms
16 44 8s485ms 179ms 217ms 192ms 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 #16
Day Hour Count Duration Avg duration Jul 13 03 8 1s511ms 188ms 07 8 1s479ms 184ms 10 1 195ms 195ms 23 27 5s299ms 196ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (52683, 52703, 52762, 52783, 52791, 52805, 52844, 52847, 52852, 52855, 52930, 52946, 52992, 52995, 53001, 53057, 53080, 53086, 53143, 53158, 53171, 53241, 53251, 53257, 53303, 53316, 53326, 53341, 53358, 53365, 53389, 53407, 53424, 53425, 53479, 53484, 53498, 53502, 53519, 53525)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:12:24 Duration: 217ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (53563, 53544, 53588, 53605, 53609, 53619, 53622, 53624, 53653, 53662, 53672, 53693, 53694, 53701, 53709, 53711, 53718, 53754, 53755, 53764, 53769, 53822, 53824, 53834, 53845, 53846, 53856, 53864, 53877, 53904, 53946, 53951, 53973, 53975, 53986, 53996, 54044, 54053, 54088, 54094)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:18:21 Duration: 209ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (53563, 53544, 53588, 53605, 53609, 53619, 53622, 53624, 53653, 53662, 53672, 53693, 53694, 53701, 53709, 53711, 53718, 53754, 53755, 53764, 53769, 53822, 53824, 53834, 53845, 53846, 53856, 53864, 53877, 53904, 53946, 53951, 53973, 53975, 53986, 53996, 54044, 54053, 54088, 54094)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 03:18:04 Duration: 207ms
17 43 7s514ms 145ms 272ms 174ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 13 01 2 319ms 159ms 12 4 921ms 230ms 13 1 247ms 247ms 14 23 3s822ms 166ms 17 13 2s202ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237305 AND warehouse_id = 35;
Date: 2024-07-13 12:47:16 Duration: 272ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 183432 AND warehouse_id = 35;
Date: 2024-07-13 13:52:46 Duration: 247ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237340 AND warehouse_id = 35;
Date: 2024-07-13 12:49:31 Duration: 247ms
18 38 6s543ms 147ms 207ms 172ms update product_warehouse_inventory set qty_available = ? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 13 14 23 3s930ms 170ms 17 15 2s613ms 174ms -
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267922 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-07-13 17:09:44 Duration: 207ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267922 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-13 17:09:44 Duration: 207ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267921 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-13 14:27:48 Duration: 202ms
19 34 5s759ms 154ms 248ms 169ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 13 01 4 666ms 166ms 14 28 4s764ms 170ms 17 2 329ms 164ms -
UPDATE product_warehouse_inventory SET qty_reserve = 45.0 WHERE product_id = 191077 AND warehouse_id = 35;
Date: 2024-07-13 14:08:04 Duration: 248ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 4.0 WHERE product_id = 191043 AND warehouse_id = 35;
Date: 2024-07-13 14:16:19 Duration: 220ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 180041 AND warehouse_id = 35;
Date: 2024-07-13 14:30:24 Duration: 199ms
20 33 6s 146ms 257ms 181ms update product_warehouse_inventory set qty_mtd_sold = ? - ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 13 12 4 800ms 200ms 14 16 2s725ms 170ms 17 13 2s475ms 190ms -
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 237305 AND warehouse_id = 35;
Date: 2024-07-13 12:47:16 Duration: 257ms
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 237305 AND warehouse_id = 35;
Date: 2024-07-13 12:51:08 Duration: 209ms
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 267922 AND warehouse_id = 41;
Date: 2024-07-13 17:09:50 Duration: 205ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3m55s 3m55s 3m55s 1 3m55s copy public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 13 09 1 3m55s 3m55s -
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-07-13 09:10:07 Duration: 3m55s
2 2m2s 2m2s 2m2s 1 2m2s copy public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 13 09 1 2m2s 2m2s -
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-07-13 09:04:01 Duration: 2m2s
3 1m55s 1m55s 1m55s 1 1m55s copy public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 13 09 1 1m55s 1m55s -
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-07-13 09:06:10 Duration: 1m55s
4 1s118ms 2m7s 1m4s 4 4m16s select ill.item_demand_plan_id from item_list_line ill left join item_demand_plan as idp on ill.item_demand_plan_id = idp.id where ill.method is null and idp.active = true group by ill.item_demand_plan_id having count(ill.id) > ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 13 01 2 2s503ms 1s251ms 09 2 4m14s 2m7s -
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 09:32:09 Duration: 2m7s
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 09:32:09 Duration: 2m6s
-
select ill.item_demand_plan_id from item_list_line ill LEFT JOIN item_demand_plan as idp ON ill.item_demand_plan_id = idp.id where ill.method is NULL and idp.active = True GROUP BY ill.item_demand_plan_id having count(ill.id) > 0;
Date: 2024-07-13 01:00:03 Duration: 1s385ms
5 35s466ms 35s466ms 35s466ms 1 35s466ms 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 #5
Day Hour Count Duration Avg duration Jul 13 09 1 35s466ms 35s466ms -
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-07-13 09:00:57 Duration: 35s466ms
6 794ms 25s181ms 6s991ms 4 27s966ms select "item_list_line".id from "item_list_line" where ("item_list_line"."product_id" in (...)) order by "item_list_line"."id";Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 13 14 2 1s991ms 995ms 17 2 25s975ms 12s987ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267922)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 17:09:41 Duration: 25s181ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267921)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 14:27:45 Duration: 1s190ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267921)) ORDER BY "item_list_line"."id";
Date: 2024-07-13 14:27:46 Duration: 801ms
7 126ms 15s164ms 3s314ms 10 33s142ms select "mail_message".id from "mail_message" where ((((("mail_message"."id" in ( select "mail_message_res_partner_needaction_rel"."mail_message_id" from "mail_message_res_partner_needaction_rel" where ("mail_message_res_partner_needaction_rel"."notification_status" in (...)))) and ("mail_message"."author_id" = ?)) and ("mail_message"."res_id" != ?)) and "mail_message"."model" is not null) and (("mail_message"."message_type" != ?) or "mail_message"."message_type" is null)) order by "mail_message"."id" desc;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 13 12 5 3s720ms 744ms 14 2 302ms 151ms 17 2 28s380ms 14s190ms 18 1 738ms 738ms -
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 17:08:28 Duration: 15s164ms
-
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19535)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 17:08:28 Duration: 13s216ms
-
SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 19496)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;
Date: 2024-07-13 12:45:30 Duration: 3s167ms
8 1s899ms 10s121ms 2s731ms 10 27s316ms delete from account_move_line where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 13 23 10 27s316ms 2s731ms -
DELETE FROM account_move_line WHERE id IN (5398308);
Date: 2024-07-13 23:00:42 Duration: 10s121ms
-
DELETE FROM account_move_line WHERE id IN (5400425);
Date: 2024-07-13 23:01:39 Duration: 1s924ms
-
DELETE FROM account_move_line WHERE id IN (5153542);
Date: 2024-07-13 23:01:07 Duration: 1s917ms
9 687ms 741ms 712ms 44 31s340ms 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"."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 Jul 13 14 44 31s340ms 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 ('%%CB716X%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CB7/16X%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%CB7/16X%'))) 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-07-13 14:04:47 Duration: 741ms
-
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 ('%%INSP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP%'))) 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-07-13 14:17:52 Duration: 739ms
-
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 ('%%INSPFED%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%INSP-FED%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%INSP-FED%'))) 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-07-13 14:16:01 Duration: 738ms
10 435ms 488ms 444ms 59 26s209ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 13 00 3 1s318ms 439ms 01 12 5s286ms 440ms 05 3 1s345ms 448ms 12 10 4s475ms 447ms 14 21 9s256ms 440ms 17 5 2s273ms 454ms 18 2 908ms 454ms 21 3 1s347ms 449ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d7fc930/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:30 Duration: 488ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 17:30:25 Duration: 472ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-13 21:18:20 Duration: 472ms
11 270ms 414ms 320ms 169 54s243ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 13 01 22 6s888ms 313ms 12 12 4s18ms 334ms 13 3 825ms 275ms 14 124 39s969ms 322ms 17 8 2s542ms 317ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 01:25:36 Duration: 414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:07:57 Duration: 410ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-13 14:08:13 Duration: 404ms
12 306ms 708ms 315ms 3,357 17m39s 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 #12
Day Hour Count Duration Avg duration Jul 13 00 165 52s948ms 320ms 01 174 55s157ms 316ms 02 150 47s182ms 314ms 03 249 1m18s 313ms 04 189 59s661ms 315ms 05 174 54s689ms 314ms 06 219 1m8s 313ms 07 120 37s971ms 316ms 08 69 21s940ms 317ms 09 198 1m2s 314ms 10 84 26s294ms 313ms 11 189 59s479ms 314ms 12 168 53s153ms 316ms 13 153 48s129ms 314ms 14 39 12s240ms 313ms 15 12 3s815ms 317ms 16 186 58s780ms 316ms 17 237 1m15s 317ms 18 243 1m17s 317ms 19 54 17s137ms 317ms 20 111 35s125ms 316ms 21 27 8s505ms 315ms 22 12 3s801ms 316ms 23 135 42s613ms 315ms -
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-07-13 00:50:25 Duration: 708ms
-
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-07-13 04:08:15 Duration: 532ms
-
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-07-13 07:37:41 Duration: 481ms
13 305ms 579ms 315ms 3,126 16m26s 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 Jul 13 00 162 51s823ms 319ms 01 156 49s158ms 315ms 02 120 37s579ms 313ms 03 168 52s910ms 314ms 04 216 1m8s 315ms 05 138 43s431ms 314ms 06 156 49s136ms 314ms 07 162 51s315ms 316ms 08 57 18s20ms 316ms 09 150 47s258ms 315ms 10 135 42s878ms 317ms 11 102 32s390ms 317ms 12 162 51s51ms 315ms 13 168 52s915ms 314ms 14 33 10s405ms 315ms 15 6 1s911ms 318ms 16 225 1m11s 316ms 17 186 58s648ms 315ms 18 210 1m6s 315ms 19 51 16s87ms 315ms 20 126 39s567ms 314ms 21 63 19s932ms 316ms 22 36 11s292ms 313ms 23 138 43s328ms 313ms -
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-07-13 07:15:25 Duration: 579ms
-
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-07-13 11:03:00 Duration: 570ms
-
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-07-13 04:13:05 Duration: 498ms
14 287ms 407ms 308ms 197 1m 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 #14
Day Hour Count Duration Avg duration Jul 13 03 197 1m 308ms -
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:33 Duration: 407ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:41 Duration: 358ms
-
SELECT "queue_job".id FROM "queue_job" WHERE ((("queue_job"."date_done" <= '2024-06-13 03:39:33.469289') OR ("queue_job"."date_cancelled" <= '2024-06-13 03:39:33.469289')) AND ("queue_job"."channel" = 'root')) ORDER BY "queue_job"."date_created" DESC, "queue_job"."date_done" DESC LIMIT 1000;
Date: 2024-07-13 03:39:56 Duration: 356ms
15 229ms 353ms 235ms 3,048 11m57s 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 #15
Day Hour Count Duration Avg duration Jul 13 00 177 41s824ms 236ms 01 189 44s318ms 234ms 02 138 32s231ms 233ms 03 198 46s540ms 235ms 04 132 31s45ms 235ms 05 201 47s36ms 234ms 06 96 22s494ms 234ms 07 180 42s398ms 235ms 08 303 1m11s 235ms 09 54 12s718ms 235ms 10 21 4s926ms 234ms 11 129 30s340ms 235ms 12 96 22s509ms 234ms 13 171 40s125ms 234ms 14 33 7s846ms 237ms 15 27 6s331ms 234ms 16 225 52s977ms 235ms 17 225 53s400ms 237ms 18 150 35s313ms 235ms 19 72 16s870ms 234ms 20 81 19s92ms 235ms 21 39 9s122ms 233ms 22 30 7s101ms 236ms 23 81 19s128ms 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" DESC, "product_template"."id" DESC;
Date: 2024-07-13 04:32:32 Duration: 353ms
-
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-07-13 00:46:28 Duration: 334ms
-
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-07-13 07:58:26 Duration: 305ms
16 228ms 488ms 234ms 3,393 13m16s 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 #16
Day Hour Count Duration Avg duration Jul 13 00 174 41s132ms 236ms 01 198 46s587ms 235ms 02 138 32s223ms 233ms 03 201 47s103ms 234ms 04 159 37s205ms 233ms 05 192 44s840ms 233ms 06 168 39s199ms 233ms 07 174 40s697ms 233ms 08 60 14s3ms 233ms 09 126 29s614ms 235ms 10 123 28s963ms 235ms 11 201 46s954ms 233ms 12 183 42s942ms 234ms 13 156 36s608ms 234ms 14 36 8s468ms 235ms 15 9 2s114ms 234ms 16 267 1m2s 233ms 17 240 56s447ms 235ms 18 228 53s826ms 236ms 19 78 18s327ms 234ms 20 84 19s667ms 234ms 21 66 15s589ms 236ms 22 33 7s774ms 235ms 23 99 23s688ms 239ms -
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-07-13 23:47:22 Duration: 488ms
-
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-07-13 01:34:35 Duration: 393ms
-
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-07-13 10:58:11 Duration: 383ms
17 185ms 280ms 202ms 54 10s909ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 13 13 1 280ms 280ms 14 5 1s195ms 239ms 17 2 477ms 238ms 23 46 8s956ms 194ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32812))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 13:52:45 Duration: 280ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (35081))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 14:24:09 Duration: 273ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (31123))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 14:52:01 Duration: 257ms
18 178ms 1s646ms 199ms 168 33s534ms 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 #18
Day Hour Count Duration Avg duration Jul 13 03 45 8s337ms 185ms 07 45 8s367ms 185ms 10 1 1s646ms 1s646ms 23 77 15s183ms 197ms -
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54824)) AND (("account_move"."id" not in (1517695)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 10:36:12 Duration: 1s646ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (54552)) AND (("account_move"."id" not in (1525388)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 07:30:18 Duration: 250ms
-
SELECT "account_move".id FROM "account_move" WHERE (("account_move"."edi_810_id" in (53662)) AND (("account_move"."id" not in (1454996)) OR "account_move"."id" IS NULL)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:18:22 Duration: 229ms
19 179ms 217ms 192ms 44 8s485ms select "account_move".id from "account_move" where ("account_move"."edi_810_id" in (...)) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 13 03 8 1s511ms 188ms 07 8 1s479ms 184ms 10 1 195ms 195ms 23 27 5s299ms 196ms -
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (52683, 52703, 52762, 52783, 52791, 52805, 52844, 52847, 52852, 52855, 52930, 52946, 52992, 52995, 53001, 53057, 53080, 53086, 53143, 53158, 53171, 53241, 53251, 53257, 53303, 53316, 53326, 53341, 53358, 53365, 53389, 53407, 53424, 53425, 53479, 53484, 53498, 53502, 53519, 53525)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:12:24 Duration: 217ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (53563, 53544, 53588, 53605, 53609, 53619, 53622, 53624, 53653, 53662, 53672, 53693, 53694, 53701, 53709, 53711, 53718, 53754, 53755, 53764, 53769, 53822, 53824, 53834, 53845, 53846, 53856, 53864, 53877, 53904, 53946, 53951, 53973, 53975, 53986, 53996, 54044, 54053, 54088, 54094)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 23:18:21 Duration: 209ms
-
SELECT "account_move".id FROM "account_move" WHERE ("account_move"."edi_810_id" in (53563, 53544, 53588, 53605, 53609, 53619, 53622, 53624, 53653, 53662, 53672, 53693, 53694, 53701, 53709, 53711, 53718, 53754, 53755, 53764, 53769, 53822, 53824, 53834, 53845, 53846, 53856, 53864, 53877, 53904, 53946, 53951, 53973, 53975, 53986, 53996, 54044, 54053, 54088, 54094)) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-13 03:18:04 Duration: 207ms
20 146ms 257ms 181ms 33 6s update product_warehouse_inventory set qty_mtd_sold = ? - ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 13 12 4 800ms 200ms 14 16 2s725ms 170ms 17 13 2s475ms 190ms -
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 237305 AND warehouse_id = 35;
Date: 2024-07-13 12:47:16 Duration: 257ms
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 237305 AND warehouse_id = 35;
Date: 2024-07-13 12:51:08 Duration: 209ms
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 267922 AND warehouse_id = 41;
Date: 2024-07-13 17:09:50 Duration: 205ms
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
- 32,980 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1056 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 976 Max number of times the same event was reported
- 1,056 Total events found
Rank Times reported Error 1 976 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 13 00 50 01 112 02 45 03 47 04 30 05 30 06 33 07 103 08 86 09 31 10 31 11 30 12 30 13 31 14 30 15 24 16 31 17 32 18 29 19 31 20 28 21 31 22 32 23 19 - 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-07-13 10:50:02
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=87 FOR UPDATE NOWAIT
Date: 2024-07-13 10:53:01
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-07-13 11:00:04
2 80 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 13 01 5 12 20 13 4 14 37 15 1 17 11 20 1 21 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 product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 237305 AND warehouse_id = 35
Date: 2024-07-13 12:47:15
Statement: UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 237305 AND warehouse_id = 35 AND company_id = 1
Date: 2024-07-13 12:47:16
Statement: UPDATE product_warehouse_inventory SET qty_in_transist = 103.0 - 102.0, last_intra_company_receipt_date = '2024-07-13T12:47:14'::timestamp, last_intra_company_qty = 1.0 WHERE product_id = 237305 AND warehouse_id = 35
Date: 2024-07-13 12:47:16