-
Global information
- Generated on Thu May 9 00:50:16 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 299,284 log entries in 14s
- Log start from 2024-05-08 00:00:02 to 2024-05-08 23:59:51
-
Overview
Global Stats
- 1,239 Number of unique normalized queries
- 102,707 Number of queries
- 11h43m15s Total query duration
- 2024-05-08 00:00:02 First query
- 2024-05-08 23:59:51 Last query
- 73 queries/s at 2024-05-08 14:50:31 Query peak
- 11h43m15s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 11h43m15s Execute total duration
- 1,700 Number of events
- 12 Number of unique normalized events
- 884 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
- 102,707 Average queries per session
- 11h43m15s 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
- 73 queries/s Query Peak
- 2024-05-08 14:50:31 Date
SELECT Traffic
Key values
- 73 queries/s Query Peak
- 2024-05-08 14:50:31 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2024-05-08 14:46:10 Date
Queries duration
Key values
- 11h43m15s 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) May 08 00 459 120ms 1s5ms 271ms 2s551ms 21s977ms 27s803ms 01 582 120ms 905ms 165ms 2s680ms 2s933ms 3s336ms 02 813 120ms 895ms 228ms 5s273ms 14s702ms 20s826ms 03 864 120ms 780ms 220ms 4s450ms 14s416ms 16s216ms 04 917 120ms 1s218ms 281ms 14s233ms 20s692ms 25s339ms 05 898 120ms 1s99ms 250ms 5s799ms 20s963ms 35s752ms 06 508 120ms 1s7ms 243ms 3s746ms 14s209ms 25s498ms 07 663 120ms 1s946ms 275ms 4s724ms 13s861ms 1m4s 08 1,828 120ms 33s817ms 295ms 37s755ms 1m4s 1m9s 09 622 120ms 3m59s 1s353ms 53s606ms 1m45s 4m22s 10 767 120ms 15s545ms 452ms 11s659ms 33s79ms 2m1s 11 4,302 120ms 14s283ms 375ms 49s62ms 56s778ms 1m47s 12 12,120 120ms 21s814ms 413ms 2m11s 2m58s 4m30s 13 16,480 120ms 12s671ms 386ms 2m46s 3m37s 7m29s 14 14,016 120ms 2m21s 506ms 4m2s 6m40s 7m39s 15 13,152 120ms 2m1s 493ms 3m29s 4m41s 10m32s 16 6,284 120ms 10s494ms 336ms 1m2s 1m53s 2m56s 17 5,946 120ms 16s239ms 366ms 1m19s 1m28s 1m59s 18 7,926 120ms 12s827ms 402ms 1m33s 2m9s 2m46s 19 8,159 120ms 17s248ms 359ms 1m28s 2m3s 2m42s 20 2,988 120ms 8s340ms 417ms 53s682ms 1m28s 2m28s 21 961 120ms 5s278ms 369ms 22s317ms 23s930ms 32s323ms 22 646 120ms 1s143ms 264ms 12s966ms 17s857ms 20s865ms 23 806 120ms 1m4s 374ms 19s696ms 25s12ms 1m13s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 08 00 459 0 271ms 1s318ms 2s551ms 23s687ms 01 582 0 165ms 2s334ms 2s680ms 3s234ms 02 813 0 228ms 2s756ms 5s273ms 16s687ms 03 864 0 220ms 3s642ms 4s450ms 15s107ms 04 913 0 281ms 3s388ms 14s233ms 24s113ms 05 898 0 250ms 3s623ms 5s799ms 20s977ms 06 508 0 243ms 1s428ms 3s746ms 17s629ms 07 661 0 271ms 2s111ms 4s724ms 16s484ms 08 1,825 0 293ms 11s376ms 37s755ms 1m8s 09 517 105 1s353ms 3s413ms 52s248ms 2m4s 10 636 0 424ms 2s832ms 6s39ms 37s406ms 11 3,540 0 339ms 29s898ms 39s732ms 55s435ms 12 9,618 0 368ms 1m21s 1m37s 2m58s 13 13,285 0 332ms 1m42s 2m8s 3m55s 14 10,286 0 325ms 1m13s 1m44s 2m11s 15 9,971 0 405ms 1m28s 2m38s 4m23s 16 5,069 0 293ms 30s983ms 38s785ms 1m46s 17 4,669 0 331ms 36s969ms 1m1s 1m17s 18 6,420 0 367ms 54s590ms 1m24s 2m 19 6,601 0 312ms 48s961ms 1m7s 1m44s 20 2,387 0 387ms 20s291ms 42s171ms 1m23s 21 894 0 360ms 8s769ms 19s767ms 26s816ms 22 646 0 264ms 2s247ms 12s966ms 18s930ms 23 782 0 223ms 2s976ms 6s878ms 21s362ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 08 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 346ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 3 0 0 1s147ms 0ms 0ms 642ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 131 0 0 588ms 0ms 0ms 9s702ms 11 23 731 7 0 543ms 7s474ms 12s31ms 19s918ms 12 129 2,309 58 0 588ms 26s763ms 35s352ms 52s833ms 13 98 2,968 113 0 616ms 33s357ms 43s390ms 59s559ms 14 115 3,516 92 0 1s6ms 1m3s 1m34s 3m30s 15 160 2,939 65 0 732ms 37s161ms 1m5s 1m51s 16 31 1,151 28 0 513ms 9s37ms 15s495ms 31s654ms 17 30 1,175 60 0 493ms 10s527ms 17s33ms 26s283ms 18 67 1,401 30 0 551ms 10s773ms 17s606ms 47s595ms 19 108 1,400 45 0 560ms 12s183ms 20s287ms 33s600ms 20 19 573 8 0 536ms 3s625ms 11s511ms 23s227ms 21 0 66 1 0 485ms 0ms 0ms 5s278ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 1 21 0 5s711ms 0ms 0ms 17s370ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare May 08 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 May 08 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 May 08 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 May 08 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 May 08 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) May 08 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 May 08 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 May 08 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs May 08 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
- 90 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 37 38m49s 1s935ms 2m41s 1m2s insert into "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") values (nextval(?), null, ?, ?, ?) returning id;-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:26
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:51:04
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:44
2 6 3m47s 1m39s 1m39s 37s966ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);
Date: 2024-05-08 14:51:04
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (338555);
Date: 2024-05-08 14:48:06
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (317347);
Date: 2024-05-08 14:48:47
3 1 1m59s 1m59s 1m59s 1m59s with dupes as ( select min(id) as to_update_quant_id, (array_agg(id order by id))[? :array_length(array_agg(id), ?)] as to_delete_quant_ids, sum(reserved_quantity) as reserved_quantity, sum(quantity) as quantity from stock_quant group by product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options having count(id) > ? ), _up as ( update stock_quant q set quantity = d.quantity, reserved_quantity = d.reserved_quantity from dupes d where d.to_update_quant_id = q.id) delete from stock_quant where id in ( select unnest(to_delete_quant_ids) from dupes);-
WITH dupes AS ( SELECT min(id) as to_update_quant_id, (array_agg(id ORDER BY id))[2:array_length(array_agg(id), 1)] as to_delete_quant_ids, SUM(reserved_quantity) as reserved_quantity, SUM(quantity) as quantity FROM stock_quant GROUP BY product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options HAVING count(id) > 1 ), _up AS ( UPDATE stock_quant q SET quantity = d.quantity, reserved_quantity = d.reserved_quantity FROM dupes d WHERE d.to_update_quant_id = q.id) DELETE FROM stock_quant WHERE id in ( SELECT unnest(to_delete_quant_ids) from dupes);
Date: 2024-05-08 15:01:49
-
WITH dupes AS ( SELECT min(id) as to_update_quant_id, (array_agg(id ORDER BY id))[2:array_length(array_agg(id), 1)] as to_delete_quant_ids, SUM(reserved_quantity) as reserved_quantity, SUM(quantity) as quantity FROM stock_quant GROUP BY product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options HAVING count(id) > 1 ), _up AS ( UPDATE stock_quant q SET quantity = d.quantity, reserved_quantity = d.reserved_quantity FROM dupes d WHERE d.to_update_quant_id = q.id) DELETE FROM stock_quant WHERE id in ( SELECT unnest(to_delete_quant_ids) from dupes);
Date: 2024-05-08 14:21:54
-
WITH dupes AS ( SELECT min(id) as to_update_quant_id, (array_agg(id ORDER BY id))[2:array_length(array_agg(id), 1)] as to_delete_quant_ids, SUM(reserved_quantity) as reserved_quantity, SUM(quantity) as quantity FROM stock_quant GROUP BY product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options HAVING count(id) > 1 ), _up AS ( UPDATE stock_quant q SET quantity = d.quantity, reserved_quantity = d.reserved_quantity FROM dupes d WHERE d.to_update_quant_id = q.id) DELETE FROM stock_quant WHERE id in ( SELECT unnest(to_delete_quant_ids) from dupes);
Date: 2024-05-08 12:21:42
4 1 1m19s 1m19s 1m19s 1m19s update "bus_presence" set "last_poll" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-05-08 05:38:01' WHERE id IN (87);
Date: 2024-05-08 05:39:21
5 25 1m3s 1s240ms 7s663ms 2s553ms 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 != 1320070 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 != 1320070 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-05-08 13:10:44
6 8 12s989ms 1s37ms 1s945ms 1s623ms select res_company_users_rel.user_id, res_company_users_rel.cid from res_company_users_rel, "res_company" where ? = ? and res_company_users_rel.user_id in (...) and res_company_users_rel.cid = res_company.id order by "res_company"."sequence", "res_company"."name" offset ?;-
SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1 = 1 AND res_company_users_rel.user_id IN (4) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence", "res_company"."name" OFFSET 0;
Date: 2024-05-08 07:59:35
-
SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1 = 1 AND res_company_users_rel.user_id IN (4) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence", "res_company"."name" OFFSET 0;
Date: 2024-05-08 07:59:32
-
SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1 = 1 AND res_company_users_rel.user_id IN (1037) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence", "res_company"."name" OFFSET 0;
Date: 2024-05-08 07:59:32
7 3 7s721ms 1s682ms 3s677ms 2s573ms 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" = 5403768, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1395821);
Date: 2024-05-08 13:14:44
8 1 7s319ms 7s319ms 7s319ms 7s319ms update "stock_move" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_move" SET "write_uid" = 1012, "write_date" = (now() at time zone 'UTC') WHERE id IN (940833, 940835, 940836, 940837, 940838, 940839, 940840, 940841, 940842, 940843, 940844, 940845);
Date: 2024-05-08 19:43:34
-
UPDATE "stock_move" SET "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933900, 933902, 933904, 933906, 933908, 933910);
Date: 2024-05-08 14:43:06
-
UPDATE "stock_move" SET "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933926, 933928, 933930, 933933, 933935, 933937);
Date: 2024-05-08 14:57:30
9 1 4s520ms 4s520ms 4s520ms 4s520ms update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_move" SET "date" = '2024-05-08 15:22:59', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933980, 933981, 933982, 933983, 933984, 933985, 933986, 933987, 933988, 933989, 933990, 933991, 933992, 933993, 933994, 933995, 933996, 933997, 933998, 933999, 934000);
Date: 2024-05-08 15:23:15
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:05:02', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933810, 933811, 933812, 933813, 933814, 933815, 933816, 933817, 933818, 933819, 933820, 933821, 933822, 933823, 933824, 933825, 933826, 933827, 933828);
Date: 2024-05-08 15:05:16
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:13:22', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (934054, 934055, 934056, 934057, 934058, 934059, 934060, 934061, 934062, 934063, 934064, 934065, 934066, 934067, 934068, 934069, 934070);
Date: 2024-05-08 15:13:35
10 1 4s173ms 4s173ms 4s173ms 4s173ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '6cf11e16-d68b-4cb0-bfb9-e3e95b8f2120', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1396206);
Date: 2024-05-08 13:45:35
11 1 3s947ms 3s947ms 3s947ms 3s947ms update "stock_move" set "branch_id" = ?, "picking_id" = ?, "related_core_purchase_line_id" = ?, "related_core_repair_line_id" = ?, "related_core_sale_line_id" = ?, "scrapped" = false, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_move" SET "branch_id" = 40, "picking_id" = 407925, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (940897, 940898, 940900, 940902, 940904, 940905, 940907);
Date: 2024-05-08 19:59:09
-
UPDATE "stock_move" SET "branch_id" = 45, "picking_id" = 407124, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (939400, 939401, 939402, 939403, 939404, 939405, 939406, 939407, 939408, 939409);
Date: 2024-05-08 13:26:21
-
UPDATE "stock_move" SET "branch_id" = 50, "picking_id" = 407541, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (940193, 940194, 940195, 940196, 940197, 940198, 940199, 940200, 940201, 940202, 940203);
Date: 2024-05-08 16:07:19
12 1 1s793ms 1s793ms 1s793ms 1s793ms update account_bank_statement_line set is_processed = false where statement_id = ?;-
UPDATE account_bank_statement_line SET is_processed = False where statement_id = 170;
Date: 2024-05-08 13:43:11
13 1 1s744ms 1s744ms 1s744ms 1s744ms alter table "res_company" alter column "security_lead" drop not null;-
ALTER TABLE "res_company" ALTER COLUMN "security_lead" DROP NOT NULL;
Date: 2024-05-08 07:59:32
-
ALTER TABLE "res_company" ALTER COLUMN "security_lead" DROP NOT NULL;
Date: 2024-05-08 07:59:32
14 1 1s259ms 1s259ms 1s259ms 1s259ms alter table "res_company" alter column "manufacturing_lead" set not null;-
ALTER TABLE "res_company" ALTER COLUMN "manufacturing_lead" SET NOT NULL;
Date: 2024-05-08 07:59:34
-
ALTER TABLE "res_company" ALTER COLUMN "manufacturing_lead" SET NOT NULL;
Date: 2024-05-08 07:59:34
15 1 1s222ms 1s222ms 1s222ms 1s222ms select "res_company".id from "res_company" where "res_company".id in (...);-
SELECT "res_company".id FROM "res_company" WHERE "res_company".id IN (1);
Date: 2024-05-08 07:59:32
-
SELECT "res_company".id FROM "res_company" WHERE "res_company".id IN (1);
Date: 2024-05-08 07:59:32
-
SELECT "res_company".id FROM "res_company" WHERE "res_company".id IN (1);
Date: 2024-05-08 07:59:35
16 1 1s192ms 1s192ms 1s192ms 1s192ms insert into "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), ?, ?, ?, ?, ?, true, ?, ?, ?, false, false, false, false, null, ?, null, null, ?, ?) returning id;-
INSERT INTO "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") VALUES (nextval('sale_advance_payment_inv_id_seq'), 994, (now() at time zone 'UTC'), 994, (now() at time zone 'UTC'), 'delivered', '0.00', '0.00', 1, 2, true, 1417, '69.89', '0.00', false, false, false, false, NULL, 46053, NULL, NULL, 94, 171436) RETURNING id;
Date: 2024-05-08 16:04:24
Queries that waited the most
Rank Wait time Query 1 2m41s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:08:29 ]
2 2m40s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:08:29 ]
3 2m1s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:01:49 ]
4 2m INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:03:50 ]
5 1m59s WITH dupes AS ( SELECT min(id) as to_update_quant_id, (array_agg(id ORDER BY id))[2:array_length(array_agg(id), 1)] as to_delete_quant_ids, SUM(reserved_quantity) as reserved_quantity, SUM(quantity) as quantity FROM stock_quant GROUP BY product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options HAVING count(id) > 1 ), _up AS ( UPDATE stock_quant q SET quantity = d.quantity, reserved_quantity = d.reserved_quantity FROM dupes d WHERE d.to_update_quant_id = q.id) DELETE FROM stock_quant WHERE id in ( SELECT unnest(to_delete_quant_ids) from dupes);[ Date: 2024-05-08 15:01:49 ]
6 1m59s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:51:04 ]
7 1m59s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:51:04 ]
8 1m57s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:05:48 ]
9 1m56s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:54:00 ]
10 1m55s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:46:26 ]
11 1m55s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:05:48 ]
12 1m54s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:46:26 ]
13 1m53s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:44:31 ]
14 1m52s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:59:46 ]
15 1m47s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:03:50 ]
16 1m39s UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);[ Date: 2024-05-08 14:51:04 ]
17 1m19s UPDATE "bus_presence" SET "last_poll" = '2024-05-08 05:38:01' WHERE id IN (87);[ Date: 2024-05-08 05:39:21 ]
18 1m7s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:42:37 ]
19 59s83ms INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:48:06 ]
20 59s38ms INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:48:06 ]
-
Queries
Queries by type
Key values
- 82,844 Total read queries
- 19,863 Total write queries
Queries by database
Key values
- unknown Main database
- 102,707 Requests
- 11h43m15s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 102,779 Requests
User Request type Count Duration unknown Total 102,779 11h43m26s copy to 105 12m19s cte 77 2m19s ddl 2 3s5ms delete 528 11m16s insert 780 32m10s select 82,915 7h45m10s tcl 3 1s413ms update 18,369 3h6s Duration by user
Key values
- 11h43m26s (unknown) Main time consuming user
User Request type Count Duration unknown Total 102,779 11h43m26s copy to 105 12m19s cte 77 2m19s ddl 2 3s5ms delete 528 11m16s insert 780 32m10s select 82,915 7h45m10s tcl 3 1s413ms update 18,369 3h6s Queries by host
Key values
- unknown Main host
- 102,779 Requests
- 11h43m26s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 102,707 Requests
- 11h43m15s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-05-08 23:20:44 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 79,847 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m59s 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-05-08 09:09:36 ]
2 2m21s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:46:26 ]
3 2m15s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:51:04 ]
4 2m11s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:46:44 ]
5 2m1s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:01:49 ]
6 2m1s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:51:05 ]
7 2m WITH dupes AS ( SELECT min(id) as to_update_quant_id, (array_agg(id ORDER BY id))[2:array_length(array_agg(id), 1)] as to_delete_quant_ids, SUM(reserved_quantity) as reserved_quantity, SUM(quantity) as quantity FROM stock_quant GROUP BY product_id, company_id, location_id, lot_id, package_id, owner_id, in_date, move_options HAVING count(id) > 1 ), _up AS ( UPDATE stock_quant q SET quantity = d.quantity, reserved_quantity = d.reserved_quantity FROM dupes d WHERE d.to_update_quant_id = q.id) DELETE FROM stock_quant WHERE id in ( SELECT unnest(to_delete_quant_ids) from dupes);[ Date: 2024-05-08 15:01:49 ]
8 1m57s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:54:00 ]
9 1m55s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:05:48 ]
10 1m54s 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-05-08 09:03:42 ]
11 1m53s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:44:31 ]
12 1m52s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:59:46 ]
13 1m47s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 15:03:50 ]
14 1m43s 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-05-08 09:05:36 ]
15 1m40s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:48:46 ]
16 1m39s UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);[ Date: 2024-05-08 14:51:04 ]
17 1m7s INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:42:37 ]
18 1m4s DELETE FROM account_move_line WHERE id IN (4818122, 4818123, 4818124, 4818125, 4818126, 4818127, 4818128, 4818129, 4818130, 4818131, 4818132, 4818133, 4818134, 4818135, 4818136, 4818137, 4818138, 4818139, 4818140, 4818141, 4818142, 4818143, 4818144, 4818145, 4818146, 4818147, 4818148, 4818149, 4818150, 4818151, 4818152, 4818153, 4818154, 4818155, 4818156, 4892856, 4892857);[ Date: 2024-05-08 23:25:38 ]
19 59s38ms INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:48:06 ]
20 56s797ms INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;[ Date: 2024-05-08 14:52:02 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h2m34s 34,397 120ms 3s290ms 318ms 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 May 08 00 173 1m19s 458ms 01 189 23s924ms 126ms 02 254 1m13s 288ms 03 301 1m18s 262ms 04 319 2m12s 416ms 05 287 1m38s 342ms 06 212 1m16s 360ms 07 241 1m14s 308ms 08 726 1m50s 152ms 09 260 1m6s 255ms 10 284 3m8s 662ms 11 1,180 4m2s 205ms 12 3,887 20m22s 314ms 13 4,823 21m9s 263ms 14 4,418 23m24s 317ms 15 4,226 28m56s 411ms 16 2,284 9m52s 259ms 17 2,331 13m5s 336ms 18 2,980 18m36s 374ms 19 2,916 14m13s 292ms 20 1,001 6m28s 387ms 21 409 2m10s 318ms 22 324 1m37s 300ms 23 372 1m53s 304ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s290ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s204ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19575]', '["pointspring_master","mail.channel",56]', '["pointspring_master","mail.channel",57]', '["pointspring_master","mail.channel",58]', '["pointspring_master","mail.channel",65]', '["pointspring_master","mail.channel",504]', '["pointspring_master","mail.channel",605]', '["pointspring_master","res.partner",19575]', '["pointspring_master","ir.needaction",19575]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s202ms
2 46m9s 3,702 634ms 4s1ms 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" = ? 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 May 08 10 11 7s273ms 661ms 11 233 2m43s 703ms 12 491 6m10s 754ms 13 454 6m2s 798ms 14 467 5m58s 767ms 15 674 8m40s 772ms 16 304 3m43s 733ms 17 177 2m3s 698ms 18 422 5m12s 740ms 19 239 2m51s 716ms 20 208 2m22s 682ms 21 22 14s785ms 672ms -
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 ('%%xa%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%xa-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%xa-%'))) 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-05-08 15:01:34 Duration: 4s1ms
-
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 ('%%sae5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sae5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sae5%'))) 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-05-08 15:03:26 Duration: 3s602ms
-
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 ('%%l54%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%l54%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%l54%'))) 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-05-08 18:16:23 Duration: 2s348ms
3 28m44s 23 205ms 2m21s 1m14s insert into "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") values (nextval(?), null, ?, ?, ?) returning id;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 08 14 19 23m 1m12s 15 4 5m44s 1m26s -
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:26 Duration: 2m21s
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:51:04 Duration: 2m15s
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:44 Duration: 2m11s
4 23m26s 3,179 390ms 3s281ms 442ms 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 #4
Day Hour Count Duration Avg duration May 08 00 5 1s977ms 395ms 06 5 2s105ms 421ms 07 92 39s497ms 429ms 08 720 5m14s 436ms 10 10 4s23ms 402ms 11 124 50s789ms 409ms 12 318 2m21s 443ms 13 387 3m 466ms 14 361 2m42s 449ms 15 293 2m19s 477ms 16 135 55s687ms 412ms 17 189 1m20s 424ms 18 228 1m39s 438ms 19 225 1m38s 436ms 20 78 32s774ms 420ms 21 9 3s577ms 397ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s281ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-91493a3/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s179ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 19:41:22 Duration: 2s72ms
5 18m37s 930 312ms 11s206ms 1s201ms update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 08 10 1 471ms 471ms 11 34 20s530ms 603ms 12 215 2m46s 776ms 13 205 2m32s 746ms 14 276 8m27s 1s838ms 15 99 3m10s 1s927ms 16 11 7s373ms 670ms 17 32 30s712ms 959ms 18 25 20s179ms 807ms 19 10 7s8ms 700ms 20 22 13s353ms 606ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 15:01:53', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 15:02:30 Duration: 11s206ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:52:06', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:52:42 Duration: 10s667ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:56:02', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:56:36 Duration: 10s374ms
6 13m56s 5,760 134ms 933ms 145ms 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 #6
Day Hour Count Duration Avg duration May 08 00 240 33s91ms 137ms 01 240 33s158ms 138ms 02 240 33s216ms 138ms 03 240 33s290ms 138ms 04 240 33s146ms 138ms 05 240 33s374ms 139ms 06 240 33s406ms 139ms 07 240 33s297ms 138ms 08 240 33s943ms 141ms 09 240 33s352ms 138ms 10 240 33s236ms 138ms 11 240 34s488ms 143ms 12 240 37s734ms 157ms 13 240 40s414ms 168ms 14 240 39s120ms 163ms 15 240 37s774ms 157ms 16 240 35s439ms 147ms 17 240 35s776ms 149ms 18 240 36s229ms 150ms 19 240 38s230ms 159ms 20 240 34s123ms 142ms 21 240 33s506ms 139ms 22 240 33s229ms 138ms 23 240 33s439ms 139ms -
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 ('information_schema.constraint_column_usage', 'information_schema.domains', 'information_schema.user_defined_types', 'information_schema.table_privileges', 'information_schema.user_mapping_options', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_server_options', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.user_mappings', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.role_column_grants', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.check_constraint_routine_usage', 'information_schema.parameters', 'information_schema.element_types', 'information_schema.triggered_update_columns', 'information_schema.role_udt_grants', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.view_routine_usage', 'information_schema.sequences', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.enabled_roles', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.foreign_table_options', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.view_column_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.usage_privileges', 'public.pg_stat_statements', 'public.pg_stat_statements_info', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_group', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_language', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_constraint', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_views', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_description', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_proc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication', 'pg_catalog.pg_tables', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_replication_slots');
Date: 2024-05-08 19:33:51 Duration: 933ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_roles', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_operator', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_sequence', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_index', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_locks', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_settings', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_type', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_namespace', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_constraint', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_replication_slots', 'information_schema.collations', 'information_schema.enabled_roles', 'information_schema.foreign_servers', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.sql_sizing', 'information_schema.foreign_tables', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.data_type_privileges', 'information_schema.sql_features', 'information_schema.udt_privileges', 'information_schema.routines', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.triggered_update_columns', 'information_schema.check_constraint_routine_usage', 'information_schema.domain_udt_usage', 'information_schema.schemata', 'information_schema.collation_character_set_applicability', 'information_schema.routine_privileges', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.routine_table_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.role_column_grants', 'information_schema.constraint_table_usage', 'information_schema.domain_constraints', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.key_column_usage', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.triggers', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.user_defined_types', 'information_schema.foreign_table_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-08 19:16:06 Duration: 910ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_inherits', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_conversion', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_subscription', 'pg_catalog.pg_operator', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_group', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_proc', 'pg_catalog.pg_extension', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequences', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_matviews', 'pg_catalog.pg_policies', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_constraint', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_amproc', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_rules', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_cast', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_indexes', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_privileges', 'information_schema.referential_constraints', 'information_schema.foreign_tables', 'information_schema.attributes', 'information_schema.role_routine_grants', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.schemata', 'information_schema.check_constraints', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.view_routine_usage', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.role_udt_grants', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.domains', 'information_schema.tables', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.sql_sizing', 'information_schema.triggers', 'information_schema.data_type_privileges', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.user_mapping_options', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.udt_privileges', 'information_schema.column_options', 'information_schema.user_defined_types', 'information_schema.column_privileges', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-08 17:03:21 Duration: 892ms
7 12m52s 841 812ms 2s904ms 918ms 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 #7
Day Hour Count Duration Avg duration May 08 10 3 2s617ms 872ms 11 18 15s592ms 866ms 12 117 1m49s 935ms 13 104 1m41s 975ms 14 144 2m13s 928ms 15 81 1m15s 932ms 16 36 32s522ms 903ms 17 109 1m35s 877ms 18 76 1m9s 912ms 19 107 1m37s 906ms 20 44 37s641ms 855ms 21 2 1s688ms 844ms -
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 ('%60256R%')) 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 ('%60256R%'))) 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 ('%60256R%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%60256R%')))))) 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-05-08 15:03:27 Duration: 2s904ms
-
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 ('%1040-860184%')) 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 ('%1040-860184%'))) 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 ('%1040-860184%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1040-860184%')))))) 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-05-08 12:04:55 Duration: 2s253ms
-
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 ('%610-0024%')) 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 ('%610-0024%'))) 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 ('%610-0024%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%610-0024%')))))) 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-05-08 14:05:24 Duration: 2s83ms
8 10m48s 1,277 156ms 2s849ms 508ms update "stock_quant" set "quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 08 10 6 1s274ms 212ms 11 40 16s107ms 402ms 12 259 2m4s 479ms 13 285 2m8s 450ms 14 251 2m16s 545ms 15 182 1m24s 465ms 16 48 32s60ms 667ms 17 44 22s765ms 517ms 18 50 32s160ms 643ms 19 89 1m 681ms 20 23 9s758ms 424ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (476122, 476900, 1638, 476781, 476783, 470746);
Date: 2024-05-08 16:56:08 Duration: 2s849ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (398616, 312318);
Date: 2024-05-08 19:37:04 Duration: 1s992ms
-
UPDATE "stock_quant" SET "quantity" = 2.0, "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (453536, 381278);
Date: 2024-05-08 19:32:44 Duration: 1s924ms
9 10m42s 826 645ms 3s884ms 777ms 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"."type" in (...))) and ("product_product__product_tmpl_id"."company_id" is null or ("product_product__product_tmpl_id"."company_id" = ?))) 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 May 08 11 134 1m32s 689ms 12 342 4m39s 816ms 13 348 4m28s 772ms 16 2 1s841ms 920ms -
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 ('%%a4709e2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s884ms
-
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 ('%%a4709e2s%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2s%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2s%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s751ms
-
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 ('%%a4709e2sx%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2sx%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2sx%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s451ms
10 10m40s 2,268 148ms 1m39s 282ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 08 10 1 158ms 158ms 11 59 10s318ms 174ms 12 179 33s477ms 187ms 13 212 42s158ms 198ms 14 892 6m23s 429ms 15 514 1m39s 192ms 16 87 14s912ms 171ms 17 73 12s211ms 167ms 18 99 18s55ms 182ms 19 113 20s213ms 178ms 20 32 5s331ms 166ms 21 7 1s119ms 159ms -
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);
Date: 2024-05-08 14:51:04 Duration: 1m39s
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (338555);
Date: 2024-05-08 14:48:06 Duration: 54s789ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (317347);
Date: 2024-05-08 14:48:47 Duration: 36s587ms
11 10m36s 592 175ms 8s254ms 1s75ms update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 08 10 4 3s837ms 959ms 11 18 18s816ms 1s45ms 12 84 1m33s 1s109ms 13 133 2m16s 1s28ms 14 44 45s182ms 1s26ms 15 47 55s12ms 1s170ms 16 35 35s185ms 1s5ms 17 19 18s662ms 982ms 18 71 1m17s 1s89ms 19 112 2m8s 1s143ms 20 19 19s719ms 1s37ms 21 6 4s685ms 780ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 12:55:02', "is_done" = true, "state" = 'done', "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (932940, 932941, 932943, 932944, 932954, 932955);
Date: 2024-05-08 12:55:16 Duration: 8s254ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "date" = '2024-05-08 15:25:43', "is_done" = true, "state" = 'done', "write_uid" = 1010, "write_date" = (now() at time zone 'UTC') WHERE id IN (939885, 939886, 939887, 939888, 939889, 939890);
Date: 2024-05-08 15:25:55 Duration: 6s867ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 19:32:20', "is_done" = true, "state" = 'done', "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (932579, 932583, 932589, 932590, 932594);
Date: 2024-05-08 19:32:31 Duration: 6s390ms
12 10m33s 868 635ms 2s144ms 730ms 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 #12
Day Hour Count Duration Avg duration May 08 11 10 7s182ms 718ms 12 51 37s256ms 730ms 13 140 1m46s 764ms 14 109 1m20s 741ms 15 159 2m 757ms 16 50 34s943ms 698ms 17 43 29s687ms 690ms 18 108 1m14s 693ms 19 158 1m54s 725ms 20 40 27s81ms 677ms -
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 ('%%320150%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150%'))) 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-05-08 19:05:42 Duration: 2s144ms
-
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 ('%%320150U%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150U%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150U%'))) 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-05-08 19:05:42 Duration: 1s793ms
-
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 ('%%MPB75607%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MPB75607%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MPB75607%'))) 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-05-08 15:25:52 Duration: 1s371ms
13 10m25s 946 161ms 6s644ms 661ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 08 10 1 165ms 165ms 11 62 35s779ms 577ms 12 204 3m5s 910ms 13 171 2m4s 729ms 14 105 1m1s 584ms 15 107 1m3s 588ms 16 55 27s826ms 505ms 17 49 19s839ms 404ms 18 88 39s868ms 453ms 19 88 57s208ms 650ms 20 13 8s500ms 653ms 21 3 1s140ms 380ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (938771, 938772, 938773, 938774, 938775, 938776, 938777, 938778, 938779, 938780, 938781, 938783);
Date: 2024-05-08 12:18:33 Duration: 6s644ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (939670, 939672, 939673, 939674, 939675, 939676, 939677, 939678);
Date: 2024-05-08 14:13:54 Duration: 6s580ms
-
UPDATE "stock_move" SET "state" = 'waiting', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (938953, 938954, 938955, 938956, 938957);
Date: 2024-05-08 12:32:11 Duration: 6s473ms
14 10m1s 955 161ms 7s956ms 629ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 08 10 19 13s958ms 734ms 11 25 14s749ms 589ms 12 96 1m2s 652ms 13 208 2m7s 611ms 14 163 1m44s 640ms 15 116 1m17s 667ms 16 67 41s562ms 620ms 17 92 57s51ms 620ms 18 72 41s697ms 579ms 19 63 38s717ms 614ms 20 28 19s183ms 685ms 21 6 2s784ms 464ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (473060, 473061, 473063, 474888, 474889, 474474, 471499, 471500, 471501, 471502, 471503, 474898, 476886, 460343);
Date: 2024-05-08 17:06:14 Duration: 7s956ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (475553, 475555, 475547, 475549, 475550, 475551);
Date: 2024-05-08 13:11:56 Duration: 3s675ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (473840, 58677, 473755, 305133);
Date: 2024-05-08 14:15:52 Duration: 3s414ms
15 9m38s 927 315ms 1s223ms 623ms select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 08 11 8 2s756ms 344ms 12 241 1m58s 493ms 13 678 7m36s 673ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:10:13 Duration: 1s223ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s120ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s88ms
16 9m22s 3,020 157ms 1s242ms 186ms 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 #16
Day Hour Count Duration Avg duration May 08 12 29 5s534ms 190ms 13 82 15s615ms 190ms 14 738 2m19s 189ms 15 749 2m25s 194ms 16 623 1m54s 183ms 17 240 41s311ms 172ms 18 239 42s799ms 179ms 19 320 57s747ms 180ms -
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 = 41566 and fd.product_id = 198811;
Date: 2024-05-08 15:01:33 Duration: 1s242ms
-
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 = 41566 and fd.product_id = 197725;
Date: 2024-05-08 15:01:32 Duration: 987ms
-
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 = 41361 and fd.product_id = 194705;
Date: 2024-05-08 16:09:52 Duration: 954ms
17 9m 3,899 120ms 640ms 138ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where (("product_warehouse_inventory"."warehouse_id" = ?) and ("product_warehouse_inventory"."product_id" = ?)) order by "product_warehouse_inventory"."warehouse_name" limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 08 11 97 12s863ms 132ms 12 633 1m29s 141ms 13 1,675 3m55s 140ms 14 269 36s811ms 136ms 15 208 29s649ms 142ms 16 103 13s525ms 131ms 17 113 14s726ms 130ms 18 302 40s915ms 135ms 19 434 59s53ms 136ms 20 65 8s559ms 131ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 41) AND ("product_warehouse_inventory"."product_id" = 209826)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 15:50:33 Duration: 640ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 265013)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 12:49:59 Duration: 548ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 208819)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 13:08:18 Duration: 531ms
18 8m11s 355 163ms 15s863ms 1s384ms update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 08 10 1 825ms 825ms 11 8 11s294ms 1s411ms 12 29 33s318ms 1s148ms 13 50 1m6s 1s338ms 14 81 2m2s 1s507ms 15 52 1m58s 2s271ms 16 19 18s471ms 972ms 17 58 56s844ms 980ms 18 21 21s39ms 1s1ms 19 31 33s515ms 1s81ms 20 5 9s92ms 1s818ms -
UPDATE "stock_move" SET "date" = '2024-05-08 15:22:59', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933980, 933981, 933982, 933983, 933984, 933985, 933986, 933987, 933988, 933989, 933990, 933991, 933992, 933993, 933994, 933995, 933996, 933997, 933998, 933999, 934000);
Date: 2024-05-08 15:23:15 Duration: 15s863ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:05:02', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933810, 933811, 933812, 933813, 933814, 933815, 933816, 933817, 933818, 933819, 933820, 933821, 933822, 933823, 933824, 933825, 933826, 933827, 933828);
Date: 2024-05-08 15:05:16 Duration: 13s335ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:13:22', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (934054, 934055, 934056, 934057, 934058, 934059, 934060, 934061, 934062, 934063, 934064, 934065, 934066, 934067, 934068, 934069, 934070);
Date: 2024-05-08 15:13:35 Duration: 12s951ms
19 5m40s 116 342ms 23s333ms 2s934ms update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 08 10 2 18s112ms 9s56ms 11 14 11s548ms 824ms 12 17 33s774ms 1s986ms 13 31 59s598ms 1s922ms 14 19 55s68ms 2s898ms 15 8 49s807ms 6s225ms 16 10 37s273ms 3s727ms 17 9 37s209ms 4s134ms 18 3 15s301ms 5s100ms 19 2 18s88ms 9s44ms 20 1 4s579ms 4s579ms -
UPDATE "stock_move" SET "date" = '2024-05-08 15:37:30', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (916352, 916353, 916354, 916356, 916357, 916358, 916359, 916360, 916361, 916363, 916333, 916335, 916336, 916337, 916338, 916339, 916340, 916341, 916342, 916343, 916344, 916345, 916346, 916347, 916348, 916349, 916350, 916351);
Date: 2024-05-08 15:37:53 Duration: 23s333ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 19:57:32', "state" = 'done', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (935836, 935837, 935838, 935839, 935840, 935842, 935843, 935844, 935845, 935846, 935847, 935848, 935850, 935851, 935852, 935853, 935854, 935856, 935857, 935858, 935859);
Date: 2024-05-08 19:57:50 Duration: 17s248ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 17:05:38', "state" = 'done', "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (934304, 925952, 925953, 934938, 940324, 940327, 934320, 929875, 929876, 929877, 929878, 929879, 929880, 934937, 934330, 925949, 925950, 925951);
Date: 2024-05-08 17:06:00 Duration: 16s239ms
20 5m39s 243 161ms 11s448ms 1s397ms update "stock_move" set "is_done" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 08 10 3 7s34ms 2s344ms 11 13 13s890ms 1s68ms 12 43 1m9s 1s616ms 13 49 1m9s 1s418ms 14 54 1m31s 1s703ms 15 19 45s100ms 2s373ms 16 7 7s504ms 1s72ms 17 12 15s69ms 1s255ms 18 19 8s192ms 431ms 19 9 2s602ms 289ms 20 15 9s168ms 611ms -
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 15:03:33 Duration: 11s448ms
-
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 14:42:18 Duration: 9s365ms
-
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 14:53:43 Duration: 9s244ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 34,397 3h2m34s 120ms 3s290ms 318ms 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 May 08 00 173 1m19s 458ms 01 189 23s924ms 126ms 02 254 1m13s 288ms 03 301 1m18s 262ms 04 319 2m12s 416ms 05 287 1m38s 342ms 06 212 1m16s 360ms 07 241 1m14s 308ms 08 726 1m50s 152ms 09 260 1m6s 255ms 10 284 3m8s 662ms 11 1,180 4m2s 205ms 12 3,887 20m22s 314ms 13 4,823 21m9s 263ms 14 4,418 23m24s 317ms 15 4,226 28m56s 411ms 16 2,284 9m52s 259ms 17 2,331 13m5s 336ms 18 2,980 18m36s 374ms 19 2,916 14m13s 292ms 20 1,001 6m28s 387ms 21 409 2m10s 318ms 22 324 1m37s 300ms 23 372 1m53s 304ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s290ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s204ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19575]', '["pointspring_master","mail.channel",56]', '["pointspring_master","mail.channel",57]', '["pointspring_master","mail.channel",58]', '["pointspring_master","mail.channel",65]', '["pointspring_master","mail.channel",504]', '["pointspring_master","mail.channel",605]', '["pointspring_master","res.partner",19575]', '["pointspring_master","ir.needaction",19575]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s202ms
2 5,760 13m56s 134ms 933ms 145ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 08 00 240 33s91ms 137ms 01 240 33s158ms 138ms 02 240 33s216ms 138ms 03 240 33s290ms 138ms 04 240 33s146ms 138ms 05 240 33s374ms 139ms 06 240 33s406ms 139ms 07 240 33s297ms 138ms 08 240 33s943ms 141ms 09 240 33s352ms 138ms 10 240 33s236ms 138ms 11 240 34s488ms 143ms 12 240 37s734ms 157ms 13 240 40s414ms 168ms 14 240 39s120ms 163ms 15 240 37s774ms 157ms 16 240 35s439ms 147ms 17 240 35s776ms 149ms 18 240 36s229ms 150ms 19 240 38s230ms 159ms 20 240 34s123ms 142ms 21 240 33s506ms 139ms 22 240 33s229ms 138ms 23 240 33s439ms 139ms -
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 ('information_schema.constraint_column_usage', 'information_schema.domains', 'information_schema.user_defined_types', 'information_schema.table_privileges', 'information_schema.user_mapping_options', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_server_options', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.user_mappings', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.role_column_grants', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.check_constraint_routine_usage', 'information_schema.parameters', 'information_schema.element_types', 'information_schema.triggered_update_columns', 'information_schema.role_udt_grants', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.view_routine_usage', 'information_schema.sequences', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.enabled_roles', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.triggers', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.foreign_table_options', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.view_column_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.usage_privileges', 'public.pg_stat_statements', 'public.pg_stat_statements_info', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_group', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_language', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_constraint', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_views', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_description', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_proc', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication', 'pg_catalog.pg_tables', 'pg_catalog.pg_am', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_replication_slots');
Date: 2024-05-08 19:33:51 Duration: 933ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_roles', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_operator', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_sequence', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_index', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_locks', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_settings', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_type', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_namespace', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_constraint', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_replication_slots', 'information_schema.collations', 'information_schema.enabled_roles', 'information_schema.foreign_servers', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.sql_sizing', 'information_schema.foreign_tables', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.data_type_privileges', 'information_schema.sql_features', 'information_schema.udt_privileges', 'information_schema.routines', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.triggered_update_columns', 'information_schema.check_constraint_routine_usage', 'information_schema.domain_udt_usage', 'information_schema.schemata', 'information_schema.collation_character_set_applicability', 'information_schema.routine_privileges', 'information_schema.user_mapping_options', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.routine_table_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.role_column_grants', 'information_schema.constraint_table_usage', 'information_schema.domain_constraints', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.key_column_usage', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.triggers', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.user_defined_types', 'information_schema.foreign_table_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-08 19:16:06 Duration: 910ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_inherits', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_conversion', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_subscription', 'pg_catalog.pg_operator', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_group', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_proc', 'pg_catalog.pg_extension', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequences', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_matviews', 'pg_catalog.pg_policies', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_constraint', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_amproc', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_rules', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_cast', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_indexes', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_privileges', 'information_schema.referential_constraints', 'information_schema.foreign_tables', 'information_schema.attributes', 'information_schema.role_routine_grants', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.schemata', 'information_schema.check_constraints', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.view_routine_usage', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.role_udt_grants', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.domains', 'information_schema.tables', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.sql_sizing', 'information_schema.triggers', 'information_schema.data_type_privileges', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.user_mapping_options', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_table_options', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.udt_privileges', 'information_schema.column_options', 'information_schema.user_defined_types', 'information_schema.column_privileges', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-08 17:03:21 Duration: 892ms
3 3,899 9m 120ms 640ms 138ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where (("product_warehouse_inventory"."warehouse_id" = ?) and ("product_warehouse_inventory"."product_id" = ?)) order by "product_warehouse_inventory"."warehouse_name" limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 08 11 97 12s863ms 132ms 12 633 1m29s 141ms 13 1,675 3m55s 140ms 14 269 36s811ms 136ms 15 208 29s649ms 142ms 16 103 13s525ms 131ms 17 113 14s726ms 130ms 18 302 40s915ms 135ms 19 434 59s53ms 136ms 20 65 8s559ms 131ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 41) AND ("product_warehouse_inventory"."product_id" = 209826)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 15:50:33 Duration: 640ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 265013)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 12:49:59 Duration: 548ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 208819)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-08 13:08:18 Duration: 531ms
4 3,702 46m9s 634ms 4s1ms 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" = ? 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 #4
Day Hour Count Duration Avg duration May 08 10 11 7s273ms 661ms 11 233 2m43s 703ms 12 491 6m10s 754ms 13 454 6m2s 798ms 14 467 5m58s 767ms 15 674 8m40s 772ms 16 304 3m43s 733ms 17 177 2m3s 698ms 18 422 5m12s 740ms 19 239 2m51s 716ms 20 208 2m22s 682ms 21 22 14s785ms 672ms -
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 ('%%xa%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%xa-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%xa-%'))) 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-05-08 15:01:34 Duration: 4s1ms
-
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 ('%%sae5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sae5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sae5%'))) 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-05-08 15:03:26 Duration: 3s602ms
-
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 ('%%l54%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%l54%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%l54%'))) 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-05-08 18:16:23 Duration: 2s348ms
5 3,179 23m26s 390ms 3s281ms 442ms 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 #5
Day Hour Count Duration Avg duration May 08 00 5 1s977ms 395ms 06 5 2s105ms 421ms 07 92 39s497ms 429ms 08 720 5m14s 436ms 10 10 4s23ms 402ms 11 124 50s789ms 409ms 12 318 2m21s 443ms 13 387 3m 466ms 14 361 2m42s 449ms 15 293 2m19s 477ms 16 135 55s687ms 412ms 17 189 1m20s 424ms 18 228 1m39s 438ms 19 225 1m38s 436ms 20 78 32s774ms 420ms 21 9 3s577ms 397ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s281ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-91493a3/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s179ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 19:41:22 Duration: 2s72ms
6 3,020 9m22s 157ms 1s242ms 186ms 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 #6
Day Hour Count Duration Avg duration May 08 12 29 5s534ms 190ms 13 82 15s615ms 190ms 14 738 2m19s 189ms 15 749 2m25s 194ms 16 623 1m54s 183ms 17 240 41s311ms 172ms 18 239 42s799ms 179ms 19 320 57s747ms 180ms -
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 = 41566 and fd.product_id = 198811;
Date: 2024-05-08 15:01:33 Duration: 1s242ms
-
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 = 41566 and fd.product_id = 197725;
Date: 2024-05-08 15:01:32 Duration: 987ms
-
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 = 41361 and fd.product_id = 194705;
Date: 2024-05-08 16:09:52 Duration: 954ms
7 2,371 5m37s 120ms 1s251ms 142ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 08 10 8 1s19ms 127ms 11 83 11s183ms 134ms 12 285 40s351ms 141ms 13 396 56s173ms 141ms 14 467 1m6s 141ms 15 424 1m4s 153ms 16 163 21s949ms 134ms 17 89 11s518ms 129ms 18 259 36s756ms 141ms 19 135 18s911ms 140ms 20 56 7s763ms 138ms 21 6 783ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (222488, 222484, 188862, 188850, 188596, 188597, 188603, 189114, 188643, 188644, 188650)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-08 15:24:55 Duration: 1s251ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (174246)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-08 15:39:02 Duration: 964ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (237125)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-08 12:37:54 Duration: 853ms
8 2,268 10m40s 148ms 1m39s 282ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 08 10 1 158ms 158ms 11 59 10s318ms 174ms 12 179 33s477ms 187ms 13 212 42s158ms 198ms 14 892 6m23s 429ms 15 514 1m39s 192ms 16 87 14s912ms 171ms 17 73 12s211ms 167ms 18 99 18s55ms 182ms 19 113 20s213ms 178ms 20 32 5s331ms 166ms 21 7 1s119ms 159ms -
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);
Date: 2024-05-08 14:51:04 Duration: 1m39s
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (338555);
Date: 2024-05-08 14:48:06 Duration: 54s789ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (317347);
Date: 2024-05-08 14:48:47 Duration: 36s587ms
9 1,277 10m48s 156ms 2s849ms 508ms update "stock_quant" set "quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 08 10 6 1s274ms 212ms 11 40 16s107ms 402ms 12 259 2m4s 479ms 13 285 2m8s 450ms 14 251 2m16s 545ms 15 182 1m24s 465ms 16 48 32s60ms 667ms 17 44 22s765ms 517ms 18 50 32s160ms 643ms 19 89 1m 681ms 20 23 9s758ms 424ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (476122, 476900, 1638, 476781, 476783, 470746);
Date: 2024-05-08 16:56:08 Duration: 2s849ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (398616, 312318);
Date: 2024-05-08 19:37:04 Duration: 1s992ms
-
UPDATE "stock_quant" SET "quantity" = 2.0, "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (453536, 381278);
Date: 2024-05-08 19:32:44 Duration: 1s924ms
10 1,229 4m33s 182ms 824ms 222ms select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 08 10 1 262ms 262ms 11 59 12s367ms 209ms 12 114 25s133ms 220ms 13 129 30s549ms 236ms 14 191 44s850ms 234ms 15 175 39s974ms 228ms 16 91 19s387ms 213ms 17 125 26s918ms 215ms 18 151 33s152ms 219ms 19 134 28s916ms 215ms 20 52 10s530ms 202ms 21 7 1s375ms 196ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265545))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 14:10:02 Duration: 824ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (197869))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 13:27:54 Duration: 778ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265551))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 15:34:19 Duration: 768ms
11 1,227 3m54s 157ms 1s247ms 191ms 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 #11
Day Hour Count Duration Avg duration May 08 10 5 825ms 165ms 11 117 20s261ms 173ms 12 168 31s835ms 189ms 13 216 45s292ms 209ms 14 221 45s202ms 204ms 15 186 35s509ms 190ms 16 84 14s980ms 178ms 17 66 11s624ms 176ms 18 73 13s160ms 180ms 19 73 12s978ms 177ms 20 18 3s207ms 178ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%n-04674%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%n-04674%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%n-04674%')))) 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 ('%n-04674%') OR unaccent (res_partner.display_name) ilike unaccent ('%n-04674%') OR unaccent (res_partner.ref) ilike unaccent ('%n-04674%') OR unaccent (res_partner.vat) ilike unaccent ('n-04674')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%n-04674%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 14:38:38 Duration: 1s247ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%13121%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%13121%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%13121%')))) 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 ('%13121%') OR unaccent (res_partner.display_name) ilike unaccent ('%13121%') OR unaccent (res_partner.ref) ilike unaccent ('%13121%') OR unaccent (res_partner.vat) ilike unaccent ('13121')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%13121%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 13:38:18 Duration: 1s35ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%napa%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%napa%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%napa%')))) 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 ('%napa%') OR unaccent (res_partner.display_name) ilike unaccent ('%napa%') OR unaccent (res_partner.ref) ilike unaccent ('%napa%') OR unaccent (res_partner.vat) ilike unaccent ('napa')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%napa%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 14:47:36 Duration: 975ms
12 1,173 3m54s 155ms 2s87ms 200ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 08 10 12 2s109ms 175ms 11 110 20s315ms 184ms 12 119 23s550ms 197ms 13 284 1m 212ms 14 128 25s454ms 198ms 15 107 22s326ms 208ms 16 78 14s841ms 190ms 17 86 16s408ms 190ms 18 102 20s588ms 201ms 19 116 22s475ms 193ms 20 27 5s457ms 202ms 21 4 727ms 181ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398525)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 18:16:23 Duration: 2s87ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398315)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 17:09:11 Duration: 1s118ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398997)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 20:12:25 Duration: 732ms
13 955 10m1s 161ms 7s956ms 629ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 08 10 19 13s958ms 734ms 11 25 14s749ms 589ms 12 96 1m2s 652ms 13 208 2m7s 611ms 14 163 1m44s 640ms 15 116 1m17s 667ms 16 67 41s562ms 620ms 17 92 57s51ms 620ms 18 72 41s697ms 579ms 19 63 38s717ms 614ms 20 28 19s183ms 685ms 21 6 2s784ms 464ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (473060, 473061, 473063, 474888, 474889, 474474, 471499, 471500, 471501, 471502, 471503, 474898, 476886, 460343);
Date: 2024-05-08 17:06:14 Duration: 7s956ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (475553, 475555, 475547, 475549, 475550, 475551);
Date: 2024-05-08 13:11:56 Duration: 3s675ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (473840, 58677, 473755, 305133);
Date: 2024-05-08 14:15:52 Duration: 3s414ms
14 946 10m25s 161ms 6s644ms 661ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 08 10 1 165ms 165ms 11 62 35s779ms 577ms 12 204 3m5s 910ms 13 171 2m4s 729ms 14 105 1m1s 584ms 15 107 1m3s 588ms 16 55 27s826ms 505ms 17 49 19s839ms 404ms 18 88 39s868ms 453ms 19 88 57s208ms 650ms 20 13 8s500ms 653ms 21 3 1s140ms 380ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (938771, 938772, 938773, 938774, 938775, 938776, 938777, 938778, 938779, 938780, 938781, 938783);
Date: 2024-05-08 12:18:33 Duration: 6s644ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (939670, 939672, 939673, 939674, 939675, 939676, 939677, 939678);
Date: 2024-05-08 14:13:54 Duration: 6s580ms
-
UPDATE "stock_move" SET "state" = 'waiting', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (938953, 938954, 938955, 938956, 938957);
Date: 2024-05-08 12:32:11 Duration: 6s473ms
15 937 2m17s 120ms 1s382ms 146ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 08 11 26 3s452ms 132ms 12 186 26s872ms 144ms 13 228 33s718ms 147ms 14 205 28s84ms 136ms 15 147 24s897ms 169ms 16 25 3s473ms 138ms 17 27 4s460ms 165ms 18 28 4s81ms 145ms 19 62 8s268ms 133ms 20 3 366ms 122ms -
select id from product_warehouse_inventory where product_id = 172220 and warehouse_id = 45 and company_id = 1;
Date: 2024-05-08 15:34:34 Duration: 1s382ms
-
select id from product_warehouse_inventory where product_id = 191103 and warehouse_id = 42 and company_id = 1;
Date: 2024-05-08 15:01:32 Duration: 712ms
-
select id from product_warehouse_inventory where product_id = 207574 and warehouse_id = 42 and company_id = 1;
Date: 2024-05-08 15:01:33 Duration: 697ms
16 930 18m37s 312ms 11s206ms 1s201ms update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 08 10 1 471ms 471ms 11 34 20s530ms 603ms 12 215 2m46s 776ms 13 205 2m32s 746ms 14 276 8m27s 1s838ms 15 99 3m10s 1s927ms 16 11 7s373ms 670ms 17 32 30s712ms 959ms 18 25 20s179ms 807ms 19 10 7s8ms 700ms 20 22 13s353ms 606ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 15:01:53', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 15:02:30 Duration: 11s206ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:52:06', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:52:42 Duration: 10s667ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:56:02', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:56:36 Duration: 10s374ms
17 927 9m38s 315ms 1s223ms 623ms select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 08 11 8 2s756ms 344ms 12 241 1m58s 493ms 13 678 7m36s 673ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:10:13 Duration: 1s223ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s120ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s88ms
18 889 2m11s 120ms 881ms 147ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."website_sequence" asc, "product_template"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 08 00 5 653ms 130ms 01 7 918ms 131ms 02 7 884ms 126ms 03 1 125ms 125ms 04 5 617ms 123ms 05 6 875ms 145ms 06 3 370ms 123ms 07 7 958ms 136ms 08 27 3s865ms 143ms 09 13 1s755ms 135ms 10 9 1s187ms 131ms 11 45 6s406ms 142ms 12 105 15s251ms 145ms 13 142 22s764ms 160ms 14 98 14s285ms 145ms 15 89 14s460ms 162ms 16 34 4s847ms 142ms 17 42 5s744ms 136ms 18 48 7s204ms 150ms 19 60 9s48ms 150ms 20 23 3s542ms 154ms 21 35 4s829ms 137ms 22 42 5s700ms 135ms 23 36 4s995ms 138ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-08 15:24:55 Duration: 881ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-08 15:24:54 Duration: 669ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-08 13:10:13 Duration: 430ms
19 868 10m33s 635ms 2s144ms 730ms 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 May 08 11 10 7s182ms 718ms 12 51 37s256ms 730ms 13 140 1m46s 764ms 14 109 1m20s 741ms 15 159 2m 757ms 16 50 34s943ms 698ms 17 43 29s687ms 690ms 18 108 1m14s 693ms 19 158 1m54s 725ms 20 40 27s81ms 677ms -
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 ('%%320150%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150%'))) 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-05-08 19:05:42 Duration: 2s144ms
-
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 ('%%320150U%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150U%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150U%'))) 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-05-08 19:05:42 Duration: 1s793ms
-
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 ('%%MPB75607%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MPB75607%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MPB75607%'))) 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-05-08 15:25:52 Duration: 1s371ms
20 847 2m27s 149ms 241ms 174ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 08 12 10 1s778ms 177ms 13 6 991ms 165ms 14 200 36s93ms 180ms 15 249 43s845ms 176ms 16 127 21s508ms 169ms 17 110 18s659ms 169ms 18 40 6s921ms 173ms 19 105 18s182ms 173ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (194057) and warehouse_id = (42));
Date: 2024-05-08 15:02:18 Duration: 241ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (218620) and warehouse_id = (45));
Date: 2024-05-08 15:52:51 Duration: 234ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (197910) and warehouse_id = (37));
Date: 2024-05-08 14:18:25 Duration: 232ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 205ms 2m21s 1m14s 23 28m44s insert into "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") values (nextval(?), null, ?, ?, ?) returning id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 08 14 19 23m 1m12s 15 4 5m44s 1m26s -
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:26 Duration: 2m21s
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:51:04 Duration: 2m15s
-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING id;
Date: 2024-05-08 14:46:44 Duration: 2m11s
2 342ms 23s333ms 2s934ms 116 5m40s update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 08 10 2 18s112ms 9s56ms 11 14 11s548ms 824ms 12 17 33s774ms 1s986ms 13 31 59s598ms 1s922ms 14 19 55s68ms 2s898ms 15 8 49s807ms 6s225ms 16 10 37s273ms 3s727ms 17 9 37s209ms 4s134ms 18 3 15s301ms 5s100ms 19 2 18s88ms 9s44ms 20 1 4s579ms 4s579ms -
UPDATE "stock_move" SET "date" = '2024-05-08 15:37:30', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (916352, 916353, 916354, 916356, 916357, 916358, 916359, 916360, 916361, 916363, 916333, 916335, 916336, 916337, 916338, 916339, 916340, 916341, 916342, 916343, 916344, 916345, 916346, 916347, 916348, 916349, 916350, 916351);
Date: 2024-05-08 15:37:53 Duration: 23s333ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 19:57:32', "state" = 'done', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (935836, 935837, 935838, 935839, 935840, 935842, 935843, 935844, 935845, 935846, 935847, 935848, 935850, 935851, 935852, 935853, 935854, 935856, 935857, 935858, 935859);
Date: 2024-05-08 19:57:50 Duration: 17s248ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 17:05:38', "state" = 'done', "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (934304, 925952, 925953, 934938, 940324, 940327, 934320, 929875, 929876, 929877, 929878, 929879, 929880, 934937, 934330, 925949, 925950, 925951);
Date: 2024-05-08 17:06:00 Duration: 16s239ms
3 161ms 11s448ms 1s397ms 243 5m39s update "stock_move" set "is_done" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 08 10 3 7s34ms 2s344ms 11 13 13s890ms 1s68ms 12 43 1m9s 1s616ms 13 49 1m9s 1s418ms 14 54 1m31s 1s703ms 15 19 45s100ms 2s373ms 16 7 7s504ms 1s72ms 17 12 15s69ms 1s255ms 18 19 8s192ms 431ms 19 9 2s602ms 289ms 20 15 9s168ms 611ms -
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 15:03:33 Duration: 11s448ms
-
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 14:42:18 Duration: 9s365ms
-
UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922753, 922788, 922791, 922794, 922795, 922666, 922667, 922668, 922796, 922799, 922675, 922676, 922681, 922686, 922689, 922690, 922585, 922586, 922587, 922588, 922589, 922590, 922591, 922592, 922593, 922594, 922595, 922596, 922597, 922598, 922599, 922600, 922601, 922602, 922603, 922604, 922605, 922606, 922608, 922609, 922610, 922611, 922612, 922613, 922614, 922615, 922616, 922617, 922739, 922750);
Date: 2024-05-08 14:53:43 Duration: 9s244ms
4 163ms 15s863ms 1s384ms 355 8m11s update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 08 10 1 825ms 825ms 11 8 11s294ms 1s411ms 12 29 33s318ms 1s148ms 13 50 1m6s 1s338ms 14 81 2m2s 1s507ms 15 52 1m58s 2s271ms 16 19 18s471ms 972ms 17 58 56s844ms 980ms 18 21 21s39ms 1s1ms 19 31 33s515ms 1s81ms 20 5 9s92ms 1s818ms -
UPDATE "stock_move" SET "date" = '2024-05-08 15:22:59', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933980, 933981, 933982, 933983, 933984, 933985, 933986, 933987, 933988, 933989, 933990, 933991, 933992, 933993, 933994, 933995, 933996, 933997, 933998, 933999, 934000);
Date: 2024-05-08 15:23:15 Duration: 15s863ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:05:02', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (933810, 933811, 933812, 933813, 933814, 933815, 933816, 933817, 933818, 933819, 933820, 933821, 933822, 933823, 933824, 933825, 933826, 933827, 933828);
Date: 2024-05-08 15:05:16 Duration: 13s335ms
-
UPDATE "stock_move" SET "date" = '2024-05-08 15:13:22', "is_done" = true, "state" = 'done', "write_uid" = 982, "write_date" = (now() at time zone 'UTC') WHERE id IN (934054, 934055, 934056, 934057, 934058, 934059, 934060, 934061, 934062, 934063, 934064, 934065, 934066, 934067, 934068, 934069, 934070);
Date: 2024-05-08 15:13:35 Duration: 12s951ms
5 312ms 11s206ms 1s201ms 930 18m37s update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 08 10 1 471ms 471ms 11 34 20s530ms 603ms 12 215 2m46s 776ms 13 205 2m32s 746ms 14 276 8m27s 1s838ms 15 99 3m10s 1s927ms 16 11 7s373ms 670ms 17 32 30s712ms 959ms 18 25 20s179ms 807ms 19 10 7s8ms 700ms 20 22 13s353ms 606ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 15:01:53', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 15:02:30 Duration: 11s206ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:52:06', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:52:42 Duration: 10s667ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 14:56:02', "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (922593, 922689, 922599, 922794, 922604, 922605, 922796, 922609, 922739, 922676, 922613);
Date: 2024-05-08 14:56:36 Duration: 10s374ms
6 175ms 8s254ms 1s75ms 592 10m36s update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 08 10 4 3s837ms 959ms 11 18 18s816ms 1s45ms 12 84 1m33s 1s109ms 13 133 2m16s 1s28ms 14 44 45s182ms 1s26ms 15 47 55s12ms 1s170ms 16 35 35s185ms 1s5ms 17 19 18s662ms 982ms 18 71 1m17s 1s89ms 19 112 2m8s 1s143ms 20 19 19s719ms 1s37ms 21 6 4s685ms 780ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 12:55:02', "is_done" = true, "state" = 'done', "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (932940, 932941, 932943, 932944, 932954, 932955);
Date: 2024-05-08 12:55:16 Duration: 8s254ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "date" = '2024-05-08 15:25:43', "is_done" = true, "state" = 'done', "write_uid" = 1010, "write_date" = (now() at time zone 'UTC') WHERE id IN (939885, 939886, 939887, 939888, 939889, 939890);
Date: 2024-05-08 15:25:55 Duration: 6s867ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2024-05-08 19:32:20', "is_done" = true, "state" = 'done', "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (932579, 932583, 932589, 932590, 932594);
Date: 2024-05-08 19:32:31 Duration: 6s390ms
7 812ms 2s904ms 918ms 841 12m52s 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 #7
Day Hour Count Duration Avg duration May 08 10 3 2s617ms 872ms 11 18 15s592ms 866ms 12 117 1m49s 935ms 13 104 1m41s 975ms 14 144 2m13s 928ms 15 81 1m15s 932ms 16 36 32s522ms 903ms 17 109 1m35s 877ms 18 76 1m9s 912ms 19 107 1m37s 906ms 20 44 37s641ms 855ms 21 2 1s688ms 844ms -
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 ('%60256R%')) 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 ('%60256R%'))) 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 ('%60256R%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%60256R%')))))) 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-05-08 15:03:27 Duration: 2s904ms
-
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 ('%1040-860184%')) 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 ('%1040-860184%'))) 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 ('%1040-860184%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1040-860184%')))))) 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-05-08 12:04:55 Duration: 2s253ms
-
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 ('%610-0024%')) 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 ('%610-0024%'))) 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 ('%610-0024%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%610-0024%')))))) 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-05-08 14:05:24 Duration: 2s83ms
8 645ms 3s884ms 777ms 826 10m42s 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"."type" in (...))) and ("product_product__product_tmpl_id"."company_id" is null or ("product_product__product_tmpl_id"."company_id" = ?))) 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 May 08 11 134 1m32s 689ms 12 342 4m39s 816ms 13 348 4m28s 772ms 16 2 1s841ms 920ms -
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 ('%%a4709e2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s884ms
-
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 ('%%a4709e2s%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2s%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2s%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s751ms
-
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 ('%%a4709e2sx%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4709e2sx%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4709e2sx%'))) AND ("product_product__product_tmpl_id"."type" in ('product', 'consu'))) AND ("product_product__product_tmpl_id"."company_id" IS NULL OR ("product_product__product_tmpl_id"."company_id" = 1))) 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-05-08 12:53:19 Duration: 3s451ms
9 634ms 4s1ms 748ms 3,702 46m9s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 08 10 11 7s273ms 661ms 11 233 2m43s 703ms 12 491 6m10s 754ms 13 454 6m2s 798ms 14 467 5m58s 767ms 15 674 8m40s 772ms 16 304 3m43s 733ms 17 177 2m3s 698ms 18 422 5m12s 740ms 19 239 2m51s 716ms 20 208 2m22s 682ms 21 22 14s785ms 672ms -
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 ('%%xa%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%xa-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%xa-%'))) 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-05-08 15:01:34 Duration: 4s1ms
-
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 ('%%sae5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sae5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sae5%'))) 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-05-08 15:03:26 Duration: 3s602ms
-
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 ('%%l54%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%l54%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%l54%'))) 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-05-08 18:16:23 Duration: 2s348ms
10 635ms 2s144ms 730ms 868 10m33s 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 #10
Day Hour Count Duration Avg duration May 08 11 10 7s182ms 718ms 12 51 37s256ms 730ms 13 140 1m46s 764ms 14 109 1m20s 741ms 15 159 2m 757ms 16 50 34s943ms 698ms 17 43 29s687ms 690ms 18 108 1m14s 693ms 19 158 1m54s 725ms 20 40 27s81ms 677ms -
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 ('%%320150%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150%'))) 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-05-08 19:05:42 Duration: 2s144ms
-
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 ('%%320150U%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%320-150U%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%320-150U%'))) 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-05-08 19:05:42 Duration: 1s793ms
-
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 ('%%MPB75607%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MPB75607%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MPB75607%'))) 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-05-08 15:25:52 Duration: 1s371ms
11 161ms 6s644ms 661ms 946 10m25s update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 08 10 1 165ms 165ms 11 62 35s779ms 577ms 12 204 3m5s 910ms 13 171 2m4s 729ms 14 105 1m1s 584ms 15 107 1m3s 588ms 16 55 27s826ms 505ms 17 49 19s839ms 404ms 18 88 39s868ms 453ms 19 88 57s208ms 650ms 20 13 8s500ms 653ms 21 3 1s140ms 380ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (938771, 938772, 938773, 938774, 938775, 938776, 938777, 938778, 938779, 938780, 938781, 938783);
Date: 2024-05-08 12:18:33 Duration: 6s644ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (939670, 939672, 939673, 939674, 939675, 939676, 939677, 939678);
Date: 2024-05-08 14:13:54 Duration: 6s580ms
-
UPDATE "stock_move" SET "state" = 'waiting', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (938953, 938954, 938955, 938956, 938957);
Date: 2024-05-08 12:32:11 Duration: 6s473ms
12 161ms 7s956ms 629ms 955 10m1s update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 08 10 19 13s958ms 734ms 11 25 14s749ms 589ms 12 96 1m2s 652ms 13 208 2m7s 611ms 14 163 1m44s 640ms 15 116 1m17s 667ms 16 67 41s562ms 620ms 17 92 57s51ms 620ms 18 72 41s697ms 579ms 19 63 38s717ms 614ms 20 28 19s183ms 685ms 21 6 2s784ms 464ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 952, "write_date" = (now() at time zone 'UTC') WHERE id IN (473060, 473061, 473063, 474888, 474889, 474474, 471499, 471500, 471501, 471502, 471503, 474898, 476886, 460343);
Date: 2024-05-08 17:06:14 Duration: 7s956ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (475553, 475555, 475547, 475549, 475550, 475551);
Date: 2024-05-08 13:11:56 Duration: 3s675ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (473840, 58677, 473755, 305133);
Date: 2024-05-08 14:15:52 Duration: 3s414ms
13 315ms 1s223ms 623ms 927 9m38s select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 08 11 8 2s756ms 344ms 12 241 1m58s 493ms 13 678 7m36s 673ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:10:13 Duration: 1s223ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s120ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-05-08 13:05:51 Duration: 1s88ms
14 156ms 2s849ms 508ms 1,277 10m48s update "stock_quant" set "quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 08 10 6 1s274ms 212ms 11 40 16s107ms 402ms 12 259 2m4s 479ms 13 285 2m8s 450ms 14 251 2m16s 545ms 15 182 1m24s 465ms 16 48 32s60ms 667ms 17 44 22s765ms 517ms 18 50 32s160ms 643ms 19 89 1m 681ms 20 23 9s758ms 424ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (476122, 476900, 1638, 476781, 476783, 470746);
Date: 2024-05-08 16:56:08 Duration: 2s849ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (398616, 312318);
Date: 2024-05-08 19:37:04 Duration: 1s992ms
-
UPDATE "stock_quant" SET "quantity" = 2.0, "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (453536, 381278);
Date: 2024-05-08 19:32:44 Duration: 1s924ms
15 390ms 3s281ms 442ms 3,179 23m26s 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 #15
Day Hour Count Duration Avg duration May 08 00 5 1s977ms 395ms 06 5 2s105ms 421ms 07 92 39s497ms 429ms 08 720 5m14s 436ms 10 10 4s23ms 402ms 11 124 50s789ms 409ms 12 318 2m21s 443ms 13 387 3m 466ms 14 361 2m42s 449ms 15 293 2m19s 477ms 16 135 55s687ms 412ms 17 189 1m20s 424ms 18 228 1m39s 438ms 19 225 1m38s 436ms 20 78 32s774ms 420ms 21 9 3s577ms 397ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s281ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-91493a3/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 15:01:33 Duration: 3s179ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-08 19:41:22 Duration: 2s72ms
16 120ms 3s290ms 318ms 34,397 3h2m34s select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 08 00 173 1m19s 458ms 01 189 23s924ms 126ms 02 254 1m13s 288ms 03 301 1m18s 262ms 04 319 2m12s 416ms 05 287 1m38s 342ms 06 212 1m16s 360ms 07 241 1m14s 308ms 08 726 1m50s 152ms 09 260 1m6s 255ms 10 284 3m8s 662ms 11 1,180 4m2s 205ms 12 3,887 20m22s 314ms 13 4,823 21m9s 263ms 14 4,418 23m24s 317ms 15 4,226 28m56s 411ms 16 2,284 9m52s 259ms 17 2,331 13m5s 336ms 18 2,980 18m36s 374ms 19 2,916 14m13s 292ms 20 1,001 6m28s 387ms 21 409 2m10s 318ms 22 324 1m37s 300ms 23 372 1m53s 304ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s290ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s204ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-08 14:49:38') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19575]', '["pointspring_master","mail.channel",56]', '["pointspring_master","mail.channel",57]', '["pointspring_master","mail.channel",58]', '["pointspring_master","mail.channel",65]', '["pointspring_master","mail.channel",504]', '["pointspring_master","mail.channel",605]', '["pointspring_master","res.partner",19575]', '["pointspring_master","ir.needaction",19575]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-08 14:50:31 Duration: 3s202ms
17 148ms 1m39s 282ms 2,268 10m40s update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 08 10 1 158ms 158ms 11 59 10s318ms 174ms 12 179 33s477ms 187ms 13 212 42s158ms 198ms 14 892 6m23s 429ms 15 514 1m39s 192ms 16 87 14s912ms 171ms 17 73 12s211ms 167ms 18 99 18s55ms 182ms 19 113 20s213ms 178ms 20 32 5s331ms 166ms 21 7 1s119ms 159ms -
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (346511);
Date: 2024-05-08 14:51:04 Duration: 1m39s
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (338555);
Date: 2024-05-08 14:48:06 Duration: 54s789ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (317347);
Date: 2024-05-08 14:48:47 Duration: 36s587ms
18 182ms 824ms 222ms 1,229 4m33s select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 08 10 1 262ms 262ms 11 59 12s367ms 209ms 12 114 25s133ms 220ms 13 129 30s549ms 236ms 14 191 44s850ms 234ms 15 175 39s974ms 228ms 16 91 19s387ms 213ms 17 125 26s918ms 215ms 18 151 33s152ms 219ms 19 134 28s916ms 215ms 20 52 10s530ms 202ms 21 7 1s375ms 196ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265545))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 14:10:02 Duration: 824ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (197869))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 13:27:54 Duration: 778ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265551))) AND ("sale_report"."date" >= '2023-05-09 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-08 15:34:19 Duration: 768ms
19 155ms 2s87ms 200ms 1,173 3m54s select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 08 10 12 2s109ms 175ms 11 110 20s315ms 184ms 12 119 23s550ms 197ms 13 284 1m 212ms 14 128 25s454ms 198ms 15 107 22s326ms 208ms 16 78 14s841ms 190ms 17 86 16s408ms 190ms 18 102 20s588ms 201ms 19 116 22s475ms 193ms 20 27 5s457ms 202ms 21 4 727ms 181ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398525)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 18:16:23 Duration: 2s87ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398315)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 17:09:11 Duration: 1s118ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1398997)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-08 20:12:25 Duration: 732ms
20 157ms 1s247ms 191ms 1,227 3m54s 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 May 08 10 5 825ms 165ms 11 117 20s261ms 173ms 12 168 31s835ms 189ms 13 216 45s292ms 209ms 14 221 45s202ms 204ms 15 186 35s509ms 190ms 16 84 14s980ms 178ms 17 66 11s624ms 176ms 18 73 13s160ms 180ms 19 73 12s978ms 177ms 20 18 3s207ms 178ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%n-04674%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%n-04674%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%n-04674%')))) 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 ('%n-04674%') OR unaccent (res_partner.display_name) ilike unaccent ('%n-04674%') OR unaccent (res_partner.ref) ilike unaccent ('%n-04674%') OR unaccent (res_partner.vat) ilike unaccent ('n-04674')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%n-04674%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 14:38:38 Duration: 1s247ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%13121%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%13121%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%13121%')))) 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 ('%13121%') OR unaccent (res_partner.display_name) ilike unaccent ('%13121%') OR unaccent (res_partner.ref) ilike unaccent ('%13121%') OR unaccent (res_partner.vat) ilike unaccent ('13121')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%13121%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 13:38:18 Duration: 1s35ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%napa%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%napa%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%napa%')))) 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 ('%napa%') OR unaccent (res_partner.display_name) ilike unaccent ('%napa%') OR unaccent (res_partner.ref) ilike unaccent ('%napa%') OR unaccent (res_partner.vat) ilike unaccent ('napa')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%napa%') desc, unaccent (res_partner.display_name);
Date: 2024-05-08 14:47:36 Duration: 975ms
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
- 106,572 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1700 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 884 Max number of times the same event was reported
- 1,700 Total events found
Rank Times reported Error 1 884 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count May 08 00 36 01 41 02 38 03 27 04 22 05 25 06 24 07 86 08 163 09 23 10 23 11 26 12 28 13 32 14 35 15 26 16 24 17 22 18 34 19 29 20 23 21 24 22 28 23 45 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "stock_quant"
- ERROR: could not obtain lock on row in relation "res_partner"
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-05-08 09:50:02
Statement: SELECT 1 FROM stock_quant WHERE id = 364986 FOR UPDATE NOWAIT
Date: 2024-05-08 14:46:36
Statement: SELECT "supplier_rank" FROM res_partner WHERE ID IN (32925, 30496) FOR UPDATE NOWAIT; UPDATE res_partner SET "supplier_rank" = "supplier_rank" + 1 WHERE id IN (32925, 30496)
Date: 2024-05-08 14:50:10
2 708 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count May 08 00 1 05 1 06 2 07 42 08 283 10 7 11 25 12 53 13 80 14 61 15 48 16 26 17 19 18 28 19 19 20 9 21 1 22 2 23 1 - ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-05-08 10:41:46' WHERE id IN (1)
Date: 2024-05-08 10:41:46
3 77 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count May 08 05 1 12 4 13 16 14 41 15 9 16 1 17 1 18 4 - ERROR: process 2265674 still waiting for ShareLock on transaction 258959403 after 1000.033 ms
- ERROR: process 2350898 still waiting for ShareLock on transaction 258966984 after 1000.043 ms
- ERROR: process 2382012 still waiting for ShareLock on transaction 258972182 after 1000.043 ms
Detail: Process holding the lock: 2365114. Wait queue: 2265674.
Context: while updating tuple (21201,47) 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 != 1335462 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 != 1335462 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-08 17:53:57
Detail: Process holding the lock: 2459883. Wait queue: 2350898.
Context: while updating tuple (21197,55) 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 != 1398556 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 != 1398556 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-08 18:24:26
Detail: Process holding the lock: 2275258. Wait queue: 2382012.
Context: while updating tuple (21135,31) 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 != 1398621 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 != 1398621 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-08 18:45:38
4 9 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count May 08 07 9 - ERROR: process 1617041 still waiting for AccessShareLock on relation 44696 of database 65946 after 1000.053 ms at character 94
- ERROR: process 1616927 still waiting for AccessShareLock on relation 44696 of database 65946 after 1000.039 ms at character 94
- ERROR: process 1616938 still waiting for AccessShareLock on relation 44696 of database 65946 after 1000.041 ms at character 94
Detail: Process holding the lock: 1617090. Wait queue: 1617718, 1617041, 1616927, 1616938, 1616939, 1617074, 1616914, 1617781.
Statement: SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1=1 AND res_company_users_rel.user_id IN (4) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence" ,"res_company"."name" OFFSET 0Date: 2024-05-08 07:59:31
Detail: Process holding the lock: 1617090. Wait queue: 1617718, 1617041, 1616927, 1616938, 1616939, 1617074, 1616914, 1617781.
Statement: SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1=1 AND res_company_users_rel.user_id IN (1037) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence" ,"res_company"."name" OFFSET 0Date: 2024-05-08 07:59:31
Detail: Process holding the lock: 1617090. Wait queue: 1617718, 1617041, 1616927, 1616938, 1616939, 1617074, 1616914, 1617781.
Statement: SELECT res_company_users_rel.user_id, res_company_users_rel.cid FROM res_company_users_rel, "res_company" WHERE 1=1 AND res_company_users_rel.user_id IN (1295) AND res_company_users_rel.cid = res_company.id ORDER BY "res_company"."sequence" ,"res_company"."name" OFFSET 0Date: 2024-05-08 07:59:31
5 6 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #5
Day Hour Count May 08 08 5 17 1 - ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT value FROM ir_translation WHERE lang='en_US' AND type in ('code') AND src='%s' AND md5(src)=md5('%s')
Date: 2024-05-08 17:44:32
6 4 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count May 08 13 1 15 3 - ERROR: duplicate key value violates unique constraint "mail_followers_mail_followers_res_partner_res_model_id_uniq"
- ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
Detail: Key (res_model, res_id, partner_id)=(stock.picking, 398602, 19539) already exists.
Statement: INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 19539, 398602, 'stock.picking') RETURNING idDate: 2024-05-08 15:08:29
Detail: Key (vin_sn)=(j1006297) 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'), 979, (now() at time zone 'UTC'), 979, (now() at time zone 'UTC'), '2024-05-08', true, 136, 0.0, 0.0, NULL, 1, NULL, 5, 43970, '2024-05-08', NULL, NULL, 0, 0.0, NULL, NULL, 952, 291, 31, NULL, 'trl03', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, 'trl03', 'j1006297') RETURNING idDate: 2024-05-08 13:16:15
7 3 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #7
Day Hour Count May 08 14 2 21 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 2068208 waits for ShareLock on transaction 258907260; blocked by process 2058366. Process 2058366 waits for ShareLock on transaction 258906277; blocked by process 2068208. Process 2068208: UPDATE "stock_move" SET "current_warehouse_qty"=141.0,"date"='2024-05-08 14:46:30',"state"='done',"write_uid"=1001,"write_date"=(now() at time zone 'UTC') WHERE id IN (922587) Process 2058366: UPDATE "stock_quant" SET "reserved_quantity"=1.0,"write_uid"=964,"write_date"=(now() at time zone 'UTC') WHERE id IN (364986)
Context: while updating tuple (389,23) in relation "product_warehouse_inventory" SQL statement "update product_warehouse_inventory set qty_mtd_sold= (COALESCE(Inventory.qty,0) - COALESCE(return_inv.qty,0)) where product_id=NEW.product_id and warehouse_id=NEW.warehouse_id" PL/pgSQL function updated_mtd_sold() line 15 at SQL statement
Hint: See server log for query details.
Statement: UPDATE "stock_move" SET "current_warehouse_qty"=141.0,"date"='2024-05-08 14:46:30',"state"='done',"write_uid"=1001,"write_date"=(now() at time zone 'UTC') WHERE id IN (922587)Date: 2024-05-08 14:46:44
Detail: Process 2070673 waits for ShareLock on transaction 258907732; blocked by process 1617199. Process 1617199 waits for ShareLock on transaction 258907467; blocked by process 2070673. Process 2070673: UPDATE "stock_move" SET "current_warehouse_qty"=6.0,"date"='2024-05-08 14:47:10',"state"='done',"write_uid"=1001,"write_date"=(now() at time zone 'UTC') WHERE id IN (922604, 922614) Process 1617199: UPDATE "stock_quant" SET "reserved_quantity"=0.0,"write_uid"=964,"write_date"=(now() at time zone 'UTC') WHERE id IN (475349)
Context: while updating tuple (1060,2) in relation "product_warehouse_inventory" SQL statement "update product_warehouse_inventory set qty_mtd_sold= (COALESCE(Inventory.qty,0) - COALESCE(return_inv.qty,0)) where product_id=NEW.product_id and warehouse_id=NEW.warehouse_id" PL/pgSQL function updated_mtd_sold() line 15 at SQL statement
Hint: See server log for query details.
Statement: UPDATE "stock_move" SET "current_warehouse_qty"=6.0,"date"='2024-05-08 14:47:10',"state"='done',"write_uid"=1001,"write_date"=(now() at time zone 'UTC') WHERE id IN (922604, 922614)Date: 2024-05-08 14:48:06
Detail: Process 2760557 waits for ShareLock on transaction 259008854; blocked by process 2745748. Process 2745748 waits for ShareLock on transaction 259008855; blocked by process 2760557. Process 2760557: UPDATE "stock_move" SET "branch_id"=48,"picking_id"=407961,"related_core_purchase_line_id"=NULL,"related_core_repair_line_id"=NULL,"related_core_sale_line_id"=NULL,"scrapped"=false,"state"='confirmed',"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (940989) Process 2745748: UPDATE "sale_order" SET "carrier_id"=69,"write_uid"=1243,"write_date"=(now() at time zone 'UTC') WHERE id IN (137977)
Context: while updating tuple (33665,4) in relation "product_warehouse_inventory" SQL statement "update product_warehouse_inventory set qty_reserve=Inventory.qty where product_id=NEW.product_id and warehouse_id=NEW.warehouse_id" PL/pgSQL function updated_qty_reserve() line 12 at SQL statement
Hint: See server log for query details.
Statement: UPDATE "stock_move" SET "branch_id"=48,"picking_id"=407961,"related_core_purchase_line_id"=NULL,"related_core_repair_line_id"=NULL,"related_core_sale_line_id"=NULL,"scrapped"=false,"state"='confirmed',"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (940989)Date: 2024-05-08 21:17:46
8 3 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #8
Day Hour Count May 08 17 1 19 2 - ERROR: null value in column "factor_percent" of relation "account_tax_repartition_line" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (8569, null, tax, null, 2143, null, null, 1, null, 1029, 2024-05-08 17:49:36.956949, 1029, 2024-05-08 17:49:36.956949).
Statement: INSERT INTO "account_tax_repartition_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "invoice_tax_id", "repartition_type", "sequence") VALUES (nextval('account_tax_repartition_line_id_seq'), 1029, (now() at time zone 'UTC'), 1029, (now() at time zone 'UTC'), 2143, 'tax', 1) RETURNING idDate: 2024-05-08 17:49:36
Detail: Failing row contains (267045, null, 462.ES9601R, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 978, 2024-05-08 19:26:50.60192, 978, 2024-05-08 19:26:50.60192, 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, 473630, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-05-08, 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'), 978, (now() at time zone 'UTC'), 978, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-05-08', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '462.ES9601R', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 473630, 1, 1) RETURNING idDate: 2024-05-08 19:26:50
9 2 LOG: process ... still waiting for AccessExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #9
Day Hour Count May 08 07 2 - ERROR: process 1617718 still waiting for AccessExclusiveLock on relation 44696 of database 65946 after 1000.057 ms
- ERROR: process 1617718 still waiting for AccessExclusiveLock on relation 44696 of database 65946 after 1000.053 ms
Detail: Process holding the lock: 1617090. Wait queue: 1617718, 1617041, 1616927, 1616938, 1616939, 1617074.
Statement: ALTER TABLE "res_company" ALTER COLUMN "security_lead" DROP NOT NULLDate: 2024-05-08 07:59:31
Detail: Process holding the lock: 1617492. Wait queue: 1617718, 1617383, 1616883.
Statement: ALTER TABLE "res_company" ALTER COLUMN "manufacturing_lead" SET NOT NULLDate: 2024-05-08 07:59:34
10 2 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #10
Day Hour Count May 08 13 2 - ERROR: process 1616868 still waiting for ExclusiveLock on tuple (20635,48) of relation 42418 of database 65946 after 1000.049 ms
- ERROR: process 1618264 still waiting for ExclusiveLock on tuple (20731,29) of relation 42418 of database 65946 after 1000.057 ms
Detail: Process holding the lock: 1616764. Wait queue: 1616868.
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 != 1395820 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 != 1395820 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-08 13:14:32
Detail: Process holding the lock: 1616841. Wait queue: 1618264.
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5403768,"write_uid"=1267,"write_date"=(now() at time zone 'UTC') WHERE id IN (1395821)Date: 2024-05-08 13:14:44
11 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #11
Day Hour Count May 08 07 1 - ERROR: could not receive data from client: Connection reset by peer
Date: 2024-05-08 07:59:10
12 1 ERROR: invalid input syntax for type integer: ...
Times Reported Most Frequent Error / Event #12
Day Hour Count May 08 12 1 - ERROR: invalid input syntax for type integer: "virtual_4812" at character 3534
Statement: SELECT "sale_order"."id" as "id", "sale_order"."state" as "state", "sale_order"."amount_tax" as "amount_tax", "sale_order"."pricelist_id" as "pricelist_id", "sale_order"."partner_payment_term_id" as "partner_payment_term_id", "sale_order"."picking_policy" as "picking_policy", "sale_order"."unpaid_amount_total" as "unpaid_amount_total", "sale_order"."source_id" as "source_id", "sale_order"."core_bank_transaction" as "core_bank_transaction", "sale_order"."show_update_pricelist" as "show_update_pricelist", "sale_order"."invoice_status" as "invoice_status", "sale_order"."margin" as "margin", "sale_order"."marked_as_lost" as "marked_as_lost", "sale_order"."reference" as "reference", "sale_order"."amount_total" as "amount_total", "sale_order"."require_payment" as "require_payment", "sale_order"."validity_date" as "validity_date", "sale_order"."sale_action" as "sale_action", "sale_order"."payment_term_need_password" as "payment_term_need_password", "sale_order"."note" as "note", "sale_order"."branch_id" as "branch_id", "sale_order"."incoterm" as "incoterm", "sale_order"."is_cash_sale_order" as "is_cash_sale_order", "sale_order"."commitment_date" as "commitment_date", "sale_order"."signed_by" as "signed_by", "sale_order"."cod_flag" as "cod_flag", "sale_order"."cart_recovery_email_sent" as "cart_recovery_email_sent", "sale_order"."origin" as "origin", "sale_order"."return_count" as "return_count", "sale_order"."is_self_used" as "is_self_used", "sale_order"."is_order_unlock" as "is_order_unlock", "sale_order"."date_order" as "date_order", "sale_order"."website_id" as "website_id", "sale_order"."carrier_id" as "carrier_id", "sale_order"."amount_untaxed" as "amount_untaxed", "sale_order"."payment_term_id" as "payment_term_id", "sale_order"."signed_on" as "signed_on", "sale_order"."effective_date" as "effective_date", "sale_order"."sale_product_qty" as "sale_product_qty", "sale_order"."currency_id" as "currency_id", "sale_order"."delivery" as "delivery", "sale_order"."create_date" as "create_date", "sale_order"."warehouse_id" as "warehouse_id", "sale_order"."client_order_ref" as "client_order_ref", "sale_order"."write_date" as "write_date", "sale_order"."order_type" as "order_type", "sale_order"."sale_part_id" as "sale_part_id", "sale_order"."recompute_delivery_price" as "recompute_delivery_price", "sale_order"."exception_sale" as "exception_sale", "sale_order"."company_id" as "company_id", "sale_order"."partner_invoice_id" as "partner_invoice_id", "sale_order"."name" as "name", "sale_order"."project_id" as "project_id", "sale_order"."special_instructions" as "special_instructions", "sale_order"."opportunity_id" as "opportunity_id", "sale_order"."fiscal_position_id" as "fiscal_position_id", "sale_order"."partner_id" as "partner_id", "sale_order"."user_id" as "user_id", "sale_order"."sale_order_template_id" as "sale_order_template_id", "sale_order"."override_return_rule" as "override_return_rule", "sale_order"."require_signature" as "require_signature", "sale_order"."margin_percent" as "margin_percent", "sale_order"."expense_choice" as "expense_choice", "sale_order"."campaign_id" as "campaign_id", "sale_order"."medium_id" as "medium_id", "sale_order"."partner_shipping_id" as "partner_shipping_id", "sale_order"."team_id" as "team_id", "sale_order"."is_core_sale" as "is_core_sale", "sale_order"."analytic_account_id" as "analytic_account_id", "sale_order"."procurement_group_id" as "procurement_group_id" FROM "sale_order" WHERE ("sale_order"."company_id" in (1)) AND "sale_order".id IN ('virtual_4812')
Date: 2024-05-08 12:51:19