-
Global information
- Generated on Fri Jul 12 00:50:26 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 646,537 log entries in 25s
- Log start from 2024-07-11 00:00:03 to 2024-07-11 23:59:59
-
Overview
Global Stats
- 1,381 Number of unique normalized queries
- 215,670 Number of queries
- 17h53m49s Total query duration
- 2024-07-11 00:00:03 First query
- 2024-07-11 23:59:59 Last query
- 64 queries/s at 2024-07-11 13:17:20 Query peak
- 17h53m49s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 17h53m49s Execute total duration
- 6,529 Number of events
- 8 Number of unique normalized events
- 5,168 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
- 215,670 Average queries per session
- 17h53m49s 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
- 64 queries/s Query Peak
- 2024-07-11 13:17:20 Date
SELECT Traffic
Key values
- 62 queries/s Query Peak
- 2024-07-11 16:27:55 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 14 queries/s Query Peak
- 2024-07-11 17:41:22 Date
Queries duration
Key values
- 17h53m49s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 11 00 2,427 120ms 6s49ms 214ms 14s27ms 18s532ms 55s570ms 01 1,396 120ms 1s109ms 229ms 10s140ms 12s655ms 23s72ms 02 1,761 120ms 680ms 223ms 9s937ms 12s385ms 17s46ms 03 1,755 120ms 9s660ms 227ms 10s741ms 13s66ms 48s650ms 04 1,713 120ms 2s327ms 194ms 8s674ms 10s211ms 15s381ms 05 1,659 120ms 732ms 214ms 8s672ms 11s623ms 12s694ms 06 1,567 120ms 603ms 199ms 7s991ms 12s40ms 13s486ms 07 1,904 120ms 4s562ms 212ms 11s897ms 13s673ms 30s80ms 08 1,736 120ms 1m31s 267ms 10s770ms 17s653ms 1m35s 09 2,051 120ms 3m55s 585ms 1m1s 2m3s 4m58s 10 1,921 120ms 10s156ms 221ms 12s906ms 15s726ms 17s378ms 11 7,858 120ms 14s778ms 300ms 1m7s 1m18s 2m29s 12 19,438 120ms 3m 342ms 2m56s 4m28s 5m23s 13 29,411 120ms 38s686ms 348ms 5m4s 5m41s 8m7s 14 18,228 120ms 23s179ms 298ms 2m25s 2m54s 4m14s 15 17,853 120ms 29s153ms 303ms 3m22s 3m40s 3m47s 16 22,442 120ms 7s806ms 255ms 2m44s 2m56s 3m53s 17 27,294 120ms 1m30s 312ms 4m26s 4m44s 6m52s 18 19,666 120ms 12s748ms 281ms 2m55s 3m16s 3m30s 19 19,306 120ms 50s376ms 292ms 2m36s 3m17s 5m32s 20 8,973 120ms 17s261ms 271ms 1m19s 1m46s 3m8s 21 1,744 120ms 1s487ms 202ms 8s859ms 12s123ms 17s734ms 22 1,581 120ms 968ms 214ms 8s387ms 13s40ms 14s938ms 23 1,986 120ms 19s133ms 312ms 37s521ms 45s484ms 52s335ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 11 00 2,219 0 210ms 8s589ms 13s750ms 18s372ms 01 1,394 0 229ms 6s634ms 10s140ms 14s839ms 02 1,761 0 223ms 7s503ms 9s937ms 15s245ms 03 1,755 0 227ms 7s826ms 10s741ms 40s512ms 04 1,709 0 194ms 7s452ms 8s649ms 10s886ms 05 1,659 0 214ms 7s771ms 8s672ms 12s153ms 06 1,567 0 199ms 6s964ms 7s991ms 12s400ms 07 1,898 0 210ms 8s80ms 11s897ms 16s382ms 08 1,687 0 215ms 7s837ms 8s835ms 17s653ms 09 1,931 111 586ms 14s925ms 52s968ms 2m13s 10 1,906 0 221ms 9s290ms 12s322ms 15s726ms 11 7,298 0 302ms 57s118ms 1m4s 1m19s 12 17,426 0 357ms 2m25s 2m50s 4m22s 13 26,006 0 324ms 3m14s 4m2s 4m35s 14 15,870 0 309ms 1m53s 2m20s 2m34s 15 15,044 0 321ms 1m51s 2m45s 3m20s 16 19,768 0 262ms 2m2s 2m35s 2m55s 17 25,169 0 318ms 3m16s 4m8s 4m47s 18 16,838 0 291ms 2m1s 2m29s 3m17s 19 16,782 0 302ms 1m59s 2m23s 4m4s 20 7,772 0 274ms 56s838ms 1m12s 1m48s 21 1,735 0 202ms 7s628ms 8s859ms 12s156ms 22 1,572 0 214ms 7s44ms 8s387ms 13s491ms 23 1,915 0 200ms 7s902ms 17s396ms 23s981ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 11 00 0 129 1 0 220ms 0ms 0ms 1s113ms 01 0 1 0 0 161ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 358ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 253ms 0ms 0ms 0ms 08 0 44 3 0 2s110ms 0ms 0ms 1s355ms 09 0 9 0 0 173ms 0ms 0ms 0ms 10 0 14 0 0 169ms 0ms 0ms 584ms 11 0 543 16 0 280ms 2s53ms 3s901ms 12s215ms 12 0 1,945 31 0 207ms 6s820ms 11s329ms 15s347ms 13 2 3,301 98 0 528ms 17s129ms 30s866ms 2m14s 14 0 2,333 24 0 223ms 7s710ms 13s913ms 22s932ms 15 0 2,780 27 0 203ms 6s846ms 19s69ms 33s476ms 16 0 2,648 23 0 203ms 7s477ms 11s700ms 28s903ms 17 0 2,072 47 0 249ms 6s922ms 11s100ms 22s730ms 18 0 2,787 38 0 219ms 7s294ms 17s514ms 37s659ms 19 0 2,431 89 0 220ms 7s736ms 13s37ms 34s607ms 20 0 1,161 39 0 253ms 4s169ms 7s737ms 14s125ms 21 0 9 0 0 176ms 0ms 0ms 0ms 22 0 9 0 0 160ms 0ms 0ms 0ms 23 0 1 70 0 3s338ms 0ms 1s907ms 29s360ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 11 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jul 11 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Jul 11 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Jul 11 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 11 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 11 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jul 11 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Jul 11 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Jul 11 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 329 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 134 20m11s 1s56ms 37s55ms 9s39ms update product_warehouse_inventory set qty_reserve = ?.? where id = ?;-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14
2 39 2m4s 1s950ms 7s704ms 3s180ms 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 != 1529669 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 != 1529669 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-11 13:40:03
-
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 != 1529161 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 != 1529161 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-11 13:00:32
-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1529888 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 != 1529888 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-11 14:17:11
3 18 1m29s 2s706ms 21s55ms 4s998ms update "product_warehouse_inventory" set "loc_check_qty" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 3.0, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (70755);
Date: 2024-07-11 16:11:23
-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 12.0, "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (80481);
Date: 2024-07-11 14:14:35
4 25 1m18s 6s853ms 6s946ms 3s129ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 257536 AND warehouse_id = 46;
Date: 2024-07-11 13:17:23
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 171888 AND warehouse_id = 35;
Date: 2024-07-11 16:00:05
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 172046 AND warehouse_id = 43;
Date: 2024-07-11 16:04:20
5 20 1m9s 1s104ms 14s36ms 3s453ms 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" = 5560209, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (1531387);
Date: 2024-07-11 20:17:58
-
UPDATE "account_move" SET "message_main_attachment_id" = 5560094, "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (1531296);
Date: 2024-07-11 19:53:48
-
UPDATE "account_move" SET "message_main_attachment_id" = 5558372, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1529654);
Date: 2024-07-11 13:39:10
6 16 57s608ms 2s800ms 8s626ms 3s600ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 216546 AND warehouse_id = 43;
Date: 2024-07-11 19:33:42
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:07:42
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:08:09
7 20 35s525ms 1s40ms 3s734ms 1s776ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 219377 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 18:08:02
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 202502 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-07-11 14:54:58
-
UPDATE product_warehouse_inventory SET qty_available = 68.0 WHERE product_id = 257473 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-11 13:17:32
8 22 31s710ms 1s110ms 5s33ms 1s441ms update product_warehouse_inventory set qty_ytd_sold = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 2.0 WHERE product_id = 245740 AND warehouse_id = 43;
Date: 2024-07-11 18:38:44
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 2.0 WHERE product_id = 245740 AND warehouse_id = 43;
Date: 2024-07-11 18:38:33
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = - 860.0 WHERE product_id = 237202 AND warehouse_id = 42;
Date: 2024-07-11 13:26:07
9 14 31s91ms 1s164ms 8s474ms 2s220ms update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_on_order = 12.0 WHERE product_id = 225047 AND warehouse_id = 44;
Date: 2024-07-11 13:43:03
-
UPDATE product_warehouse_inventory SET qty_on_order = 13.0 WHERE product_id = 267835 AND warehouse_id = 39;
Date: 2024-07-11 13:53:12
-
UPDATE product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 209310 AND warehouse_id = 37;
Date: 2024-07-11 13:39:09
10 2 18s967ms 6s39ms 12s927ms 9s483ms with updated_records as ( update product_warehouse_inventory set loc_check_qty = coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ? returning id, product_id, warehouse_id ) select product_id, id as warehouse_inventory_id, warehouse_id from updated_records;-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-07-11 00:04:17
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-07-11 00:04:17
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-07-11 00:04:43
11 4 13s246ms 1s86ms 5s428ms 3s311ms update product_warehouse_inventory set qty_mtd_sold = ?.? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 2.0 - 0 WHERE product_id = 171888 AND warehouse_id = 35;
Date: 2024-07-11 16:00:16
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 1.0 - 0 WHERE product_id = 190001 AND warehouse_id = 35;
Date: 2024-07-11 18:01:14
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 4.0 - 0 WHERE product_id = 238919 AND warehouse_id = 41;
Date: 2024-07-11 12:59:28
12 2 12s522ms 5s794ms 6s728ms 6s261ms update "sale_order" set "carrier_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order" SET "carrier_id" = NULL, "write_uid" = 1271, "write_date" = (now() at time zone 'UTC') WHERE id IN (150033);
Date: 2024-07-11 13:01:21
13 2 9s855ms 1s661ms 8s193ms 4s927ms update "sale_order" set "amount_total" = ?, "amount_untaxed" = ?, "carrier_id" = ?, "margin" = ?, "margin_percent" = ?.?, "unpaid_amount_total" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order" SET "amount_total" = '45.86', "amount_untaxed" = '45.86', "carrier_id" = 1, "margin" = '12.83', "margin_percent" = 0.27976450065416486, "unpaid_amount_total" = '45.86', "write_uid" = 1271, "write_date" = (now() at time zone 'UTC') WHERE id IN (150033);
Date: 2024-07-11 13:01:45
14 1 4s738ms 4s738ms 4s738ms 4s738ms insert into account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) values (?, ?) on conflict do nothing;-
INSERT INTO account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) VALUES (441995, 2122) ON CONFLICT DO NOTHING;
Date: 2024-07-11 13:07:57
-
INSERT INTO account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) VALUES (441995, 2122) ON CONFLICT DO NOTHING;
Date: 2024-07-11 13:07:57
15 1 4s467ms 4s467ms 4s467ms 4s467ms update product_warehouse_inventory set qty_mtd_sold = ? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 186074 AND warehouse_id = 43;
Date: 2024-07-11 12:27:31
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 202907 AND warehouse_id = 42;
Date: 2024-07-11 16:07:43
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 202502 AND warehouse_id = 41;
Date: 2024-07-11 14:54:56
16 1 3s718ms 3s718ms 3s718ms 3s718ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 267859 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-11 17:41:18
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 267843 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-07-11 15:33:16
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(8.0, 0) WHERE product_id = 229498 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 18:03:28
17 2 3s663ms 2s229ms 2s229ms 1s831ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '1913329f-7f9b-4ddc-985e-e205b329834f', "write_uid" = 1307, "write_date" = (now() at time zone 'UTC') WHERE id IN (1529235);
Date: 2024-07-11 12:55:45
18 1 2s619ms 2s619ms 2s619ms 2s619ms update "account_move" set "access_token" = ?, "is_move_sent" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '83e5fb20-5948-4946-9313-e19c3b01111c', "is_move_sent" = true, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (1529539);
Date: 2024-07-11 13:27:07
19 1 2s505ms 2s505ms 2s505ms 2s505ms update "account_move" set "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = 5558292, "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (1529578);
Date: 2024-07-11 13:30:30
20 1 2s268ms 2s268ms 2s268ms 2s268ms update product_warehouse_inventory set qty_available = ? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 187218 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-11 14:05:58
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 186073 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-11 13:12:04
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267253 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-07-11 19:40:00
21 1 2s224ms 2s224ms 2s224ms 2s224ms update "product_warehouse_inventory" set "rep_loc_check_qty" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "rep_loc_check_qty" = 20.0, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (82984);
Date: 2024-07-11 18:01:01
-
UPDATE "product_warehouse_inventory" SET "rep_loc_check_qty" = 20.0, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (82984);
Date: 2024-07-11 18:01:01
22 1 1s237ms 1s237ms 1s237ms 1s237ms update "product_warehouse_inventory" set "qty_shipped_not_invoiced" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "qty_shipped_not_invoiced" = 2.0, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (370880, 371747, 105140);
Date: 2024-07-11 13:22:31
-
UPDATE "product_warehouse_inventory" SET "qty_shipped_not_invoiced" = 5.0, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (70484);
Date: 2024-07-11 13:01:54
-
UPDATE "product_warehouse_inventory" SET "qty_shipped_not_invoiced" = 1.0, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (94458);
Date: 2024-07-11 14:21:00
23 1 1s214ms 1s214ms 1s214ms 1s214ms update product_warehouse_inventory set qty_mtd_sold = ? - ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 36.0 WHERE product_id = 237210 AND warehouse_id = 41;
Date: 2024-07-11 19:46:52
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 20.0 WHERE product_id = 237202 AND warehouse_id = 37;
Date: 2024-07-11 12:37:21
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 116.0 WHERE product_id = 237202 AND warehouse_id = 41;
Date: 2024-07-11 14:17:06
Queries that waited the most
Rank Wait time Query 1 37s55ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
2 37s6ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
3 36s968ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
4 31s797ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:07 ]
5 30s530ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:58 ]
6 27s312ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:58 ]
7 27s285ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:00 ]
8 26s962ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:58 ]
9 23s609ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:51 ]
10 22s279ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
11 21s55ms UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 2.0, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (8768);[ Date: 2024-07-11 18:04:56 ]
12 21s7ms UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 2.0, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (8768);[ Date: 2024-07-11 18:04:56 ]
13 20s448ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
14 20s139ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:08:53 ]
15 19s552ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:58 ]
16 19s399ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:44 ]
17 18s871ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:01:34 ]
18 17s230ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:08:06 ]
19 16s243ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:01:34 ]
20 14s962ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:08:04 ]
-
Queries
Queries by type
Key values
- 192,681 Total read queries
- 22,989 Total write queries
Queries by database
Key values
- unknown Main database
- 215,670 Requests
- 17h53m49s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 216,124 Requests
User Request type Count Duration unknown Total 216,124 17h55m37s copy to 111 13m cte 158 56s272ms delete 506 23m59s insert 2 4s893ms select 193,052 15h55m1s tcl 35 5s484ms update 22,260 1h22m28s Duration by user
Key values
- 17h55m37s (unknown) Main time consuming user
User Request type Count Duration unknown Total 216,124 17h55m37s copy to 111 13m cte 158 56s272ms delete 506 23m59s insert 2 4s893ms select 193,052 15h55m1s tcl 35 5s484ms update 22,260 1h22m28s Queries by host
Key values
- unknown Main host
- 216,124 Requests
- 17h55m37s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 215,670 Requests
- 17h53m49s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-07-11 12:30:37 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 194,509 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m55s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-07-11 09:10:02 ]
2 3m select count(id) as total_count from item_list_line where item_demand_plan_id = 3890 and active = True;[ Date: 2024-07-11 12:58:53 ]
3 2m3s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-07-11 09:04:02 ]
4 1m52s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-07-11 09:06:06 ]
5 1m31s delete from website_visitor;[ Date: 2024-07-11 08:27:18 ]
6 1m30s 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-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) 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)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-07-11 17:12:25 ]
7 1m23s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "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-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) 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)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login";[ Date: 2024-07-11 17:15:20 ]
8 1m21s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit_amount") AS "gross_profit_amount", "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-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) 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)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login";[ Date: 2024-07-11 17:17:00 ]
9 1m20s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."gross_profit_amount") AS "gross_profit_amount", "sale_history_line"."user_id" as "user_id", date_trunc('month', "sale_history_line"."invoice_date"::timestamp) as "invoice_date:month" 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-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) 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)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) GROUP BY "sale_history_line"."user_id", date_trunc('month', "sale_history_line"."invoice_date"::timestamp), "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", "invoice_date:month";[ Date: 2024-07-11 17:18:36 ]
10 50s376ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-07-11'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, -999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-07-11'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, -999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, -999) <= '2024-07-11'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-07-11'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-07-11 19:08:42 ]
11 48s899ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-07-11'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, -999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-07-11'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, -999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, -999) <= '2024-07-11'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-07-11'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-07-11 19:09:35 ]
12 43s521ms select count(id) as total_count from item_list_line where item_demand_plan_id = 3890 and active = True;[ Date: 2024-07-11 12:58:55 ]
13 38s686ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
14 37s684ms 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-07-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id UNION ALL SELECT account_move_line.account_id AS groupby, 'initial_balance' 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" <= '2024-06-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"."account_id" in (1549))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id;[ Date: 2024-07-11 13:39:42 ]
15 37s144ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
16 37s103ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
17 37s71ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:14 ]
18 35s454ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-07-11 09:00:57 ]
19 35s324ms 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-07-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id UNION ALL SELECT account_move_line.account_id AS groupby, 'initial_balance' 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" <= '2024-06-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"."account_id" in (1549))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id;[ Date: 2024-07-11 13:38:24 ]
20 34s258ms update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;[ Date: 2024-07-11 13:09:07 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 4h27m25s 66,506 120ms 2s199ms 241ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 11 00 1,109 2m48s 151ms 01 565 1m51s 197ms 02 645 1m50s 172ms 03 709 2m 170ms 04 820 2m6s 154ms 05 764 2m12s 173ms 06 703 1m43s 147ms 07 949 2m26s 154ms 08 868 2m22s 164ms 09 993 2m49s 171ms 10 820 2m9s 158ms 11 2,513 7m35s 181ms 12 5,877 28m6s 286ms 13 7,560 34m16s 272ms 14 5,603 23m8s 247ms 15 5,443 23m26s 258ms 16 7,302 30m22s 249ms 17 7,059 32m10s 273ms 18 5,704 23m34s 247ms 19 5,886 26m15s 267ms 20 2,724 9m22s 206ms 21 802 1m58s 148ms 22 535 1m19s 147ms 23 553 1m26s 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_999"', '["pointspring_master","calendar.alarm",19537]', '["pointspring_master","mail.channel",67]', '["pointspring_master","mail.channel",495]', '["pointspring_master","mail.channel",512]', '["pointspring_master","mail.channel",528]', '["pointspring_master","mail.channel",553]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",577]', '["pointspring_master","mail.channel",600]', '["pointspring_master","res.partner",19537]', '["pointspring_master","ir.needaction",19537]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s199ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s170ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",53441]', '["pointspring_master","res.partner",53441]', '["pointspring_master","ir.needaction",53441]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s158ms
2 1h44m43s 16,328 269ms 2s205ms 384ms 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 #2
Day Hour Count Duration Avg duration Jul 11 08 12 4s39ms 336ms 09 9 3s172ms 352ms 10 23 7s345ms 319ms 11 843 4m55s 350ms 12 1,649 10m42s 389ms 13 2,193 15m16s 418ms 14 1,497 9m40s 387ms 15 1,753 11m13s 383ms 16 1,570 9m44s 372ms 17 1,561 10m14s 393ms 18 2,039 13m2s 383ms 19 2,314 14m31s 376ms 20 846 5m2s 357ms 21 9 3s9ms 334ms 22 10 3s374ms 337ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 12:37:08 Duration: 2s205ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 19:40:01 Duration: 1s977ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 15:28:50 Duration: 1s958ms
3 52m5s 3,482 678ms 2s278ms 897ms 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 Jul 11 00 39 28s396ms 728ms 01 3 2s138ms 712ms 09 3 2s302ms 767ms 10 6 4s341ms 723ms 11 321 4m5s 765ms 12 421 5m56s 845ms 13 470 8m2s 1s25ms 14 346 5m4s 879ms 15 355 5m3s 855ms 16 262 4m6s 941ms 17 312 5m17s 1s17ms 18 355 5m19s 900ms 19 384 5m41s 890ms 20 195 2m43s 838ms 21 5 3s548ms 709ms 22 5 3s565ms 713ms -
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 ('%%pl1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1%'))) 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-07-11 13:43:04 Duration: 2s278ms
-
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 ('%%131%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-1%'))) 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-07-11 17:17:03 Duration: 2s116ms
-
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 ('%%pl136%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl136%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl136%'))) 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-07-11 13:43:04 Duration: 2s112ms
4 25m1s 4,211 307ms 1s627ms 356ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 11 00 192 1m2s 326ms 01 135 43s592ms 322ms 02 297 1m35s 321ms 03 120 38s559ms 321ms 04 81 25s881ms 319ms 05 237 1m16s 321ms 06 189 1m 320ms 07 150 48s236ms 321ms 08 126 40s988ms 325ms 09 153 50s15ms 326ms 10 177 57s303ms 323ms 11 192 1m6s 347ms 12 216 1m23s 388ms 13 189 1m30s 481ms 14 186 1m10s 376ms 15 206 1m19s 384ms 16 120 46s327ms 386ms 17 186 1m21s 440ms 18 153 1m9s 453ms 19 225 1m23s 371ms 20 213 1m21s 381ms 21 147 46s765ms 318ms 22 171 54s364ms 317ms 23 150 47s834ms 318ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:47:52 Duration: 1s627ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:06:05 Duration: 1s276ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 13:39:41 Duration: 1s122ms
5 24m56s 9,601 120ms 925ms 155ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 11 00 1 136ms 136ms 08 13 1s697ms 130ms 09 4 593ms 148ms 10 9 1s162ms 129ms 11 184 26s367ms 143ms 12 951 2m29s 157ms 13 1,422 3m56s 165ms 14 824 2m7s 155ms 15 649 1m38s 152ms 16 577 1m26s 149ms 17 2,404 6m19s 157ms 18 1,438 3m38s 152ms 19 856 2m10s 152ms 20 264 38s518ms 145ms 21 3 394ms 131ms 22 2 248ms 124ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 187581 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 17:14:33 Duration: 925ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 262089 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 17:13:42 Duration: 754ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 237202 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 15:22:19 Duration: 716ms
6 22m31s 3,890 305ms 1s864ms 347ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 11 00 264 1m24s 319ms 01 132 41s817ms 316ms 02 213 1m6s 313ms 03 201 1m3s 314ms 04 114 36s352ms 318ms 05 192 1m 313ms 06 153 48s287ms 315ms 07 144 45s720ms 317ms 08 135 43s67ms 319ms 09 171 54s953ms 321ms 10 141 44s989ms 319ms 11 141 49s458ms 350ms 12 180 1m10s 391ms 13 201 1m30s 448ms 14 155 1m1s 396ms 15 159 59s160ms 372ms 16 144 59s455ms 412ms 17 162 1m7s 418ms 18 132 49s186ms 372ms 19 111 44s679ms 402ms 20 210 1m12s 346ms 21 168 52s971ms 315ms 22 159 50s350ms 316ms 23 108 33s861ms 313ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 14:57:21 Duration: 1s864ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 12:50:45 Duration: 1s735ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:08:10 Duration: 1s196ms
7 22m25s 2,426 433ms 1s971ms 554ms 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 Jul 11 00 3 1s311ms 437ms 01 2 902ms 451ms 03 3 1s335ms 445ms 07 6 2s756ms 459ms 08 16 7s96ms 443ms 09 11 5s68ms 460ms 10 14 6s199ms 442ms 11 160 1m17s 484ms 12 374 3m23s 544ms 13 375 3m54s 624ms 14 244 2m15s 555ms 15 184 1m38s 537ms 16 208 2m1s 584ms 17 161 1m39s 619ms 18 264 2m20s 533ms 19 231 2m4s 540ms 20 159 1m19s 496ms 21 8 3s536ms 442ms 22 3 1s313ms 437ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d7fc930/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 17:11:03 Duration: 1s971ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 16:57:32 Duration: 1s666ms
-
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/%-abccd39/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 13:40:24 Duration: 1s515ms
8 19m14s 8,274 120ms 977ms 139ms 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 #8
Day Hour Count Duration Avg duration Jul 11 08 3 378ms 126ms 11 195 26s57ms 133ms 12 556 1m18s 140ms 13 983 2m23s 145ms 14 411 56s624ms 137ms 15 308 43s964ms 142ms 16 2,305 5m12s 135ms 17 2,562 6m4s 142ms 18 319 43s635ms 136ms 19 395 53s21ms 134ms 20 236 32s396ms 137ms 22 1 121ms 121ms -
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 211698 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 16:51:31 Duration: 977ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 212029 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-07-11 16:27:55 Duration: 661ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 212356 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-07-11 16:39:35 Duration: 583ms
9 17m32s 4,042 227ms 632ms 260ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 11 00 188 44s407ms 236ms 01 147 34s235ms 232ms 02 228 53s205ms 233ms 03 132 30s681ms 232ms 04 114 27s72ms 237ms 05 144 33s568ms 233ms 06 228 53s28ms 232ms 07 180 42s204ms 234ms 08 96 22s643ms 235ms 09 177 42s229ms 238ms 10 204 47s623ms 233ms 11 159 40s472ms 254ms 12 201 1m 300ms 13 147 48s377ms 329ms 14 177 51s178ms 289ms 15 174 48s640ms 279ms 16 138 43s607ms 315ms 17 147 49s363ms 335ms 18 129 41s95ms 318ms 19 264 1m18s 299ms 20 201 50s776ms 252ms 21 162 37s749ms 233ms 22 180 41s987ms 233ms 23 125 29s195ms 233ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:42:23 Duration: 632ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:51:09 Duration: 629ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:11:06 Duration: 606ms
10 16m43s 1,087 589ms 2s367ms 923ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 11 11 4 3s500ms 875ms 12 136 2m3s 906ms 13 152 2m24s 950ms 14 218 3m5s 848ms 15 57 51s625ms 905ms 16 278 4m1s 866ms 17 140 2m37s 1s126ms 18 28 27s221ms 972ms 19 74 1m9s 943ms -
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 ('%%5178x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-178x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-178x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 19:00:03 Duration: 2s367ms
-
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 ('%%RB%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RB-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RB-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 17:04:49 Duration: 1s905ms
-
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 ('%%58x30%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8x30%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8x30%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 13:27:24 Duration: 1s844ms
11 16m23s 3,729 227ms 1s800ms 263ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 11 00 162 38s570ms 238ms 01 147 34s356ms 233ms 02 138 32s260ms 233ms 03 120 28s521ms 237ms 04 330 1m17s 233ms 05 78 18s233ms 233ms 06 45 10s536ms 234ms 07 129 30s351ms 235ms 08 96 22s646ms 235ms 09 141 33s505ms 237ms 10 201 47s336ms 235ms 11 177 44s375ms 250ms 12 174 50s3ms 287ms 13 159 47s923ms 301ms 14 177 53s72ms 299ms 15 114 32s215ms 282ms 16 255 1m22s 323ms 17 258 1m35s 368ms 18 30 10s221ms 340ms 19 129 36s420ms 282ms 20 168 41s692ms 248ms 21 141 32s670ms 231ms 22 240 56s427ms 235ms 23 120 27s869ms 232ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:17:20 Duration: 1s800ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 16:57:32 Duration: 859ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 17:01:35 Duration: 758ms
12 15m12s 5,761 138ms 974ms 158ms 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 #12
Day Hour Count Duration Avg duration Jul 11 00 240 35s221ms 146ms 01 240 34s299ms 142ms 02 240 34s401ms 143ms 03 240 34s633ms 144ms 04 240 34s272ms 142ms 05 240 34s289ms 142ms 06 240 34s321ms 143ms 07 240 34s541ms 143ms 08 240 34s348ms 143ms 09 240 34s469ms 143ms 10 240 34s330ms 143ms 11 240 36s759ms 153ms 12 240 43s175ms 179ms 13 240 48s614ms 202ms 14 240 42s530ms 177ms 15 240 41s696ms 173ms 16 241 47s624ms 197ms 17 240 47s111ms 196ms 18 240 42s131ms 175ms 19 240 42s472ms 176ms 20 240 37s884ms 157ms 21 240 34s647ms 144ms 22 240 34s423ms 143ms 23 240 34s477ms 143ms -
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_opfamily', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_database', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_cast', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_range', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_settings', 'pg_catalog.pg_constraint', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_class', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_indexes', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_publication', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_rules', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_enum', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_udt_grants', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.view_routine_usage', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.key_column_usage', 'information_schema.data_type_privileges', 'information_schema.foreign_tables', 'information_schema.parameters', 'information_schema.views', 'information_schema.collations', 'information_schema.role_routine_grants', 'information_schema.routine_table_usage', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.routine_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.triggered_update_columns', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'information_schema.sql_features', 'information_schema.sql_sizing', 'information_schema.user_mapping_options', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 15:40:25 Duration: 974ms
-
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_foreign_table', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_class', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_description', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_enum', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_depend', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_user', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_language', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_attribute', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_namespace', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_rules', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.usage_privileges', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.character_sets', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.view_table_usage', 'information_schema.udt_privileges', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.foreign_servers', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.information_schema_catalog_name', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.sequences', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_server_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 16:04:40 Duration: 854ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_rules', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_roles', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_transform', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_cast', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_extension', 'pg_catalog.pg_cursors', 'pg_catalog.pg_operator', 'pg_catalog.pg_enum', 'pg_catalog.pg_am', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_database_conflicts', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_table_usage', 'information_schema.role_column_grants', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.attributes', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.tables', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.column_options', 'information_schema.column_privileges', 'information_schema.sql_implementation_info', 'information_schema.triggers', 'information_schema.role_usage_grants', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.element_types', 'information_schema.role_table_grants', 'information_schema.column_column_usage', 'information_schema.udt_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.table_privileges', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 13:07:39 Duration: 716ms
13 15m2s 5,790 120ms 1s14ms 155ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 11 00 1 144ms 144ms 08 2 256ms 128ms 11 87 13s116ms 150ms 12 560 1m28s 158ms 13 1,324 3m31s 159ms 14 494 1m15s 152ms 15 490 1m17s 157ms 16 368 56s187ms 152ms 17 1,058 2m46s 157ms 18 710 1m47s 151ms 19 561 1m25s 151ms 20 134 20s203ms 150ms 21 1 127ms 127ms -
select id from product_warehouse_inventory where product_id = 237202 and warehouse_id = 37 and company_id = 1;
Date: 2024-07-11 12:37:08 Duration: 1s14ms
-
select id from product_warehouse_inventory where product_id = 265782 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-11 19:02:53 Duration: 948ms
-
select id from product_warehouse_inventory where product_id = 217033 and warehouse_id = 43 and company_id = 1;
Date: 2024-07-11 12:50:44 Duration: 940ms
14 13m47s 4,408 147ms 3s192ms 187ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 11 00 4 839ms 209ms 08 6 985ms 164ms 09 4 676ms 169ms 10 4 697ms 174ms 11 129 22s60ms 171ms 12 533 1m40s 187ms 13 732 2m25s 198ms 14 530 1m41s 191ms 15 441 1m19s 181ms 16 631 1m55s 183ms 17 332 1m2s 189ms 18 496 1m34s 189ms 19 350 1m4s 185ms 20 208 36s738ms 176ms 21 4 687ms 171ms 22 4 652ms 163ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 219377 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 18:08:02 Duration: 3s192ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 202502 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-07-11 14:54:58 Duration: 1s803ms
-
UPDATE product_warehouse_inventory SET qty_available = 68.0 WHERE product_id = 257473 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-11 13:17:32 Duration: 1s434ms
15 13m45s 766 881ms 2s154ms 1s77ms 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 #15
Day Hour Count Duration Avg duration Jul 11 11 22 21s361ms 970ms 12 88 1m34s 1s73ms 13 106 2m2s 1s158ms 14 96 1m38s 1s20ms 15 101 1m43s 1s29ms 16 73 1m22s 1s130ms 17 65 1m18s 1s207ms 18 105 1m52s 1s71ms 19 79 1m22s 1s41ms 20 29 27s158ms 936ms 21 2 1s783ms 891ms -
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 ('%520226%')) 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 ('%520226%'))) 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 ('%520226%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%520226%')))))) 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-07-11 17:44:43 Duration: 2s154ms
-
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 ('%E11988%')) 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 ('%E11988%'))) 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 ('%E11988%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%E11988%')))))) 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-07-11 18:01:36 Duration: 1s960ms
-
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 ('%e11988%')) 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 ('%e11988%'))) 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 ('%e11988%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%e11988%')))))) 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-07-11 18:05:17 Duration: 1s834ms
16 12m41s 5,205 120ms 885ms 146ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 11 11 95 13s528ms 142ms 12 391 57s941ms 148ms 13 940 2m20s 149ms 14 372 53s380ms 143ms 15 394 57s7ms 144ms 16 850 2m2s 144ms 17 1,302 3m12s 147ms 18 368 52s705ms 143ms 19 369 52s576ms 142ms 20 124 18s277ms 147ms -
select id from product_warehouse_inventory where product_id = 172564 and warehouse_id = 44 and company_id = 1;
Date: 2024-07-11 14:32:44 Duration: 885ms
-
select id from product_warehouse_inventory where product_id = 220116 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-11 19:02:53 Duration: 670ms
-
select id from product_warehouse_inventory where product_id = 212067 and warehouse_id = 43 and company_id = 1;
Date: 2024-07-11 17:11:02 Duration: 630ms
17 12m37s 3,202 152ms 831ms 236ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 11 03 1 192ms 192ms 08 18 3s855ms 214ms 09 3 595ms 198ms 10 3 640ms 213ms 11 72 15s825ms 219ms 12 374 1m30s 240ms 13 608 2m35s 255ms 14 488 1m54s 235ms 15 295 1m6s 226ms 16 193 47s261ms 244ms 17 244 1m4s 265ms 18 235 56s689ms 241ms 19 254 58s313ms 229ms 20 135 30s109ms 223ms 21 3 562ms 187ms 22 3 551ms 183ms 23 273 50s590ms 185ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (40386))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 12:52:14 Duration: 831ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32886))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 16:04:41 Duration: 799ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33688))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 17:04:06 Duration: 794ms
18 11m59s 54 1s538ms 38s686ms 13s314ms update product_warehouse_inventory set qty_reserve = ?.? where id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 11 13 54 11m59s 13s314ms -
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 38s686ms
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 37s144ms
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 37s103ms
19 11m29s 95 5s926ms 14s778ms 7s260ms delete from sale_order_line where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 11 00 1 6s49ms 6s49ms 11 7 51s766ms 7s395ms 12 1 14s433ms 14s433ms 13 46 5m23s 7s32ms 14 6 46s945ms 7s824ms 15 6 38s42ms 6s340ms 16 4 28s412ms 7s103ms 17 7 56s476ms 8s68ms 18 7 52s561ms 7s508ms 19 5 40s382ms 8s76ms 20 5 31s160ms 6s232ms -
DELETE FROM sale_order_line WHERE id IN (441789, 441790);
Date: 2024-07-11 11:18:24 Duration: 14s778ms
-
DELETE FROM sale_order_line WHERE id IN (440532, 440533);
Date: 2024-07-11 12:17:54 Duration: 14s433ms
-
DELETE FROM sale_order_line WHERE id IN (442607, 442609);
Date: 2024-07-11 19:51:54 Duration: 12s800ms
20 10m27s 2,886 161ms 946ms 217ms 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 #20
Day Hour Count Duration Avg duration Jul 11 13 561 2m2s 217ms 14 426 1m28s 207ms 15 540 1m54s 211ms 16 102 20s381ms 199ms 17 569 2m14s 236ms 18 363 1m23s 230ms 19 246 46s503ms 189ms 20 79 17s514ms 221ms -
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 = 46031 and fd.product_id = 172559;
Date: 2024-07-11 13:57:22 Duration: 946ms
-
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 = 46070 and fd.product_id = 215954;
Date: 2024-07-11 17:11:02 Duration: 927ms
-
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 = 46248 and fd.product_id = 180751;
Date: 2024-07-11 13:27:23 Duration: 778ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 66,506 4h27m25s 120ms 2s199ms 241ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 11 00 1,109 2m48s 151ms 01 565 1m51s 197ms 02 645 1m50s 172ms 03 709 2m 170ms 04 820 2m6s 154ms 05 764 2m12s 173ms 06 703 1m43s 147ms 07 949 2m26s 154ms 08 868 2m22s 164ms 09 993 2m49s 171ms 10 820 2m9s 158ms 11 2,513 7m35s 181ms 12 5,877 28m6s 286ms 13 7,560 34m16s 272ms 14 5,603 23m8s 247ms 15 5,443 23m26s 258ms 16 7,302 30m22s 249ms 17 7,059 32m10s 273ms 18 5,704 23m34s 247ms 19 5,886 26m15s 267ms 20 2,724 9m22s 206ms 21 802 1m58s 148ms 22 535 1m19s 147ms 23 553 1m26s 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_999"', '["pointspring_master","calendar.alarm",19537]', '["pointspring_master","mail.channel",67]', '["pointspring_master","mail.channel",495]', '["pointspring_master","mail.channel",512]', '["pointspring_master","mail.channel",528]', '["pointspring_master","mail.channel",553]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",577]', '["pointspring_master","mail.channel",600]', '["pointspring_master","res.partner",19537]', '["pointspring_master","ir.needaction",19537]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s199ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s170ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",53441]', '["pointspring_master","res.partner",53441]', '["pointspring_master","ir.needaction",53441]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s158ms
2 16,328 1h44m43s 269ms 2s205ms 384ms 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 #2
Day Hour Count Duration Avg duration Jul 11 08 12 4s39ms 336ms 09 9 3s172ms 352ms 10 23 7s345ms 319ms 11 843 4m55s 350ms 12 1,649 10m42s 389ms 13 2,193 15m16s 418ms 14 1,497 9m40s 387ms 15 1,753 11m13s 383ms 16 1,570 9m44s 372ms 17 1,561 10m14s 393ms 18 2,039 13m2s 383ms 19 2,314 14m31s 376ms 20 846 5m2s 357ms 21 9 3s9ms 334ms 22 10 3s374ms 337ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 12:37:08 Duration: 2s205ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 19:40:01 Duration: 1s977ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 15:28:50 Duration: 1s958ms
3 9,601 24m56s 120ms 925ms 155ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 11 00 1 136ms 136ms 08 13 1s697ms 130ms 09 4 593ms 148ms 10 9 1s162ms 129ms 11 184 26s367ms 143ms 12 951 2m29s 157ms 13 1,422 3m56s 165ms 14 824 2m7s 155ms 15 649 1m38s 152ms 16 577 1m26s 149ms 17 2,404 6m19s 157ms 18 1,438 3m38s 152ms 19 856 2m10s 152ms 20 264 38s518ms 145ms 21 3 394ms 131ms 22 2 248ms 124ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 187581 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 17:14:33 Duration: 925ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 262089 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 17:13:42 Duration: 754ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 237202 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-11 15:22:19 Duration: 716ms
4 8,274 19m14s 120ms 977ms 139ms 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 #4
Day Hour Count Duration Avg duration Jul 11 08 3 378ms 126ms 11 195 26s57ms 133ms 12 556 1m18s 140ms 13 983 2m23s 145ms 14 411 56s624ms 137ms 15 308 43s964ms 142ms 16 2,305 5m12s 135ms 17 2,562 6m4s 142ms 18 319 43s635ms 136ms 19 395 53s21ms 134ms 20 236 32s396ms 137ms 22 1 121ms 121ms -
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 211698 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 16:51:31 Duration: 977ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 212029 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-07-11 16:27:55 Duration: 661ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 212356 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-07-11 16:39:35 Duration: 583ms
5 5,790 15m2s 120ms 1s14ms 155ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 11 00 1 144ms 144ms 08 2 256ms 128ms 11 87 13s116ms 150ms 12 560 1m28s 158ms 13 1,324 3m31s 159ms 14 494 1m15s 152ms 15 490 1m17s 157ms 16 368 56s187ms 152ms 17 1,058 2m46s 157ms 18 710 1m47s 151ms 19 561 1m25s 151ms 20 134 20s203ms 150ms 21 1 127ms 127ms -
select id from product_warehouse_inventory where product_id = 237202 and warehouse_id = 37 and company_id = 1;
Date: 2024-07-11 12:37:08 Duration: 1s14ms
-
select id from product_warehouse_inventory where product_id = 265782 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-11 19:02:53 Duration: 948ms
-
select id from product_warehouse_inventory where product_id = 217033 and warehouse_id = 43 and company_id = 1;
Date: 2024-07-11 12:50:44 Duration: 940ms
6 5,761 15m12s 138ms 974ms 158ms 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 Jul 11 00 240 35s221ms 146ms 01 240 34s299ms 142ms 02 240 34s401ms 143ms 03 240 34s633ms 144ms 04 240 34s272ms 142ms 05 240 34s289ms 142ms 06 240 34s321ms 143ms 07 240 34s541ms 143ms 08 240 34s348ms 143ms 09 240 34s469ms 143ms 10 240 34s330ms 143ms 11 240 36s759ms 153ms 12 240 43s175ms 179ms 13 240 48s614ms 202ms 14 240 42s530ms 177ms 15 240 41s696ms 173ms 16 241 47s624ms 197ms 17 240 47s111ms 196ms 18 240 42s131ms 175ms 19 240 42s472ms 176ms 20 240 37s884ms 157ms 21 240 34s647ms 144ms 22 240 34s423ms 143ms 23 240 34s477ms 143ms -
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_opfamily', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_database', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_cast', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_range', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_settings', 'pg_catalog.pg_constraint', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_class', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_indexes', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_publication', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_rules', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_enum', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_udt_grants', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.view_routine_usage', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.key_column_usage', 'information_schema.data_type_privileges', 'information_schema.foreign_tables', 'information_schema.parameters', 'information_schema.views', 'information_schema.collations', 'information_schema.role_routine_grants', 'information_schema.routine_table_usage', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.routine_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.triggered_update_columns', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'information_schema.sql_features', 'information_schema.sql_sizing', 'information_schema.user_mapping_options', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 15:40:25 Duration: 974ms
-
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_foreign_table', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_class', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_description', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_enum', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_depend', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_user', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_language', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_attribute', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_namespace', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_rules', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.usage_privileges', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.character_sets', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.view_table_usage', 'information_schema.udt_privileges', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.foreign_servers', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.information_schema_catalog_name', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.sequences', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_server_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 16:04:40 Duration: 854ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_rules', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_roles', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_transform', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_cast', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_extension', 'pg_catalog.pg_cursors', 'pg_catalog.pg_operator', 'pg_catalog.pg_enum', 'pg_catalog.pg_am', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_database_conflicts', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_table_usage', 'information_schema.role_column_grants', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.attributes', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.tables', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.column_options', 'information_schema.column_privileges', 'information_schema.sql_implementation_info', 'information_schema.triggers', 'information_schema.role_usage_grants', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.element_types', 'information_schema.role_table_grants', 'information_schema.column_column_usage', 'information_schema.udt_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.table_privileges', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 13:07:39 Duration: 716ms
7 5,205 12m41s 120ms 885ms 146ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 11 11 95 13s528ms 142ms 12 391 57s941ms 148ms 13 940 2m20s 149ms 14 372 53s380ms 143ms 15 394 57s7ms 144ms 16 850 2m2s 144ms 17 1,302 3m12s 147ms 18 368 52s705ms 143ms 19 369 52s576ms 142ms 20 124 18s277ms 147ms -
select id from product_warehouse_inventory where product_id = 172564 and warehouse_id = 44 and company_id = 1;
Date: 2024-07-11 14:32:44 Duration: 885ms
-
select id from product_warehouse_inventory where product_id = 220116 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-11 19:02:53 Duration: 670ms
-
select id from product_warehouse_inventory where product_id = 212067 and warehouse_id = 43 and company_id = 1;
Date: 2024-07-11 17:11:02 Duration: 630ms
8 4,408 13m47s 147ms 3s192ms 187ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 11 00 4 839ms 209ms 08 6 985ms 164ms 09 4 676ms 169ms 10 4 697ms 174ms 11 129 22s60ms 171ms 12 533 1m40s 187ms 13 732 2m25s 198ms 14 530 1m41s 191ms 15 441 1m19s 181ms 16 631 1m55s 183ms 17 332 1m2s 189ms 18 496 1m34s 189ms 19 350 1m4s 185ms 20 208 36s738ms 176ms 21 4 687ms 171ms 22 4 652ms 163ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 219377 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 18:08:02 Duration: 3s192ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 202502 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-07-11 14:54:58 Duration: 1s803ms
-
UPDATE product_warehouse_inventory SET qty_available = 68.0 WHERE product_id = 257473 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-11 13:17:32 Duration: 1s434ms
9 4,211 25m1s 307ms 1s627ms 356ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 11 00 192 1m2s 326ms 01 135 43s592ms 322ms 02 297 1m35s 321ms 03 120 38s559ms 321ms 04 81 25s881ms 319ms 05 237 1m16s 321ms 06 189 1m 320ms 07 150 48s236ms 321ms 08 126 40s988ms 325ms 09 153 50s15ms 326ms 10 177 57s303ms 323ms 11 192 1m6s 347ms 12 216 1m23s 388ms 13 189 1m30s 481ms 14 186 1m10s 376ms 15 206 1m19s 384ms 16 120 46s327ms 386ms 17 186 1m21s 440ms 18 153 1m9s 453ms 19 225 1m23s 371ms 20 213 1m21s 381ms 21 147 46s765ms 318ms 22 171 54s364ms 317ms 23 150 47s834ms 318ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:47:52 Duration: 1s627ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:06:05 Duration: 1s276ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 13:39:41 Duration: 1s122ms
10 4,131 9m37s 120ms 679ms 139ms select coalesce(replenish_branch_id, ?) as replenish_branch_id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 11 00 1 170ms 170ms 08 1 124ms 124ms 10 1 121ms 121ms 11 85 11s395ms 134ms 12 259 35s754ms 138ms 13 497 1m12s 146ms 14 207 28s615ms 138ms 15 148 21s503ms 145ms 16 1,135 2m34s 135ms 17 1,324 3m7s 141ms 18 166 22s734ms 136ms 19 178 24s206ms 135ms 20 129 17s300ms 134ms -
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 189858 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-07-11 16:27:54 Duration: 679ms
-
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 212029 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-07-11 17:03:13 Duration: 558ms
-
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 211745 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 17:00:43 Duration: 544ms
11 4,042 17m32s 227ms 632ms 260ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 11 00 188 44s407ms 236ms 01 147 34s235ms 232ms 02 228 53s205ms 233ms 03 132 30s681ms 232ms 04 114 27s72ms 237ms 05 144 33s568ms 233ms 06 228 53s28ms 232ms 07 180 42s204ms 234ms 08 96 22s643ms 235ms 09 177 42s229ms 238ms 10 204 47s623ms 233ms 11 159 40s472ms 254ms 12 201 1m 300ms 13 147 48s377ms 329ms 14 177 51s178ms 289ms 15 174 48s640ms 279ms 16 138 43s607ms 315ms 17 147 49s363ms 335ms 18 129 41s95ms 318ms 19 264 1m18s 299ms 20 201 50s776ms 252ms 21 162 37s749ms 233ms 22 180 41s987ms 233ms 23 125 29s195ms 233ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:42:23 Duration: 632ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:51:09 Duration: 629ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:11:06 Duration: 606ms
12 3,890 22m31s 305ms 1s864ms 347ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 11 00 264 1m24s 319ms 01 132 41s817ms 316ms 02 213 1m6s 313ms 03 201 1m3s 314ms 04 114 36s352ms 318ms 05 192 1m 313ms 06 153 48s287ms 315ms 07 144 45s720ms 317ms 08 135 43s67ms 319ms 09 171 54s953ms 321ms 10 141 44s989ms 319ms 11 141 49s458ms 350ms 12 180 1m10s 391ms 13 201 1m30s 448ms 14 155 1m1s 396ms 15 159 59s160ms 372ms 16 144 59s455ms 412ms 17 162 1m7s 418ms 18 132 49s186ms 372ms 19 111 44s679ms 402ms 20 210 1m12s 346ms 21 168 52s971ms 315ms 22 159 50s350ms 316ms 23 108 33s861ms 313ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 14:57:21 Duration: 1s864ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 12:50:45 Duration: 1s735ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:08:10 Duration: 1s196ms
13 3,729 16m23s 227ms 1s800ms 263ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 11 00 162 38s570ms 238ms 01 147 34s356ms 233ms 02 138 32s260ms 233ms 03 120 28s521ms 237ms 04 330 1m17s 233ms 05 78 18s233ms 233ms 06 45 10s536ms 234ms 07 129 30s351ms 235ms 08 96 22s646ms 235ms 09 141 33s505ms 237ms 10 201 47s336ms 235ms 11 177 44s375ms 250ms 12 174 50s3ms 287ms 13 159 47s923ms 301ms 14 177 53s72ms 299ms 15 114 32s215ms 282ms 16 255 1m22s 323ms 17 258 1m35s 368ms 18 30 10s221ms 340ms 19 129 36s420ms 282ms 20 168 41s692ms 248ms 21 141 32s670ms 231ms 22 240 56s427ms 235ms 23 120 27s869ms 232ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:17:20 Duration: 1s800ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 16:57:32 Duration: 859ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 17:01:35 Duration: 758ms
14 3,510 10m17s 120ms 963ms 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 #14
Day Hour Count Duration Avg duration Jul 11 11 112 16s695ms 149ms 12 433 1m15s 175ms 13 584 1m43s 177ms 14 136 21s741ms 159ms 15 160 32s303ms 201ms 16 294 1m6s 225ms 17 167 29s41ms 173ms 18 523 1m28s 168ms 19 611 1m46s 173ms 20 490 1m17s 158ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 213587) 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" = '45')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 17:17:02 Duration: 963ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 246223) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 16:27:54 Duration: 897ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 254692) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 16:27:55 Duration: 801ms
15 3,482 52m5s 678ms 2s278ms 897ms 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 #15
Day Hour Count Duration Avg duration Jul 11 00 39 28s396ms 728ms 01 3 2s138ms 712ms 09 3 2s302ms 767ms 10 6 4s341ms 723ms 11 321 4m5s 765ms 12 421 5m56s 845ms 13 470 8m2s 1s25ms 14 346 5m4s 879ms 15 355 5m3s 855ms 16 262 4m6s 941ms 17 312 5m17s 1s17ms 18 355 5m19s 900ms 19 384 5m41s 890ms 20 195 2m43s 838ms 21 5 3s548ms 709ms 22 5 3s565ms 713ms -
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 ('%%pl1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1%'))) 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-07-11 13:43:04 Duration: 2s278ms
-
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 ('%%131%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-1%'))) 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-07-11 17:17:03 Duration: 2s116ms
-
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 ('%%pl136%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl136%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl136%'))) 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-07-11 13:43:04 Duration: 2s112ms
16 3,202 12m37s 152ms 831ms 236ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 11 03 1 192ms 192ms 08 18 3s855ms 214ms 09 3 595ms 198ms 10 3 640ms 213ms 11 72 15s825ms 219ms 12 374 1m30s 240ms 13 608 2m35s 255ms 14 488 1m54s 235ms 15 295 1m6s 226ms 16 193 47s261ms 244ms 17 244 1m4s 265ms 18 235 56s689ms 241ms 19 254 58s313ms 229ms 20 135 30s109ms 223ms 21 3 562ms 187ms 22 3 551ms 183ms 23 273 50s590ms 185ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (40386))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 12:52:14 Duration: 831ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32886))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 16:04:41 Duration: 799ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33688))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 17:04:06 Duration: 794ms
17 3,037 9m56s 145ms 8s262ms 196ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 11 00 13 2s211ms 170ms 07 1 263ms 263ms 09 2 397ms 198ms 10 5 882ms 176ms 11 182 31s581ms 173ms 12 320 58s503ms 182ms 13 416 1m21s 195ms 14 269 53s389ms 198ms 15 289 54s629ms 189ms 16 350 1m4s 185ms 17 311 1m4s 206ms 18 352 1m18s 222ms 19 400 1m22s 205ms 20 123 23s363ms 189ms 21 2 391ms 195ms 22 2 324ms 162ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 216546 AND warehouse_id = 43;
Date: 2024-07-11 19:33:42 Duration: 8s262ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:07:42 Duration: 5s528ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:08:09 Duration: 5s433ms
18 2,886 10m27s 161ms 946ms 217ms 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 #18
Day Hour Count Duration Avg duration Jul 11 13 561 2m2s 217ms 14 426 1m28s 207ms 15 540 1m54s 211ms 16 102 20s381ms 199ms 17 569 2m14s 236ms 18 363 1m23s 230ms 19 246 46s503ms 189ms 20 79 17s514ms 221ms -
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 = 46031 and fd.product_id = 172559;
Date: 2024-07-11 13:57:22 Duration: 946ms
-
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 = 46070 and fd.product_id = 215954;
Date: 2024-07-11 17:11:02 Duration: 927ms
-
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 = 46248 and fd.product_id = 180751;
Date: 2024-07-11 13:27:23 Duration: 778ms
19 2,746 8m55s 145ms 7s20ms 194ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 11 00 3 491ms 163ms 08 6 1s88ms 181ms 09 1 167ms 167ms 10 3 478ms 159ms 11 52 8s785ms 168ms 12 241 40s842ms 169ms 13 374 1m18s 210ms 14 249 51s62ms 205ms 15 370 1m20s 218ms 16 246 55s392ms 225ms 17 206 38s137ms 185ms 18 457 1m23s 182ms 19 366 1m4s 176ms 20 170 30s652ms 180ms 21 1 162ms 162ms 22 1 156ms 156ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 257536 AND warehouse_id = 46;
Date: 2024-07-11 13:17:23 Duration: 7s20ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 171888 AND warehouse_id = 35;
Date: 2024-07-11 16:00:05 Duration: 5s488ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 172046 AND warehouse_id = 43;
Date: 2024-07-11 16:04:20 Duration: 4s614ms
20 2,520 6m17s 120ms 536ms 149ms 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 Jul 11 11 18 2s489ms 138ms 12 203 31s900ms 157ms 13 885 2m13s 151ms 14 159 22s453ms 141ms 15 127 18s785ms 147ms 16 207 30s8ms 144ms 17 472 1m10s 148ms 18 184 26s818ms 145ms 19 215 32s954ms 153ms 20 50 7s768ms 155ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-43c7e99/web.assets_frontend_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-07-11 12:37:07 Duration: 536ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-c93381c/web.report_assets_common.js' GROUP BY name ORDER BY name;
Date: 2024-07-11 16:27:54 Duration: 490ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-7eb3f27/web.assets_common.css' GROUP BY name ORDER BY name;
Date: 2024-07-11 17:11:02 Duration: 444ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 1s538ms 38s686ms 13s314ms 54 11m59s update product_warehouse_inventory set qty_reserve = ?.? where id = ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 11 13 54 11m59s 13s314ms -
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 38s686ms
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 37s144ms
-
update product_warehouse_inventory set qty_reserve = 1.0 where id = 15501;
Date: 2024-07-11 13:09:14 Duration: 37s103ms
2 5s926ms 14s778ms 7s260ms 95 11m29s delete from sale_order_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 11 00 1 6s49ms 6s49ms 11 7 51s766ms 7s395ms 12 1 14s433ms 14s433ms 13 46 5m23s 7s32ms 14 6 46s945ms 7s824ms 15 6 38s42ms 6s340ms 16 4 28s412ms 7s103ms 17 7 56s476ms 8s68ms 18 7 52s561ms 7s508ms 19 5 40s382ms 8s76ms 20 5 31s160ms 6s232ms -
DELETE FROM sale_order_line WHERE id IN (441789, 441790);
Date: 2024-07-11 11:18:24 Duration: 14s778ms
-
DELETE FROM sale_order_line WHERE id IN (440532, 440533);
Date: 2024-07-11 12:17:54 Duration: 14s433ms
-
DELETE FROM sale_order_line WHERE id IN (442607, 442609);
Date: 2024-07-11 19:51:54 Duration: 12s800ms
3 881ms 2s154ms 1s77ms 766 13m45s 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 #3
Day Hour Count Duration Avg duration Jul 11 11 22 21s361ms 970ms 12 88 1m34s 1s73ms 13 106 2m2s 1s158ms 14 96 1m38s 1s20ms 15 101 1m43s 1s29ms 16 73 1m22s 1s130ms 17 65 1m18s 1s207ms 18 105 1m52s 1s71ms 19 79 1m22s 1s41ms 20 29 27s158ms 936ms 21 2 1s783ms 891ms -
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 ('%520226%')) 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 ('%520226%'))) 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 ('%520226%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%520226%')))))) 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-07-11 17:44:43 Duration: 2s154ms
-
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 ('%E11988%')) 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 ('%E11988%'))) 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 ('%E11988%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%E11988%')))))) 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-07-11 18:01:36 Duration: 1s960ms
-
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 ('%e11988%')) 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 ('%e11988%'))) 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 ('%e11988%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%e11988%')))))) 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-07-11 18:05:17 Duration: 1s834ms
4 589ms 2s367ms 923ms 1,087 16m43s 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 #4
Day Hour Count Duration Avg duration Jul 11 11 4 3s500ms 875ms 12 136 2m3s 906ms 13 152 2m24s 950ms 14 218 3m5s 848ms 15 57 51s625ms 905ms 16 278 4m1s 866ms 17 140 2m37s 1s126ms 18 28 27s221ms 972ms 19 74 1m9s 943ms -
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 ('%%5178x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-178x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-178x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 19:00:03 Duration: 2s367ms
-
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 ('%%RB%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RB-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RB-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 17:04:49 Duration: 1s905ms
-
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 ('%%58x30%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8x30%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8x30%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-11 13:27:24 Duration: 1s844ms
5 678ms 2s278ms 897ms 3,482 52m5s 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 #5
Day Hour Count Duration Avg duration Jul 11 00 39 28s396ms 728ms 01 3 2s138ms 712ms 09 3 2s302ms 767ms 10 6 4s341ms 723ms 11 321 4m5s 765ms 12 421 5m56s 845ms 13 470 8m2s 1s25ms 14 346 5m4s 879ms 15 355 5m3s 855ms 16 262 4m6s 941ms 17 312 5m17s 1s17ms 18 355 5m19s 900ms 19 384 5m41s 890ms 20 195 2m43s 838ms 21 5 3s548ms 709ms 22 5 3s565ms 713ms -
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 ('%%pl1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1%'))) 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-07-11 13:43:04 Duration: 2s278ms
-
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 ('%%131%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-1%'))) 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-07-11 17:17:03 Duration: 2s116ms
-
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 ('%%pl136%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl136%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl136%'))) 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-07-11 13:43:04 Duration: 2s112ms
6 433ms 1s971ms 554ms 2,426 22m25s 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 #6
Day Hour Count Duration Avg duration Jul 11 00 3 1s311ms 437ms 01 2 902ms 451ms 03 3 1s335ms 445ms 07 6 2s756ms 459ms 08 16 7s96ms 443ms 09 11 5s68ms 460ms 10 14 6s199ms 442ms 11 160 1m17s 484ms 12 374 3m23s 544ms 13 375 3m54s 624ms 14 244 2m15s 555ms 15 184 1m38s 537ms 16 208 2m1s 584ms 17 161 1m39s 619ms 18 264 2m20s 533ms 19 231 2m4s 540ms 20 159 1m19s 496ms 21 8 3s536ms 442ms 22 3 1s313ms 437ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d7fc930/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 17:11:03 Duration: 1s971ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 16:57:32 Duration: 1s666ms
-
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/%-abccd39/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-11 13:40:24 Duration: 1s515ms
7 269ms 2s205ms 384ms 16,328 1h44m43s 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 #7
Day Hour Count Duration Avg duration Jul 11 08 12 4s39ms 336ms 09 9 3s172ms 352ms 10 23 7s345ms 319ms 11 843 4m55s 350ms 12 1,649 10m42s 389ms 13 2,193 15m16s 418ms 14 1,497 9m40s 387ms 15 1,753 11m13s 383ms 16 1,570 9m44s 372ms 17 1,561 10m14s 393ms 18 2,039 13m2s 383ms 19 2,314 14m31s 376ms 20 846 5m2s 357ms 21 9 3s9ms 334ms 22 10 3s374ms 337ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 12:37:08 Duration: 2s205ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 19:40:01 Duration: 1s977ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-11 15:28:50 Duration: 1s958ms
8 307ms 1s627ms 356ms 4,211 25m1s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 11 00 192 1m2s 326ms 01 135 43s592ms 322ms 02 297 1m35s 321ms 03 120 38s559ms 321ms 04 81 25s881ms 319ms 05 237 1m16s 321ms 06 189 1m 320ms 07 150 48s236ms 321ms 08 126 40s988ms 325ms 09 153 50s15ms 326ms 10 177 57s303ms 323ms 11 192 1m6s 347ms 12 216 1m23s 388ms 13 189 1m30s 481ms 14 186 1m10s 376ms 15 206 1m19s 384ms 16 120 46s327ms 386ms 17 186 1m21s 440ms 18 153 1m9s 453ms 19 225 1m23s 371ms 20 213 1m21s 381ms 21 147 46s765ms 318ms 22 171 54s364ms 317ms 23 150 47s834ms 318ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:47:52 Duration: 1s627ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:06:05 Duration: 1s276ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-11 13:39:41 Duration: 1s122ms
9 305ms 1s864ms 347ms 3,890 22m31s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 11 00 264 1m24s 319ms 01 132 41s817ms 316ms 02 213 1m6s 313ms 03 201 1m3s 314ms 04 114 36s352ms 318ms 05 192 1m 313ms 06 153 48s287ms 315ms 07 144 45s720ms 317ms 08 135 43s67ms 319ms 09 171 54s953ms 321ms 10 141 44s989ms 319ms 11 141 49s458ms 350ms 12 180 1m10s 391ms 13 201 1m30s 448ms 14 155 1m1s 396ms 15 159 59s160ms 372ms 16 144 59s455ms 412ms 17 162 1m7s 418ms 18 132 49s186ms 372ms 19 111 44s679ms 402ms 20 210 1m12s 346ms 21 168 52s971ms 315ms 22 159 50s350ms 316ms 23 108 33s861ms 313ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 14:57:21 Duration: 1s864ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 12:50:45 Duration: 1s735ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:08:10 Duration: 1s196ms
10 227ms 1s800ms 263ms 3,729 16m23s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 11 00 162 38s570ms 238ms 01 147 34s356ms 233ms 02 138 32s260ms 233ms 03 120 28s521ms 237ms 04 330 1m17s 233ms 05 78 18s233ms 233ms 06 45 10s536ms 234ms 07 129 30s351ms 235ms 08 96 22s646ms 235ms 09 141 33s505ms 237ms 10 201 47s336ms 235ms 11 177 44s375ms 250ms 12 174 50s3ms 287ms 13 159 47s923ms 301ms 14 177 53s72ms 299ms 15 114 32s215ms 282ms 16 255 1m22s 323ms 17 258 1m35s 368ms 18 30 10s221ms 340ms 19 129 36s420ms 282ms 20 168 41s692ms 248ms 21 141 32s670ms 231ms 22 240 56s427ms 235ms 23 120 27s869ms 232ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 13:17:20 Duration: 1s800ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 16:57:32 Duration: 859ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-11 17:01:35 Duration: 758ms
11 227ms 632ms 260ms 4,042 17m32s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 11 00 188 44s407ms 236ms 01 147 34s235ms 232ms 02 228 53s205ms 233ms 03 132 30s681ms 232ms 04 114 27s72ms 237ms 05 144 33s568ms 233ms 06 228 53s28ms 232ms 07 180 42s204ms 234ms 08 96 22s643ms 235ms 09 177 42s229ms 238ms 10 204 47s623ms 233ms 11 159 40s472ms 254ms 12 201 1m 300ms 13 147 48s377ms 329ms 14 177 51s178ms 289ms 15 174 48s640ms 279ms 16 138 43s607ms 315ms 17 147 49s363ms 335ms 18 129 41s95ms 318ms 19 264 1m18s 299ms 20 201 50s776ms 252ms 21 162 37s749ms 233ms 22 180 41s987ms 233ms 23 125 29s195ms 233ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:42:23 Duration: 632ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 15:51:09 Duration: 629ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-11 17:11:06 Duration: 606ms
12 120ms 2s199ms 241ms 66,506 4h27m25s 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 #12
Day Hour Count Duration Avg duration Jul 11 00 1,109 2m48s 151ms 01 565 1m51s 197ms 02 645 1m50s 172ms 03 709 2m 170ms 04 820 2m6s 154ms 05 764 2m12s 173ms 06 703 1m43s 147ms 07 949 2m26s 154ms 08 868 2m22s 164ms 09 993 2m49s 171ms 10 820 2m9s 158ms 11 2,513 7m35s 181ms 12 5,877 28m6s 286ms 13 7,560 34m16s 272ms 14 5,603 23m8s 247ms 15 5,443 23m26s 258ms 16 7,302 30m22s 249ms 17 7,059 32m10s 273ms 18 5,704 23m34s 247ms 19 5,886 26m15s 267ms 20 2,724 9m22s 206ms 21 802 1m58s 148ms 22 535 1m19s 147ms 23 553 1m26s 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_999"', '["pointspring_master","calendar.alarm",19537]', '["pointspring_master","mail.channel",67]', '["pointspring_master","mail.channel",495]', '["pointspring_master","mail.channel",512]', '["pointspring_master","mail.channel",528]', '["pointspring_master","mail.channel",553]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",577]', '["pointspring_master","mail.channel",600]', '["pointspring_master","res.partner",19537]', '["pointspring_master","ir.needaction",19537]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s199ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s170ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-11 13:14:40') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",53441]', '["pointspring_master","res.partner",53441]', '["pointspring_master","ir.needaction",53441]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-11 13:15:33 Duration: 2s158ms
13 152ms 831ms 236ms 3,202 12m37s select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 11 03 1 192ms 192ms 08 18 3s855ms 214ms 09 3 595ms 198ms 10 3 640ms 213ms 11 72 15s825ms 219ms 12 374 1m30s 240ms 13 608 2m35s 255ms 14 488 1m54s 235ms 15 295 1m6s 226ms 16 193 47s261ms 244ms 17 244 1m4s 265ms 18 235 56s689ms 241ms 19 254 58s313ms 229ms 20 135 30s109ms 223ms 21 3 562ms 187ms 22 3 551ms 183ms 23 273 50s590ms 185ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (40386))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 12:52:14 Duration: 831ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32886))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 16:04:41 Duration: 799ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33688))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-11 17:04:06 Duration: 794ms
14 161ms 946ms 217ms 2,886 10m27s 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 #14
Day Hour Count Duration Avg duration Jul 11 13 561 2m2s 217ms 14 426 1m28s 207ms 15 540 1m54s 211ms 16 102 20s381ms 199ms 17 569 2m14s 236ms 18 363 1m23s 230ms 19 246 46s503ms 189ms 20 79 17s514ms 221ms -
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 = 46031 and fd.product_id = 172559;
Date: 2024-07-11 13:57:22 Duration: 946ms
-
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 = 46070 and fd.product_id = 215954;
Date: 2024-07-11 17:11:02 Duration: 927ms
-
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 = 46248 and fd.product_id = 180751;
Date: 2024-07-11 13:27:23 Duration: 778ms
15 145ms 8s262ms 196ms 3,037 9m56s 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 Jul 11 00 13 2s211ms 170ms 07 1 263ms 263ms 09 2 397ms 198ms 10 5 882ms 176ms 11 182 31s581ms 173ms 12 320 58s503ms 182ms 13 416 1m21s 195ms 14 269 53s389ms 198ms 15 289 54s629ms 189ms 16 350 1m4s 185ms 17 311 1m4s 206ms 18 352 1m18s 222ms 19 400 1m22s 205ms 20 123 23s363ms 189ms 21 2 391ms 195ms 22 2 324ms 162ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 216546 AND warehouse_id = 43;
Date: 2024-07-11 19:33:42 Duration: 8s262ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:07:42 Duration: 5s528ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 219377 AND warehouse_id = 35;
Date: 2024-07-11 18:08:09 Duration: 5s433ms
16 145ms 7s20ms 194ms 2,746 8m55s 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 Jul 11 00 3 491ms 163ms 08 6 1s88ms 181ms 09 1 167ms 167ms 10 3 478ms 159ms 11 52 8s785ms 168ms 12 241 40s842ms 169ms 13 374 1m18s 210ms 14 249 51s62ms 205ms 15 370 1m20s 218ms 16 246 55s392ms 225ms 17 206 38s137ms 185ms 18 457 1m23s 182ms 19 366 1m4s 176ms 20 170 30s652ms 180ms 21 1 162ms 162ms 22 1 156ms 156ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 257536 AND warehouse_id = 46;
Date: 2024-07-11 13:17:23 Duration: 7s20ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 171888 AND warehouse_id = 35;
Date: 2024-07-11 16:00:05 Duration: 5s488ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 172046 AND warehouse_id = 43;
Date: 2024-07-11 16:04:20 Duration: 4s614ms
17 147ms 3s192ms 187ms 4,408 13m47s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 11 00 4 839ms 209ms 08 6 985ms 164ms 09 4 676ms 169ms 10 4 697ms 174ms 11 129 22s60ms 171ms 12 533 1m40s 187ms 13 732 2m25s 198ms 14 530 1m41s 191ms 15 441 1m19s 181ms 16 631 1m55s 183ms 17 332 1m2s 189ms 18 496 1m34s 189ms 19 350 1m4s 185ms 20 208 36s738ms 176ms 21 4 687ms 171ms 22 4 652ms 163ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 219377 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-11 18:08:02 Duration: 3s192ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 202502 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-07-11 14:54:58 Duration: 1s803ms
-
UPDATE product_warehouse_inventory SET qty_available = 68.0 WHERE product_id = 257473 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-07-11 13:17:32 Duration: 1s434ms
18 120ms 963ms 176ms 3,510 10m17s 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 #18
Day Hour Count Duration Avg duration Jul 11 11 112 16s695ms 149ms 12 433 1m15s 175ms 13 584 1m43s 177ms 14 136 21s741ms 159ms 15 160 32s303ms 201ms 16 294 1m6s 225ms 17 167 29s41ms 173ms 18 523 1m28s 168ms 19 611 1m46s 173ms 20 490 1m17s 158ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 213587) 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" = '45')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 17:17:02 Duration: 963ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 246223) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 16:27:54 Duration: 897ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 254692) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-11 16:27:55 Duration: 801ms
19 138ms 974ms 158ms 5,761 15m12s 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 #19
Day Hour Count Duration Avg duration Jul 11 00 240 35s221ms 146ms 01 240 34s299ms 142ms 02 240 34s401ms 143ms 03 240 34s633ms 144ms 04 240 34s272ms 142ms 05 240 34s289ms 142ms 06 240 34s321ms 143ms 07 240 34s541ms 143ms 08 240 34s348ms 143ms 09 240 34s469ms 143ms 10 240 34s330ms 143ms 11 240 36s759ms 153ms 12 240 43s175ms 179ms 13 240 48s614ms 202ms 14 240 42s530ms 177ms 15 240 41s696ms 173ms 16 241 47s624ms 197ms 17 240 47s111ms 196ms 18 240 42s131ms 175ms 19 240 42s472ms 176ms 20 240 37s884ms 157ms 21 240 34s647ms 144ms 22 240 34s423ms 143ms 23 240 34s477ms 143ms -
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_opfamily', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_database', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_cast', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_range', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_settings', 'pg_catalog.pg_constraint', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_transform', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_class', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_indexes', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_publication', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_rules', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_enum', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_column_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.applicable_roles', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_udt_grants', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.view_routine_usage', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.key_column_usage', 'information_schema.data_type_privileges', 'information_schema.foreign_tables', 'information_schema.parameters', 'information_schema.views', 'information_schema.collations', 'information_schema.role_routine_grants', 'information_schema.routine_table_usage', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.routine_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.triggered_update_columns', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'information_schema.sql_features', 'information_schema.sql_sizing', 'information_schema.user_mapping_options', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 15:40:25 Duration: 974ms
-
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_foreign_table', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_class', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_opclass', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_description', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_enum', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_depend', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_user', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_language', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_attribute', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_policy', 'pg_catalog.pg_namespace', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_rules', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage', 'information_schema.usage_privileges', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.character_sets', 'information_schema.sql_implementation_info', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.table_constraints', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.view_table_usage', 'information_schema.udt_privileges', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.domain_udt_usage', 'information_schema.foreign_servers', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.role_usage_grants', 'information_schema.view_column_usage', 'information_schema.information_schema_catalog_name', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.sequences', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_server_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 16:04:40 Duration: 854ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_rules', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_roles', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_transform', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_cast', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_extension', 'pg_catalog.pg_cursors', 'pg_catalog.pg_operator', 'pg_catalog.pg_enum', 'pg_catalog.pg_am', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_database_conflicts', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.usage_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_table_usage', 'information_schema.role_column_grants', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.attributes', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.column_udt_usage', 'information_schema.columns', 'information_schema.tables', 'information_schema.information_schema_catalog_name', 'information_schema.applicable_roles', 'information_schema.routines', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.column_options', 'information_schema.column_privileges', 'information_schema.sql_implementation_info', 'information_schema.triggers', 'information_schema.role_usage_grants', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.element_types', 'information_schema.role_table_grants', 'information_schema.column_column_usage', 'information_schema.udt_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.check_constraint_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.table_privileges', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-11 13:07:39 Duration: 716ms
20 120ms 1s14ms 155ms 5,790 15m2s select id 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 Jul 11 00 1 144ms 144ms 08 2 256ms 128ms 11 87 13s116ms 150ms 12 560 1m28s 158ms 13 1,324 3m31s 159ms 14 494 1m15s 152ms 15 490 1m17s 157ms 16 368 56s187ms 152ms 17 1,058 2m46s 157ms 18 710 1m47s 151ms 19 561 1m25s 151ms 20 134 20s203ms 150ms 21 1 127ms 127ms -
select id from product_warehouse_inventory where product_id = 237202 and warehouse_id = 37 and company_id = 1;
Date: 2024-07-11 12:37:08 Duration: 1s14ms
-
select id from product_warehouse_inventory where product_id = 265782 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-11 19:02:53 Duration: 948ms
-
select id from product_warehouse_inventory where product_id = 217033 and warehouse_id = 43 and company_id = 1;
Date: 2024-07-11 12:50:44 Duration: 940ms
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
- 230,250 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 6529 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 5,168 Max number of times the same event was reported
- 6,529 Total events found
Rank Times reported Error 1 5,168 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 11 00 14 05 2 08 25 09 5 10 9 11 273 12 715 13 1,005 14 638 15 495 16 171 17 273 18 559 19 534 20 438 21 6 22 6 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237210 AND warehouse_id = 41
Date: 2024-07-11 00:04:05
Statement: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((245.0 - 244.0) + (0.0 - 0.0), 0) ELSE GREATEST((245.0 - 244.0),0) END where product_id=238919 and warehouse_id=41 and company_id=1
Date: 2024-07-11 00:04:06
Statement: WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-07-11 00:04:08
2 1,004 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 11 00 42 01 73 02 65 03 41 04 33 05 32 06 32 07 42 08 30 09 30 10 33 11 40 12 44 13 45 14 43 15 38 16 45 17 37 18 40 19 39 20 28 21 33 22 35 23 84 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-07-11 03:50:04
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-07-11 04:00:21
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=87 FOR UPDATE NOWAIT
Date: 2024-07-11 04:28:03
3 232 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 11 00 3 11 2 12 19 13 82 14 28 15 25 16 16 17 12 18 23 19 15 20 7 - ERROR: process 1170374 still waiting for ShareLock on transaction 284635551 after 1000.049 ms
- ERROR: process 1746853 still waiting for ShareLock on transaction 284635694 after 1000.055 ms
- ERROR: process 346502 still waiting for ShareLock on transaction 284805320 after 1000.042 ms
Detail: Process holding the lock: 1746853. Wait queue: 1170374.
Context: while updating tuple (47342,13) in relation "product_warehouse_inventory"
Statement: WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;Date: 2024-07-11 00:04:09
Detail: Process holding the lock: 2940828. Wait queue: 1746853.
Context: while updating tuple (2918,24) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(25.0, 0) + COALESCE(5.0, 0) - COALESCE(6.0, 0) WHERE product_id = 238919 AND warehouse_id = 41 AND company_id = 1Date: 2024-07-11 00:04:41
Detail: Process holding the lock: 317498. Wait queue: 346502.
Context: while updating tuple (1681,23) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 214443 AND warehouse_id = 45Date: 2024-07-11 14:51:26
4 97 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 11 13 95 14 1 18 1 - ERROR: process 317497 still waiting for ExclusiveLock on tuple (50809,27) of relation 65213 of database 65946 after 1000.069 ms
- ERROR: process 316461 still waiting for ExclusiveLock on tuple (45491,9) of relation 65213 of database 65946 after 1000.051 ms
- ERROR: process 320298 still waiting for ExclusiveLock on tuple (18506,19) of relation 42418 of database 65946 after 1000.068 ms
Detail: Process holding the lock: 316452. Wait queue: 317497.
Statement: UPDATE "product_warehouse_inventory" SET "loc_check_qty"=2.0,"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (8768)Date: 2024-07-11 18:04:36
Detail: Process holding the lock: 329046. Wait queue: 316461.
Statement: update product_warehouse_inventory set qty_reserve=1.0 where id=15501Date: 2024-07-11 13:01:07
Detail: Process holding the lock: 325518. Wait queue: 320298.
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 != 1529423 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 != 1529423 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-07-11 13:14:29
5 14 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 11 13 14 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT "res_lang"."id" as "id", "res_lang"."name" as "name", "res_lang"."code" as "code", "res_lang"."iso_code" as "iso_code", "res_lang"."url_code" as "url_code", "res_lang"."active" as "active", "res_lang"."direction" as "direction", "res_lang"."date_format" as "date_format", "res_lang"."time_format" as "time_format", "res_lang"."week_start" as "week_start", "res_lang"."grouping" as "grouping", "res_lang"."decimal_point" as "decimal_point", "res_lang"."thousands_sep" as "thousands_sep", "res_lang"."create_uid" as "create_uid", "res_lang"."create_date" as "create_date", "res_lang"."write_uid" as "write_uid", "res_lang"."write_date" as "write_date" FROM "res_lang" WHERE "res_lang".id IN (1)
Date: 2024-07-11 13:02:20
Statement: SELECT r.id FROM ir_rule r JOIN ir_model m ON (r.model_id=m.id) WHERE m.model='res.lang' AND r.active AND r.perm_read AND (r.id IN (SELECT rule_group_id FROM rule_group_rel rg JOIN res_groups_users_rel gu ON (rg.group_id=gu.gid) WHERE gu.uid=1271) OR r.global) ORDER BY r.id
Date: 2024-07-11 13:02:37
Statement: SELECT MAX(CASE WHEN perm_read THEN 1 ELSE 0 END) FROM ir_model_access a JOIN ir_model m ON (m.id = a.model_id) JOIN res_groups_users_rel gu ON (gu.gid = a.group_id) WHERE m.model = 'res.lang' AND gu.uid = 1271 AND a.active IS TRUE
Date: 2024-07-11 13:02:37
6 9 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 11 00 2 13 1 14 1 15 1 18 3 19 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 1170406 waits for ShareLock on transaction 284635536; blocked by process 2940827. Process 2940827 waits for ShareLock on transaction 284635535; blocked by process 1170406. Process 1170406: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 203231 AND warehouse_id = 41 Process 2940827: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((245.0 - 244.0) + (0.0 - 0.0), 0) ELSE GREATEST((245.0 - 244.0),0) END where product_id=238919 and warehouse_id=41 and company_id=1
Context: while updating tuple (532,11) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 203231 AND warehouse_id = 41Date: 2024-07-11 00:04:08
Detail: Process 1170406 waits for ShareLock on transaction 284635573; blocked by process 2940827. Process 2940827 waits for ShareLock on transaction 284635572; blocked by process 1170406. Process 1170406: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 203231 AND warehouse_id = 41 Process 2940827: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((245.0 - 244.0) + (0.0 - 0.0), 0) ELSE GREATEST((245.0 - 244.0),0) END where product_id=238919 and warehouse_id=41 and company_id=1
Context: while updating tuple (532,16) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 203231 AND warehouse_id = 41Date: 2024-07-11 00:04:16
Detail: Process 319451 waits for ShareLock on transaction 284824418; blocked by process 316452. Process 316452 waits for ShareLock on transaction 284824415; blocked by process 319451. Process 319451: UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 254211 AND warehouse_id = 43 Process 316452: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 172573 AND warehouse_id = 43
Context: while updating tuple (40702,11) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 254211 AND warehouse_id = 43Date: 2024-07-11 15:30:08
7 4 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 11 12 1 14 1 16 1 17 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
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (269553, null, P, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 997, 2024-07-11 17:55:14.53618, 997, 2024-07-11 17:55:14.53618, 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, 484505, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-07-11, 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'), 997, (now() at time zone 'UTC'), 997, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-07-11', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'P', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 484505, 1, 1) RETURNING idDate: 2024-07-11 17:55:14
Detail: Failing row contains (269544, null, 22-1819, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 959, 2024-07-11 16:51:16.867195, 959, 2024-07-11 16:51:16.867195, 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, 484465, never, 0, , 38, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-07-11, 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'), 959, (now() at time zone 'UTC'), 959, (now() at time zone 'UTC'), true, false, 0.0, 38, NULL, 1, '', 'no', '2024-07-11', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '22-1819', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 484465, 1, 1) RETURNING idDate: 2024-07-11 16:51:16
Detail: Failing row contains (269524, null, 350CS20002-1395M, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 958, 2024-07-11 12:10:23.011694, 958, 2024-07-11 12:10:23.011694, 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, 484375, never, 0, , 37, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-07-11, 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'), 958, (now() at time zone 'UTC'), 958, (now() at time zone 'UTC'), true, false, 0.0, 37, NULL, 1, '', 'no', '2024-07-11', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '350CS20002-1395M', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 484375, 1, 1) RETURNING idDate: 2024-07-11 12:10:23
8 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 11 12 1 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
Detail: Key (partner_id)=(19573) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), 'd3b09007e89e4da8921ef6f924273347', true, NULL, 1, '2024-07-11 12:03:15', 'Tim Zenobi', 19573, 'America/New_York', 1, 1) RETURNING idDate: 2024-07-11 12:03:15