-
Global information
- Generated on Sat Aug 3 00:50:25 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 486,175 log entries in 24s
- Log start from 2024-08-02 00:00:01 to 2024-08-02 23:59:58
-
Overview
Global Stats
- 997 Number of unique normalized queries
- 168,776 Number of queries
- 11h27m35s Total query duration
- 2024-08-02 00:00:01 First query
- 2024-08-02 23:59:58 Last query
- 52 queries/s at 2024-08-02 16:55:41 Query peak
- 11h27m35s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 11h27m35s Execute total duration
- 1,669 Number of events
- 9 Number of unique normalized events
- 1,174 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
- 168,776 Average queries per session
- 11h27m35s 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
- 52 queries/s Query Peak
- 2024-08-02 16:55:41 Date
SELECT Traffic
Key values
- 50 queries/s Query Peak
- 2024-08-02 16:55:41 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 10 queries/s Query Peak
- 2024-08-02 17:46:06 Date
Queries duration
Key values
- 11h27m35s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 02 00 3,133 120ms 1s340ms 158ms 12s980ms 17s583ms 21s941ms 01 2,718 120ms 2s439ms 171ms 13s480ms 15s642ms 30s520ms 02 2,635 120ms 843ms 159ms 12s913ms 16s146ms 20s335ms 03 2,690 120ms 714ms 155ms 12s219ms 13s70ms 17s468ms 04 2,604 120ms 1s285ms 144ms 10s51ms 11s904ms 15s439ms 05 2,839 120ms 748ms 148ms 12s874ms 14s31ms 14s605ms 06 2,832 120ms 685ms 141ms 8s974ms 11s975ms 15s534ms 07 2,871 120ms 1s259ms 156ms 12s10ms 14s575ms 27s742ms 08 3,054 120ms 912ms 150ms 13s39ms 14s673ms 21s882ms 09 3,388 120ms 7m12s 471ms 1m9s 2m14s 7m48s 10 3,351 120ms 6s233ms 156ms 13s970ms 19s861ms 26s726ms 11 7,414 120ms 1m5s 256ms 57s665ms 1m17s 2m26s 12 13,886 120ms 21s14ms 255ms 1m36s 1m52s 2m51s 13 14,244 120ms 9s717ms 258ms 1m41s 1m50s 2m25s 14 15,808 120ms 1m6s 287ms 2m6s 2m30s 3m9s 15 14,683 120ms 27s161ms 250ms 1m31s 1m49s 2m16s 16 13,996 120ms 16s586ms 234ms 1m31s 1m34s 2m13s 17 16,633 120ms 20s513ms 232ms 1m37s 1m45s 2m17s 18 13,315 120ms 23s802ms 245ms 1m26s 1m59s 2m15s 19 10,026 120ms 12s500ms 245ms 1m13s 1m25s 1m53s 20 6,243 120ms 7s11ms 216ms 43s359ms 49s846ms 51s327ms 21 4,747 120ms 1s722ms 185ms 41s357ms 1m1s 1m8s 22 2,265 120ms 596ms 155ms 8s88ms 10s424ms 11s457ms 23 3,401 120ms 21s599ms 706ms 1m36s 1m50s 1m57s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 02 00 3,119 0 158ms 9s162ms 12s980ms 19s64ms 01 2,717 0 171ms 8s776ms 13s480ms 28s74ms 02 2,615 0 159ms 7s946ms 12s891ms 16s528ms 03 2,690 0 155ms 9s785ms 12s219ms 14s756ms 04 2,602 0 144ms 7s55ms 10s51ms 14s397ms 05 2,838 0 148ms 8s60ms 12s874ms 14s105ms 06 2,832 0 141ms 7s521ms 8s974ms 13s97ms 07 2,869 0 156ms 8s470ms 12s10ms 16s826ms 08 2,944 0 150ms 8s368ms 12s479ms 14s673ms 09 3,078 116 489ms 18s439ms 1m1s 2m14s 10 3,247 0 154ms 10s816ms 13s970ms 17s131ms 11 6,236 0 269ms 39s806ms 49s912ms 2m10s 12 10,620 0 278ms 1m6s 1m21s 1m56s 13 11,349 0 276ms 1m8s 1m28s 1m46s 14 11,556 0 315ms 1m24s 1m37s 2m10s 15 10,072 1 283ms 1m3s 1m11s 1m43s 16 9,575 0 263ms 59s933ms 1m2s 1m37s 17 9,699 0 275ms 1m1s 1m8s 1m23s 18 9,041 0 279ms 59s428ms 1m11s 1m39s 19 8,029 0 256ms 46s500ms 59s809ms 1m16s 20 5,008 0 226ms 25s323ms 29s905ms 44s157ms 21 3,566 0 194ms 17s33ms 21s884ms 47s984ms 22 2,206 0 155ms 6s631ms 7s273ms 9s291ms 23 2,842 0 163ms 12s425ms 14s902ms 17s785ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Aug 02 00 0 14 0 0 170ms 0ms 0ms 0ms 01 0 1 0 0 398ms 0ms 0ms 0ms 02 0 20 0 0 165ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 2 0 0 360ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 360ms 0ms 0ms 0ms 08 0 110 0 0 167ms 0ms 0ms 2s561ms 09 0 190 0 0 165ms 0ms 361ms 4s31ms 10 0 101 3 0 225ms 0ms 0ms 4s216ms 11 0 1,161 17 0 189ms 3s43ms 6s573ms 14s886ms 12 0 3,253 9 0 180ms 8s610ms 15s360ms 31s657ms 13 0 2,859 32 0 187ms 8s40ms 15s233ms 24s724ms 14 0 4,190 58 0 212ms 15s7ms 19s521ms 29s747ms 15 0 4,581 26 0 179ms 16s426ms 24s902ms 33s878ms 16 0 4,412 6 0 171ms 15s720ms 24s184ms 31s470ms 17 0 6,916 17 0 170ms 25s172ms 30s812ms 34s48ms 18 0 4,254 18 0 173ms 12s568ms 21s480ms 27s118ms 19 0 1,974 20 0 200ms 6s209ms 9s386ms 20s777ms 20 0 1,229 5 0 177ms 2s894ms 7s41ms 15s563ms 21 0 1,181 0 0 156ms 0ms 3s589ms 20s739ms 22 0 59 0 0 161ms 0ms 0ms 2s288ms 23 0 448 106 0 3s414ms 43s221ms 59s569ms 59s985ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Aug 02 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Aug 02 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Aug 02 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Aug 02 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Aug 02 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Aug 02 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Aug 02 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Aug 02 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Aug 02 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
- ShareLock Main Lock Type
- 49 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 29 1m34s 1s685ms 15s198ms 3s245ms update account_move set write_date = write_date where id = ( select id from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) and id != ? and sequence_prefix = ( select sequence_prefix from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) and id != ? order by id desc limit ?) order by sequence_number desc limit ?) returning name;-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573529 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573529 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-08-02 12:25:00
-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573714 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573714 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-08-02 13:05:32
-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573805 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573805 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-08-02 13:28:46
2 10 30s588ms 2s386ms 5s943ms 3s58ms update "product_warehouse_inventory" set "last_used_date" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (35844, 35788, 35440, 336017, 36534, 35867, 332062, 122367);
Date: 2024-08-02 12:28:34
-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 1043, "write_date" = (now() at time zone 'UTC') WHERE id IN (18272, 375683, 375684, 25667, 18445, 18159, 22800, 16410);
Date: 2024-08-02 17:44:18
-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 980, "write_date" = (now() at time zone 'UTC') WHERE id IN (45185, 8962, 63491, 45315, 342792, 87946, 78347, 62860, 329868, 106254, 30093, 61457, 26770, 45076, 66325, 63513, 29854, 8735, 62624, 52256, 27554, 80803, 62884, 63396, 30115, 45086, 63528, 29610, 357036, 63405, 63536, 45232, 18610, 19251, 49972, 81205, 45110, 49975, 27572, 45241, 18619, 27581, 63550, 19262, 81216, 20414, 64451, 41284, 63178, 45258, 65144, 30154, 339279, 63187, 64468, 78931, 80467, 7508, 45144, 20439, 78810, 80477, 30048, 358881, 41313, 374499, 7523, 45161, 80881, 30070, 63352, 78329, 63483, 65151);
Date: 2024-08-02 15:16:39
3 8 22s707ms 2s248ms 5s108ms 2s838ms update "account_move" set "message_main_attachment_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "message_main_attachment_id" = 5604276, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (1573529);
Date: 2024-08-02 12:25:22
-
UPDATE "account_move" SET "message_main_attachment_id" = 5605779, "write_uid" = 1022, "write_date" = (now() at time zone 'UTC') WHERE id IN (1575157);
Date: 2024-08-02 19:20:38
-
UPDATE "account_move" SET "message_main_attachment_id" = 5604292, "write_uid" = 1045, "write_date" = (now() at time zone 'UTC') WHERE id IN (1573548);
Date: 2024-08-02 12:28:05
4 1 7s169ms 7s169ms 7s169ms 7s169ms insert into "account_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "asset_id", "auto_post", "branch_id", "campaign_id", "carrier_id", "commercial_partner_id", "company_id", "currency_id", "date", "discount_amount_applied", "edi_billed", "edi_split_lock", "expense_choice", "extract_remote_id", "extract_state", "fiscal_position_id", "invoice_cash_rounding_id", "invoice_date", "invoice_date_due", "invoice_incoterm_id", "invoice_origin", "invoice_origin_new", "invoice_payment_term_id", "invoice_product_qty", "invoice_user_id", "is_edi_bill", "is_move_sent", "journal_id", "medium_id", "move_type", "narration", "open_invoice", "order_type", "partner_bank_id", "partner_id", "partner_shipping_id", "payment_reference", "ref", "source_id", "state", "team_id", "to_check", "to_check_negative") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), null, false, ?, null, ?, ?, ?, ?, ?, ?.?, false, false, null, ?, ?, ?, null, null, ?, null, ?, ?, ?, ?.?, ?, false, false, ?, null, ?, ?, false, ?, ?, ?, ?, ?, ?, null, ?, ?, false, false) returning id;-
INSERT INTO "account_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "asset_id", "auto_post", "branch_id", "campaign_id", "carrier_id", "commercial_partner_id", "company_id", "currency_id", "date", "discount_amount_applied", "edi_billed", "edi_split_lock", "expense_choice", "extract_remote_id", "extract_state", "fiscal_position_id", "invoice_cash_rounding_id", "invoice_date", "invoice_date_due", "invoice_incoterm_id", "invoice_origin", "invoice_origin_new", "invoice_payment_term_id", "invoice_product_qty", "invoice_user_id", "is_edi_bill", "is_move_sent", "journal_id", "medium_id", "move_type", "narration", "open_invoice", "order_type", "partner_bank_id", "partner_id", "partner_shipping_id", "payment_reference", "ref", "source_id", "state", "team_id", "to_check", "to_check_negative") VALUES (nextval('account_move_id_seq'), 1026, (now() at time zone 'UTC'), 1026, (now() at time zone 'UTC'), NULL, false, 44, NULL, 69, 33886, 1, 2, '2024-08-02', 0.0, false, false, NULL, -1, 'no_extract_requested', 3, NULL, NULL, '2024-09-01', NULL, 'B-12066', 'sale.order,157033', 94, 1.0, 983, false, false, 1, NULL, 'out_invoice', '', false, 'sale', 1, 33886, 36059, '', '002-455977', NULL, 'draft', 1, false, false) RETURNING id;
Date: 2024-08-02 12:25:47
5 1 5s799ms 5s799ms 5s799ms 5s799ms update "sale_order" set "carrier_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order" SET "carrier_id" = NULL, "write_uid" = 1190, "write_date" = (now() at time zone 'UTC') WHERE id IN (122852);
Date: 2024-08-02 20:24:39
Queries that waited the most
Rank Wait time Query 1 15s198ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573529 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573529 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 12:25:00 ]
2 8s529ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573714 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573714 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:05:32 ]
3 7s169ms INSERT INTO "account_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "asset_id", "auto_post", "branch_id", "campaign_id", "carrier_id", "commercial_partner_id", "company_id", "currency_id", "date", "discount_amount_applied", "edi_billed", "edi_split_lock", "expense_choice", "extract_remote_id", "extract_state", "fiscal_position_id", "invoice_cash_rounding_id", "invoice_date", "invoice_date_due", "invoice_incoterm_id", "invoice_origin", "invoice_origin_new", "invoice_payment_term_id", "invoice_product_qty", "invoice_user_id", "is_edi_bill", "is_move_sent", "journal_id", "medium_id", "move_type", "narration", "open_invoice", "order_type", "partner_bank_id", "partner_id", "partner_shipping_id", "payment_reference", "ref", "source_id", "state", "team_id", "to_check", "to_check_negative") VALUES (nextval('account_move_id_seq'), 1026, (now() at time zone 'UTC'), 1026, (now() at time zone 'UTC'), NULL, false, 44, NULL, 69, 33886, 1, 2, '2024-08-02', 0.0, false, false, NULL, -1, 'no_extract_requested', 3, NULL, NULL, '2024-09-01', NULL, 'B-12066', 'sale.order,157033', 94, 1.0, 983, false, false, 1, NULL, 'out_invoice', '', false, 'sale', 1, 33886, 36059, '', '002-455977', NULL, 'draft', 1, false, false) RETURNING id;[ Date: 2024-08-02 12:25:47 ]
4 7s69ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573841 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573841 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:36:26 ]
5 5s943ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (85801, 85802, 79467, 10674, 63315, 95828, 85845, 85846, 75444, 10040, 81845, 42898, 43483, 85820, 97789);[ Date: 2024-08-02 12:25:00 ]
6 5s799ms UPDATE "sale_order" SET "carrier_id" = NULL, "write_uid" = 1190, "write_date" = (now() at time zone 'UTC') WHERE id IN (122852);[ Date: 2024-08-02 20:24:39 ]
7 5s108ms UPDATE "account_move" SET "message_main_attachment_id" = 5604276, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (1573529);[ Date: 2024-08-02 12:25:22 ]
8 4s472ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573534 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573534 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 12:25:22 ]
9 4s444ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573805 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573805 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:28:46 ]
10 4s418ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573711 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573711 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:05:21 ]
11 4s126ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573807 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573807 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:28:52 ]
12 3s703ms UPDATE "account_move" SET "message_main_attachment_id" = 5605296, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (1574547);[ Date: 2024-08-02 16:44:33 ]
13 3s615ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (81222, 80809, 81490, 7154, 8986);[ Date: 2024-08-02 18:32:13 ]
14 3s528ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1448888 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1448888 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 13:43:54 ]
15 3s485ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (21889, 331459, 15529, 37739, 37771, 15539, 21880, 339325);[ Date: 2024-08-02 19:24:40 ]
16 3s404ms UPDATE "account_move" SET "message_main_attachment_id" = 5604738, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (1573935);[ Date: 2024-08-02 14:01:36 ]
17 3s258ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573536 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573536 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 12:25:30 ]
18 3s158ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-08-02', "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (19073, 19874, 45316, 17680, 18161, 45077, 18265, 26426, 45054, 27583);[ Date: 2024-08-02 12:16:54 ]
19 3s121ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1574249 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1574249 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 15:14:30 ]
20 3s87ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1575058 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1575058 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-08-02 18:44:02 ]
-
Queries
Queries by type
Key values
- 131,350 Total read queries
- 37,426 Total write queries
Queries by database
Key values
- unknown Main database
- 168,776 Requests
- 11h27m35s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 169,247 Requests
User Request type Count Duration unknown Total 169,247 11h28m49s copy to 117 17m43s cte 35 59s438ms delete 317 16m9s select 131,820 8h47m27s update 36,958 2h6m28s Duration by user
Key values
- 11h28m49s (unknown) Main time consuming user
User Request type Count Duration unknown Total 169,247 11h28m49s copy to 117 17m43s cte 35 59s438ms delete 317 16m9s select 131,820 8h47m27s update 36,958 2h6m28s Queries by host
Key values
- unknown Main host
- 169,247 Requests
- 11h28m49s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 168,776 Requests
- 11h27m35s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-08-02 04:46:56 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 156,517 100-500ms duration
Slowest individual queries
Rank Duration Query 1 7m12s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-08-02 09:13:35 ]
2 2m5s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-08-02 09:06:21 ]
3 2m3s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-08-02 09:04:04 ]
4 1m6s DELETE FROM stock_inventory_line WHERE id IN (3060046, 3060047, 3060048, 3060049, 3060050, 3060051, 3060052, 3060053, 3060033, 3060054, 3060055, 3060056, 3060057, 3060009, 3060058, 3060059, 3060060, 3060061, 3060062, 3060063, 3060064, 3060065, 3060066, 3060067, 3060068, 3060069, 3060070, 3060071, 3060072, 3060073, 3060022, 3060074, 3060075, 3060076, 3060077, 3060078, 3060079, 3060080, 3060081, 3060082, 3060083, 3060084, 3060085, 3060025, 3060086, 3060087, 3060088, 3060089, 3060041, 3060010, 3060090, 3060024, 3060020, 3060091, 3060092, 3060093, 3060094, 3060095, 3060096, 3060037, 3060097, 3060098, 3060099, 3060100, 3060101, 3060045, 3060102, 3060103, 3060104, 3060027, 3060105, 3060106, 3060107, 3060108, 3060036, 3060109, 3060011, 3060110, 3060111, 3060112, 3060113, 3060114, 3060115, 3060116, 3060117, 3060118, 3060119, 3060120, 3060121, 3060122, 3060123, 3060012, 3060124, 3060125, 3060030, 3060126, 3060127, 3060128, 3060039, 3060042, 3060129, 3060130, 3060131, 3060132, 3060013, 3060133, 3060023, 3060134, 3060038, 3060135, 3060136, 3060137, 3060138, 3060139, 3060140, 3060035, 3060034, 3060141, 3060142, 3060143, 3060144, 3060145, 3060044, 3060146, 3060147, 3060148, 3060149, 3060150, 3060151, 3060152, 3060153, 3060154, 3060155, 3060156, 3060157, 3060158, 3060159, 3060160, 3060161, 3060162, 3060163, 3060164, 3060029, 3060014, 3060165, 3060166, 3060167, 3060168, 3060169, 3060170, 3060171, 3060172, 3060173, 3060174, 3060175, 3060176, 3060177, 3060178, 3060179, 3060180, 3060181, 3060182, 3060040, 3060031, 3060183, 3060184, 3060043, 3060032, 3060185, 3060186, 3060187, 3060188, 3060189, 3060190, 3060191, 3060015, 3060192, 3060193, 3060194, 3060195, 3060196, 3060197, 3060198, 3060199, 3060200, 3060201, 3060202, 3060203, 3060028, 3060016, 3060204, 3060205, 3060206, 3060207, 3060208, 3060017, 3060209, 3060210, 3060211, 3060212, 3060213, 3060214, 3060215, 3060216, 3060217, 3060218, 3060219, 3060220, 3060221, 3060018, 3060021, 3060222, 3060223, 3060026, 3060224, 3060225, 3060019, 3060226, 3060227, 3060228, 3060229, 3060230, 3060231, 3060232, 3060233, 3060234, 3060235);[ Date: 2024-08-02 14:40:44 ]
5 1m5s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-08-02 11:46:07 ]
6 36s772ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-08-02 09:00:59 ]
7 27s161ms DELETE FROM account_move_line WHERE id IN (5220584, 5220585, 5220586, 5220587, 5220588, 5220589, 5220590, 5220591, 5220592, 5220593, 5220594, 5561173, 5561174);[ Date: 2024-08-02 15:32:18 ]
8 26s521ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-08-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-08-02 11:45:35 ]
9 24s223ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-08-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-08-02 11:45:59 ]
10 23s802ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-08-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-08-02 18:55:13 ]
11 22s765ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type) TO stdout;[ Date: 2024-08-02 09:16:42 ]
12 21s994ms DELETE FROM account_move_line WHERE id IN (5100597, 5100598, 5100599, 5100600, 5100601, 5100602, 5100603, 5100604, 5100605, 5558651, 5558652);[ Date: 2024-08-02 14:55:43 ]
13 21s599ms DELETE FROM account_move_line WHERE id IN (5562509, 5562510, 5559864, 5559865, 5559866, 5559867, 5559868, 5559869, 5559870, 5559871, 5559872);[ Date: 2024-08-02 23:25:07 ]
14 21s14ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."fri_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-08-02 12:25:53 ]
15 20s736ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."fri_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-08-02 12:25:15 ]
16 20s513ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (268602)) ORDER BY "item_list_line"."id";[ Date: 2024-08-02 17:15:12 ]
17 19s196ms DELETE FROM sale_order_line WHERE id IN (456794, 456795, 456796);[ Date: 2024-08-02 14:14:31 ]
18 18s898ms DELETE FROM sale_order_line WHERE id IN (456876, 456877, 456878);[ Date: 2024-08-02 14:44:50 ]
19 17s901ms COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-08-02 09:01:26 ]
20 17s829ms DELETE FROM account_move_line WHERE id IN (5551437, 5551438, 5551439, 5551440, 5551441, 5551442, 5551443, 5561105, 5561106);[ Date: 2024-08-02 23:02:10 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h53m41s 82,343 120ms 1s790ms 170ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 02 00 2,700 6m27s 143ms 01 2,292 5m33s 145ms 02 2,240 5m42s 152ms 03 2,211 5m28s 148ms 04 2,272 5m15s 138ms 05 2,466 5m50s 142ms 06 2,525 5m45s 136ms 07 2,434 6m1s 148ms 08 2,545 6m5s 143ms 09 2,532 6m25s 152ms 10 2,705 6m15s 138ms 11 3,769 9m37s 153ms 12 6,008 18m11s 181ms 13 6,313 18m58s 180ms 14 6,081 22m24s 221ms 15 5,363 19m11s 214ms 16 5,168 14m57s 173ms 17 4,819 14m53s 185ms 18 4,960 16m35s 200ms 19 4,728 13m50s 175ms 20 2,942 7m48s 159ms 21 1,928 4m46s 148ms 22 1,666 3m42s 133ms 23 1,676 3m49s 136ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s784ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_975"', '["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s779ms
2 36m54s 2,827 681ms 2s271ms 783ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 02 00 9 6s559ms 728ms 02 3 2s142ms 714ms 10 15 10s774ms 718ms 11 263 3m18s 755ms 12 395 5m14s 796ms 13 361 4m44s 788ms 14 311 4m20s 836ms 15 224 2m56s 788ms 16 314 4m3s 775ms 17 271 3m34s 789ms 18 261 3m22s 774ms 19 262 3m17s 752ms 20 138 1m43s 748ms -
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 ('%%eesk%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%eesk%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%eesk%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:21 Duration: 2s271ms
-
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 ('%%334233%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%334-233%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%334-233%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 13:15:00 Duration: 2s129ms
-
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 ('%%ees%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ees%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ees%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:20 Duration: 2s79ms
3 34m31s 12,499 154ms 853ms 165ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 02 00 3 581ms 193ms 02 6 955ms 159ms 08 29 4s634ms 159ms 09 41 6s600ms 160ms 10 37 6s9ms 162ms 11 335 54s907ms 163ms 12 918 2m34s 168ms 13 630 1m45s 167ms 14 1,284 3m34s 167ms 15 1,615 4m28s 166ms 16 1,292 3m33s 165ms 17 4,207 11m33s 164ms 18 1,255 3m27s 165ms 19 554 1m30s 164ms 20 284 46s785ms 164ms 21 9 1s479ms 164ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((6.0 - 6.0) + (0.0 - 0.0), 0) ELSE GREATEST ((6.0 - 6.0), 0) END where product_id = 237210 and warehouse_id = 45 and company_id = 1;
Date: 2024-08-02 17:52:05 Duration: 853ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 309.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (309.0 - 309.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 213496 and warehouse_id = 37 and company_id = 1;
Date: 2024-08-02 17:44:10 Duration: 774ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((298.0 - 298.0) + (1.0 - 1.0), 0) ELSE GREATEST ((298.0 - 298.0), 0) END where product_id = 199634 and warehouse_id = 42 and company_id = 1;
Date: 2024-08-02 12:47:26 Duration: 548ms
4 31m20s 5,151 345ms 1s286ms 365ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 02 00 3 1s60ms 353ms 02 4 1s403ms 350ms 08 10 3s609ms 360ms 09 24 8s569ms 357ms 10 12 4s213ms 351ms 11 250 1m30s 361ms 12 519 3m10s 367ms 13 523 3m13s 369ms 14 679 4m10s 369ms 15 572 3m28s 365ms 16 659 4m 364ms 17 646 3m55s 365ms 18 522 3m10s 365ms 19 336 2m1s 362ms 20 119 42s634ms 358ms 21 265 1m33s 353ms 22 8 2s819ms 352ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 14:03:45 Duration: 1s286ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 13:26:58 Duration: 917ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 15:24:57 Duration: 810ms
5 26m36s 5,150 274ms 1s921ms 309ms 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 #5
Day Hour Count Duration Avg duration Aug 02 00 3 901ms 300ms 02 4 1s133ms 283ms 08 10 3s210ms 321ms 09 24 6s995ms 291ms 10 12 3s527ms 293ms 11 250 1m15s 301ms 12 519 2m43s 314ms 13 522 2m45s 316ms 14 679 3m36s 318ms 15 572 2m58s 312ms 16 659 3m22s 307ms 17 646 3m19s 308ms 18 522 2m40s 307ms 19 336 1m43s 307ms 20 119 35s313ms 296ms 21 265 1m17s 291ms 22 8 2s305ms 288ms -
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-08-02 14:09:21 Duration: 1s921ms
-
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-08-02 15:12:03 Duration: 1s87ms
-
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-08-02 13:53:47 Duration: 1s54ms
6 24m40s 448 3s229ms 3s537ms 3s304ms update item_list_line set product_id = ?, supercede_product_id = ?, superceded = true, method = ? where product_id = ? and item_demand_plan_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Aug 02 23 448 24m40s 3s304ms -
update item_list_line set product_id = 189090, supercede_product_id = 188943, superceded = True, method = Null where product_id = 188943 and item_demand_plan_id = 3908;
Date: 2024-08-02 23:43:12 Duration: 3s537ms
-
update item_list_line set product_id = 262090, supercede_product_id = 177036, superceded = True, method = Null where product_id = 177036 and item_demand_plan_id = 3908;
Date: 2024-08-02 23:41:48 Duration: 3s500ms
-
update item_list_line set product_id = 243137, supercede_product_id = 216665, superceded = True, method = Null where product_id = 216665 and item_demand_plan_id = 3909;
Date: 2024-08-02 23:55:22 Duration: 3s476ms
7 19m55s 7,202 147ms 790ms 165ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 02 00 4 670ms 167ms 02 5 805ms 161ms 08 11 1s775ms 161ms 09 22 3s590ms 163ms 10 24 3s820ms 159ms 11 354 58s265ms 164ms 12 679 1m53s 167ms 13 716 2m 167ms 14 881 2m28s 168ms 15 819 2m15s 165ms 16 1,137 3m8s 165ms 17 839 2m19s 166ms 18 704 1m56s 165ms 19 457 1m16s 166ms 20 200 32s405ms 162ms 21 342 54s671ms 159ms 22 8 1s278ms 159ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 221337 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-02 14:30:09 Duration: 790ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 191089 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 16:55:41 Duration: 674ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 268598 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 17:14:11 Duration: 544ms
8 14m9s 5,760 138ms 546ms 147ms 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 #8
Day Hour Count Duration Avg duration Aug 02 00 240 34s881ms 145ms 01 240 34s275ms 142ms 02 240 34s298ms 142ms 03 240 34s59ms 141ms 04 240 34s51ms 141ms 05 240 34s456ms 143ms 06 240 34s262ms 142ms 07 240 34s229ms 142ms 08 240 34s109ms 142ms 09 240 34s427ms 143ms 10 240 34s390ms 143ms 11 240 35s846ms 149ms 12 240 36s599ms 152ms 13 240 37s952ms 158ms 14 240 38s270ms 159ms 15 240 37s484ms 156ms 16 240 36s606ms 152ms 17 240 37s163ms 154ms 18 240 37s320ms 155ms 19 240 36s435ms 151ms 20 240 35s122ms 146ms 21 240 34s422ms 143ms 22 240 34s126ms 142ms 23 240 34s560ms 144ms -
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_policy', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_subscription', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_opclass', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_roles', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_inherits', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_attribute', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_cast', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_amop', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_proc', 'pg_catalog.pg_description', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_publication', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_user_mappings', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.triggers', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.column_domain_usage', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.routine_routine_usage', 'information_schema.usage_privileges', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.domains', 'information_schema.sequences', 'information_schema.user_defined_types', 'information_schema.information_schema_catalog_name', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.column_options', 'information_schema.collation_character_set_applicability', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.routine_column_usage', 'information_schema.role_table_grants', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.enabled_roles', 'information_schema.parameters', 'information_schema.role_udt_grants', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-02 17:28:06 Duration: 546ms
-
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_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policy', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opclass', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_settings', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_proc', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_constraint', 'pg_catalog.pg_transform', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_rules', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'information_schema.information_schema_catalog_name', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.sql_implementation_info', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.administrable_role_authorizations', 'information_schema.role_column_grants', 'information_schema.enabled_roles', 'information_schema.routine_table_usage', 'information_schema.attributes', 'information_schema.data_type_privileges', 'information_schema.view_column_usage', 'information_schema.view_routine_usage', 'information_schema.domain_constraints', 'information_schema.role_usage_grants', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.sequences', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.role_table_grants', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.table_constraints', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.tables', 'information_schema.foreign_tables', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.table_privileges', 'information_schema.udt_privileges', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.collations', 'information_schema.routine_sequence_usage', 'information_schema.triggers', 'information_schema.referential_constraints', 'information_schema.views', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.applicable_roles', 'information_schema.element_types', 'information_schema.foreign_servers', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-02 18:30:06 Duration: 425ms
-
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_proc', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_class', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_publication', 'pg_catalog.pg_user', 'pg_catalog.pg_operator', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_language', 'pg_catalog.pg_enum', 'pg_catalog.pg_range', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_index', 'pg_catalog.pg_collation', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_description', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_attribute', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_group', 'pg_catalog.pg_opclass', 'pg_catalog.pg_depend', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_locks', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_cursors', 'pg_catalog.pg_settings', 'pg_catalog.pg_policy', 'pg_catalog.pg_transform', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cast', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_replication_slots', 'information_schema.column_column_usage', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.user_defined_types', 'information_schema.column_options', 'information_schema.check_constraint_routine_usage', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_tables', 'information_schema.applicable_roles', 'information_schema.routine_table_usage', 'information_schema.character_sets', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.view_column_usage', 'information_schema.collations', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.enabled_roles', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.check_constraints', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.attributes', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.column_privileges', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.collation_character_set_applicability', 'information_schema.routine_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_table_grants', 'information_schema.element_types', 'information_schema.domain_constraints', 'information_schema.information_schema_catalog_name', 'information_schema.administrable_role_authorizations', 'information_schema.user_mappings', 'information_schema.role_udt_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.sequences', 'information_schema.sql_sizing', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.data_type_privileges', 'information_schema.domains', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-08-02 15:51:50 Duration: 315ms
9 14m 1,051 691ms 1s710ms 799ms 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 Aug 02 11 9 6s629ms 736ms 12 76 1m2s 818ms 13 112 1m27s 782ms 14 108 1m27s 808ms 15 140 1m55s 823ms 16 96 1m18s 818ms 17 354 4m38s 787ms 18 118 1m36s 813ms 19 38 28s48ms 738ms -
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 ('%%nd2830628%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nd28-30-62-8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nd28-30-62-8%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:15:56 Duration: 1s710ms
-
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 ('%%3505710036564%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-10036564%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-10036564%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:57 Duration: 1s664ms
-
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 ('%%350571003656%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-1003656%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-1003656%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:56 Duration: 1s577ms
10 13m28s 1,668 447ms 1s212ms 485ms 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 Aug 02 00 7 3s189ms 455ms 01 1 451ms 451ms 02 6 2s698ms 449ms 04 3 1s352ms 450ms 07 4 1s806ms 451ms 08 6 2s706ms 451ms 09 19 8s744ms 460ms 10 17 7s760ms 456ms 11 127 1m 479ms 12 212 1m45s 499ms 13 212 1m43s 487ms 14 183 1m29s 491ms 15 166 1m20s 486ms 16 151 1m15s 498ms 17 182 1m28s 484ms 18 108 52s6ms 481ms 19 133 1m3s 477ms 20 96 44s999ms 468ms 21 13 5s862ms 450ms 22 15 6s830ms 455ms 23 7 3s192ms 456ms -
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 12:22:01 Duration: 1s212ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 16:17:30 Duration: 1s194ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 14:28:50 Duration: 1s147ms
11 9m59s 3,574 148ms 737ms 167ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 02 00 1 159ms 159ms 02 4 754ms 188ms 08 28 4s519ms 161ms 09 29 4s698ms 162ms 10 10 1s641ms 164ms 11 105 17s793ms 169ms 12 415 1m10s 170ms 13 375 1m3s 170ms 14 521 1m27s 168ms 15 456 1m16s 167ms 16 328 54s799ms 167ms 17 460 1m17s 167ms 18 378 1m2s 165ms 19 240 40s707ms 169ms 20 104 16s990ms 163ms 21 104 16s305ms 156ms 22 16 2s592ms 162ms -
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 193565 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 15:10:48 Duration: 737ms
-
UPDATE product_warehouse_inventory SET qty_available = 66.0 WHERE product_id = 180273 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 472ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 178736 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 395ms
12 9m51s 620 885ms 1s744ms 953ms 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"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_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") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 02 10 5 4s503ms 900ms 11 29 27s237ms 939ms 12 74 1m11s 960ms 13 86 1m22s 954ms 14 120 1m57s 975ms 15 65 1m2s 958ms 16 51 48s121ms 943ms 17 46 43s462ms 944ms 18 54 50s782ms 940ms 19 59 56s82ms 950ms 20 29 26s418ms 910ms 21 2 1s823ms 911ms -
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%5/8X20%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8X20%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%5/8X20%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%5/8X20%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 13:06:23 Duration: 1s744ms
-
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%60215%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%60215%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%60215%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%60215%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 14:27:59 Duration: 1s528ms
-
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%rn4726%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%rn4726%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%rn4726%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%rn4726%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 11:45:15 Duration: 1s359ms
13 7m43s 105 1s940ms 27s161ms 4s414ms delete from account_move_line where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 02 12 2 8s137ms 4s68ms 13 1 5s981ms 5s981ms 14 3 30s521ms 10s173ms 15 2 29s150ms 14s575ms 18 1 2s30ms 2s30ms 19 5 30s526ms 6s105ms 23 91 5m57s 3s924ms -
DELETE FROM account_move_line WHERE id IN (5220584, 5220585, 5220586, 5220587, 5220588, 5220589, 5220590, 5220591, 5220592, 5220593, 5220594, 5561173, 5561174);
Date: 2024-08-02 15:32:18 Duration: 27s161ms
-
DELETE FROM account_move_line WHERE id IN (5100597, 5100598, 5100599, 5100600, 5100601, 5100602, 5100603, 5100604, 5100605, 5558651, 5558652);
Date: 2024-08-02 14:55:43 Duration: 21s994ms
-
DELETE FROM account_move_line WHERE id IN (5562509, 5562510, 5559864, 5559865, 5559866, 5559867, 5559868, 5559869, 5559870, 5559871, 5559872);
Date: 2024-08-02 23:25:07 Duration: 21s599ms
14 7m17s 570 691ms 1s179ms 767ms 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"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 02 11 12 8s863ms 738ms 12 49 38s493ms 785ms 13 13 10s52ms 773ms 14 20 15s992ms 799ms 15 104 1m22s 791ms 16 143 1m47s 753ms 17 98 1m12s 744ms 18 95 1m13s 777ms 19 31 23s282ms 751ms 20 5 3s675ms 735ms -
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 ('%%b01%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%b01-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%b01-%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:56:08 Duration: 1s179ms
-
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 ('%%K3362PS%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%K3362PS%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%K3362PS%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 12:55:11 Duration: 1s177ms
-
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 ('%%P315A396%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%P315A396%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%P315A396%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:01:12 Duration: 1s177ms
15 7m12s 1 7m12s 7m12s 7m12s 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 #15
Day Hour Count Duration Avg duration Aug 02 09 1 7m12s 7m12s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-08-02 09:13:35 Duration: 7m12s
16 5m50s 2,125 145ms 295ms 165ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 02 00 2 325ms 162ms 02 2 318ms 159ms 09 3 479ms 159ms 10 6 976ms 162ms 11 126 20s652ms 163ms 12 213 35s411ms 166ms 13 195 32s715ms 167ms 14 248 41s755ms 168ms 15 241 40s79ms 166ms 16 250 40s920ms 163ms 17 326 53s464ms 164ms 18 220 36s555ms 166ms 19 166 27s324ms 164ms 20 50 8s22ms 160ms 21 73 11s232ms 153ms 22 4 650ms 162ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 221337 AND warehouse_id = 36;
Date: 2024-08-02 14:29:02 Duration: 295ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 3.0 WHERE product_id = 257969 AND warehouse_id = 46;
Date: 2024-08-02 15:58:13 Duration: 271ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217656 AND warehouse_id = 42;
Date: 2024-08-02 18:52:55 Duration: 256ms
17 5m30s 2,013 145ms 762ms 164ms 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 Aug 02 02 1 157ms 157ms 08 10 1s546ms 154ms 09 17 2s756ms 162ms 10 3 477ms 159ms 11 52 8s626ms 165ms 12 212 36s632ms 172ms 13 213 35s570ms 166ms 14 276 45s524ms 164ms 15 255 41s725ms 163ms 16 215 35s149ms 163ms 17 192 31s278ms 162ms 18 250 40s718ms 162ms 19 108 17s555ms 162ms 20 91 14s687ms 161ms 21 114 17s500ms 153ms 22 4 634ms 158ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 214536 AND warehouse_id = 41;
Date: 2024-08-02 12:16:39 Duration: 762ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 216530 AND warehouse_id = 41;
Date: 2024-08-02 12:16:38 Duration: 477ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219724 AND warehouse_id = 41;
Date: 2024-08-02 12:16:40 Duration: 420ms
18 5m17s 981 306ms 515ms 323ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 02 00 33 10s531ms 319ms 01 30 9s490ms 316ms 02 60 18s898ms 314ms 03 45 14s77ms 312ms 04 30 9s469ms 315ms 05 48 15s203ms 316ms 06 36 11s477ms 318ms 07 48 15s224ms 317ms 08 24 7s618ms 317ms 09 27 8s757ms 324ms 10 33 10s535ms 319ms 11 60 19s663ms 327ms 12 21 6s930ms 330ms 13 33 10s875ms 329ms 14 42 15s142ms 360ms 15 36 12s430ms 345ms 19 60 20s156ms 335ms 20 81 26s986ms 333ms 21 87 27s677ms 318ms 22 90 28s410ms 315ms 23 57 18s84ms 317ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 14:46:09 Duration: 515ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 14:28:46 Duration: 506ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 15:01:22 Duration: 501ms
19 5m11s 1,806 154ms 356ms 172ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 02 12 24 4s347ms 181ms 15 303 53s652ms 177ms 16 163 29s83ms 178ms 17 346 1m2s 179ms 18 338 58s958ms 174ms 20 307 50s38ms 162ms 21 325 53s177ms 163ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47978 and fd.product_id = 216556;
Date: 2024-08-02 18:11:25 Duration: 356ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47515 and fd.product_id = 190895;
Date: 2024-08-02 16:55:41 Duration: 315ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47979 and fd.product_id = 219786;
Date: 2024-08-02 18:17:30 Duration: 304ms
20 4m32s 1,549 158ms 480ms 175ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 02 00 1 161ms 161ms 01 3 489ms 163ms 08 3 489ms 163ms 09 7 1s188ms 169ms 10 5 841ms 168ms 11 37 6s493ms 175ms 12 174 31s169ms 179ms 13 193 35s105ms 181ms 14 143 25s912ms 181ms 15 124 23s40ms 185ms 16 86 15s399ms 179ms 17 150 26s290ms 175ms 18 102 18s259ms 179ms 19 446 1m15s 168ms 20 41 6s973ms 170ms 21 34 5s624ms 165ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:33 Duration: 480ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:32 Duration: 394ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%PENN M%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%PENN M%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%PENN M%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%PENN M%') OR unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') OR unaccent (res_partner.ref) ilike unaccent ('%PENN M%') OR unaccent (res_partner.vat) ilike unaccent ('PENNM')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:04:53 Duration: 342ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 82,343 3h53m41s 120ms 1s790ms 170ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 02 00 2,700 6m27s 143ms 01 2,292 5m33s 145ms 02 2,240 5m42s 152ms 03 2,211 5m28s 148ms 04 2,272 5m15s 138ms 05 2,466 5m50s 142ms 06 2,525 5m45s 136ms 07 2,434 6m1s 148ms 08 2,545 6m5s 143ms 09 2,532 6m25s 152ms 10 2,705 6m15s 138ms 11 3,769 9m37s 153ms 12 6,008 18m11s 181ms 13 6,313 18m58s 180ms 14 6,081 22m24s 221ms 15 5,363 19m11s 214ms 16 5,168 14m57s 173ms 17 4,819 14m53s 185ms 18 4,960 16m35s 200ms 19 4,728 13m50s 175ms 20 2,942 7m48s 159ms 21 1,928 4m46s 148ms 22 1,666 3m42s 133ms 23 1,676 3m49s 136ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s784ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_975"', '["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s779ms
2 12,499 34m31s 154ms 853ms 165ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 02 00 3 581ms 193ms 02 6 955ms 159ms 08 29 4s634ms 159ms 09 41 6s600ms 160ms 10 37 6s9ms 162ms 11 335 54s907ms 163ms 12 918 2m34s 168ms 13 630 1m45s 167ms 14 1,284 3m34s 167ms 15 1,615 4m28s 166ms 16 1,292 3m33s 165ms 17 4,207 11m33s 164ms 18 1,255 3m27s 165ms 19 554 1m30s 164ms 20 284 46s785ms 164ms 21 9 1s479ms 164ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((6.0 - 6.0) + (0.0 - 0.0), 0) ELSE GREATEST ((6.0 - 6.0), 0) END where product_id = 237210 and warehouse_id = 45 and company_id = 1;
Date: 2024-08-02 17:52:05 Duration: 853ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 309.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (309.0 - 309.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 213496 and warehouse_id = 37 and company_id = 1;
Date: 2024-08-02 17:44:10 Duration: 774ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((298.0 - 298.0) + (1.0 - 1.0), 0) ELSE GREATEST ((298.0 - 298.0), 0) END where product_id = 199634 and warehouse_id = 42 and company_id = 1;
Date: 2024-08-02 12:47:26 Duration: 548ms
3 7,202 19m55s 147ms 790ms 165ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 02 00 4 670ms 167ms 02 5 805ms 161ms 08 11 1s775ms 161ms 09 22 3s590ms 163ms 10 24 3s820ms 159ms 11 354 58s265ms 164ms 12 679 1m53s 167ms 13 716 2m 167ms 14 881 2m28s 168ms 15 819 2m15s 165ms 16 1,137 3m8s 165ms 17 839 2m19s 166ms 18 704 1m56s 165ms 19 457 1m16s 166ms 20 200 32s405ms 162ms 21 342 54s671ms 159ms 22 8 1s278ms 159ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 221337 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-02 14:30:09 Duration: 790ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 191089 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 16:55:41 Duration: 674ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 268598 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 17:14:11 Duration: 544ms
4 5,760 14m9s 138ms 546ms 147ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 02 00 240 34s881ms 145ms 01 240 34s275ms 142ms 02 240 34s298ms 142ms 03 240 34s59ms 141ms 04 240 34s51ms 141ms 05 240 34s456ms 143ms 06 240 34s262ms 142ms 07 240 34s229ms 142ms 08 240 34s109ms 142ms 09 240 34s427ms 143ms 10 240 34s390ms 143ms 11 240 35s846ms 149ms 12 240 36s599ms 152ms 13 240 37s952ms 158ms 14 240 38s270ms 159ms 15 240 37s484ms 156ms 16 240 36s606ms 152ms 17 240 37s163ms 154ms 18 240 37s320ms 155ms 19 240 36s435ms 151ms 20 240 35s122ms 146ms 21 240 34s422ms 143ms 22 240 34s126ms 142ms 23 240 34s560ms 144ms -
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_policy', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_subscription', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_opclass', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_roles', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_inherits', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_attribute', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_cast', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_amop', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_proc', 'pg_catalog.pg_description', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_publication', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_user_mappings', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.referential_constraints', 'information_schema.triggers', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.column_domain_usage', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.routine_routine_usage', 'information_schema.usage_privileges', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.domains', 'information_schema.sequences', 'information_schema.user_defined_types', 'information_schema.information_schema_catalog_name', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.table_privileges', 'information_schema.column_options', 'information_schema.collation_character_set_applicability', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.routine_column_usage', 'information_schema.role_table_grants', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.enabled_roles', 'information_schema.parameters', 'information_schema.role_udt_grants', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-02 17:28:06 Duration: 546ms
-
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_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policy', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opclass', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_depend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_settings', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_proc', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_constraint', 'pg_catalog.pg_transform', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_rules', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'information_schema.information_schema_catalog_name', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.sql_implementation_info', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.administrable_role_authorizations', 'information_schema.role_column_grants', 'information_schema.enabled_roles', 'information_schema.routine_table_usage', 'information_schema.attributes', 'information_schema.data_type_privileges', 'information_schema.view_column_usage', 'information_schema.view_routine_usage', 'information_schema.domain_constraints', 'information_schema.role_usage_grants', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.sequences', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.role_table_grants', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.table_constraints', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.tables', 'information_schema.foreign_tables', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.table_privileges', 'information_schema.udt_privileges', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.collations', 'information_schema.routine_sequence_usage', 'information_schema.triggers', 'information_schema.referential_constraints', 'information_schema.views', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.applicable_roles', 'information_schema.element_types', 'information_schema.foreign_servers', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-08-02 18:30:06 Duration: 425ms
-
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_proc', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_class', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_publication', 'pg_catalog.pg_user', 'pg_catalog.pg_operator', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_language', 'pg_catalog.pg_enum', 'pg_catalog.pg_range', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_index', 'pg_catalog.pg_collation', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_description', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_attribute', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_group', 'pg_catalog.pg_opclass', 'pg_catalog.pg_depend', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_locks', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_cursors', 'pg_catalog.pg_settings', 'pg_catalog.pg_policy', 'pg_catalog.pg_transform', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cast', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_replication_slots', 'information_schema.column_column_usage', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.user_defined_types', 'information_schema.column_options', 'information_schema.check_constraint_routine_usage', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_tables', 'information_schema.applicable_roles', 'information_schema.routine_table_usage', 'information_schema.character_sets', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.view_column_usage', 'information_schema.collations', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.enabled_roles', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.check_constraints', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.attributes', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.column_privileges', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.collation_character_set_applicability', 'information_schema.routine_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_table_grants', 'information_schema.element_types', 'information_schema.domain_constraints', 'information_schema.information_schema_catalog_name', 'information_schema.administrable_role_authorizations', 'information_schema.user_mappings', 'information_schema.role_udt_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.sequences', 'information_schema.sql_sizing', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.data_type_privileges', 'information_schema.domains', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-08-02 15:51:50 Duration: 315ms
5 5,151 31m20s 345ms 1s286ms 365ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Aug 02 00 3 1s60ms 353ms 02 4 1s403ms 350ms 08 10 3s609ms 360ms 09 24 8s569ms 357ms 10 12 4s213ms 351ms 11 250 1m30s 361ms 12 519 3m10s 367ms 13 523 3m13s 369ms 14 679 4m10s 369ms 15 572 3m28s 365ms 16 659 4m 364ms 17 646 3m55s 365ms 18 522 3m10s 365ms 19 336 2m1s 362ms 20 119 42s634ms 358ms 21 265 1m33s 353ms 22 8 2s819ms 352ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 14:03:45 Duration: 1s286ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 13:26:58 Duration: 917ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 15:24:57 Duration: 810ms
6 5,150 26m36s 274ms 1s921ms 309ms 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 #6
Day Hour Count Duration Avg duration Aug 02 00 3 901ms 300ms 02 4 1s133ms 283ms 08 10 3s210ms 321ms 09 24 6s995ms 291ms 10 12 3s527ms 293ms 11 250 1m15s 301ms 12 519 2m43s 314ms 13 522 2m45s 316ms 14 679 3m36s 318ms 15 572 2m58s 312ms 16 659 3m22s 307ms 17 646 3m19s 308ms 18 522 2m40s 307ms 19 336 1m43s 307ms 20 119 35s313ms 296ms 21 265 1m17s 291ms 22 8 2s305ms 288ms -
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-08-02 14:09:21 Duration: 1s921ms
-
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-08-02 15:12:03 Duration: 1s87ms
-
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-08-02 13:53:47 Duration: 1s54ms
7 3,574 9m59s 148ms 737ms 167ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 02 00 1 159ms 159ms 02 4 754ms 188ms 08 28 4s519ms 161ms 09 29 4s698ms 162ms 10 10 1s641ms 164ms 11 105 17s793ms 169ms 12 415 1m10s 170ms 13 375 1m3s 170ms 14 521 1m27s 168ms 15 456 1m16s 167ms 16 328 54s799ms 167ms 17 460 1m17s 167ms 18 378 1m2s 165ms 19 240 40s707ms 169ms 20 104 16s990ms 163ms 21 104 16s305ms 156ms 22 16 2s592ms 162ms -
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 193565 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 15:10:48 Duration: 737ms
-
UPDATE product_warehouse_inventory SET qty_available = 66.0 WHERE product_id = 180273 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 472ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 178736 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 395ms
8 2,827 36m54s 681ms 2s271ms 783ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Aug 02 00 9 6s559ms 728ms 02 3 2s142ms 714ms 10 15 10s774ms 718ms 11 263 3m18s 755ms 12 395 5m14s 796ms 13 361 4m44s 788ms 14 311 4m20s 836ms 15 224 2m56s 788ms 16 314 4m3s 775ms 17 271 3m34s 789ms 18 261 3m22s 774ms 19 262 3m17s 752ms 20 138 1m43s 748ms -
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 ('%%eesk%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%eesk%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%eesk%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:21 Duration: 2s271ms
-
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 ('%%334233%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%334-233%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%334-233%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 13:15:00 Duration: 2s129ms
-
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 ('%%ees%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ees%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ees%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:20 Duration: 2s79ms
9 2,125 5m50s 145ms 295ms 165ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 02 00 2 325ms 162ms 02 2 318ms 159ms 09 3 479ms 159ms 10 6 976ms 162ms 11 126 20s652ms 163ms 12 213 35s411ms 166ms 13 195 32s715ms 167ms 14 248 41s755ms 168ms 15 241 40s79ms 166ms 16 250 40s920ms 163ms 17 326 53s464ms 164ms 18 220 36s555ms 166ms 19 166 27s324ms 164ms 20 50 8s22ms 160ms 21 73 11s232ms 153ms 22 4 650ms 162ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 221337 AND warehouse_id = 36;
Date: 2024-08-02 14:29:02 Duration: 295ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 3.0 WHERE product_id = 257969 AND warehouse_id = 46;
Date: 2024-08-02 15:58:13 Duration: 271ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217656 AND warehouse_id = 42;
Date: 2024-08-02 18:52:55 Duration: 256ms
10 2,013 5m30s 145ms 762ms 164ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 02 02 1 157ms 157ms 08 10 1s546ms 154ms 09 17 2s756ms 162ms 10 3 477ms 159ms 11 52 8s626ms 165ms 12 212 36s632ms 172ms 13 213 35s570ms 166ms 14 276 45s524ms 164ms 15 255 41s725ms 163ms 16 215 35s149ms 163ms 17 192 31s278ms 162ms 18 250 40s718ms 162ms 19 108 17s555ms 162ms 20 91 14s687ms 161ms 21 114 17s500ms 153ms 22 4 634ms 158ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 214536 AND warehouse_id = 41;
Date: 2024-08-02 12:16:39 Duration: 762ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 216530 AND warehouse_id = 41;
Date: 2024-08-02 12:16:38 Duration: 477ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219724 AND warehouse_id = 41;
Date: 2024-08-02 12:16:40 Duration: 420ms
11 1,806 5m11s 154ms 356ms 172ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Aug 02 12 24 4s347ms 181ms 15 303 53s652ms 177ms 16 163 29s83ms 178ms 17 346 1m2s 179ms 18 338 58s958ms 174ms 20 307 50s38ms 162ms 21 325 53s177ms 163ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47978 and fd.product_id = 216556;
Date: 2024-08-02 18:11:25 Duration: 356ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47515 and fd.product_id = 190895;
Date: 2024-08-02 16:55:41 Duration: 315ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47979 and fd.product_id = 219786;
Date: 2024-08-02 18:17:30 Duration: 304ms
12 1,668 13m28s 447ms 1s212ms 485ms 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 #12
Day Hour Count Duration Avg duration Aug 02 00 7 3s189ms 455ms 01 1 451ms 451ms 02 6 2s698ms 449ms 04 3 1s352ms 450ms 07 4 1s806ms 451ms 08 6 2s706ms 451ms 09 19 8s744ms 460ms 10 17 7s760ms 456ms 11 127 1m 479ms 12 212 1m45s 499ms 13 212 1m43s 487ms 14 183 1m29s 491ms 15 166 1m20s 486ms 16 151 1m15s 498ms 17 182 1m28s 484ms 18 108 52s6ms 481ms 19 133 1m3s 477ms 20 96 44s999ms 468ms 21 13 5s862ms 450ms 22 15 6s830ms 455ms 23 7 3s192ms 456ms -
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 12:22:01 Duration: 1s212ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 16:17:30 Duration: 1s194ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 14:28:50 Duration: 1s147ms
13 1,627 4m8s 120ms 532ms 152ms 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 #13
Day Hour Count Duration Avg duration Aug 02 02 3 401ms 133ms 08 10 1s335ms 133ms 09 22 2s966ms 134ms 10 7 911ms 130ms 11 46 6s519ms 141ms 12 159 23s437ms 147ms 13 170 25s110ms 147ms 14 199 30s234ms 151ms 15 142 22s433ms 157ms 16 127 20s447ms 161ms 17 190 29s161ms 153ms 18 125 18s302ms 146ms 19 100 15s862ms 158ms 20 38 5s374ms 141ms 21 4 508ms 127ms 22 1 123ms 123ms 23 284 45s638ms 160ms -
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 (45530))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-02 15:10:47 Duration: 532ms
-
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 (43178))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-02 14:38:10 Duration: 464ms
-
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 (34085))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-08-02 17:28:06 Duration: 462ms
14 1,549 4m32s 158ms 480ms 175ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Aug 02 00 1 161ms 161ms 01 3 489ms 163ms 08 3 489ms 163ms 09 7 1s188ms 169ms 10 5 841ms 168ms 11 37 6s493ms 175ms 12 174 31s169ms 179ms 13 193 35s105ms 181ms 14 143 25s912ms 181ms 15 124 23s40ms 185ms 16 86 15s399ms 179ms 17 150 26s290ms 175ms 18 102 18s259ms 179ms 19 446 1m15s 168ms 20 41 6s973ms 170ms 21 34 5s624ms 165ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:33 Duration: 480ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:32 Duration: 394ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%PENN M%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%PENN M%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%PENN M%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%PENN M%') OR unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') OR unaccent (res_partner.ref) ilike unaccent ('%PENN M%') OR unaccent (res_partner.vat) ilike unaccent ('PENNM')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:04:53 Duration: 342ms
15 1,355 3m46s 157ms 539ms 167ms update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 02 00 4 642ms 160ms 08 3 501ms 167ms 09 4 655ms 163ms 10 13 2s99ms 161ms 11 77 13s11ms 168ms 12 132 22s23ms 166ms 13 120 20s461ms 170ms 14 181 30s497ms 168ms 15 127 21s581ms 169ms 16 423 1m10s 166ms 17 94 15s669ms 166ms 18 65 10s731ms 165ms 19 62 10s182ms 164ms 20 43 7s8ms 162ms 21 5 824ms 164ms 22 2 324ms 162ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) WHERE product_id = 268234 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-02 11:46:40 Duration: 539ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(3.0, 0) + COALESCE(1.0, 0) WHERE product_id = 203442 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-08-02 15:36:35 Duration: 523ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(5.0, 0) + COALESCE(1.0, 0) WHERE product_id = 207783 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 13:26:56 Duration: 251ms
16 1,255 3m25s 120ms 729ms 164ms 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 #16
Day Hour Count Duration Avg duration Aug 02 10 94 15s606ms 166ms 11 83 11s988ms 144ms 12 177 28s425ms 160ms 13 262 44s929ms 171ms 14 291 52s16ms 178ms 15 93 14s295ms 153ms 16 8 1s232ms 154ms 18 133 19s864ms 149ms 19 93 14s281ms 153ms 20 21 3s189ms 151ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 258509) 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-08-02 13:40:24 Duration: 729ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 244221) 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-08-02 13:40:25 Duration: 525ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 221433) 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-08-02 13:40:23 Duration: 407ms
17 1,075 2m29s 120ms 668ms 138ms 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"."id" in ( select "product_product"."product_tmpl_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") where (unaccent ("product_product"."barcode"::text) ilike unaccent (?)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name");Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Aug 02 10 10 1s253ms 125ms 11 50 6s393ms 127ms 12 105 14s268ms 135ms 13 166 22s781ms 137ms 14 198 31s160ms 157ms 15 95 13s134ms 138ms 16 99 13s49ms 131ms 17 73 9s999ms 136ms 18 94 12s942ms 137ms 19 116 15s555ms 134ms 20 64 8s192ms 128ms 21 5 645ms 129ms -
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"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%2010%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-08-02 14:34:55 Duration: 668ms
-
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"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%60215%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-08-02 14:27:58 Duration: 545ms
-
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"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%2010%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-08-02 14:34:54 Duration: 511ms
18 1,074 2m57s 149ms 530ms 165ms 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 Aug 02 08 4 628ms 157ms 09 26 4s157ms 159ms 10 2 315ms 157ms 11 21 3s398ms 161ms 12 111 18s513ms 166ms 13 115 19s137ms 166ms 14 106 17s560ms 165ms 15 161 27s101ms 168ms 16 118 19s952ms 169ms 17 120 19s940ms 166ms 18 141 23s208ms 164ms 19 51 8s339ms 163ms 20 64 10s260ms 160ms 21 34 5s303ms 155ms -
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268547 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 15:27:33 Duration: 530ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268547 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 15:27:33 Duration: 286ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268592 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 14:44:06 Duration: 247ms
19 1,051 14m 691ms 1s710ms 799ms 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 #19
Day Hour Count Duration Avg duration Aug 02 11 9 6s629ms 736ms 12 76 1m2s 818ms 13 112 1m27s 782ms 14 108 1m27s 808ms 15 140 1m55s 823ms 16 96 1m18s 818ms 17 354 4m38s 787ms 18 118 1m36s 813ms 19 38 28s48ms 738ms -
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 ('%%nd2830628%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nd28-30-62-8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nd28-30-62-8%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:15:56 Duration: 1s710ms
-
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 ('%%3505710036564%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-10036564%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-10036564%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:57 Duration: 1s664ms
-
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 ('%%350571003656%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-1003656%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-1003656%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:56 Duration: 1s577ms
20 1,036 2m51s 146ms 361ms 165ms update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 02 11 21 3s477ms 165ms 12 42 6s961ms 165ms 13 97 16s631ms 171ms 14 109 18s672ms 171ms 15 114 18s935ms 166ms 16 210 34s847ms 165ms 17 44 7s118ms 161ms 18 118 20s450ms 173ms 19 34 5s681ms 167ms 20 14 2s339ms 167ms 21 229 35s505ms 155ms 22 4 660ms 165ms -
UPDATE product_warehouse_inventory SET qty_on_order = 4.0 WHERE product_id = 216345 AND warehouse_id = 42;
Date: 2024-08-02 18:50:20 Duration: 361ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 217656 AND warehouse_id = 42;
Date: 2024-08-02 18:52:56 Duration: 305ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 5.0 WHERE product_id = 209971 AND warehouse_id = 36;
Date: 2024-08-02 13:25:39 Duration: 288ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 7m12s 7m12s 7m12s 1 7m12s copy public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Aug 02 09 1 7m12s 7m12s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-08-02 09:13:35 Duration: 7m12s
2 1s940ms 27s161ms 4s414ms 105 7m43s delete from account_move_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Aug 02 12 2 8s137ms 4s68ms 13 1 5s981ms 5s981ms 14 3 30s521ms 10s173ms 15 2 29s150ms 14s575ms 18 1 2s30ms 2s30ms 19 5 30s526ms 6s105ms 23 91 5m57s 3s924ms -
DELETE FROM account_move_line WHERE id IN (5220584, 5220585, 5220586, 5220587, 5220588, 5220589, 5220590, 5220591, 5220592, 5220593, 5220594, 5561173, 5561174);
Date: 2024-08-02 15:32:18 Duration: 27s161ms
-
DELETE FROM account_move_line WHERE id IN (5100597, 5100598, 5100599, 5100600, 5100601, 5100602, 5100603, 5100604, 5100605, 5558651, 5558652);
Date: 2024-08-02 14:55:43 Duration: 21s994ms
-
DELETE FROM account_move_line WHERE id IN (5562509, 5562510, 5559864, 5559865, 5559866, 5559867, 5559868, 5559869, 5559870, 5559871, 5559872);
Date: 2024-08-02 23:25:07 Duration: 21s599ms
3 3s229ms 3s537ms 3s304ms 448 24m40s update item_list_line set product_id = ?, supercede_product_id = ?, superceded = true, method = ? where product_id = ? and item_demand_plan_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Aug 02 23 448 24m40s 3s304ms -
update item_list_line set product_id = 189090, supercede_product_id = 188943, superceded = True, method = Null where product_id = 188943 and item_demand_plan_id = 3908;
Date: 2024-08-02 23:43:12 Duration: 3s537ms
-
update item_list_line set product_id = 262090, supercede_product_id = 177036, superceded = True, method = Null where product_id = 177036 and item_demand_plan_id = 3908;
Date: 2024-08-02 23:41:48 Duration: 3s500ms
-
update item_list_line set product_id = 243137, supercede_product_id = 216665, superceded = True, method = Null where product_id = 216665 and item_demand_plan_id = 3909;
Date: 2024-08-02 23:55:22 Duration: 3s476ms
4 885ms 1s744ms 953ms 620 9m51s 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"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_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") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Aug 02 10 5 4s503ms 900ms 11 29 27s237ms 939ms 12 74 1m11s 960ms 13 86 1m22s 954ms 14 120 1m57s 975ms 15 65 1m2s 958ms 16 51 48s121ms 943ms 17 46 43s462ms 944ms 18 54 50s782ms 940ms 19 59 56s82ms 950ms 20 29 26s418ms 910ms 21 2 1s823ms 911ms -
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%5/8X20%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8X20%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%5/8X20%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%5/8X20%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 13:06:23 Duration: 1s744ms
-
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%60215%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%60215%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%60215%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%60215%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 14:27:59 Duration: 1s528ms
-
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"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%rn4726%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_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") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%rn4726%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%rn4726%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%rn4726%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-08-02 11:45:15 Duration: 1s359ms
5 691ms 1s710ms 799ms 1,051 14m 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 #5
Day Hour Count Duration Avg duration Aug 02 11 9 6s629ms 736ms 12 76 1m2s 818ms 13 112 1m27s 782ms 14 108 1m27s 808ms 15 140 1m55s 823ms 16 96 1m18s 818ms 17 354 4m38s 787ms 18 118 1m36s 813ms 19 38 28s48ms 738ms -
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 ('%%nd2830628%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nd28-30-62-8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nd28-30-62-8%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:15:56 Duration: 1s710ms
-
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 ('%%3505710036564%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-10036564%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-10036564%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:57 Duration: 1s664ms
-
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 ('%%350571003656%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%350-57-1003656%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%350-57-1003656%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 18:32:56 Duration: 1s577ms
6 681ms 2s271ms 783ms 2,827 36m54s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Aug 02 00 9 6s559ms 728ms 02 3 2s142ms 714ms 10 15 10s774ms 718ms 11 263 3m18s 755ms 12 395 5m14s 796ms 13 361 4m44s 788ms 14 311 4m20s 836ms 15 224 2m56s 788ms 16 314 4m3s 775ms 17 271 3m34s 789ms 18 261 3m22s 774ms 19 262 3m17s 752ms 20 138 1m43s 748ms -
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 ('%%eesk%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%eesk%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%eesk%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:21 Duration: 2s271ms
-
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 ('%%334233%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%334-233%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%334-233%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 13:15:00 Duration: 2s129ms
-
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 ('%%ees%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ees%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ees%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 14:09:20 Duration: 2s79ms
7 691ms 1s179ms 767ms 570 7m17s 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"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Aug 02 11 12 8s863ms 738ms 12 49 38s493ms 785ms 13 13 10s52ms 773ms 14 20 15s992ms 799ms 15 104 1m22s 791ms 16 143 1m47s 753ms 17 98 1m12s 744ms 18 95 1m13s 777ms 19 31 23s282ms 751ms 20 5 3s675ms 735ms -
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 ('%%b01%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%b01-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%b01-%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:56:08 Duration: 1s179ms
-
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 ('%%K3362PS%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%K3362PS%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%K3362PS%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 12:55:11 Duration: 1s177ms
-
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 ('%%P315A396%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%P315A396%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%P315A396%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-08-02 15:01:12 Duration: 1s177ms
8 447ms 1s212ms 485ms 1,668 13m28s 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 #8
Day Hour Count Duration Avg duration Aug 02 00 7 3s189ms 455ms 01 1 451ms 451ms 02 6 2s698ms 449ms 04 3 1s352ms 450ms 07 4 1s806ms 451ms 08 6 2s706ms 451ms 09 19 8s744ms 460ms 10 17 7s760ms 456ms 11 127 1m 479ms 12 212 1m45s 499ms 13 212 1m43s 487ms 14 183 1m29s 491ms 15 166 1m20s 486ms 16 151 1m15s 498ms 17 182 1m28s 484ms 18 108 52s6ms 481ms 19 133 1m3s 477ms 20 96 44s999ms 468ms 21 13 5s862ms 450ms 22 15 6s830ms 455ms 23 7 3s192ms 456ms -
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 12:22:01 Duration: 1s212ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 16:17:30 Duration: 1s194ms
-
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.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-08-02 14:28:50 Duration: 1s147ms
9 345ms 1s286ms 365ms 5,151 31m20s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Aug 02 00 3 1s60ms 353ms 02 4 1s403ms 350ms 08 10 3s609ms 360ms 09 24 8s569ms 357ms 10 12 4s213ms 351ms 11 250 1m30s 361ms 12 519 3m10s 367ms 13 523 3m13s 369ms 14 679 4m10s 369ms 15 572 3m28s 365ms 16 659 4m 364ms 17 646 3m55s 365ms 18 522 3m10s 365ms 19 336 2m1s 362ms 20 119 42s634ms 358ms 21 265 1m33s 353ms 22 8 2s819ms 352ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 14:03:45 Duration: 1s286ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 13:26:58 Duration: 917ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-08-02 15:24:57 Duration: 810ms
10 306ms 515ms 323ms 981 5m17s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Aug 02 00 33 10s531ms 319ms 01 30 9s490ms 316ms 02 60 18s898ms 314ms 03 45 14s77ms 312ms 04 30 9s469ms 315ms 05 48 15s203ms 316ms 06 36 11s477ms 318ms 07 48 15s224ms 317ms 08 24 7s618ms 317ms 09 27 8s757ms 324ms 10 33 10s535ms 319ms 11 60 19s663ms 327ms 12 21 6s930ms 330ms 13 33 10s875ms 329ms 14 42 15s142ms 360ms 15 36 12s430ms 345ms 19 60 20s156ms 335ms 20 81 26s986ms 333ms 21 87 27s677ms 318ms 22 90 28s410ms 315ms 23 57 18s84ms 317ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 14:46:09 Duration: 515ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 14:28:46 Duration: 506ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-08-02 15:01:22 Duration: 501ms
11 274ms 1s921ms 309ms 5,150 26m36s 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 Aug 02 00 3 901ms 300ms 02 4 1s133ms 283ms 08 10 3s210ms 321ms 09 24 6s995ms 291ms 10 12 3s527ms 293ms 11 250 1m15s 301ms 12 519 2m43s 314ms 13 522 2m45s 316ms 14 679 3m36s 318ms 15 572 2m58s 312ms 16 659 3m22s 307ms 17 646 3m19s 308ms 18 522 2m40s 307ms 19 336 1m43s 307ms 20 119 35s313ms 296ms 21 265 1m17s 291ms 22 8 2s305ms 288ms -
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-08-02 14:09:21 Duration: 1s921ms
-
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-08-02 15:12:03 Duration: 1s87ms
-
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-08-02 13:53:47 Duration: 1s54ms
12 158ms 480ms 175ms 1,549 4m32s select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Aug 02 00 1 161ms 161ms 01 3 489ms 163ms 08 3 489ms 163ms 09 7 1s188ms 169ms 10 5 841ms 168ms 11 37 6s493ms 175ms 12 174 31s169ms 179ms 13 193 35s105ms 181ms 14 143 25s912ms 181ms 15 124 23s40ms 185ms 16 86 15s399ms 179ms 17 150 26s290ms 175ms 18 102 18s259ms 179ms 19 446 1m15s 168ms 20 41 6s973ms 170ms 21 34 5s624ms 165ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:33 Duration: 480ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11088%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11088%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11088%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11088%') OR unaccent (res_partner.display_name) ilike unaccent ('%11088%') OR unaccent (res_partner.ref) ilike unaccent ('%11088%') OR unaccent (res_partner.vat) ilike unaccent ('11088')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11088%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:27:32 Duration: 394ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%PENN M%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%PENN M%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%PENN M%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%PENN M%') OR unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') OR unaccent (res_partner.ref) ilike unaccent ('%PENN M%') OR unaccent (res_partner.vat) ilike unaccent ('PENNM')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%PENN M%') desc, unaccent (res_partner.display_name);
Date: 2024-08-02 15:04:53 Duration: 342ms
13 154ms 356ms 172ms 1,806 5m11s select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Aug 02 12 24 4s347ms 181ms 15 303 53s652ms 177ms 16 163 29s83ms 178ms 17 346 1m2s 179ms 18 338 58s958ms 174ms 20 307 50s38ms 162ms 21 325 53s177ms 163ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47978 and fd.product_id = 216556;
Date: 2024-08-02 18:11:25 Duration: 356ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47515 and fd.product_id = 190895;
Date: 2024-08-02 16:55:41 Duration: 315ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 47979 and fd.product_id = 219786;
Date: 2024-08-02 18:17:30 Duration: 304ms
14 120ms 1s790ms 170ms 82,343 3h53m41s 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 #14
Day Hour Count Duration Avg duration Aug 02 00 2,700 6m27s 143ms 01 2,292 5m33s 145ms 02 2,240 5m42s 152ms 03 2,211 5m28s 148ms 04 2,272 5m15s 138ms 05 2,466 5m50s 142ms 06 2,525 5m45s 136ms 07 2,434 6m1s 148ms 08 2,545 6m5s 143ms 09 2,532 6m25s 152ms 10 2,705 6m15s 138ms 11 3,769 9m37s 153ms 12 6,008 18m11s 181ms 13 6,313 18m58s 180ms 14 6,081 22m24s 221ms 15 5,363 19m11s 214ms 16 5,168 14m57s 173ms 17 4,819 14m53s 185ms 18 4,960 16m35s 200ms 19 4,728 13m50s 175ms 20 2,942 7m48s 159ms 21 1,928 4m46s 148ms 22 1,666 3m42s 133ms 23 1,676 3m49s 136ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s784ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-08-02 15:35:43') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_975"', '["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-08-02 15:36:35 Duration: 1s779ms
15 148ms 737ms 167ms 3,574 9m59s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Aug 02 00 1 159ms 159ms 02 4 754ms 188ms 08 28 4s519ms 161ms 09 29 4s698ms 162ms 10 10 1s641ms 164ms 11 105 17s793ms 169ms 12 415 1m10s 170ms 13 375 1m3s 170ms 14 521 1m27s 168ms 15 456 1m16s 167ms 16 328 54s799ms 167ms 17 460 1m17s 167ms 18 378 1m2s 165ms 19 240 40s707ms 169ms 20 104 16s990ms 163ms 21 104 16s305ms 156ms 22 16 2s592ms 162ms -
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 193565 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 15:10:48 Duration: 737ms
-
UPDATE product_warehouse_inventory SET qty_available = 66.0 WHERE product_id = 180273 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 472ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 178736 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-08-02 19:20:03 Duration: 395ms
16 157ms 539ms 167ms 1,355 3m46s update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Aug 02 00 4 642ms 160ms 08 3 501ms 167ms 09 4 655ms 163ms 10 13 2s99ms 161ms 11 77 13s11ms 168ms 12 132 22s23ms 166ms 13 120 20s461ms 170ms 14 181 30s497ms 168ms 15 127 21s581ms 169ms 16 423 1m10s 166ms 17 94 15s669ms 166ms 18 65 10s731ms 165ms 19 62 10s182ms 164ms 20 43 7s8ms 162ms 21 5 824ms 164ms 22 2 324ms 162ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) WHERE product_id = 268234 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-02 11:46:40 Duration: 539ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(3.0, 0) + COALESCE(1.0, 0) WHERE product_id = 203442 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-08-02 15:36:35 Duration: 523ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(5.0, 0) + COALESCE(1.0, 0) WHERE product_id = 207783 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 13:26:56 Duration: 251ms
17 147ms 790ms 165ms 7,202 19m55s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Aug 02 00 4 670ms 167ms 02 5 805ms 161ms 08 11 1s775ms 161ms 09 22 3s590ms 163ms 10 24 3s820ms 159ms 11 354 58s265ms 164ms 12 679 1m53s 167ms 13 716 2m 167ms 14 881 2m28s 168ms 15 819 2m15s 165ms 16 1,137 3m8s 165ms 17 839 2m19s 166ms 18 704 1m56s 165ms 19 457 1m16s 166ms 20 200 32s405ms 162ms 21 342 54s671ms 159ms 22 8 1s278ms 159ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 221337 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-08-02 14:30:09 Duration: 790ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 191089 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 16:55:41 Duration: 674ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 268598 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-08-02 17:14:11 Duration: 544ms
18 154ms 853ms 165ms 12,499 34m31s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Aug 02 00 3 581ms 193ms 02 6 955ms 159ms 08 29 4s634ms 159ms 09 41 6s600ms 160ms 10 37 6s9ms 162ms 11 335 54s907ms 163ms 12 918 2m34s 168ms 13 630 1m45s 167ms 14 1,284 3m34s 167ms 15 1,615 4m28s 166ms 16 1,292 3m33s 165ms 17 4,207 11m33s 164ms 18 1,255 3m27s 165ms 19 554 1m30s 164ms 20 284 46s785ms 164ms 21 9 1s479ms 164ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((6.0 - 6.0) + (0.0 - 0.0), 0) ELSE GREATEST ((6.0 - 6.0), 0) END where product_id = 237210 and warehouse_id = 45 and company_id = 1;
Date: 2024-08-02 17:52:05 Duration: 853ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 309.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (309.0 - 309.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 213496 and warehouse_id = 37 and company_id = 1;
Date: 2024-08-02 17:44:10 Duration: 774ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((298.0 - 298.0) + (1.0 - 1.0), 0) ELSE GREATEST ((298.0 - 298.0), 0) END where product_id = 199634 and warehouse_id = 42 and company_id = 1;
Date: 2024-08-02 12:47:26 Duration: 548ms
19 149ms 530ms 165ms 1,074 2m57s update product_warehouse_inventory set qty_available = ? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Aug 02 08 4 628ms 157ms 09 26 4s157ms 159ms 10 2 315ms 157ms 11 21 3s398ms 161ms 12 111 18s513ms 166ms 13 115 19s137ms 166ms 14 106 17s560ms 165ms 15 161 27s101ms 168ms 16 118 19s952ms 169ms 17 120 19s940ms 166ms 18 141 23s208ms 164ms 19 51 8s339ms 163ms 20 64 10s260ms 160ms 21 34 5s303ms 155ms -
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268547 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 15:27:33 Duration: 530ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268547 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 15:27:33 Duration: 286ms
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 268592 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-08-02 14:44:06 Duration: 247ms
20 146ms 361ms 165ms 1,036 2m51s update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Aug 02 11 21 3s477ms 165ms 12 42 6s961ms 165ms 13 97 16s631ms 171ms 14 109 18s672ms 171ms 15 114 18s935ms 166ms 16 210 34s847ms 165ms 17 44 7s118ms 161ms 18 118 20s450ms 173ms 19 34 5s681ms 167ms 20 14 2s339ms 167ms 21 229 35s505ms 155ms 22 4 660ms 165ms -
UPDATE product_warehouse_inventory SET qty_on_order = 4.0 WHERE product_id = 216345 AND warehouse_id = 42;
Date: 2024-08-02 18:50:20 Duration: 361ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 217656 AND warehouse_id = 42;
Date: 2024-08-02 18:52:56 Duration: 305ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 5.0 WHERE product_id = 209971 AND warehouse_id = 36;
Date: 2024-08-02 13:25:39 Duration: 288ms
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
- 172,413 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1669 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1,174 Max number of times the same event was reported
- 1,669 Total events found
Rank Times reported Error 1 1,174 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Aug 02 00 46 01 52 02 64 03 30 04 32 05 25 06 28 07 98 08 85 09 35 10 27 11 25 12 28 13 27 14 32 15 31 16 34 17 31 18 31 19 30 20 26 21 28 22 34 23 295 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-08-02 21:50:15
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-08-02 22:00:11
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=57 FOR UPDATE NOWAIT
Date: 2024-08-02 22:30:05
2 429 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Aug 02 00 1 07 2 08 2 09 2 10 6 11 23 12 59 13 56 14 48 15 45 16 51 17 35 18 43 19 38 20 18 - 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 "account_move" SET "message_main_attachment_id"=5604683,"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (1573891)
Date: 2024-08-02 13:54:03
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (80264, 8990)
Date: 2024-08-02 13:55:25
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5604689,"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (1573902)
Date: 2024-08-02 13:55:37
3 47 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Aug 02 12 10 13 13 14 3 15 2 16 2 17 5 18 6 19 5 20 1 - ERROR: process 931007 still waiting for ShareLock on transaction 292190308 after 1000.041 ms
- ERROR: process 1225664 still waiting for ShareLock on transaction 292198143 after 1000.051 ms
- ERROR: process 861492 still waiting for ShareLock on transaction 292152707 after 1000.062 ms
Detail: Process holding the lock: 1210600. Wait queue: 931007.
Context: while updating tuple (19488,15) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5604738,"write_uid"=1005,"write_date"=(now() at time zone 'UTC') WHERE id IN (1573935)Date: 2024-08-02 14:01:34
Detail: Process holding the lock: 931006. Wait queue: 1225664.
Context: while updating tuple (16813,35) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573790 AND sequence_prefix = (SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573790 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-08-02 14:18:29
Detail: Process holding the lock: 3695823. Wait queue: 861492.
Context: while updating tuple (24223,3) in relation "product_warehouse_inventory"
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=952,"write_date"=(now() at time zone 'UTC') WHERE id IN (19073, 19874, 45316, 17680, 18161, 45077, 18265, 26426, 45054, 27583)Date: 2024-08-02 12:16:52
4 7 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #4
Day Hour Count Aug 02 12 1 14 1 15 1 17 3 19 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 1210599 waits for ShareLock on transaction 292203526; blocked by process 700158. Process 700158 waits for ShareLock on transaction 292203487; blocked by process 1210599. Process 1210599: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (7494, 8878, 89711, 3539, 3542, 8951, 89882) Process 700158: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 221337 AND warehouse_id = 36 AND company_id = 1
Context: while updating tuple (229,12) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (7494, 8878, 89711, 3539, 3542, 8951, 89882)Date: 2024-08-02 14:30:09
Detail: Process 3674559 waits for ShareLock on transaction 292157128; blocked by process 923399. Process 923399 waits for ShareLock on transaction 292157129; blocked by process 3674559. Process 3674559: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(19.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 206036 AND warehouse_id = 43 AND company_id = 1 Process 923399: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=999,"write_date"=(now() at time zone 'UTC') WHERE id IN (35844, 35788, 35440, 336017, 36534, 35867, 332062, 122367)
Context: while updating tuple (26652,1) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(19.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 206036 AND warehouse_id = 43 AND company_id = 1Date: 2024-08-02 12:28:34
Detail: Process 1525609 waits for ShareLock on transaction 292299005; blocked by process 3676689. Process 3676689 waits for ShareLock on transaction 292298933; blocked by process 1525609. Process 1525609: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=1037,"write_date"=(now() at time zone 'UTC') WHERE id IN (32994, 299, 31899, 32907, 32922, 71771) Process 3676689: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(9.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225059 AND warehouse_id = 44 AND company_id = 1
Context: while updating tuple (19429,6) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-08-02',"write_uid"=1037,"write_date"=(now() at time zone 'UTC') WHERE id IN (32994, 299, 31899, 32907, 32922, 71771)Date: 2024-08-02 19:20:26
5 6 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Aug 02 14 1 19 5 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
- ERROR: duplicate key value violates unique constraint "product_template_cat_vendor_default_code_unique"
- ERROR: duplicate key value violates unique constraint "product_template_cat_vendor_default_code_unique"
Detail: Key (vehicle_unit_no, driver_id)=(854, 34094) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "name", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 978, (now() at time zone 'UTC'), 978, (now() at time zone 'UTC'), '2024-08-02', true, 105, 0.0, 0.0, NULL, 1, NULL, 5, 34094, '2024-08-02', NULL, NULL, 0, 0.0, 'LTL9801', NULL, 1032, 229, 22, NULL, 'C', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '854', '6EC52854') RETURNING idDate: 2024-08-02 14:35:11
Detail: Key (cat_vendor, default_code)=(Misc Stock, 10-36) already exists.
Statement: UPDATE "product_template" SET "can_image_1024_be_zoomed"=false,"cat_part_type"='All Parts',"cat_prod_type"='Parts',"cat_vendor"='Misc Stock',"has_configurable_attributes"=false,"inventory_vendor_short_name"='Misc Stock',"raise_core_warning"=true,"rating_last_value"=0.0,"write_uid"=952,"write_date"=(now() at time zone 'UTC') WHERE id IN (270361)Date: 2024-08-02 19:32:01
Detail: Key (cat_vendor, default_code)=(Misc Stock, 10-36) already exists.
Statement: UPDATE "product_template" SET "can_image_1024_be_zoomed"=false,"cat_part_type"='All Parts',"cat_prod_type"='Parts',"cat_vendor"='Misc Stock',"has_configurable_attributes"=false,"inventory_vendor_short_name"='Misc Stock',"raise_core_warning"=true,"rating_last_value"=0.0,"write_uid"=952,"write_date"=(now() at time zone 'UTC') WHERE id IN (270362)Date: 2024-08-02 19:32:20
6 2 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #6
Day Hour Count Aug 02 12 1 14 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (270340, null, dmpbrk-1202, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1022, 2024-08-02 14:42:33.879884, 1022, 2024-08-02 14:42:33.879884, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 487985, never, 0, , 38, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-08-02, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 1022, (now() at time zone 'UTC'), 1022, (now() at time zone 'UTC'), true, false, 0.0, 38, NULL, 1, '', 'no', '2024-08-02', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'dmpbrk-1202', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 487985, 1, 1) RETURNING idDate: 2024-08-02 14:42:33
Detail: Failing row contains (270335, null, axp4709, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 994, 2024-08-02 12:51:03.083066, 994, 2024-08-02 12:51:03.083066, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 487965, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-08-02, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 994, (now() at time zone 'UTC'), 994, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-08-02', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'axp4709', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 487965, 1, 1) RETURNING idDate: 2024-08-02 12:51:03
7 2 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #7
Day Hour Count Aug 02 12 1 13 1 - ERROR: process 929751 still waiting for ExclusiveLock on tuple (20082,12) of relation 42418 of database 65946 after 1000.042 ms
- ERROR: process 931007 still waiting for ExclusiveLock on tuple (17961,30) of relation 42418 of database 65946 after 1000.046 ms
Detail: Process holding the lock: 850969. Wait queue: 929751.
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573534 AND sequence_prefix = (SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1573534 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-08-02 12:25:19
Detail: Process holding the lock: 854074. Wait queue: 931007.
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1486303 AND sequence_prefix = (SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1486303 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-08-02 13:49:30
8 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #8
Day Hour Count Aug 02 15 1 - ERROR: syntax error at or near "pt" at character 1
Statement: pt.default_code, pt.name as product_name, svl.product_id, sum(svl.quantity) as valuation_quantity, sum(svl.value) as total_value from stock_valuation_layer as svl left join product_product as pp on svl.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id group by pt.default_code, pt.name, svl.product_id) To '/tmp/test.csv' With CSV DELIMITER ',' HEADER;
Date: 2024-08-02 15:39:42
9 1 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #9
Day Hour Count Aug 02 12 1 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM stock_move_line WHERE id IN (1019352)
Date: 2024-08-02 12:44:40