-
Global information
- Generated on Wed Sep 18 00:50:16 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 739,726 log entries in 14s
- Log start from 2024-09-17 00:00:00 to 2024-09-17 23:59:57
-
Overview
Global Stats
- 1,143 Number of unique normalized queries
- 253,781 Number of queries
- 18h52m14s Total query duration
- 2024-09-17 00:00:00 First query
- 2024-09-17 23:59:57 Last query
- 87 queries/s at 2024-09-17 19:04:43 Query peak
- 18h52m14s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 18h52m14s Execute total duration
- 1,473 Number of events
- 9 Number of unique normalized events
- 990 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
- 253,781 Average queries per session
- 18h52m14s 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
- 87 queries/s Query Peak
- 2024-09-17 19:04:43 Date
SELECT Traffic
Key values
- 85 queries/s Query Peak
- 2024-09-17 19:04:43 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 11 queries/s Query Peak
- 2024-09-17 16:40:30 Date
Queries duration
Key values
- 18h52m14s 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) Sep 17 00 3,972 120ms 6s612ms 161ms 16s904ms 19s104ms 27s508ms 01 4,416 120ms 1s820ms 153ms 16s799ms 19s763ms 39s541ms 02 4,317 120ms 1s958ms 158ms 18s291ms 26s916ms 42s890ms 03 3,650 123ms 850ms 151ms 13s485ms 14s545ms 25s891ms 04 3,682 120ms 1s402ms 149ms 13s450ms 17s876ms 19s23ms 05 3,552 120ms 762ms 156ms 14s947ms 17s123ms 20s838ms 06 3,948 120ms 795ms 153ms 13s957ms 16s654ms 19s791ms 07 3,735 120ms 761ms 152ms 14s124ms 15s938ms 19s91ms 08 4,131 120ms 975ms 158ms 17s448ms 20s730ms 23s768ms 09 4,100 120ms 3m59s 353ms 1m11s 2m7s 4m38s 10 5,011 120ms 6s452ms 170ms 21s400ms 27s378ms 43s284ms 11 11,577 120ms 4m25s 272ms 1m44s 2m1s 5m39s 12 19,786 120ms 24s9ms 283ms 2m24s 2m40s 3m2s 13 22,375 120ms 22s276ms 303ms 2m57s 3m41s 4m13s 14 23,097 120ms 9s925ms 299ms 3m12s 3m48s 5m8s 15 25,905 120ms 24s739ms 304ms 3m25s 4m51s 9m25s 16 19,435 120ms 37s837ms 302ms 3m11s 4m 5m20s 17 24,454 120ms 15s414ms 263ms 2m46s 3m33s 4m23s 18 19,541 120ms 27s983ms 260ms 2m3s 2m35s 2m50s 19 16,547 120ms 48s302ms 377ms 3m20s 3m49s 7m43s 20 11,584 120ms 17s172ms 262ms 1m40s 2m 3m2s 21 5,745 120ms 6s558ms 203ms 49s376ms 59s756ms 1m23s 22 5,182 120ms 2s227ms 179ms 25s244ms 1m3s 1m8s 23 4,039 120ms 31s626ms 247ms 43s648ms 48s373ms 1m3s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 17 00 3,918 0 159ms 12s178ms 16s781ms 21s56ms 01 4,286 0 153ms 13s899ms 16s606ms 20s740ms 02 4,124 0 158ms 12s856ms 17s774ms 24s719ms 03 3,650 0 151ms 10s402ms 13s485ms 22s243ms 04 3,678 0 149ms 10s91ms 13s450ms 17s876ms 05 3,552 0 156ms 10s678ms 14s947ms 18s138ms 06 3,948 0 153ms 10s665ms 13s957ms 17s304ms 07 3,726 0 152ms 11s877ms 13s983ms 16s100ms 08 4,094 0 157ms 12s593ms 17s27ms 21s494ms 09 3,982 118 353ms 16s343ms 58s15ms 2m23s 10 4,820 0 169ms 18s472ms 21s48ms 25s89ms 11 9,985 0 259ms 1m6s 1m32s 1m46s 12 16,261 0 298ms 1m50s 1m59s 2m27s 13 17,443 0 332ms 2m17s 2m42s 3m33s 14 18,050 0 327ms 2m12s 2m47s 3m49s 15 18,804 0 339ms 2m7s 2m52s 4m34s 16 15,420 0 325ms 1m53s 3m1s 4m8s 17 17,598 0 291ms 1m55s 2m22s 3m33s 18 15,776 0 274ms 1m34s 1m45s 2m27s 19 13,869 0 404ms 1m52s 2m59s 4m 20 9,050 0 283ms 56s524ms 1m29s 2m9s 21 4,777 0 203ms 22s287ms 31s305ms 49s60ms 22 4,740 0 180ms 19s269ms 23s738ms 46s911ms 23 3,957 0 166ms 14s558ms 16s828ms 28s820ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 17 00 0 53 1 0 298ms 0ms 0ms 2s510ms 01 0 130 0 0 171ms 0ms 0ms 2s398ms 02 0 193 0 0 172ms 0ms 0ms 3s329ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 391ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 7 0 0 171ms 0ms 0ms 0ms 08 0 36 0 0 216ms 0ms 0ms 975ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 189 2 0 175ms 0ms 269ms 4s888ms 11 0 1,586 6 0 357ms 4s874ms 10s106ms 18s901ms 12 0 3,500 21 0 210ms 13s816ms 18s772ms 31s126ms 13 0 4,885 45 0 200ms 17s345ms 23s892ms 32s103ms 14 0 5,021 22 0 196ms 18s935ms 23s293ms 26s312ms 15 0 7,055 42 0 211ms 25s745ms 30s429ms 41s802ms 16 1 3,978 28 0 212ms 14s303ms 24s905ms 41s356ms 17 0 6,816 33 0 190ms 24s814ms 32s619ms 41s380ms 18 0 3,729 29 0 199ms 13s942ms 19s528ms 30s894ms 19 0 2,629 39 0 240ms 9s394ms 17s979ms 28s309ms 20 0 2,503 31 0 188ms 8s236ms 12s757ms 23s866ms 21 0 961 7 0 202ms 1s209ms 6s529ms 20s401ms 22 0 442 0 0 173ms 0ms 1s588ms 13s654ms 23 0 2 80 0 4s169ms 0ms 8s365ms 34s231ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Sep 17 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 Sep 17 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 Sep 17 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 Sep 17 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 Sep 17 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) Sep 17 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 Sep 17 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 Sep 17 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Sep 17 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
- 19 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 3 7m57s 1m10s 4m6s 2m39s update "bus_presence" set "last_poll" = ?, "last_presence" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-09-17 17:04:43', "last_presence" = '2024-09-17 17:04:36.520593' WHERE id IN (152);
Date: 2024-09-17 17:08:49
2 11 1m53s 5s135ms 33s99ms 10s345ms 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 != 1661359 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 != 1661359 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-09-17 14:56:48
3 3 27s644ms 3s622ms 22s632ms 9s214ms 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" = 5706401, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1660801);
Date: 2024-09-17 13:16:53
4 1 1s732ms 1s732ms 1s732ms 1s732ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = 'e1a3c470-5ed3-49dc-a9ca-71d015ce4f94', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1660645);
Date: 2024-09-17 12:55:15
5 1 1s63ms 1s63ms 1s63ms 1s63ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188903) and warehouse_id = (43));
Date: 2024-09-17 19:16:18
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188988) and warehouse_id = (43));
Date: 2024-09-17 19:16:18
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (188579) and warehouse_id = (43));
Date: 2024-09-17 19:16:15
Queries that waited the most
Rank Wait time Query 1 4m6s UPDATE "bus_presence" SET "last_poll" = '2024-09-17 17:04:43', "last_presence" = '2024-09-17 17:04:36.520593' WHERE id IN (152);[ Date: 2024-09-17 17:08:49 ]
2 2m41s UPDATE "bus_presence" SET "last_poll" = '2024-09-17 17:06:08', "last_presence" = '2024-09-17 17:05:48.954376' WHERE id IN (152);[ Date: 2024-09-17 17:08:49 ]
3 1m10s UPDATE "bus_presence" SET "last_poll" = '2024-09-17 17:07:39', "last_presence" = '2024-09-17 17:07:30.006603' WHERE id IN (152);[ Date: 2024-09-17 17:08:49 ]
4 33s99ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661766 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661766 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 15:56:31 ]
5 32s266ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661750 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661750 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 15:56:31 ]
6 22s632ms UPDATE "account_move" SET "message_main_attachment_id" = 5708038, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (1662668);[ Date: 2024-09-17 19:03:46 ]
7 21s911ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661791 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661791 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 16:04:46 ]
8 6s867ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661743 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661743 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 15:55:16 ]
9 5s135ms 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 != 1661359 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 != 1661359 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 14:56:48 ]
10 4s409ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661788 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661788 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 15:58:31 ]
11 3s622ms UPDATE "account_move" SET "message_main_attachment_id" = 5706401, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1660801);[ Date: 2024-09-17 13:16:53 ]
12 2s729ms 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 != 1661154 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 != 1661154 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 14:14:46 ]
13 2s320ms 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 != 1660713 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 != 1660713 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 13:08:13 ]
14 2s67ms 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 != 1661248 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 != 1661248 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 14:32:26 ]
15 1s743ms 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 != 1422626 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 != 1422626 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 17:46:18 ]
16 1s732ms UPDATE "account_move" SET "access_token" = 'e1a3c470-5ed3-49dc-a9ca-71d015ce4f94', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1660645);[ Date: 2024-09-17 12:55:15 ]
17 1s388ms UPDATE "account_move" SET "message_main_attachment_id" = 5707432, "write_uid" = 1043, "write_date" = (now() at time zone 'UTC') WHERE id IN (1661819);[ Date: 2024-09-17 16:18:17 ]
18 1s244ms 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 != 1661254 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 != 1661254 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-17 14:33:58 ]
19 1s63ms update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (269947) and warehouse_id = (45));[ Date: 2024-09-17 16:40:37 ]
-
Queries
Queries by type
Key values
- 209,508 Total read queries
- 44,273 Total write queries
Queries by database
Key values
- unknown Main database
- 253,781 Requests
- 18h52m14s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 254,512 Requests
User Request type Count Duration unknown Total 254,512 18h54m44s copy to 118 13m40s cte 47 18s396ms delete 387 24m31s insert 1 1s138ms select 210,188 16h1m24s tcl 2 266ms update 43,769 2h14m48s Duration by user
Key values
- 18h54m44s (unknown) Main time consuming user
User Request type Count Duration unknown Total 254,512 18h54m44s copy to 118 13m40s cte 47 18s396ms delete 387 24m31s insert 1 1s138ms select 210,188 16h1m24s tcl 2 266ms update 43,769 2h14m48s Queries by host
Key values
- unknown Main host
- 254,512 Requests
- 18h54m44s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 253,781 Requests
- 18h52m14s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-09-17 17:00:10 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 233,290 100-500ms duration
Slowest individual queries
Rank Duration Query 1 4m25s DELETE FROM account_move_line WHERE id IN (5845836, 5845837, 5845838, 5845839, 5845840, 5845841, 5845842, 5845843, 5845844, 5845845, 5845846, 5845847, 5845848, 5845849, 5845850, 5845851, 5845852, 5845853, 5845854, 5845855, 5845856, 5845857, 5845858, 5845859, 5845860, 5845861, 5845862, 5845863, 5845864, 5845865, 5845866, 5845867, 5845868, 5845869, 5845870, 5845871, 5845872, 5845873, 5845874, 5845875, 5845876, 5845877, 5845878, 5845879, 5845880, 5845881, 5845882, 5845883, 5845884, 5845885, 5845886, 5845887, 5845888, 5845889, 5845890, 5845891, 5845892, 5845893, 5845894, 5845895, 5845896, 5845897, 5845898, 5845899, 5845900, 5845901, 5845902, 5845903, 5845904, 5845905, 5845906, 5845907, 5845908, 5845909, 5845910, 5845911, 5845912, 5845913, 5845914, 5845915, 5845916, 5845917, 5845918, 5845919, 5845920, 5845921, 5845922, 5845923, 5845924, 5845925, 5845926, 5845927, 5845928, 5845929, 5845930, 5845931, 5845932, 5845933, 5845934, 5845935, 5845936, 5845937, 5845938, 5845939, 5845940, 5845941, 5845942, 5845943, 5845944, 5845945, 5845946, 5845947, 5845948, 5845949, 5845950, 5845951, 5845952, 5845953);[ Date: 2024-09-17 11:17:39 ]
2 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-09-17 09:10:30 ]
3 2m11s 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-09-17 09:04:20 ]
4 1m56s 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-09-17 09:06:30 ]
5 48s302ms DELETE FROM account_move_line WHERE id IN (5653257, 5653258, 5653259, 5653260, 5653261, 5653262, 5653263, 5653264, 5653265, 5653266, 5653267, 5653268, 5653269, 5653270, 5653271, 5653272, 5653273, 5653274, 5653275, 5653276, 5853279, 5853280);[ Date: 2024-09-17 19:37:16 ]
6 39s48ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-09-17 09:01:03 ]
7 37s837ms DELETE FROM account_move_line WHERE id IN (5765761, 5765762, 5765763, 5765764, 5765765, 5765766, 5765767, 5765768, 5765769, 5765770, 5765771, 5765772, 5765773, 5765774, 5765775, 5849626, 5849627);[ Date: 2024-09-17 16:04:27 ]
8 36s388ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-17 19:51:08 ]
9 36s54ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-17 19:51:11 ]
10 33s975ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-17 19:50:35 ]
11 31s626ms DELETE FROM account_move_line WHERE id IN (5850119, 5850120, 5850121, 5850122, 5846836, 5846837, 5846838, 5850348, 5850349, 5850350, 5850351, 5850352, 5850353, 5850354, 5850355);[ Date: 2024-09-17 23:24:54 ]
12 31s569ms DELETE FROM account_move_line WHERE id IN (5852530, 5852531, 5649645, 5649646, 5649647, 5649648, 5649649, 5649650, 5649651, 5649652, 5649653, 5649654, 5649655, 5649656, 5649657);[ Date: 2024-09-17 23:36:56 ]
13 28s659ms DELETE FROM account_move_line WHERE id IN (5839704, 5839705, 5839706, 5839707, 5839708, 5839709, 5839710, 5839711, 5839712, 5839713, 5839714, 5839715);[ Date: 2024-09-17 19:03:46 ]
14 28s251ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-09-01') AND ("sale_history_line"."invoice_date" <= '2024-09-30')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-09-17 19:08:36 ]
15 27s983ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-17 18:44:42 ]
16 27s409ms DELETE FROM account_move_line WHERE id IN (5845647, 5845648, 5845649, 5851475, 5851476, 5851477, 5851478, 5851479, 5851480, 5851481, 5851482, 5851483, 5851484);[ Date: 2024-09-17 23:38:12 ]
17 25s150ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-09-01') AND ("sale_history_line"."invoice_date" <= '2024-09-30')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-09-17 19:09:09 ]
18 24s739ms DELETE FROM account_move_line WHERE id IN (5664828, 5664829, 5664830, 5664831, 5664832, 5664833, 5664834, 5664835, 5664836, 5849418, 5849419);[ Date: 2024-09-17 15:56:14 ]
19 24s130ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type, current_branch) TO stdout;[ Date: 2024-09-17 09:12:48 ]
20 24s9ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."tue_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-09-17 12:20:27 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 7h46m 131,294 121ms 4s41ms 212ms 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 Sep 17 00 3,361 8m19s 148ms 01 3,545 8m28s 143ms 02 3,421 8m16s 145ms 03 3,261 7m54s 145ms 04 3,315 7m57s 144ms 05 3,142 7m52s 150ms 06 3,387 8m 141ms 07 3,343 8m10s 146ms 08 3,518 8m45s 149ms 09 3,523 8m41s 148ms 10 4,152 10m1s 144ms 11 5,997 16m53s 168ms 12 9,143 32m5s 210ms 13 8,775 37m13s 254ms 14 8,934 42m33s 285ms 15 8,912 47m22s 318ms 16 8,898 43m40s 294ms 17 9,128 35m49s 235ms 18 9,401 31m1s 198ms 19 8,216 42m17s 308ms 20 5,467 16m28s 180ms 21 3,616 9m40s 160ms 22 3,572 9m48s 164ms 23 3,267 8m37s 158ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_972"', '["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s41ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1018"', '["pointspring_master","calendar.alarm",19556]', '["pointspring_master","mail.channel",111]', '["pointspring_master","mail.channel",112]', '["pointspring_master","mail.channel",369]', '["pointspring_master","mail.channel",430]', '["pointspring_master","mail.channel",475]', '["pointspring_master","mail.channel",542]', '["pointspring_master","mail.channel",634]', '["pointspring_master","res.partner",19556]', '["pointspring_master","ir.needaction",19556]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s38ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",545]', '["pointspring_master","mail.channel",563]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s23ms
2 52m16s 7,649 376ms 3s533ms 410ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 17 00 17 6s611ms 388ms 01 32 12s367ms 386ms 02 51 20s81ms 393ms 08 3 1s168ms 389ms 10 45 17s614ms 391ms 11 302 2m2s 405ms 12 621 4m16s 412ms 13 778 5m25s 418ms 14 892 6m11s 416ms 15 1,325 9m7s 413ms 16 783 5m19s 407ms 17 1,004 6m55s 413ms 18 511 3m29s 410ms 19 410 2m48s 409ms 20 551 3m35s 391ms 21 214 1m23s 388ms 22 110 43s178ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:51:30 Duration: 3s533ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:25:28 Duration: 2s499ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 17:29:17 Duration: 1s936ms
3 50m23s 3,499 708ms 3s576ms 864ms 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 #3
Day Hour Count Duration Avg duration Sep 17 00 6 4s500ms 750ms 10 52 38s597ms 742ms 11 293 3m53s 795ms 12 462 6m28s 841ms 13 505 7m31s 894ms 14 520 8m3s 930ms 15 204 3m12s 946ms 16 296 4m24s 892ms 17 417 6m2s 868ms 18 355 4m55s 833ms 19 142 1m59s 841ms 20 191 2m27s 769ms 21 48 35s358ms 736ms 22 1 719ms 719ms 23 7 5s224ms 746ms -
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 ('%%415027%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%415027%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%415027%'))) 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-09-17 14:33:42 Duration: 3s576ms
-
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 ('%%8184120%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%818.4120%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%818.4120%'))) 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-09-17 16:02:19 Duration: 3s112ms
-
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 ('%%sw5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sw5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sw5%'))) 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-09-17 17:08:54 Duration: 3s88ms
4 46m22s 7,649 300ms 3s514ms 363ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 17 00 17 5s610ms 330ms 01 32 10s276ms 321ms 02 51 16s848ms 330ms 08 3 1s18ms 339ms 10 45 14s335ms 318ms 11 302 1m45s 349ms 12 621 3m46s 364ms 13 778 5m 386ms 14 892 5m35s 375ms 15 1,324 8m10s 370ms 16 784 4m42s 360ms 17 1,004 6m13s 371ms 18 511 3m6s 365ms 19 410 2m29s 363ms 20 551 3m1s 328ms 21 214 1m8s 318ms 22 110 35s887ms 326ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 16:02:19 Duration: 3s514ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 17:08:54 Duration: 3s144ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 13:07:20 Duration: 2s975ms
5 33m52s 11,023 160ms 1s79ms 184ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 17 00 23 4s97ms 178ms 01 47 8s109ms 172ms 02 76 13s227ms 174ms 08 3 536ms 178ms 10 73 12s732ms 174ms 11 418 1m16s 183ms 12 828 2m34s 186ms 13 984 3m5s 188ms 14 1,169 3m40s 188ms 15 2,137 6m33s 184ms 16 1,179 3m39s 186ms 17 1,263 3m54s 186ms 18 884 2m43s 185ms 19 575 1m46s 184ms 20 848 2m29s 175ms 21 371 1m4s 174ms 22 145 25s236ms 174ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(5.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 188724 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 14:06:07 Duration: 1s79ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 239141 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 16:55:59 Duration: 1s39ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 191114 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-09-17 14:58:36 Duration: 1s1ms
6 22m58s 7,497 166ms 638ms 183ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 17 00 12 2s249ms 187ms 08 11 2s62ms 187ms 10 44 7s772ms 176ms 11 389 1m10s 182ms 12 735 2m17s 187ms 13 982 3m1s 184ms 14 948 2m55s 184ms 15 436 1m21s 187ms 16 559 1m42s 183ms 17 1,939 5m52s 181ms 18 779 2m23s 183ms 19 367 1m8s 186ms 20 242 43s163ms 178ms 21 53 9s328ms 176ms 23 1 169ms 169ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 132.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (132.0 - 132.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191042 and warehouse_id = 36 and company_id = 1;
Date: 2024-09-17 19:16:18 Duration: 638ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 21.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (21.0 - 20.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191088 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-17 19:03:16 Duration: 493ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((139.0 - 139.0) + (0.0 - 0.0), 0) ELSE GREATEST ((139.0 - 139.0), 0) END where product_id = 224395 and warehouse_id = 44 and company_id = 1;
Date: 2024-09-17 12:48:10 Duration: 403ms
7 20m42s 2,207 483ms 2s934ms 562ms 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 #7
Day Hour Count Duration Avg duration Sep 17 00 6 2s959ms 493ms 01 2 1s30ms 515ms 07 2 1s1ms 500ms 08 19 9s627ms 506ms 09 18 9s42ms 502ms 10 18 8s880ms 493ms 11 148 1m19s 534ms 12 268 2m33s 570ms 13 343 3m20s 583ms 14 316 3m2s 578ms 15 218 2m3s 567ms 16 161 1m27s 546ms 17 216 2m6s 583ms 18 175 1m35s 548ms 19 193 1m48s 560ms 20 76 38s801ms 510ms 21 25 12s388ms 495ms 23 3 1s468ms 489ms -
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/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 17:08:54 Duration: 2s934ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s972ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s757ms
8 15m29s 4,501 171ms 2s342ms 206ms 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 #8
Day Hour Count Duration Avg duration Sep 17 01 97 17s930ms 184ms 02 140 25s644ms 183ms 11 16 3s603ms 225ms 12 80 16s538ms 206ms 13 163 39s318ms 241ms 14 905 3m15s 216ms 15 860 3m4s 214ms 16 354 1m14s 210ms 17 221 47s698ms 215ms 18 12 2s440ms 203ms 19 651 2m11s 201ms 20 525 1m43s 198ms 21 26 4s732ms 182ms 22 451 1m21s 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 = 51202 and fd.product_id = 176225;
Date: 2024-09-17 16:32:57 Duration: 2s342ms
-
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 = 51202 and fd.product_id = 176226;
Date: 2024-09-17 16:32:58 Duration: 1s461ms
-
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 = 51464 and fd.product_id = 255021;
Date: 2024-09-17 14:33:42 Duration: 1s179ms
9 14m59s 111 2s69ms 4m25s 8s107ms delete from account_move_line where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 17 11 2 4m29s 2m14s 14 3 18s975ms 6s325ms 15 11 1m49s 9s957ms 16 12 1m12s 6s18ms 17 2 6s709ms 3s354ms 18 5 28s163ms 5s632ms 19 4 1m23s 20s882ms 23 72 5m10s 4s316ms -
DELETE FROM account_move_line WHERE id IN (5845836, 5845837, 5845838, 5845839, 5845840, 5845841, 5845842, 5845843, 5845844, 5845845, 5845846, 5845847, 5845848, 5845849, 5845850, 5845851, 5845852, 5845853, 5845854, 5845855, 5845856, 5845857, 5845858, 5845859, 5845860, 5845861, 5845862, 5845863, 5845864, 5845865, 5845866, 5845867, 5845868, 5845869, 5845870, 5845871, 5845872, 5845873, 5845874, 5845875, 5845876, 5845877, 5845878, 5845879, 5845880, 5845881, 5845882, 5845883, 5845884, 5845885, 5845886, 5845887, 5845888, 5845889, 5845890, 5845891, 5845892, 5845893, 5845894, 5845895, 5845896, 5845897, 5845898, 5845899, 5845900, 5845901, 5845902, 5845903, 5845904, 5845905, 5845906, 5845907, 5845908, 5845909, 5845910, 5845911, 5845912, 5845913, 5845914, 5845915, 5845916, 5845917, 5845918, 5845919, 5845920, 5845921, 5845922, 5845923, 5845924, 5845925, 5845926, 5845927, 5845928, 5845929, 5845930, 5845931, 5845932, 5845933, 5845934, 5845935, 5845936, 5845937, 5845938, 5845939, 5845940, 5845941, 5845942, 5845943, 5845944, 5845945, 5845946, 5845947, 5845948, 5845949, 5845950, 5845951, 5845952, 5845953);
Date: 2024-09-17 11:17:39 Duration: 4m25s
-
DELETE FROM account_move_line WHERE id IN (5653257, 5653258, 5653259, 5653260, 5653261, 5653262, 5653263, 5653264, 5653265, 5653266, 5653267, 5653268, 5653269, 5653270, 5653271, 5653272, 5653273, 5653274, 5653275, 5653276, 5853279, 5853280);
Date: 2024-09-17 19:37:16 Duration: 48s302ms
-
DELETE FROM account_move_line WHERE id IN (5765761, 5765762, 5765763, 5765764, 5765765, 5765766, 5765767, 5765768, 5765769, 5765770, 5765771, 5765772, 5765773, 5765774, 5765775, 5849626, 5849627);
Date: 2024-09-17 16:04:27 Duration: 37s837ms
10 14m52s 5,765 123ms 1s652ms 154ms 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 #10
Day Hour Count Duration Avg duration Sep 17 00 240 35s239ms 146ms 01 240 34s793ms 144ms 02 240 34s822ms 145ms 03 240 34s836ms 145ms 04 240 34s755ms 144ms 05 240 34s463ms 143ms 06 240 34s506ms 143ms 07 240 34s832ms 145ms 08 240 35s33ms 145ms 09 240 35s94ms 146ms 10 240 34s918ms 145ms 11 240 37s527ms 156ms 12 240 40s737ms 169ms 13 241 40s768ms 169ms 14 241 41s463ms 172ms 15 241 44s670ms 185ms 16 241 39s325ms 163ms 17 240 40s504ms 168ms 18 240 40s299ms 167ms 19 240 41s276ms 171ms 20 240 36s779ms 153ms 21 240 35s82ms 146ms 22 241 35s354ms 146ms 23 240 34s934ms 145ms -
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.foreign_table_options', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.role_table_grants', 'information_schema.constraint_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_udt_grants', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_server_options', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.check_constraints', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.view_column_usage', 'information_schema.administrable_role_authorizations', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.column_udt_usage', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.domains', 'information_schema.routine_column_usage', 'information_schema.user_mappings', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.role_routine_grants', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.usage_privileges', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_description', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_depend', 'pg_catalog.pg_publication', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_constraint', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_attribute', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_type', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_collation', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_database', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_am', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_sequence', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences');
Date: 2024-09-17 15:57:37 Duration: 1s652ms
-
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_statio_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_views', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_index', 'pg_catalog.pg_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_operator', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_group', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_conversion', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_class', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_depend', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_range', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_extension', 'pg_catalog.pg_enum', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_opclass', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_replication_origin', 'information_schema.attributes', 'information_schema.check_constraints', 'information_schema.routine_column_usage', 'information_schema.table_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.user_mapping_options', 'information_schema.parameters', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.sequences', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.column_udt_usage', 'information_schema.sql_features', 'information_schema.views', 'information_schema.applicable_roles', 'information_schema.table_constraints', 'information_schema.constraint_column_usage', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.role_usage_grants', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.schemata', 'information_schema.triggers', 'information_schema.element_types', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.routine_privileges', 'information_schema.user_mappings', 'information_schema.column_options', 'information_schema.foreign_table_options', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.role_table_grants', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-09-17 19:01:05 Duration: 581ms
-
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_group', 'pg_catalog.pg_index', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_attribute', 'pg_catalog.pg_language', 'pg_catalog.pg_namespace', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policy', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_extension', 'pg_catalog.pg_rules', 'pg_catalog.pg_opclass', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_sequences', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_views', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_publication', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_settings', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_matviews', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_type', 'pg_catalog.pg_transform', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_user_mappings', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.data_type_privileges', 'information_schema.check_constraints', 'information_schema.user_defined_types', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.applicable_roles', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.foreign_servers', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.tables', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.sql_sizing', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.routine_routine_usage', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.sequences', 'information_schema.columns', 'information_schema.triggers', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.check_constraint_routine_usage', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-17 22:12:06 Duration: 560ms
11 14m22s 4,586 164ms 892ms 188ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 17 00 4 726ms 181ms 01 2 346ms 173ms 02 3 528ms 176ms 08 9 1s923ms 213ms 10 12 2s166ms 180ms 11 162 30s21ms 185ms 12 439 1m23s 190ms 13 669 2m10s 194ms 14 587 1m50s 187ms 15 671 2m5s 187ms 16 359 1m6s 185ms 17 830 2m35s 186ms 18 301 55s813ms 185ms 19 349 1m5s 189ms 20 172 30s940ms 179ms 21 16 2s828ms 176ms 22 1 170ms 170ms -
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:25 Duration: 892ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:26 Duration: 886ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 267610 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 19:03:17 Duration: 639ms
12 14m1s 812 903ms 2s244ms 1s36ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 17 10 3 2s755ms 918ms 11 41 39s715ms 968ms 12 105 1m45s 1s3ms 13 96 1m41s 1s58ms 14 104 1m52s 1s76ms 15 95 1m41s 1s71ms 16 65 1m5s 1s13ms 17 78 1m22s 1s52ms 18 104 1m45s 1s18ms 19 75 1m19s 1s53ms 20 42 41s436ms 986ms 21 2 2s2ms 1s1ms 23 2 1s939ms 969ms -
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 ('%45700%')) 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 ('%45700%'))) 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 ('%45700%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%45700%')))))) 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-09-17 15:02:37 Duration: 2s244ms
-
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 ('%k0808188%')) 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 ('%k0808188%'))) 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 ('%k0808188%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k0808188%')))))) 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-09-17 19:03:18 Duration: 2s27ms
-
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 ('%S-9704%')) 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 ('%S-9704%'))) 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 ('%S-9704%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%S-9704%')))))) 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-09-17 15:07:25 Duration: 1s991ms
13 10m15s 3,490 120ms 759ms 176ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 17 11 399 1m4s 160ms 12 359 1m9s 194ms 13 317 56s337ms 177ms 14 299 54s734ms 183ms 15 400 1m13s 183ms 16 143 23s476ms 164ms 17 661 1m53s 171ms 18 572 1m35s 167ms 19 340 1m4s 189ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189446) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '39')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 19:01:05 Duration: 759ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 196373) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '50')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 16:33:49 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 238909) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '44')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 12:29:47 Duration: 726ms
14 10m4s 708 709ms 2s783ms 854ms 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 #14
Day Hour Count Duration Avg duration Sep 17 11 17 15s886ms 934ms 12 106 1m28s 830ms 13 38 32s463ms 854ms 14 99 1m26s 874ms 15 50 41s143ms 822ms 16 28 23s658ms 844ms 17 137 1m57s 860ms 18 148 2m4s 842ms 19 53 48s360ms 912ms 20 32 25s957ms 811ms -
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 ('%%194%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%194%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%194%'))) 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-09-17 18:52:39 Duration: 2s783ms
-
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 ('%%5280x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-280x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-280x%'))) 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-09-17 14:25:12 Duration: 1s840ms
-
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 ('%%5280%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-280%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-280%'))) 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-09-17 14:25:12 Duration: 1s626ms
15 9m22s 3,064 159ms 887ms 183ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 17 01 6 1s53ms 175ms 02 18 3s50ms 169ms 08 3 655ms 218ms 10 10 1s758ms 175ms 11 98 17s421ms 177ms 12 222 40s703ms 183ms 13 360 1m8s 189ms 14 331 1m1s 186ms 15 544 1m42s 187ms 16 225 40s898ms 181ms 17 463 1m23s 179ms 18 285 53s411ms 187ms 19 166 30s774ms 185ms 20 186 32s676ms 175ms 21 103 17s696ms 171ms 22 44 7s439ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:39 Duration: 887ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:38 Duration: 864ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 269958 AND warehouse_id = 46;
Date: 2024-09-17 18:47:42 Duration: 786ms
16 8m57s 2,916 159ms 755ms 184ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 17 00 11 1s907ms 173ms 01 11 1s881ms 171ms 02 12 2s134ms 177ms 07 4 680ms 170ms 10 23 3s929ms 170ms 11 135 24s518ms 181ms 12 247 45s876ms 185ms 13 318 59s609ms 187ms 14 350 1m4s 183ms 15 516 1m36s 187ms 16 270 49s935ms 184ms 17 394 1m12s 183ms 18 186 34s638ms 186ms 19 176 33s280ms 189ms 20 181 31s667ms 174ms 21 54 9s434ms 174ms 22 28 4s703ms 167ms -
UPDATE product_warehouse_inventory SET qty_reserve = 11.0 WHERE product_id = 185772 AND warehouse_id = 40;
Date: 2024-09-17 15:33:40 Duration: 755ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 4.0 WHERE product_id = 184750 AND warehouse_id = 38;
Date: 2024-09-17 15:03:51 Duration: 518ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 212516 AND warehouse_id = 38;
Date: 2024-09-17 16:40:24 Duration: 408ms
17 7m41s 529 719ms 1s789ms 872ms 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 #17
Day Hour Count Duration Avg duration Sep 17 12 20 15s734ms 786ms 13 6 5s195ms 865ms 14 16 12s697ms 793ms 15 349 5m6s 877ms 16 118 1m45s 897ms 17 20 15s656ms 782ms -
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 ('%%esiiaex4%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-a-ex4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-a-ex4%'))) 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-09-17 15:00:19 Duration: 1s789ms
-
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 ('%%esiiaex47%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-a-ex47%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-a-ex47%'))) 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-09-17 15:00:20 Duration: 1s772ms
-
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 ('%%a470%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a470%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a470%'))) 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-09-17 16:42:55 Duration: 1s688ms
18 7m28s 2,962 120ms 1s253ms 151ms 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 #18
Day Hour Count Duration Avg duration Sep 17 00 2 483ms 241ms 01 9 1s168ms 129ms 02 46 7s321ms 159ms 08 3 408ms 136ms 10 15 2s15ms 134ms 11 231 32s653ms 141ms 12 293 44s128ms 150ms 13 452 1m8s 152ms 14 479 1m16s 159ms 15 306 45s288ms 148ms 16 183 26s478ms 144ms 17 285 41s104ms 144ms 18 179 25s98ms 140ms 19 268 45s420ms 169ms 20 90 12s45ms 133ms 21 23 3s425ms 148ms 22 96 16s49ms 167ms 23 2 246ms 123ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (210133, 210157, 210149, 210206)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 14:33:41 Duration: 1s253ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (183439)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 14:16:59 Duration: 1s57ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (187811, 219747, 219776, 246067, 218929, 221008, 269919, 264696, 221812)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 13:11:26 Duration: 709ms
19 7m27s 553 705ms 1s708ms 808ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 17 12 42 37s469ms 892ms 13 24 21s898ms 912ms 14 124 1m40s 809ms 15 62 56s434ms 910ms 16 5 4s357ms 871ms 17 10 7s644ms 764ms 18 72 58s409ms 811ms 19 23 18s343ms 797ms 20 120 1m30s 752ms 21 71 51s881ms 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" = '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 ('%%22175475%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%22175475%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%22175475%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 15:03:41 Duration: 1s708ms
-
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 ('%%25633161%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%25633161%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%25633161%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 15:03:00 Duration: 1s575ms
-
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 ('%%ss2512%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ss2512%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ss2512%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 13:05:37 Duration: 1s516ms
20 7m2s 2,276 169ms 947ms 185ms update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 17 01 7 1s218ms 174ms 02 7 1s230ms 175ms 10 26 4s498ms 173ms 11 59 10s839ms 183ms 12 141 26s358ms 186ms 13 108 20s587ms 190ms 14 278 52s343ms 188ms 15 502 1m33s 186ms 16 258 48s572ms 188ms 17 271 50s380ms 185ms 18 235 43s876ms 186ms 19 112 21s203ms 189ms 20 215 38s41ms 176ms 21 55 9s557ms 173ms 22 2 343ms 171ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(14.0, 0) + COALESCE(3.0, 0) WHERE product_id = 238967 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 15:48:02 Duration: 947ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(3.0, 0) + COALESCE(14.0, 0) WHERE product_id = 175858 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 14:21:04 Duration: 695ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(10.0, 0) + COALESCE(12.0, 0) WHERE product_id = 238958 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 15:45:35 Duration: 506ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 131,294 7h46m 121ms 4s41ms 212ms 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 Sep 17 00 3,361 8m19s 148ms 01 3,545 8m28s 143ms 02 3,421 8m16s 145ms 03 3,261 7m54s 145ms 04 3,315 7m57s 144ms 05 3,142 7m52s 150ms 06 3,387 8m 141ms 07 3,343 8m10s 146ms 08 3,518 8m45s 149ms 09 3,523 8m41s 148ms 10 4,152 10m1s 144ms 11 5,997 16m53s 168ms 12 9,143 32m5s 210ms 13 8,775 37m13s 254ms 14 8,934 42m33s 285ms 15 8,912 47m22s 318ms 16 8,898 43m40s 294ms 17 9,128 35m49s 235ms 18 9,401 31m1s 198ms 19 8,216 42m17s 308ms 20 5,467 16m28s 180ms 21 3,616 9m40s 160ms 22 3,572 9m48s 164ms 23 3,267 8m37s 158ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_972"', '["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s41ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1018"', '["pointspring_master","calendar.alarm",19556]', '["pointspring_master","mail.channel",111]', '["pointspring_master","mail.channel",112]', '["pointspring_master","mail.channel",369]', '["pointspring_master","mail.channel",430]', '["pointspring_master","mail.channel",475]', '["pointspring_master","mail.channel",542]', '["pointspring_master","mail.channel",634]', '["pointspring_master","res.partner",19556]', '["pointspring_master","ir.needaction",19556]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s38ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",545]', '["pointspring_master","mail.channel",563]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s23ms
2 11,023 33m52s 160ms 1s79ms 184ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 17 00 23 4s97ms 178ms 01 47 8s109ms 172ms 02 76 13s227ms 174ms 08 3 536ms 178ms 10 73 12s732ms 174ms 11 418 1m16s 183ms 12 828 2m34s 186ms 13 984 3m5s 188ms 14 1,169 3m40s 188ms 15 2,137 6m33s 184ms 16 1,179 3m39s 186ms 17 1,263 3m54s 186ms 18 884 2m43s 185ms 19 575 1m46s 184ms 20 848 2m29s 175ms 21 371 1m4s 174ms 22 145 25s236ms 174ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(5.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 188724 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 14:06:07 Duration: 1s79ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 239141 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 16:55:59 Duration: 1s39ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 191114 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-09-17 14:58:36 Duration: 1s1ms
3 7,649 52m16s 376ms 3s533ms 410ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 17 00 17 6s611ms 388ms 01 32 12s367ms 386ms 02 51 20s81ms 393ms 08 3 1s168ms 389ms 10 45 17s614ms 391ms 11 302 2m2s 405ms 12 621 4m16s 412ms 13 778 5m25s 418ms 14 892 6m11s 416ms 15 1,325 9m7s 413ms 16 783 5m19s 407ms 17 1,004 6m55s 413ms 18 511 3m29s 410ms 19 410 2m48s 409ms 20 551 3m35s 391ms 21 214 1m23s 388ms 22 110 43s178ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:51:30 Duration: 3s533ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:25:28 Duration: 2s499ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 17:29:17 Duration: 1s936ms
4 7,649 46m22s 300ms 3s514ms 363ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 17 00 17 5s610ms 330ms 01 32 10s276ms 321ms 02 51 16s848ms 330ms 08 3 1s18ms 339ms 10 45 14s335ms 318ms 11 302 1m45s 349ms 12 621 3m46s 364ms 13 778 5m 386ms 14 892 5m35s 375ms 15 1,324 8m10s 370ms 16 784 4m42s 360ms 17 1,004 6m13s 371ms 18 511 3m6s 365ms 19 410 2m29s 363ms 20 551 3m1s 328ms 21 214 1m8s 318ms 22 110 35s887ms 326ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 16:02:19 Duration: 3s514ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 17:08:54 Duration: 3s144ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 13:07:20 Duration: 2s975ms
5 7,497 22m58s 166ms 638ms 183ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 17 00 12 2s249ms 187ms 08 11 2s62ms 187ms 10 44 7s772ms 176ms 11 389 1m10s 182ms 12 735 2m17s 187ms 13 982 3m1s 184ms 14 948 2m55s 184ms 15 436 1m21s 187ms 16 559 1m42s 183ms 17 1,939 5m52s 181ms 18 779 2m23s 183ms 19 367 1m8s 186ms 20 242 43s163ms 178ms 21 53 9s328ms 176ms 23 1 169ms 169ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 132.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (132.0 - 132.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191042 and warehouse_id = 36 and company_id = 1;
Date: 2024-09-17 19:16:18 Duration: 638ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 21.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (21.0 - 20.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191088 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-17 19:03:16 Duration: 493ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((139.0 - 139.0) + (0.0 - 0.0), 0) ELSE GREATEST ((139.0 - 139.0), 0) END where product_id = 224395 and warehouse_id = 44 and company_id = 1;
Date: 2024-09-17 12:48:10 Duration: 403ms
6 5,765 14m52s 123ms 1s652ms 154ms 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 Sep 17 00 240 35s239ms 146ms 01 240 34s793ms 144ms 02 240 34s822ms 145ms 03 240 34s836ms 145ms 04 240 34s755ms 144ms 05 240 34s463ms 143ms 06 240 34s506ms 143ms 07 240 34s832ms 145ms 08 240 35s33ms 145ms 09 240 35s94ms 146ms 10 240 34s918ms 145ms 11 240 37s527ms 156ms 12 240 40s737ms 169ms 13 241 40s768ms 169ms 14 241 41s463ms 172ms 15 241 44s670ms 185ms 16 241 39s325ms 163ms 17 240 40s504ms 168ms 18 240 40s299ms 167ms 19 240 41s276ms 171ms 20 240 36s779ms 153ms 21 240 35s82ms 146ms 22 241 35s354ms 146ms 23 240 34s934ms 145ms -
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.foreign_table_options', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.role_table_grants', 'information_schema.constraint_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_udt_grants', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_server_options', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.data_type_privileges', 'information_schema.column_options', 'information_schema.check_constraints', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.view_column_usage', 'information_schema.administrable_role_authorizations', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.column_udt_usage', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.domains', 'information_schema.routine_column_usage', 'information_schema.user_mappings', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.role_routine_grants', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.usage_privileges', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_description', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_cursors', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_depend', 'pg_catalog.pg_publication', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_constraint', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_attribute', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_type', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_collation', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_database', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_am', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_sequence', 'pg_catalog.pg_range', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences');
Date: 2024-09-17 15:57:37 Duration: 1s652ms
-
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_statio_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_views', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_index', 'pg_catalog.pg_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_operator', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_group', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_conversion', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_class', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_depend', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_range', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_extension', 'pg_catalog.pg_enum', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_opclass', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_replication_origin', 'information_schema.attributes', 'information_schema.check_constraints', 'information_schema.routine_column_usage', 'information_schema.table_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.user_mapping_options', 'information_schema.parameters', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.sequences', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.column_udt_usage', 'information_schema.sql_features', 'information_schema.views', 'information_schema.applicable_roles', 'information_schema.table_constraints', 'information_schema.constraint_column_usage', 'information_schema.udt_privileges', 'information_schema.data_type_privileges', 'information_schema.role_usage_grants', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.schemata', 'information_schema.triggers', 'information_schema.element_types', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.view_routine_usage', 'information_schema.routine_privileges', 'information_schema.user_mappings', 'information_schema.column_options', 'information_schema.foreign_table_options', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.role_table_grants', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-09-17 19:01:05 Duration: 581ms
-
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_group', 'pg_catalog.pg_index', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_attribute', 'pg_catalog.pg_language', 'pg_catalog.pg_namespace', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policy', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_extension', 'pg_catalog.pg_rules', 'pg_catalog.pg_opclass', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_sequences', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_collation', 'pg_catalog.pg_views', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_publication', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_settings', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_matviews', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_type', 'pg_catalog.pg_transform', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_user_mappings', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.data_type_privileges', 'information_schema.check_constraints', 'information_schema.user_defined_types', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.applicable_roles', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.foreign_servers', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.tables', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.sql_sizing', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.routine_routine_usage', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.sequences', 'information_schema.columns', 'information_schema.triggers', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.check_constraint_routine_usage', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-17 22:12:06 Duration: 560ms
7 4,586 14m22s 164ms 892ms 188ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 17 00 4 726ms 181ms 01 2 346ms 173ms 02 3 528ms 176ms 08 9 1s923ms 213ms 10 12 2s166ms 180ms 11 162 30s21ms 185ms 12 439 1m23s 190ms 13 669 2m10s 194ms 14 587 1m50s 187ms 15 671 2m5s 187ms 16 359 1m6s 185ms 17 830 2m35s 186ms 18 301 55s813ms 185ms 19 349 1m5s 189ms 20 172 30s940ms 179ms 21 16 2s828ms 176ms 22 1 170ms 170ms -
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:25 Duration: 892ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:26 Duration: 886ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 267610 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 19:03:17 Duration: 639ms
8 4,501 15m29s 171ms 2s342ms 206ms 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 #8
Day Hour Count Duration Avg duration Sep 17 01 97 17s930ms 184ms 02 140 25s644ms 183ms 11 16 3s603ms 225ms 12 80 16s538ms 206ms 13 163 39s318ms 241ms 14 905 3m15s 216ms 15 860 3m4s 214ms 16 354 1m14s 210ms 17 221 47s698ms 215ms 18 12 2s440ms 203ms 19 651 2m11s 201ms 20 525 1m43s 198ms 21 26 4s732ms 182ms 22 451 1m21s 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 = 51202 and fd.product_id = 176225;
Date: 2024-09-17 16:32:57 Duration: 2s342ms
-
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 = 51202 and fd.product_id = 176226;
Date: 2024-09-17 16:32:58 Duration: 1s461ms
-
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 = 51464 and fd.product_id = 255021;
Date: 2024-09-17 14:33:42 Duration: 1s179ms
9 3,499 50m23s 708ms 3s576ms 864ms 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 Sep 17 00 6 4s500ms 750ms 10 52 38s597ms 742ms 11 293 3m53s 795ms 12 462 6m28s 841ms 13 505 7m31s 894ms 14 520 8m3s 930ms 15 204 3m12s 946ms 16 296 4m24s 892ms 17 417 6m2s 868ms 18 355 4m55s 833ms 19 142 1m59s 841ms 20 191 2m27s 769ms 21 48 35s358ms 736ms 22 1 719ms 719ms 23 7 5s224ms 746ms -
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 ('%%415027%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%415027%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%415027%'))) 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-09-17 14:33:42 Duration: 3s576ms
-
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 ('%%8184120%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%818.4120%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%818.4120%'))) 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-09-17 16:02:19 Duration: 3s112ms
-
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 ('%%sw5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sw5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sw5%'))) 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-09-17 17:08:54 Duration: 3s88ms
10 3,490 10m15s 120ms 759ms 176ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 17 11 399 1m4s 160ms 12 359 1m9s 194ms 13 317 56s337ms 177ms 14 299 54s734ms 183ms 15 400 1m13s 183ms 16 143 23s476ms 164ms 17 661 1m53s 171ms 18 572 1m35s 167ms 19 340 1m4s 189ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189446) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '39')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 19:01:05 Duration: 759ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 196373) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '50')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 16:33:49 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 238909) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '44')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 12:29:47 Duration: 726ms
11 3,064 9m22s 159ms 887ms 183ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 17 01 6 1s53ms 175ms 02 18 3s50ms 169ms 08 3 655ms 218ms 10 10 1s758ms 175ms 11 98 17s421ms 177ms 12 222 40s703ms 183ms 13 360 1m8s 189ms 14 331 1m1s 186ms 15 544 1m42s 187ms 16 225 40s898ms 181ms 17 463 1m23s 179ms 18 285 53s411ms 187ms 19 166 30s774ms 185ms 20 186 32s676ms 175ms 21 103 17s696ms 171ms 22 44 7s439ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:39 Duration: 887ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:38 Duration: 864ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 269958 AND warehouse_id = 46;
Date: 2024-09-17 18:47:42 Duration: 786ms
12 2,962 7m28s 120ms 1s253ms 151ms 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 #12
Day Hour Count Duration Avg duration Sep 17 00 2 483ms 241ms 01 9 1s168ms 129ms 02 46 7s321ms 159ms 08 3 408ms 136ms 10 15 2s15ms 134ms 11 231 32s653ms 141ms 12 293 44s128ms 150ms 13 452 1m8s 152ms 14 479 1m16s 159ms 15 306 45s288ms 148ms 16 183 26s478ms 144ms 17 285 41s104ms 144ms 18 179 25s98ms 140ms 19 268 45s420ms 169ms 20 90 12s45ms 133ms 21 23 3s425ms 148ms 22 96 16s49ms 167ms 23 2 246ms 123ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (210133, 210157, 210149, 210206)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 14:33:41 Duration: 1s253ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (183439)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 14:16:59 Duration: 1s57ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (187811, 219747, 219776, 246067, 218929, 221008, 269919, 264696, 221812)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-17 13:11:26 Duration: 709ms
13 2,916 8m57s 159ms 755ms 184ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 17 00 11 1s907ms 173ms 01 11 1s881ms 171ms 02 12 2s134ms 177ms 07 4 680ms 170ms 10 23 3s929ms 170ms 11 135 24s518ms 181ms 12 247 45s876ms 185ms 13 318 59s609ms 187ms 14 350 1m4s 183ms 15 516 1m36s 187ms 16 270 49s935ms 184ms 17 394 1m12s 183ms 18 186 34s638ms 186ms 19 176 33s280ms 189ms 20 181 31s667ms 174ms 21 54 9s434ms 174ms 22 28 4s703ms 167ms -
UPDATE product_warehouse_inventory SET qty_reserve = 11.0 WHERE product_id = 185772 AND warehouse_id = 40;
Date: 2024-09-17 15:33:40 Duration: 755ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 4.0 WHERE product_id = 184750 AND warehouse_id = 38;
Date: 2024-09-17 15:03:51 Duration: 518ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 212516 AND warehouse_id = 38;
Date: 2024-09-17 16:40:24 Duration: 408ms
14 2,276 7m2s 169ms 947ms 185ms update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 17 01 7 1s218ms 174ms 02 7 1s230ms 175ms 10 26 4s498ms 173ms 11 59 10s839ms 183ms 12 141 26s358ms 186ms 13 108 20s587ms 190ms 14 278 52s343ms 188ms 15 502 1m33s 186ms 16 258 48s572ms 188ms 17 271 50s380ms 185ms 18 235 43s876ms 186ms 19 112 21s203ms 189ms 20 215 38s41ms 176ms 21 55 9s557ms 173ms 22 2 343ms 171ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(14.0, 0) + COALESCE(3.0, 0) WHERE product_id = 238967 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 15:48:02 Duration: 947ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(3.0, 0) + COALESCE(14.0, 0) WHERE product_id = 175858 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 14:21:04 Duration: 695ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(10.0, 0) + COALESCE(12.0, 0) WHERE product_id = 238958 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 15:45:35 Duration: 506ms
15 2,207 20m42s 483ms 2s934ms 562ms 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 Sep 17 00 6 2s959ms 493ms 01 2 1s30ms 515ms 07 2 1s1ms 500ms 08 19 9s627ms 506ms 09 18 9s42ms 502ms 10 18 8s880ms 493ms 11 148 1m19s 534ms 12 268 2m33s 570ms 13 343 3m20s 583ms 14 316 3m2s 578ms 15 218 2m3s 567ms 16 161 1m27s 546ms 17 216 2m6s 583ms 18 175 1m35s 548ms 19 193 1m48s 560ms 20 76 38s801ms 510ms 21 25 12s388ms 495ms 23 3 1s468ms 489ms -
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/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 17:08:54 Duration: 2s934ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s972ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s757ms
16 1,993 6m 159ms 996ms 180ms update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 17 00 3 519ms 173ms 01 24 4s7ms 166ms 02 42 7s3ms 166ms 07 2 347ms 173ms 11 56 9s996ms 178ms 12 84 15s380ms 183ms 13 155 29s142ms 188ms 14 131 25s638ms 195ms 15 367 1m6s 179ms 16 115 20s397ms 177ms 17 210 38s540ms 183ms 18 139 26s179ms 188ms 19 107 20s34ms 187ms 20 282 49s333ms 174ms 21 169 29s534ms 174ms 22 107 18s382ms 171ms -
UPDATE product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 252557 AND warehouse_id = 42;
Date: 2024-09-17 14:33:40 Duration: 996ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 199667 AND warehouse_id = 36;
Date: 2024-09-17 21:16:51 Duration: 484ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 14.0 WHERE product_id = 183452 AND warehouse_id = 42;
Date: 2024-09-17 14:34:33 Duration: 338ms
17 1,840 4m16s 120ms 618ms 139ms 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 Sep 17 11 160 21s536ms 134ms 12 135 18s714ms 138ms 13 173 24s615ms 142ms 14 166 22s301ms 134ms 15 234 32s836ms 140ms 16 85 12s290ms 144ms 17 378 52s400ms 138ms 18 303 42s737ms 141ms 19 206 28s752ms 139ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 39) AND ("product_warehouse_inventory"."product_id" = 196601)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-17 16:33:49 Duration: 618ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 39) AND ("product_warehouse_inventory"."product_id" = 196373)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-17 16:33:50 Duration: 523ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 216478)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-17 17:55:51 Duration: 390ms
18 1,729 4m42s 120ms 777ms 163ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 17 00 3 460ms 153ms 07 1 120ms 120ms 11 46 6s468ms 140ms 12 226 33s853ms 149ms 13 300 47s520ms 158ms 14 186 31s686ms 170ms 15 279 46s656ms 167ms 16 125 18s927ms 151ms 17 201 34s507ms 171ms 18 138 22s168ms 160ms 19 176 31s843ms 180ms 20 45 7s609ms 169ms 21 3 576ms 192ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-fa1ab69/web.assets_frontend.css' GROUP BY name ORDER BY name;
Date: 2024-09-17 19:50:03 Duration: 777ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-17 19:08:18 Duration: 611ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-3d2270c/web.assets_frontend_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-17 15:58:28 Duration: 606ms
19 1,694 4m28s 120ms 1s111ms 158ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 17 01 1 121ms 121ms 02 1 222ms 222ms 10 3 373ms 124ms 11 48 6s623ms 137ms 12 160 24s499ms 153ms 13 247 39s374ms 159ms 14 223 38s279ms 171ms 15 320 50s370ms 157ms 16 151 23s927ms 158ms 17 258 42s809ms 165ms 18 116 17s503ms 150ms 19 120 18s171ms 151ms 20 40 5s361ms 134ms 21 4 641ms 160ms 22 2 365ms 182ms -
select id from product_warehouse_inventory where product_id = 269815 and warehouse_id = 38 and company_id = 1;
Date: 2024-09-17 17:08:52 Duration: 1s111ms
-
select id from product_warehouse_inventory where product_id = 210149 and warehouse_id = 36 and company_id = 1;
Date: 2024-09-17 16:03:09 Duration: 1s42ms
-
select id from product_warehouse_inventory where product_id = 252557 and warehouse_id = 42 and company_id = 1;
Date: 2024-09-17 14:33:41 Duration: 1s19ms
20 1,474 3m27s 120ms 844ms 140ms select coalesce(loc_check_qty, ?) as loc_check_qty from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 17 10 3 368ms 122ms 11 34 4s847ms 142ms 12 131 19s83ms 145ms 13 108 15s152ms 140ms 14 179 24s113ms 134ms 15 355 49s954ms 140ms 16 201 30s684ms 152ms 17 153 21s839ms 142ms 18 152 20s262ms 133ms 19 118 15s955ms 135ms 20 37 4s621ms 124ms 21 3 371ms 123ms -
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 239215 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-09-17 15:45:05 Duration: 844ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 239164 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-09-17 16:57:03 Duration: 810ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 190640 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-17 16:17:27 Duration: 791ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s69ms 4m25s 8s107ms 111 14m59s delete from account_move_line where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 17 11 2 4m29s 2m14s 14 3 18s975ms 6s325ms 15 11 1m49s 9s957ms 16 12 1m12s 6s18ms 17 2 6s709ms 3s354ms 18 5 28s163ms 5s632ms 19 4 1m23s 20s882ms 23 72 5m10s 4s316ms -
DELETE FROM account_move_line WHERE id IN (5845836, 5845837, 5845838, 5845839, 5845840, 5845841, 5845842, 5845843, 5845844, 5845845, 5845846, 5845847, 5845848, 5845849, 5845850, 5845851, 5845852, 5845853, 5845854, 5845855, 5845856, 5845857, 5845858, 5845859, 5845860, 5845861, 5845862, 5845863, 5845864, 5845865, 5845866, 5845867, 5845868, 5845869, 5845870, 5845871, 5845872, 5845873, 5845874, 5845875, 5845876, 5845877, 5845878, 5845879, 5845880, 5845881, 5845882, 5845883, 5845884, 5845885, 5845886, 5845887, 5845888, 5845889, 5845890, 5845891, 5845892, 5845893, 5845894, 5845895, 5845896, 5845897, 5845898, 5845899, 5845900, 5845901, 5845902, 5845903, 5845904, 5845905, 5845906, 5845907, 5845908, 5845909, 5845910, 5845911, 5845912, 5845913, 5845914, 5845915, 5845916, 5845917, 5845918, 5845919, 5845920, 5845921, 5845922, 5845923, 5845924, 5845925, 5845926, 5845927, 5845928, 5845929, 5845930, 5845931, 5845932, 5845933, 5845934, 5845935, 5845936, 5845937, 5845938, 5845939, 5845940, 5845941, 5845942, 5845943, 5845944, 5845945, 5845946, 5845947, 5845948, 5845949, 5845950, 5845951, 5845952, 5845953);
Date: 2024-09-17 11:17:39 Duration: 4m25s
-
DELETE FROM account_move_line WHERE id IN (5653257, 5653258, 5653259, 5653260, 5653261, 5653262, 5653263, 5653264, 5653265, 5653266, 5653267, 5653268, 5653269, 5653270, 5653271, 5653272, 5653273, 5653274, 5653275, 5653276, 5853279, 5853280);
Date: 2024-09-17 19:37:16 Duration: 48s302ms
-
DELETE FROM account_move_line WHERE id IN (5765761, 5765762, 5765763, 5765764, 5765765, 5765766, 5765767, 5765768, 5765769, 5765770, 5765771, 5765772, 5765773, 5765774, 5765775, 5849626, 5849627);
Date: 2024-09-17 16:04:27 Duration: 37s837ms
2 903ms 2s244ms 1s36ms 812 14m1s 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 #2
Day Hour Count Duration Avg duration Sep 17 10 3 2s755ms 918ms 11 41 39s715ms 968ms 12 105 1m45s 1s3ms 13 96 1m41s 1s58ms 14 104 1m52s 1s76ms 15 95 1m41s 1s71ms 16 65 1m5s 1s13ms 17 78 1m22s 1s52ms 18 104 1m45s 1s18ms 19 75 1m19s 1s53ms 20 42 41s436ms 986ms 21 2 2s2ms 1s1ms 23 2 1s939ms 969ms -
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 ('%45700%')) 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 ('%45700%'))) 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 ('%45700%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%45700%')))))) 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-09-17 15:02:37 Duration: 2s244ms
-
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 ('%k0808188%')) 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 ('%k0808188%'))) 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 ('%k0808188%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k0808188%')))))) 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-09-17 19:03:18 Duration: 2s27ms
-
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 ('%S-9704%')) 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 ('%S-9704%'))) 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 ('%S-9704%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%S-9704%')))))) 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-09-17 15:07:25 Duration: 1s991ms
3 719ms 1s789ms 872ms 529 7m41s 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 #3
Day Hour Count Duration Avg duration Sep 17 12 20 15s734ms 786ms 13 6 5s195ms 865ms 14 16 12s697ms 793ms 15 349 5m6s 877ms 16 118 1m45s 897ms 17 20 15s656ms 782ms -
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 ('%%esiiaex4%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-a-ex4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-a-ex4%'))) 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-09-17 15:00:19 Duration: 1s789ms
-
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 ('%%esiiaex47%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-a-ex47%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-a-ex47%'))) 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-09-17 15:00:20 Duration: 1s772ms
-
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 ('%%a470%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a470%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a470%'))) 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-09-17 16:42:55 Duration: 1s688ms
4 708ms 3s576ms 864ms 3,499 50m23s 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 Sep 17 00 6 4s500ms 750ms 10 52 38s597ms 742ms 11 293 3m53s 795ms 12 462 6m28s 841ms 13 505 7m31s 894ms 14 520 8m3s 930ms 15 204 3m12s 946ms 16 296 4m24s 892ms 17 417 6m2s 868ms 18 355 4m55s 833ms 19 142 1m59s 841ms 20 191 2m27s 769ms 21 48 35s358ms 736ms 22 1 719ms 719ms 23 7 5s224ms 746ms -
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 ('%%415027%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%415027%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%415027%'))) 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-09-17 14:33:42 Duration: 3s576ms
-
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 ('%%8184120%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%818.4120%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%818.4120%'))) 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-09-17 16:02:19 Duration: 3s112ms
-
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 ('%%sw5%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%sw5%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%sw5%'))) 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-09-17 17:08:54 Duration: 3s88ms
5 709ms 2s783ms 854ms 708 10m4s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 17 11 17 15s886ms 934ms 12 106 1m28s 830ms 13 38 32s463ms 854ms 14 99 1m26s 874ms 15 50 41s143ms 822ms 16 28 23s658ms 844ms 17 137 1m57s 860ms 18 148 2m4s 842ms 19 53 48s360ms 912ms 20 32 25s957ms 811ms -
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 ('%%194%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%194%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%194%'))) 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-09-17 18:52:39 Duration: 2s783ms
-
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 ('%%5280x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-280x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-280x%'))) 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-09-17 14:25:12 Duration: 1s840ms
-
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 ('%%5280%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-280%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-280%'))) 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-09-17 14:25:12 Duration: 1s626ms
6 705ms 1s708ms 808ms 553 7m27s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 17 12 42 37s469ms 892ms 13 24 21s898ms 912ms 14 124 1m40s 809ms 15 62 56s434ms 910ms 16 5 4s357ms 871ms 17 10 7s644ms 764ms 18 72 58s409ms 811ms 19 23 18s343ms 797ms 20 120 1m30s 752ms 21 71 51s881ms 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" = '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 ('%%22175475%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%22175475%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%22175475%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 15:03:41 Duration: 1s708ms
-
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 ('%%25633161%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%25633161%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%25633161%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 15:03:00 Duration: 1s575ms
-
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 ('%%ss2512%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ss2512%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ss2512%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-17 13:05:37 Duration: 1s516ms
7 483ms 2s934ms 562ms 2,207 20m42s 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 #7
Day Hour Count Duration Avg duration Sep 17 00 6 2s959ms 493ms 01 2 1s30ms 515ms 07 2 1s1ms 500ms 08 19 9s627ms 506ms 09 18 9s42ms 502ms 10 18 8s880ms 493ms 11 148 1m19s 534ms 12 268 2m33s 570ms 13 343 3m20s 583ms 14 316 3m2s 578ms 15 218 2m3s 567ms 16 161 1m27s 546ms 17 216 2m6s 583ms 18 175 1m35s 548ms 19 193 1m48s 560ms 20 76 38s801ms 510ms 21 25 12s388ms 495ms 23 3 1s468ms 489ms -
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/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 17:08:54 Duration: 2s934ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s972ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-17 13:37:40 Duration: 1s757ms
8 376ms 3s533ms 410ms 7,649 52m16s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 17 00 17 6s611ms 388ms 01 32 12s367ms 386ms 02 51 20s81ms 393ms 08 3 1s168ms 389ms 10 45 17s614ms 391ms 11 302 2m2s 405ms 12 621 4m16s 412ms 13 778 5m25s 418ms 14 892 6m11s 416ms 15 1,325 9m7s 413ms 16 783 5m19s 407ms 17 1,004 6m55s 413ms 18 511 3m29s 410ms 19 410 2m48s 409ms 20 551 3m35s 391ms 21 214 1m23s 388ms 22 110 43s178ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:51:30 Duration: 3s533ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 15:25:28 Duration: 2s499ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-17 17:29:17 Duration: 1s936ms
9 300ms 3s514ms 363ms 7,649 46m22s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 17 00 17 5s610ms 330ms 01 32 10s276ms 321ms 02 51 16s848ms 330ms 08 3 1s18ms 339ms 10 45 14s335ms 318ms 11 302 1m45s 349ms 12 621 3m46s 364ms 13 778 5m 386ms 14 892 5m35s 375ms 15 1,324 8m10s 370ms 16 784 4m42s 360ms 17 1,004 6m13s 371ms 18 511 3m6s 365ms 19 410 2m29s 363ms 20 551 3m1s 328ms 21 214 1m8s 318ms 22 110 35s887ms 326ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 16:02:19 Duration: 3s514ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 17:08:54 Duration: 3s144ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-17 13:07:20 Duration: 2s975ms
10 121ms 4s41ms 212ms 131,294 7h46m 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 #10
Day Hour Count Duration Avg duration Sep 17 00 3,361 8m19s 148ms 01 3,545 8m28s 143ms 02 3,421 8m16s 145ms 03 3,261 7m54s 145ms 04 3,315 7m57s 144ms 05 3,142 7m52s 150ms 06 3,387 8m 141ms 07 3,343 8m10s 146ms 08 3,518 8m45s 149ms 09 3,523 8m41s 148ms 10 4,152 10m1s 144ms 11 5,997 16m53s 168ms 12 9,143 32m5s 210ms 13 8,775 37m13s 254ms 14 8,934 42m33s 285ms 15 8,912 47m22s 318ms 16 8,898 43m40s 294ms 17 9,128 35m49s 235ms 18 9,401 31m1s 198ms 19 8,216 42m17s 308ms 20 5,467 16m28s 180ms 21 3,616 9m40s 160ms 22 3,572 9m48s 164ms 23 3,267 8m37s 158ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_972"', '["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","mail.channel",531]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s41ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1018"', '["pointspring_master","calendar.alarm",19556]', '["pointspring_master","mail.channel",111]', '["pointspring_master","mail.channel",112]', '["pointspring_master","mail.channel",369]', '["pointspring_master","mail.channel",430]', '["pointspring_master","mail.channel",475]', '["pointspring_master","mail.channel",542]', '["pointspring_master","mail.channel",634]', '["pointspring_master","res.partner",19556]', '["pointspring_master","ir.needaction",19556]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s38ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-17 15:50:36') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19550]', '["pointspring_master","mail.channel",113]', '["pointspring_master","mail.channel",114]', '["pointspring_master","mail.channel",115]', '["pointspring_master","mail.channel",116]', '["pointspring_master","mail.channel",443]', '["pointspring_master","mail.channel",450]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",484]', '["pointspring_master","mail.channel",535]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",545]', '["pointspring_master","mail.channel",563]', '["pointspring_master","res.partner",19550]', '["pointspring_master","ir.needaction",19550]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-17 15:51:30 Duration: 4s23ms
11 171ms 2s342ms 206ms 4,501 15m29s select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 17 01 97 17s930ms 184ms 02 140 25s644ms 183ms 11 16 3s603ms 225ms 12 80 16s538ms 206ms 13 163 39s318ms 241ms 14 905 3m15s 216ms 15 860 3m4s 214ms 16 354 1m14s 210ms 17 221 47s698ms 215ms 18 12 2s440ms 203ms 19 651 2m11s 201ms 20 525 1m43s 198ms 21 26 4s732ms 182ms 22 451 1m21s 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 = 51202 and fd.product_id = 176225;
Date: 2024-09-17 16:32:57 Duration: 2s342ms
-
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 = 51202 and fd.product_id = 176226;
Date: 2024-09-17 16:32:58 Duration: 1s461ms
-
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 = 51464 and fd.product_id = 255021;
Date: 2024-09-17 14:33:42 Duration: 1s179ms
12 164ms 892ms 188ms 4,586 14m22s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 17 00 4 726ms 181ms 01 2 346ms 173ms 02 3 528ms 176ms 08 9 1s923ms 213ms 10 12 2s166ms 180ms 11 162 30s21ms 185ms 12 439 1m23s 190ms 13 669 2m10s 194ms 14 587 1m50s 187ms 15 671 2m5s 187ms 16 359 1m6s 185ms 17 830 2m35s 186ms 18 301 55s813ms 185ms 19 349 1m5s 189ms 20 172 30s940ms 179ms 21 16 2s828ms 176ms 22 1 170ms 170ms -
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:25 Duration: 892ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 237202 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-17 13:11:26 Duration: 886ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 267610 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 19:03:17 Duration: 639ms
13 169ms 947ms 185ms 2,276 7m2s update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 17 01 7 1s218ms 174ms 02 7 1s230ms 175ms 10 26 4s498ms 173ms 11 59 10s839ms 183ms 12 141 26s358ms 186ms 13 108 20s587ms 190ms 14 278 52s343ms 188ms 15 502 1m33s 186ms 16 258 48s572ms 188ms 17 271 50s380ms 185ms 18 235 43s876ms 186ms 19 112 21s203ms 189ms 20 215 38s41ms 176ms 21 55 9s557ms 173ms 22 2 343ms 171ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(14.0, 0) + COALESCE(3.0, 0) WHERE product_id = 238967 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 15:48:02 Duration: 947ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(3.0, 0) + COALESCE(14.0, 0) WHERE product_id = 175858 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-17 14:21:04 Duration: 695ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(10.0, 0) + COALESCE(12.0, 0) WHERE product_id = 238958 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 15:45:35 Duration: 506ms
14 160ms 1s79ms 184ms 11,023 33m52s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 17 00 23 4s97ms 178ms 01 47 8s109ms 172ms 02 76 13s227ms 174ms 08 3 536ms 178ms 10 73 12s732ms 174ms 11 418 1m16s 183ms 12 828 2m34s 186ms 13 984 3m5s 188ms 14 1,169 3m40s 188ms 15 2,137 6m33s 184ms 16 1,179 3m39s 186ms 17 1,263 3m54s 186ms 18 884 2m43s 185ms 19 575 1m46s 184ms 20 848 2m29s 175ms 21 371 1m4s 174ms 22 145 25s236ms 174ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(5.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 188724 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-17 14:06:07 Duration: 1s79ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 239141 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-17 16:55:59 Duration: 1s39ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 191114 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-09-17 14:58:36 Duration: 1s1ms
15 159ms 755ms 184ms 2,916 8m57s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 17 00 11 1s907ms 173ms 01 11 1s881ms 171ms 02 12 2s134ms 177ms 07 4 680ms 170ms 10 23 3s929ms 170ms 11 135 24s518ms 181ms 12 247 45s876ms 185ms 13 318 59s609ms 187ms 14 350 1m4s 183ms 15 516 1m36s 187ms 16 270 49s935ms 184ms 17 394 1m12s 183ms 18 186 34s638ms 186ms 19 176 33s280ms 189ms 20 181 31s667ms 174ms 21 54 9s434ms 174ms 22 28 4s703ms 167ms -
UPDATE product_warehouse_inventory SET qty_reserve = 11.0 WHERE product_id = 185772 AND warehouse_id = 40;
Date: 2024-09-17 15:33:40 Duration: 755ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 4.0 WHERE product_id = 184750 AND warehouse_id = 38;
Date: 2024-09-17 15:03:51 Duration: 518ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 212516 AND warehouse_id = 38;
Date: 2024-09-17 16:40:24 Duration: 408ms
16 166ms 638ms 183ms 7,497 22m58s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 17 00 12 2s249ms 187ms 08 11 2s62ms 187ms 10 44 7s772ms 176ms 11 389 1m10s 182ms 12 735 2m17s 187ms 13 982 3m1s 184ms 14 948 2m55s 184ms 15 436 1m21s 187ms 16 559 1m42s 183ms 17 1,939 5m52s 181ms 18 779 2m23s 183ms 19 367 1m8s 186ms 20 242 43s163ms 178ms 21 53 9s328ms 176ms 23 1 169ms 169ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 132.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (132.0 - 132.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191042 and warehouse_id = 36 and company_id = 1;
Date: 2024-09-17 19:16:18 Duration: 638ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 21.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (21.0 - 20.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191088 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-17 19:03:16 Duration: 493ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((139.0 - 139.0) + (0.0 - 0.0), 0) ELSE GREATEST ((139.0 - 139.0), 0) END where product_id = 224395 and warehouse_id = 44 and company_id = 1;
Date: 2024-09-17 12:48:10 Duration: 403ms
17 159ms 887ms 183ms 3,064 9m22s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 17 01 6 1s53ms 175ms 02 18 3s50ms 169ms 08 3 655ms 218ms 10 10 1s758ms 175ms 11 98 17s421ms 177ms 12 222 40s703ms 183ms 13 360 1m8s 189ms 14 331 1m1s 186ms 15 544 1m42s 187ms 16 225 40s898ms 181ms 17 463 1m23s 179ms 18 285 53s411ms 187ms 19 166 30s774ms 185ms 20 186 32s676ms 175ms 21 103 17s696ms 171ms 22 44 7s439ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:39 Duration: 887ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 37;
Date: 2024-09-17 15:33:38 Duration: 864ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 269958 AND warehouse_id = 46;
Date: 2024-09-17 18:47:42 Duration: 786ms
18 159ms 996ms 180ms 1,993 6m update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 17 00 3 519ms 173ms 01 24 4s7ms 166ms 02 42 7s3ms 166ms 07 2 347ms 173ms 11 56 9s996ms 178ms 12 84 15s380ms 183ms 13 155 29s142ms 188ms 14 131 25s638ms 195ms 15 367 1m6s 179ms 16 115 20s397ms 177ms 17 210 38s540ms 183ms 18 139 26s179ms 188ms 19 107 20s34ms 187ms 20 282 49s333ms 174ms 21 169 29s534ms 174ms 22 107 18s382ms 171ms -
UPDATE product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 252557 AND warehouse_id = 42;
Date: 2024-09-17 14:33:40 Duration: 996ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 199667 AND warehouse_id = 36;
Date: 2024-09-17 21:16:51 Duration: 484ms
-
UPDATE product_warehouse_inventory SET qty_on_order = 14.0 WHERE product_id = 183452 AND warehouse_id = 42;
Date: 2024-09-17 14:34:33 Duration: 338ms
19 120ms 759ms 176ms 3,490 10m15s select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 17 11 399 1m4s 160ms 12 359 1m9s 194ms 13 317 56s337ms 177ms 14 299 54s734ms 183ms 15 400 1m13s 183ms 16 143 23s476ms 164ms 17 661 1m53s 171ms 18 572 1m35s 167ms 19 340 1m4s 189ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189446) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '39')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 19:01:05 Duration: 759ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 196373) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '50')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 16:33:49 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 238909) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '44')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-17 12:29:47 Duration: 726ms
20 120ms 777ms 163ms 1,729 4m42s select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 17 00 3 460ms 153ms 07 1 120ms 120ms 11 46 6s468ms 140ms 12 226 33s853ms 149ms 13 300 47s520ms 158ms 14 186 31s686ms 170ms 15 279 46s656ms 167ms 16 125 18s927ms 151ms 17 201 34s507ms 171ms 18 138 22s168ms 160ms 19 176 31s843ms 180ms 20 45 7s609ms 169ms 21 3 576ms 192ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-fa1ab69/web.assets_frontend.css' GROUP BY name ORDER BY name;
Date: 2024-09-17 19:50:03 Duration: 777ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-17 19:08:18 Duration: 611ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-3d2270c/web.assets_frontend_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-17 15:58:28 Duration: 606ms
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
- 256,834 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1473 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 990 Max number of times the same event was reported
- 1,473 Total events found
Rank Times reported Error 1 990 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 17 00 30 01 28 02 32 03 32 04 33 05 32 06 28 07 105 08 91 09 31 10 33 11 36 12 35 13 42 14 36 15 37 16 37 17 37 18 33 19 37 20 29 21 28 22 29 23 99 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-09-17 18:50:27
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-09-17 19:00:16
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=66 FOR UPDATE NOWAIT
Date: 2024-09-17 19:40:03
2 452 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 17 00 3 01 2 07 4 08 7 09 1 10 5 11 41 12 54 13 63 14 64 15 43 16 31 17 40 18 34 19 36 20 15 21 6 22 1 23 2 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5707967) FOR NO KEY UPDATE SKIP LOCKED )
Date: 2024-09-17 18:52:24
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-17 18:52:25',"last_presence"='2024-09-17 18:52:19.837770' WHERE id IN (80)
Date: 2024-09-17 18:52:25
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-17 18:53:28',"last_presence"='2024-09-17 18:53:28.863544' WHERE id IN (36)
Date: 2024-09-17 18:53:28
3 16 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 17 12 1 13 2 14 4 15 3 16 3 17 2 19 1 - ERROR: process 1258784 still waiting for ShareLock on transaction 307583853 after 1000.058 ms
- ERROR: process 650776 still waiting for ShareLock on transaction 307526315 after 1000.040 ms
- ERROR: process 1324899 still waiting for ShareLock on transaction 307551590 after 1000.045 ms
Detail: Process holding the lock: 1362865. Wait queue: 1258784.
Context: while updating tuple (15057,9) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5708038,"write_uid"=1005,"write_date"=(now() at time zone 'UTC') WHERE id IN (1662668)Date: 2024-09-17 19:03:24
Detail: Process holding the lock: 595589. Wait queue: 650776.
Context: while updating tuple (26,5) in relation "bus_presence"
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-17 17:04:43',"last_presence"='2024-09-17 17:04:36.520593' WHERE id IN (152)Date: 2024-09-17 17:04:44
Detail: Process holding the lock: 1326595. Wait queue: 1324899.
Context: while updating tuple (14512,12) 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 != 1422626 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 != 1422626 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-17 17:46:17
4 5 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 17 11 4 16 1 - ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM monthly_statement_line WHERE id IN (1255531)
Date: 2024-09-17 16:29:39
Statement: DELETE FROM account_tax_sale_order_line_rel WHERE sale_order_line_id IN (485390) AND account_tax_id IN (2122)
Date: 2024-09-17 11:59:50
Statement: DELETE FROM account_tax_sale_order_line_rel WHERE sale_order_line_id IN (485397) AND account_tax_id IN (2122)
Date: 2024-09-17 11:59:51
5 3 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 17 15 1 17 2 - ERROR: process 650775 still waiting for ExclusiveLock on tuple (26,5) of relation 42995 of database 65946 after 1000.059 ms
- ERROR: process 714806 still waiting for ExclusiveLock on tuple (26,5) of relation 42995 of database 65946 after 1000.050 ms
- ERROR: process 994865 still waiting for ExclusiveLock on tuple (13265,1) of relation 42418 of database 65946 after 1000.044 ms
Detail: Process holding the lock: 650776. Wait queue: 650775.
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-17 17:06:08',"last_presence"='2024-09-17 17:05:48.954376' WHERE id IN (152)Date: 2024-09-17 17:06:09
Detail: Process holding the lock: 650776. Wait queue: 650775, 714806.
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-17 17:07:39',"last_presence"='2024-09-17 17:07:30.006603' WHERE id IN (152)Date: 2024-09-17 17:07:40
Detail: Process holding the lock: 596402. Wait queue: 994865.
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661750 AND sequence_prefix = (SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1661750 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-17 15:55:59
6 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 17 13 1 18 1 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
- ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
Detail: Key (vin_sn)=(LEE54004) 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'), 953, (now() at time zone 'UTC'), 953, (now() at time zone 'UTC'), '2024-09-17', true, 105, 0.0, 0.0, NULL, 1, NULL, 5, 36204, '2024-09-17', NULL, NULL, 0, 0.0, 'PWP6494', NULL, 2, 235, 40, NULL, 'V', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '004', 'LEE54004') RETURNING idDate: 2024-09-17 13:16:06
Detail: Key (vehicle_unit_no, driver_id)=(670, 34094) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "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'), 1137, (now() at time zone 'UTC'), 1137, (now() at time zone 'UTC'), '2024-09-17', true, 105, 0.0, 0.0, NULL, 1, NULL, 5, 34094, '2024-09-17', NULL, NULL, 0, 0.0, 'WR0537N', NULL, 1032, 228, 22, NULL, 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '670', 'JFC75670') RETURNING idDate: 2024-09-17 18:48:52
7 2 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #7
Day Hour Count Sep 17 14 1 19 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (271830, null, D91080009n, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1035, 2024-09-17 19:28:48.308599, 1035, 2024-09-17 19:28:48.308599, 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, 494440, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-17, 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'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-09-17', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'D91080009n', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494440, 1, 1) RETURNING idDate: 2024-09-17 19:28:48
Detail: Failing row contains (271797, null, KOF3406EBBC/01, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 992, 2024-09-17 14:27:37.614032, 992, 2024-09-17 14:27:37.614032, 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, 494285, never, 0, , 37, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-17, 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'), 992, (now() at time zone 'UTC'), 992, (now() at time zone 'UTC'), true, false, 0.0, 37, NULL, 1, '', 'no', '2024-09-17', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'KOF3406EBBC/01', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494285, 1, 1) RETURNING idDate: 2024-09-17 14:27:37
8 2 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #8
Day Hour Count Sep 17 13 2 - ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 593536 waits for ShareLock on transaction 307404272; blocked by process 589600. Process 589600 waits for ShareLock on transaction 307404274; blocked by process 593536. Process 593536: UPDATE "sale_order" SET "partner_id"=43780,"partner_invoice_id"=43780,"partner_shipping_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (165936) Process 589600: UPDATE "sale_order_line" SET "cus_part_route"=9,"cus_user_id"=1282,"order_partner_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (482316)
Context: while updating tuple (230,46) in relation "sale_order"
Hint: See server log for query details.
Statement: UPDATE "sale_order" SET "partner_id"=43780,"partner_invoice_id"=43780,"partner_shipping_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (165936)Date: 2024-09-17 13:06:18
Detail: Process 598449 waits for ShareLock on transaction 307405494; blocked by process 589816. Process 589816 waits for ShareLock on transaction 307405495; blocked by process 598449. Process 598449: UPDATE "sale_order" SET "partner_id"=43780,"partner_invoice_id"=43780,"partner_shipping_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (165936) Process 589816: UPDATE "sale_order_line" SET "cus_part_route"=9,"cus_user_id"=1282,"order_partner_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (482316)
Context: while updating tuple (1488,21) in relation "sale_order"
Hint: See server log for query details.
Statement: UPDATE "sale_order" SET "partner_id"=43780,"partner_invoice_id"=43780,"partner_shipping_id"=43780,"write_uid"=1290,"write_date"=(now() at time zone 'UTC') WHERE id IN (165936)Date: 2024-09-17 13:07:59
9 1 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #9
Day Hour Count Sep 17 19 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-09-17 19:29:36