-
Global information
- Generated on Sat Jun 22 00:50:23 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 374,389 log entries in 22s
- Log start from 2024-06-21 00:00:09 to 2024-06-21 23:59:57
-
Overview
Global Stats
- 1,151 Number of unique normalized queries
- 111,160 Number of queries
- 8h58m34s Total query duration
- 2024-06-21 00:00:09 First query
- 2024-06-21 23:59:57 Last query
- 35 queries/s at 2024-06-21 11:35:26 Query peak
- 8h58m34s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 8h58m34s Execute total duration
- 26,180 Number of events
- 9 Number of unique normalized events
- 25,425 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
- 111,160 Average queries per session
- 8h58m34s 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
- 35 queries/s Query Peak
- 2024-06-21 11:35:26 Date
SELECT Traffic
Key values
- 33 queries/s Query Peak
- 2024-06-21 11:35:26 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 11 queries/s Query Peak
- 2024-06-21 15:06:45 Date
Queries duration
Key values
- 8h58m34s 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) Jun 21 00 476 136ms 4s51ms 526ms 4s260ms 7s826ms 2m39s 01 282 129ms 1s 159ms 1s203ms 1s442ms 4s432ms 02 419 120ms 863ms 201ms 3s137ms 4s902ms 12s835ms 03 354 136ms 521ms 169ms 2s717ms 3s376ms 3s596ms 04 343 136ms 1s239ms 175ms 2s514ms 3s619ms 6s445ms 05 339 136ms 312ms 172ms 2s292ms 3s385ms 3s867ms 06 326 136ms 534ms 172ms 2s73ms 3s189ms 4s687ms 07 402 121ms 1s151ms 194ms 3s53ms 3s632ms 7s789ms 08 565 120ms 1s79ms 202ms 4s906ms 6s191ms 11s35ms 09 738 120ms 3m52s 1s317ms 59s112ms 1m54s 4m10s 10 894 120ms 25s948ms 347ms 15s100ms 23s260ms 32s823ms 11 4,642 120ms 8s328ms 320ms 1m9s 1m23s 1m36s 12 15,012 120ms 2m19s 288ms 1m45s 1m55s 3m52s 13 14,214 120ms 17s912ms 285ms 1m36s 1m42s 1m51s 14 12,544 120ms 33s727ms 298ms 1m34s 1m42s 1m45s 15 11,419 120ms 56s902ms 292ms 1m36s 1m53s 2m20s 16 11,462 120ms 9s7ms 262ms 1m15s 1m22s 1m29s 17 10,289 120ms 12s134ms 272ms 1m23s 1m34s 1m39s 18 10,627 120ms 17s71ms 277ms 1m16s 1m23s 1m55s 19 8,242 120ms 5s650ms 287ms 1m6s 1m15s 1m39s 20 4,042 120ms 11s282ms 293ms 47s971ms 54s311ms 1m17s 21 2,302 120ms 1s538ms 228ms 34s939ms 39s323ms 41s780ms 22 242 136ms 158ms 138ms 558ms 564ms 866ms 23 985 120ms 48s187ms 402ms 28s569ms 36s473ms 1m8s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 21 00 476 0 526ms 1s745ms 4s260ms 16s353ms 01 281 0 158ms 564ms 1s203ms 2s894ms 02 342 0 191ms 1s436ms 2s745ms 4s755ms 03 354 0 169ms 1s431ms 2s717ms 3s391ms 04 341 0 174ms 1s206ms 2s514ms 3s619ms 05 339 0 172ms 1s419ms 2s292ms 3s644ms 06 326 0 172ms 1s201ms 2s73ms 3s824ms 07 396 0 192ms 1s997ms 3s53ms 4s255ms 08 426 0 198ms 2s74ms 2s956ms 5s28ms 09 407 111 1s779ms 4s499ms 57s377ms 2m1s 10 820 0 359ms 7s771ms 15s100ms 25s370ms 11 2,424 0 384ms 23s670ms 39s127ms 1m5s 12 6,655 0 347ms 48s293ms 1m5s 1m47s 13 6,096 0 342ms 45s201ms 54s971ms 1m1s 14 5,197 0 368ms 41s861ms 52s973ms 1m5s 15 5,487 0 343ms 45s808ms 1m8s 1m37s 16 3,954 0 326ms 31s261ms 40s366ms 46s233ms 17 3,805 0 336ms 29s265ms 37s383ms 47s938ms 18 3,664 0 359ms 30s364ms 39s217ms 43s571ms 19 2,974 0 366ms 27s898ms 33s35ms 45s665ms 20 1,446 0 389ms 16s476ms 21s243ms 28s194ms 21 536 0 197ms 2s385ms 2s892ms 6s694ms 22 242 0 138ms 555ms 558ms 574ms 23 830 0 202ms 4s951ms 10s57ms 15s260ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 21 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 393ms 0ms 0ms 0ms 02 0 41 0 0 169ms 0ms 0ms 165ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 2 0 0 360ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 355ms 0ms 0ms 0ms 08 0 101 0 0 168ms 0ms 0ms 2s186ms 09 0 155 0 0 169ms 0ms 0ms 2s217ms 10 1 52 0 0 168ms 0ms 0ms 1s360ms 11 0 1,293 7 0 187ms 3s37ms 8s410ms 16s997ms 12 1 5,316 45 0 184ms 18s408ms 21s925ms 27s260ms 13 0 5,167 49 0 186ms 17s614ms 22s403ms 28s316ms 14 0 4,762 39 0 198ms 16s574ms 22s571ms 33s13ms 15 0 3,695 17 0 187ms 12s149ms 18s908ms 26s837ms 16 0 5,151 29 0 179ms 14s904ms 25s646ms 33s651ms 17 0 4,484 33 0 191ms 16s398ms 23s646ms 32s679ms 18 0 4,745 21 0 186ms 16s454ms 23s 34s120ms 19 1 3,152 9 0 180ms 10s737ms 14s942ms 21s500ms 20 0 1,632 8 0 185ms 4s758ms 8s619ms 14s677ms 21 0 1,022 0 0 169ms 0ms 6s423ms 14s387ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 57 66 0 1s769ms 0ms 1s28ms 25s377ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jun 21 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 Jun 21 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 Jun 21 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 Jun 21 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 Jun 21 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) Jun 21 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 Jun 21 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 Jun 21 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Jun 21 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
- 62 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 18 1m26s 1s418ms 15s992ms 4s831ms update "product_warehouse_inventory" set "last_used_date" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (95488, 93829, 94984, 94204, 93969, 94742, 95353, 93851, 94588, 93694);
Date: 2024-06-21 19:32:28
2 28 1m26s 2s35ms 7s236ms 3s74ms 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 != 1473042 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 != 1473042 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-21 15:05:45
-
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 != 1490738 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 != 1490738 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-21 15:27:55
-
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 != 1490299 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 != 1490299 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-21 14:02:54
3 9 27s347ms 1s477ms 6s534ms 3s38ms 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" = 5519853, "write_uid" = 1266, "write_date" = (now() at time zone 'UTC') WHERE id IN (1491599);
Date: 2024-06-21 19:15:00
-
UPDATE "account_move" SET "message_main_attachment_id" = 5519869, "write_uid" = 1018, "write_date" = (now() at time zone 'UTC') WHERE id IN (1491607);
Date: 2024-06-21 19:20:03
-
UPDATE "account_move" SET "message_main_attachment_id" = 5518949, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (1490410);
Date: 2024-06-21 14:23:57
4 1 25s733ms 25s733ms 25s733ms 25s733ms 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 in (...) and id != ? and sequence_prefix = ( select sequence_prefix from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type 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 IN ('out_refund', 'in_refund') AND id != 1491522 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 IN ('out_refund', 'in_refund') AND id != 1491522 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-21 18:51:53
5 3 23s237ms 8s97ms 12s138ms 7s745ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:47
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:49
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((8.0 - 8.0) + (0.0 - 0.0), 0) ELSE GREATEST ((8.0 - 8.0), 0) END where product_id = 185428 and warehouse_id = 44 and company_id = 1;
Date: 2024-06-21 14:23:30
6 2 8s622ms 1s96ms 7s526ms 4s311ms 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(16.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 214506 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:48:46
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 247593 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-06-21 14:22:54
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225750 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-06-21 18:27:29
7 1 3s168ms 3s168ms 3s168ms 3s168ms insert into "account_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "asset_id", "auto_post", "branch_id", "campaign_id", "carrier_id", "commercial_partner_id", "company_id", "currency_id", "date", "discount_amount_applied", "edi_billed", "edi_split_lock", "expense_choice", "extract_remote_id", "extract_state", "fiscal_position_id", "invoice_cash_rounding_id", "invoice_date", "invoice_date_due", "invoice_incoterm_id", "invoice_origin", "invoice_origin_new", "invoice_payment_term_id", "invoice_product_qty", "invoice_user_id", "is_edi_bill", "is_move_sent", "journal_id", "medium_id", "move_type", "narration", "open_invoice", "order_type", "partner_bank_id", "partner_id", "partner_shipping_id", "payment_reference", "ref", "source_id", "state", "team_id", "to_check", "to_check_negative") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), null, false, ?, null, ?, ?, ?, ?, ?, ?.?, false, false, null, ?, ?, null, null, null, ?, null, ?, ?, ?, ?.?, ?, false, false, ?, null, ?, ?, false, ?, ?, ?, ?, ?, ?, null, ?, ?, false, false) returning id;-
INSERT INTO "account_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "asset_id", "auto_post", "branch_id", "campaign_id", "carrier_id", "commercial_partner_id", "company_id", "currency_id", "date", "discount_amount_applied", "edi_billed", "edi_split_lock", "expense_choice", "extract_remote_id", "extract_state", "fiscal_position_id", "invoice_cash_rounding_id", "invoice_date", "invoice_date_due", "invoice_incoterm_id", "invoice_origin", "invoice_origin_new", "invoice_payment_term_id", "invoice_product_qty", "invoice_user_id", "is_edi_bill", "is_move_sent", "journal_id", "medium_id", "move_type", "narration", "open_invoice", "order_type", "partner_bank_id", "partner_id", "partner_shipping_id", "payment_reference", "ref", "source_id", "state", "team_id", "to_check", "to_check_negative") VALUES (nextval('account_move_id_seq'), 1223, (now() at time zone 'UTC'), 1223, (now() at time zone 'UTC'), NULL, false, 44, NULL, 69, 45893, 1, 2, '2024-06-21', 0.0, false, false, NULL, - 1, 'no_extract_requested', NULL, NULL, NULL, '2024-07-21', NULL, 'B-11282', 'sale.order,147843', 94, 1.0, 973, false, false, 1, NULL, 'out_invoice', '', false, 'sale', 1, 45893, 45894, '', '', NULL, 'draft', 1, false, false) RETURNING id;
Date: 2024-06-21 12:51:20
Queries that waited the most
Rank Wait time Query 1 25s733ms 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 IN ('out_refund', 'in_refund') AND id != 1491522 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 IN ('out_refund', 'in_refund') AND id != 1491522 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 18:51:53 ]
2 15s992ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (71304, 329642, 329643, 70512, 355573, 71415, 369816, 70393);[ Date: 2024-06-21 13:09:29 ]
3 13s171ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (71304, 329642, 329643, 70512, 355573, 71415, 369816, 70393);[ Date: 2024-06-21 13:09:53 ]
4 12s138ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((4.0 - 4.0) + (0.0 - 0.0), 0) ELSE GREATEST ((4.0 - 4.0), 0) END where product_id = 186113 and warehouse_id = 37 and company_id = 1;[ Date: 2024-06-21 16:32:56 ]
5 9s51ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (35845, 93511, 95847, 93631, 11483, 93328, 94207, 94399);[ Date: 2024-06-21 15:12:00 ]
6 9s46ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (368675, 368676, 87300, 45317, 30217, 89038, 27539, 89715, 58133, 29783, 29657, 30044);[ Date: 2024-06-21 17:15:33 ]
7 8s97ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((84.0 - 84.0) + (0.0 - 0.0), 0) ELSE GREATEST ((84.0 - 84.0), 0) END where product_id = 239161 and warehouse_id = 35 and company_id = 1;[ Date: 2024-06-21 17:21:31 ]
8 7s526ms UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) - COALESCE(2.0, 0) WHERE product_id = 208092 AND warehouse_id = 46 AND company_id = 1;[ Date: 2024-06-21 19:12:41 ]
9 7s236ms 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 != 1473042 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 != 1473042 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 15:05:45 ]
10 6s811ms 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 != 1207345 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 != 1207345 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 13:45:53 ]
11 6s534ms UPDATE "account_move" SET "message_main_attachment_id" = 5518672, "write_uid" = 1045, "write_date" = (now() at time zone 'UTC') WHERE id IN (1490182);[ Date: 2024-06-21 13:45:53 ]
12 6s131ms 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 != 1490142 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 != 1490142 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 13:38:45 ]
13 5s848ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (368675, 368676, 87300, 45317, 30217, 89038, 27539, 89715, 58133, 29783, 29657, 30044);[ Date: 2024-06-21 17:15:20 ]
14 5s710ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (95488, 93829, 94984, 94204, 93969, 94742, 95353, 93851, 94588, 93694);[ Date: 2024-06-21 19:32:28 ]
15 5s595ms 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 != 1490738 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 != 1490738 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 15:27:55 ]
16 5s576ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (35845, 93511, 95847, 93631, 11483, 93328, 94207, 94399);[ Date: 2024-06-21 15:12:12 ]
17 4s910ms UPDATE "account_move" SET "message_main_attachment_id" = 5518812, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1490305);[ Date: 2024-06-21 14:03:01 ]
18 4s718ms UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-21', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (35845, 93511, 95847, 93631, 11483, 93328, 94207, 94399);[ Date: 2024-06-21 15:12:23 ]
19 4s572ms 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 != 1490299 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 != 1490299 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 14:02:54 ]
20 3s598ms 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 != 1490298 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 != 1490298 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-06-21 14:02:34 ]
-
Queries
Queries by type
Key values
- 47,818 Total read queries
- 63,342 Total write queries
Queries by database
Key values
- unknown Main database
- 111,160 Requests
- 8h58m34s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 111,226 Requests
User Request type Count Duration unknown Total 111,226 8h58m47s copy to 111 13m27s cte 22,068 2h4m50s delete 323 12m58s insert 3 827ms select 47,883 4h29m22s tcl 7 1s51ms update 40,831 1h58m5s Duration by user
Key values
- 8h58m47s (unknown) Main time consuming user
User Request type Count Duration unknown Total 111,226 8h58m47s copy to 111 13m27s cte 22,068 2h4m50s delete 323 12m58s insert 3 827ms select 47,883 4h29m22s tcl 7 1s51ms update 40,831 1h58m5s Queries by host
Key values
- unknown Main host
- 111,226 Requests
- 8h58m47s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 111,160 Requests
- 8h58m34s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-06-21 00:40:01 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 101,529 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m52s 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-06-21 09:09:46 ]
2 2m19s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267199)) ORDER BY "item_list_line"."id";[ Date: 2024-06-21 12:24:14 ]
3 1m58s 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-06-21 09:03:54 ]
4 1m48s 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-06-21 09:05:53 ]
5 56s902ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_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) OR ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%Q%')) OR "sale_history_line"."invoice_number" IS NULL))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 3073;[ Date: 2024-06-21 15:04:06 ]
6 56s1ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_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"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_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) OR ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%Q%')) OR "sale_history_line"."invoice_number" IS NULL))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 3073;[ Date: 2024-06-21 15:20:21 ]
7 55s927ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_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) OR ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%Q%')) OR "sale_history_line"."invoice_number" IS NULL))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 3073;[ Date: 2024-06-21 15:21:17 ]
8 55s78ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_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"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_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) OR ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%Q%')) OR "sale_history_line"."invoice_number" IS NULL))) AND ((unaccent ("sale_history_line"."contact_name"::text) not ilike unaccent ('%point spring &%')) OR "sale_history_line"."contact_name" IS NULL)) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 3073;[ Date: 2024-06-21 15:22:54 ]
9 53s940ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_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"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_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) OR ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%Q%')) OR "sale_history_line"."invoice_number" IS NULL))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 3073;[ Date: 2024-06-21 15:03:09 ]
10 48s187ms DELETE FROM account_move_line WHERE id IN (4955014, 4955015, 4955016, 4955017, 4955018, 4955019, 4955020, 4955021, 4955325, 4955326, 4955327, 4955328, 4955329, 4955330, 4955331, 4954279, 4954280, 4954450, 4954451, 4954920, 4954921, 4954922, 4954923, 4954924, 5221998, 5221999);[ Date: 2024-06-21 23:43:35 ]
11 34s644ms SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 3)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;[ Date: 2024-06-21 09:35:35 ]
12 34s482ms 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-06-21 09:00:56 ]
13 33s727ms DELETE FROM sale_order_line WHERE id IN (430630, 430646, 430647, 430649, 430657, 430658);[ Date: 2024-06-21 14:49:08 ]
14 30s650ms COPY public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) TO stdout;[ Date: 2024-06-21 09:13:37 ]
15 27s817ms COPY public.queue_job (id, uuid, graph_uuid, user_id, company_id, name, model_name, method_name, records, dependencies, args, kwargs, func_string, state, priority, exc_name, exc_message, exc_info, result, date_created, date_started, date_enqueued, date_done, exec_time, date_cancelled, eta, retry, max_retries, channel_method_name, job_function_id, channel, identity_key, worker_pid, sale_id, picking_id, repair_id, message_main_attachment_id) TO stdout;[ Date: 2024-06-21 09:11:33 ]
16 27s731ms SELECT "mail_message".id FROM "mail_message" WHERE (((("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL) AND ("mail_message"."model" = 'product.product')) AND ("mail_message"."res_id" in (208141))) ORDER BY "mail_message"."id" DESC;[ Date: 2024-06-21 12:23:31 ]
17 25s948ms SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-06-14 10:42:49' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;[ Date: 2024-06-21 10:43:15 ]
18 22s703ms DELETE FROM sale_order_line WHERE id IN (429855, 430154, 430155, 430156);[ Date: 2024-06-21 14:21:33 ]
19 22s499ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."fri_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-06-21 12:12:30 ]
20 22s263ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type) TO stdout;[ Date: 2024-06-21 09:12:02 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1h5m34s 11,015 340ms 1s40ms 357ms 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;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 21 02 18 6s317ms 350ms 08 18 6s355ms 353ms 09 30 10s685ms 356ms 10 10 3s561ms 356ms 11 457 2m42s 355ms 12 1,491 8m56s 359ms 13 1,451 8m40s 358ms 14 1,272 7m35s 358ms 15 1,110 6m39s 360ms 16 1,161 6m53s 356ms 17 981 5m49s 356ms 18 1,098 6m30s 355ms 19 1,052 6m13s 355ms 20 478 2m49s 355ms 21 372 2m11s 353ms 23 16 5s630ms 351ms -
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-06-21 15:00:38 Duration: 1s40ms
-
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-06-21 15:00:38 Duration: 989ms
-
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-06-21 20:56:18 Duration: 611ms
2 58m54s 11,017 297ms 2s183ms 320ms with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 21 02 18 5s504ms 305ms 08 18 5s569ms 309ms 09 31 9s723ms 313ms 10 10 3s100ms 310ms 11 456 2m26s 320ms 12 1,492 8m6s 326ms 13 1,451 7m52s 325ms 14 1,273 6m52s 324ms 15 1,109 6m 325ms 16 1,162 6m9s 317ms 17 981 5m10s 316ms 18 1,098 5m48s 317ms 19 1,052 5m32s 316ms 20 478 2m30s 314ms 21 372 1m55s 309ms 23 16 4s971ms 310ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 11:35:26 Duration: 2s183ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 14:23:20 Duration: 979ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 15:05:29 Duration: 952ms
3 33m54s 11,748 157ms 1s297ms 173ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 21 02 19 3s205ms 168ms 08 18 3s46ms 169ms 09 30 5s171ms 172ms 10 10 1s712ms 171ms 11 514 1m28s 172ms 12 1,600 4m39s 174ms 13 1,477 4m17s 174ms 14 1,286 3m44s 174ms 15 1,118 3m13s 173ms 16 1,156 3m19s 172ms 17 1,018 2m55s 172ms 18 1,233 3m34s 173ms 19 1,092 3m7s 171ms 20 624 1m46s 170ms 21 535 1m30s 169ms 23 18 3s47ms 169ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(16.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 214506 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:48:46 Duration: 1s297ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 247593 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-06-21 14:22:54 Duration: 1s108ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225750 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-06-21 18:27:29 Duration: 1s78ms
4 31m27s 2,673 594ms 1s298ms 706ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 21 02 5 3s393ms 678ms 10 15 10s137ms 675ms 11 202 2m20s 696ms 12 336 4m3s 724ms 13 309 3m43s 723ms 14 326 3m53s 715ms 15 198 2m20s 707ms 16 234 2m45s 706ms 17 196 2m17s 702ms 18 270 3m11s 710ms 19 447 5m6s 685ms 20 119 1m20s 677ms 23 16 10s817ms 676ms -
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 ('%%cb1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1%'))) 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-06-21 12:26:58 Duration: 1s298ms
-
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 ('%%gkt1008%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%gkt1008%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%gkt1008%'))) 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-06-21 12:19:10 Duration: 1s264ms
-
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 ('%%cb12%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1/2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1/2%'))) 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-06-21 12:26:58 Duration: 1s183ms
5 30m20s 10,547 164ms 3s169ms 172ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 21 02 8 1s346ms 168ms 08 28 4s729ms 168ms 09 34 5s754ms 169ms 10 12 2s28ms 169ms 11 214 36s380ms 170ms 12 899 2m35s 173ms 13 979 2m50s 173ms 14 1,377 3m58s 173ms 15 514 1m29s 173ms 16 2,096 6m3s 173ms 17 1,824 5m14s 172ms 18 1,643 4m41s 171ms 19 648 1m50s 171ms 20 262 44s718ms 170ms 23 9 1s561ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:47 Duration: 3s169ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:49 Duration: 1s134ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((8.0 - 8.0) + (0.0 - 0.0), 0) ELSE GREATEST ((8.0 - 8.0), 0) END where product_id = 185428 and warehouse_id = 44 and company_id = 1;
Date: 2024-06-21 14:23:30 Duration: 1s107ms
6 13m40s 5,760 135ms 679ms 142ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 21 00 240 33s749ms 140ms 01 240 33s314ms 138ms 02 240 33s409ms 139ms 03 240 33s277ms 138ms 04 240 33s212ms 138ms 05 240 33s187ms 138ms 06 240 33s228ms 138ms 07 240 33s216ms 138ms 08 240 33s273ms 138ms 09 240 33s399ms 139ms 10 240 33s258ms 138ms 11 240 34s626ms 144ms 12 240 36s286ms 151ms 13 240 36s912ms 153ms 14 240 35s958ms 149ms 15 240 36s40ms 150ms 16 240 35s471ms 147ms 17 240 35s152ms 146ms 18 240 35s101ms 146ms 19 240 34s565ms 144ms 20 240 33s861ms 141ms 21 240 33s491ms 139ms 22 240 33s282ms 138ms 23 240 33s393ms 139ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_type', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_locks', 'pg_catalog.pg_constraint', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_group', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_operator', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_namespace', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_index', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cursors', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_views', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'information_schema.character_sets', 'information_schema.check_constraints', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.role_udt_grants', 'information_schema.key_column_usage', 'information_schema.triggered_update_columns', 'information_schema.administrable_role_authorizations', 'information_schema.routine_sequence_usage', 'information_schema.role_column_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.view_table_usage', 'information_schema.sql_sizing', 'information_schema.view_column_usage', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.sql_features', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.role_usage_grants', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.triggers', 'information_schema.column_options', 'information_schema.constraint_table_usage', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.domains', 'information_schema.applicable_roles', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.constraint_column_usage', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-06-21 11:24:12 Duration: 679ms
-
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_ts_parser', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_type', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_policy', 'pg_catalog.pg_roles', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_operator', 'pg_catalog.pg_opclass', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_cast', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_enum', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_collation', 'pg_catalog.pg_cursors', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_database', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_extension', 'pg_catalog.pg_matviews', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_activity', 'information_schema.routines', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.domain_constraints', 'information_schema.character_sets', 'information_schema.udt_privileges', 'information_schema.foreign_table_options', 'information_schema.domain_udt_usage', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.tables', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.foreign_server_options', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.view_table_usage', 'information_schema.role_usage_grants', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.role_udt_grants', 'information_schema.information_schema_catalog_name', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.view_column_usage', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.column_options', 'information_schema.sql_features', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.domains', 'information_schema.sql_sizing', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-06-21 11:35:26 Duration: 347ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_enum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_transform', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_inherits', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_attribute', 'pg_catalog.pg_proc', 'pg_catalog.pg_language', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_tables', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_class', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_cast', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_namespace', 'pg_catalog.pg_conversion', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_description', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_extension', 'pg_catalog.pg_database', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_amproc', 'pg_catalog.pg_trigger', 'pg_catalog.pg_policies', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_gssapi', 'information_schema.attributes', 'information_schema.tables', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.role_usage_grants', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.parameters', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.view_routine_usage', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.triggers', 'information_schema.view_column_usage', 'information_schema.constraint_column_usage', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.foreign_servers', 'information_schema.column_domain_usage', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.referential_constraints', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.element_types', 'information_schema.applicable_roles', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage');
Date: 2024-06-21 13:40:41 Duration: 267ms
7 13m29s 1,825 417ms 749ms 443ms 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 Jun 21 00 3 1s287ms 429ms 02 7 3s13ms 430ms 06 3 1s266ms 422ms 07 4 1s679ms 419ms 08 15 6s303ms 420ms 09 17 7s214ms 424ms 10 30 12s653ms 421ms 11 94 40s541ms 431ms 12 313 2m20s 448ms 13 358 2m42s 455ms 14 216 1m36s 448ms 15 182 1m20s 442ms 16 192 1m25s 443ms 17 129 56s261ms 436ms 18 111 48s699ms 438ms 19 102 44s314ms 434ms 20 36 15s547ms 431ms 21 6 2s522ms 420ms 23 7 2s946ms 420ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 14:52:48 Duration: 749ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 16:50:29 Duration: 728ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 15:05:46 Duration: 728ms
8 11m10s 3,879 161ms 378ms 172ms 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 Jun 21 02 1 168ms 168ms 08 15 2s528ms 168ms 09 26 4s385ms 168ms 10 12 2s17ms 168ms 11 86 14s785ms 171ms 12 673 1m58s 175ms 13 650 1m52s 173ms 14 487 1m23s 172ms 15 417 1m12s 172ms 16 421 1m12s 172ms 17 379 1m5s 172ms 18 320 55s116ms 172ms 19 270 46s104ms 170ms 20 92 15s566ms 169ms 21 26 4s358ms 167ms 23 4 672ms 168ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 189211 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-21 16:25:58 Duration: 378ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 211201 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 12:28:27 Duration: 367ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 217937 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 12:28:13 Duration: 360ms
9 10m21s 875 645ms 1s145ms 709ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 21 10 1 667ms 667ms 11 20 13s510ms 675ms 12 41 28s934ms 705ms 13 131 1m33s 717ms 14 131 1m33s 712ms 15 54 37s991ms 703ms 16 144 1m41s 708ms 17 259 3m4s 710ms 18 69 49s596ms 718ms 19 25 17s44ms 681ms -
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 ('%%cw71%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cw71%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cw71%'))) 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-06-21 13:42:11 Duration: 1s145ms
-
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 ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) 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-06-21 13:15:01 Duration: 1s130ms
-
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 ('%%cw7%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cw7%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cw7%'))) 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-06-21 13:42:11 Duration: 1s88ms
10 9m35s 655 828ms 1s260ms 878ms 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 #10
Day Hour Count Duration Avg duration Jun 21 02 3 2s549ms 849ms 10 2 1s703ms 851ms 11 24 20s694ms 862ms 12 83 1m13s 887ms 13 88 1m18s 891ms 14 106 1m33s 883ms 15 107 1m33s 877ms 16 56 49s473ms 883ms 17 67 58s428ms 872ms 18 69 59s797ms 866ms 19 37 31s883ms 861ms 20 8 6s821ms 852ms 21 4 3s461ms 865ms 23 1 862ms 862ms -
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 ('%SXL-4310%')) 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 ('%SXL-4310%'))) 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 ('%SXL-4310%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%SXL-4310%')))))) 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-06-21 15:10:56 Duration: 1s260ms
-
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 ('%67-563%')) 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 ('%67-563%'))) 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 ('%67-563%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%67-563%')))))) 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-06-21 16:48:11 Duration: 1s191ms
-
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 ('%100-53-21%')) 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 ('%100-53-21%'))) 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 ('%100-53-21%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%100-53-21%')))))) 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-06-21 14:52:36 Duration: 1s182ms
11 8m32s 740 545ms 1s105ms 692ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 21 12 27 19s188ms 710ms 13 51 37s235ms 730ms 14 4 2s667ms 666ms 15 88 1m 686ms 16 84 58s954ms 701ms 17 53 36s468ms 688ms 18 176 2m3s 699ms 19 92 1m3s 687ms 20 165 1m51s 673ms -
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 ('%%A338%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%A338%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%A338%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 13:42:13 Duration: 1s105ms
-
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 ('%%dde2353%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%dde-2353%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%dde-2353%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 18:51:54 Duration: 1s37ms
-
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 ('%%10eastpenn%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1.0 east penn%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1.0 east penn%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 13:09:05 Duration: 988ms
12 7m35s 2,637 166ms 236ms 172ms update product_warehouse_inventory set rep_loc_check_qty = coalesce((?.?), ?) + coalesce((?.?), ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 21 02 7 1s185ms 169ms 08 4 674ms 168ms 09 18 3s115ms 173ms 11 149 25s648ms 172ms 12 349 1m 173ms 13 349 1m 174ms 14 259 45s266ms 174ms 15 136 23s561ms 173ms 16 185 32s30ms 173ms 17 189 32s638ms 172ms 18 328 56s614ms 172ms 19 159 27s379ms 172ms 20 181 30s836ms 170ms 21 315 53s701ms 170ms 23 9 1s519ms 168ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((7.0), 0) + COALESCE((10.0), 0) WHERE product_id = 190567 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 13:36:09 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((0.0), 0) + COALESCE((21.0), 0) WHERE product_id = 190710 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:18:30 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((3.0), 0) + COALESCE((0.0), 0) WHERE product_id = 211746 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 18:08:27 Duration: 235ms
13 7m12s 2,254 175ms 672ms 191ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 21 12 23 4s436ms 192ms 13 67 13s153ms 196ms 14 132 26s168ms 198ms 15 715 2m18s 194ms 16 354 1m8s 193ms 17 303 56s17ms 184ms 18 222 41s674ms 187ms 19 216 41s512ms 192ms 20 175 33s483ms 191ms 21 47 8s648ms 184ms -
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 = 44302 and fd.product_id = 248600;
Date: 2024-06-21 20:56:17 Duration: 672ms
-
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 = 44304 and fd.product_id = 219747;
Date: 2024-06-21 15:51:12 Duration: 452ms
-
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 = 44302 and fd.product_id = 202653;
Date: 2024-06-21 20:56:18 Duration: 442ms
14 6m21s 2,245 155ms 318ms 170ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 21 02 4 682ms 170ms 08 9 1s502ms 166ms 09 11 1s849ms 168ms 10 5 834ms 166ms 11 41 6s966ms 169ms 12 316 54s775ms 173ms 13 386 1m6s 171ms 14 239 40s878ms 171ms 15 192 32s525ms 169ms 16 244 41s624ms 170ms 17 197 33s202ms 168ms 18 269 45s615ms 169ms 19 221 37s100ms 167ms 20 102 16s790ms 164ms 21 8 1s328ms 166ms 23 1 182ms 182ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 176029 AND warehouse_id = 44;
Date: 2024-06-21 16:21:30 Duration: 318ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219770 AND warehouse_id = 42;
Date: 2024-06-21 17:59:39 Duration: 300ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198124 AND warehouse_id = 37;
Date: 2024-06-21 14:59:32 Duration: 247ms
15 5m51s 2,073 152ms 321ms 169ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 21 08 9 1s438ms 159ms 09 3 499ms 166ms 10 50 8s132ms 162ms 11 84 13s552ms 161ms 12 216 37s760ms 174ms 13 210 36s402ms 173ms 14 150 26s545ms 176ms 15 411 1m8s 167ms 16 184 31s99ms 169ms 17 188 31s919ms 169ms 18 268 45s614ms 170ms 19 271 44s696ms 164ms 20 18 2s892ms 160ms 21 11 1s786ms 162ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%JUDS%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%JUDS%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%JUDS%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%JUDS%') OR unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') OR unaccent (res_partner.ref) ilike unaccent ('%JUDS%') OR unaccent (res_partner.vat) ilike unaccent ('JUDS')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:13:45 Duration: 321ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%05222%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%05222%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%05222%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%05222%') OR unaccent (res_partner.display_name) ilike unaccent ('%05222%') OR unaccent (res_partner.ref) ilike unaccent ('%05222%') OR unaccent (res_partner.vat) ilike unaccent ('05222')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%05222%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:22:04 Duration: 320ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11163%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11163%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11163%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11163%') OR unaccent (res_partner.display_name) ilike unaccent ('%11163%') OR unaccent (res_partner.ref) ilike unaccent ('%11163%') OR unaccent (res_partner.vat) ilike unaccent ('11163')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11163%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 15:05:45 Duration: 315ms
16 5m44s 1,455 208ms 767ms 236ms select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 21 07 11 2s350ms 213ms 08 8 1s718ms 214ms 09 7 1s574ms 224ms 10 12 2s579ms 214ms 11 53 12s32ms 227ms 12 176 42s930ms 243ms 13 190 46s454ms 244ms 14 240 58s140ms 242ms 15 210 49s300ms 234ms 16 166 38s928ms 234ms 17 109 25s207ms 231ms 18 108 25s466ms 235ms 19 106 24s288ms 229ms 20 24 5s308ms 221ms 21 34 7s604ms 223ms 23 1 222ms 222ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (214705))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 18:34:12 Duration: 767ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (177389))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 14:20:17 Duration: 733ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (267210))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 13:47:16 Duration: 648ms
17 5m39s 1,985 154ms 500ms 171ms 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 Jun 21 02 2 347ms 173ms 09 5 845ms 169ms 11 113 19s132ms 169ms 12 275 47s721ms 173ms 13 197 33s992ms 172ms 14 269 46s603ms 173ms 15 243 41s478ms 170ms 16 204 34s542ms 169ms 17 176 30s182ms 171ms 18 177 30s142ms 170ms 19 183 30s823ms 168ms 20 77 13s226ms 171ms 21 58 9s797ms 168ms 23 6 1s18ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 185945 AND warehouse_id = 44;
Date: 2024-06-21 14:23:29 Duration: 500ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189211 AND warehouse_id = 45;
Date: 2024-06-21 16:25:58 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 266992 AND warehouse_id = 46;
Date: 2024-06-21 20:16:54 Duration: 301ms
18 5m13s 93 1s824ms 48s187ms 3s373ms delete from account_move_line where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 21 11 4 7s618ms 1s904ms 12 7 16s879ms 2s411ms 13 6 19s78ms 3s179ms 14 1 3s727ms 3s727ms 16 1 3s686ms 3s686ms 17 5 24s628ms 4s925ms 18 3 37s846ms 12s615ms 20 3 12s997ms 4s332ms 23 63 3m7s 2s972ms -
DELETE FROM account_move_line WHERE id IN (4955014, 4955015, 4955016, 4955017, 4955018, 4955019, 4955020, 4955021, 4955325, 4955326, 4955327, 4955328, 4955329, 4955330, 4955331, 4954279, 4954280, 4954450, 4954451, 4954920, 4954921, 4954922, 4954923, 4954924, 5221998, 5221999);
Date: 2024-06-21 23:43:35 Duration: 48s187ms
-
DELETE FROM account_move_line WHERE id IN (5223325, 5223326, 5223327, 5223328, 5223329, 5223330, 5223331, 5223332, 5223333);
Date: 2024-06-21 18:51:44 Duration: 17s71ms
-
DELETE FROM account_move_line WHERE id IN (5223289, 5223290, 5223291, 5223292, 5223293, 5223294, 5223295, 5223296, 5223297);
Date: 2024-06-21 18:51:14 Duration: 17s48ms
19 5m9s 2,325 120ms 295ms 133ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 21 02 2 246ms 123ms 07 2 248ms 124ms 08 4 525ms 131ms 09 4 509ms 127ms 10 2 241ms 120ms 11 67 8s713ms 130ms 12 360 48s321ms 134ms 13 380 50s772ms 133ms 14 358 48s343ms 135ms 15 295 39s629ms 134ms 16 199 26s174ms 131ms 17 204 26s151ms 128ms 18 178 23s308ms 130ms 19 203 27s657ms 136ms 20 45 6s180ms 137ms 21 19 2s432ms 128ms 23 3 378ms 126ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (240392, 238278)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 14:22:04 Duration: 295ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (196675)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 12:53:48 Duration: 293ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (266989, 3)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 14:59:34 Duration: 287ms
20 4m57s 1,443 175ms 744ms 206ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 21 08 11 2s111ms 191ms 09 11 2s184ms 198ms 10 19 3s528ms 185ms 11 54 10s243ms 189ms 12 262 56s128ms 214ms 13 333 1m9s 208ms 14 122 25s550ms 209ms 15 209 43s349ms 207ms 16 109 22s285ms 204ms 17 121 24s240ms 200ms 18 98 20s290ms 207ms 19 56 11s47ms 197ms 20 32 6s117ms 191ms 23 6 1s142ms 190ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489549)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:29:24 Duration: 744ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1482261)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 13:36:09 Duration: 723ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489475)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:22:09 Duration: 550ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 11,748 33m54s 157ms 1s297ms 173ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 21 02 19 3s205ms 168ms 08 18 3s46ms 169ms 09 30 5s171ms 172ms 10 10 1s712ms 171ms 11 514 1m28s 172ms 12 1,600 4m39s 174ms 13 1,477 4m17s 174ms 14 1,286 3m44s 174ms 15 1,118 3m13s 173ms 16 1,156 3m19s 172ms 17 1,018 2m55s 172ms 18 1,233 3m34s 173ms 19 1,092 3m7s 171ms 20 624 1m46s 170ms 21 535 1m30s 169ms 23 18 3s47ms 169ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(16.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 214506 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:48:46 Duration: 1s297ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 247593 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-06-21 14:22:54 Duration: 1s108ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225750 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-06-21 18:27:29 Duration: 1s78ms
2 11,017 58m54s 297ms 2s183ms 320ms with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 21 02 18 5s504ms 305ms 08 18 5s569ms 309ms 09 31 9s723ms 313ms 10 10 3s100ms 310ms 11 456 2m26s 320ms 12 1,492 8m6s 326ms 13 1,451 7m52s 325ms 14 1,273 6m52s 324ms 15 1,109 6m 325ms 16 1,162 6m9s 317ms 17 981 5m10s 316ms 18 1,098 5m48s 317ms 19 1,052 5m32s 316ms 20 478 2m30s 314ms 21 372 1m55s 309ms 23 16 4s971ms 310ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 11:35:26 Duration: 2s183ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 14:23:20 Duration: 979ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 15:05:29 Duration: 952ms
3 11,015 1h5m34s 340ms 1s40ms 357ms 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;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 21 02 18 6s317ms 350ms 08 18 6s355ms 353ms 09 30 10s685ms 356ms 10 10 3s561ms 356ms 11 457 2m42s 355ms 12 1,491 8m56s 359ms 13 1,451 8m40s 358ms 14 1,272 7m35s 358ms 15 1,110 6m39s 360ms 16 1,161 6m53s 356ms 17 981 5m49s 356ms 18 1,098 6m30s 355ms 19 1,052 6m13s 355ms 20 478 2m49s 355ms 21 372 2m11s 353ms 23 16 5s630ms 351ms -
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-06-21 15:00:38 Duration: 1s40ms
-
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-06-21 15:00:38 Duration: 989ms
-
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-06-21 20:56:18 Duration: 611ms
4 10,547 30m20s 164ms 3s169ms 172ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 21 02 8 1s346ms 168ms 08 28 4s729ms 168ms 09 34 5s754ms 169ms 10 12 2s28ms 169ms 11 214 36s380ms 170ms 12 899 2m35s 173ms 13 979 2m50s 173ms 14 1,377 3m58s 173ms 15 514 1m29s 173ms 16 2,096 6m3s 173ms 17 1,824 5m14s 172ms 18 1,643 4m41s 171ms 19 648 1m50s 171ms 20 262 44s718ms 170ms 23 9 1s561ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:47 Duration: 3s169ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:49 Duration: 1s134ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((8.0 - 8.0) + (0.0 - 0.0), 0) ELSE GREATEST ((8.0 - 8.0), 0) END where product_id = 185428 and warehouse_id = 44 and company_id = 1;
Date: 2024-06-21 14:23:30 Duration: 1s107ms
5 5,760 13m40s 135ms 679ms 142ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 21 00 240 33s749ms 140ms 01 240 33s314ms 138ms 02 240 33s409ms 139ms 03 240 33s277ms 138ms 04 240 33s212ms 138ms 05 240 33s187ms 138ms 06 240 33s228ms 138ms 07 240 33s216ms 138ms 08 240 33s273ms 138ms 09 240 33s399ms 139ms 10 240 33s258ms 138ms 11 240 34s626ms 144ms 12 240 36s286ms 151ms 13 240 36s912ms 153ms 14 240 35s958ms 149ms 15 240 36s40ms 150ms 16 240 35s471ms 147ms 17 240 35s152ms 146ms 18 240 35s101ms 146ms 19 240 34s565ms 144ms 20 240 33s861ms 141ms 21 240 33s491ms 139ms 22 240 33s282ms 138ms 23 240 33s393ms 139ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_type', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_locks', 'pg_catalog.pg_constraint', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_group', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_operator', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_namespace', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_index', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cursors', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_views', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'information_schema.character_sets', 'information_schema.check_constraints', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.role_udt_grants', 'information_schema.key_column_usage', 'information_schema.triggered_update_columns', 'information_schema.administrable_role_authorizations', 'information_schema.routine_sequence_usage', 'information_schema.role_column_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.view_table_usage', 'information_schema.sql_sizing', 'information_schema.view_column_usage', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.sql_features', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.role_usage_grants', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.triggers', 'information_schema.column_options', 'information_schema.constraint_table_usage', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.domains', 'information_schema.applicable_roles', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.constraint_column_usage', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-06-21 11:24:12 Duration: 679ms
-
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_ts_parser', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_type', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_policy', 'pg_catalog.pg_roles', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_operator', 'pg_catalog.pg_opclass', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_cast', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_enum', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_collation', 'pg_catalog.pg_cursors', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_sequence', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_database', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_extension', 'pg_catalog.pg_matviews', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_activity', 'information_schema.routines', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.domain_constraints', 'information_schema.character_sets', 'information_schema.udt_privileges', 'information_schema.foreign_table_options', 'information_schema.domain_udt_usage', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.tables', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.key_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.foreign_server_options', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.view_table_usage', 'information_schema.role_usage_grants', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.role_udt_grants', 'information_schema.information_schema_catalog_name', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.view_column_usage', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.column_options', 'information_schema.sql_features', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.domains', 'information_schema.sql_sizing', 'information_schema.user_mappings', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-06-21 11:35:26 Duration: 347ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_enum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats', 'pg_catalog.pg_transform', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_inherits', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_attribute', 'pg_catalog.pg_proc', 'pg_catalog.pg_language', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_tables', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_class', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_cast', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_namespace', 'pg_catalog.pg_conversion', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_description', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_extension', 'pg_catalog.pg_database', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_amproc', 'pg_catalog.pg_trigger', 'pg_catalog.pg_policies', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_gssapi', 'information_schema.attributes', 'information_schema.tables', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.role_usage_grants', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.parameters', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.view_routine_usage', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.triggers', 'information_schema.view_column_usage', 'information_schema.constraint_column_usage', 'information_schema.table_constraints', 'information_schema.role_table_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.collation_character_set_applicability', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.foreign_servers', 'information_schema.column_domain_usage', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.referential_constraints', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.element_types', 'information_schema.applicable_roles', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.routine_sequence_usage');
Date: 2024-06-21 13:40:41 Duration: 267ms
6 3,879 11m10s 161ms 378ms 172ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 21 02 1 168ms 168ms 08 15 2s528ms 168ms 09 26 4s385ms 168ms 10 12 2s17ms 168ms 11 86 14s785ms 171ms 12 673 1m58s 175ms 13 650 1m52s 173ms 14 487 1m23s 172ms 15 417 1m12s 172ms 16 421 1m12s 172ms 17 379 1m5s 172ms 18 320 55s116ms 172ms 19 270 46s104ms 170ms 20 92 15s566ms 169ms 21 26 4s358ms 167ms 23 4 672ms 168ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 189211 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-21 16:25:58 Duration: 378ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 211201 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 12:28:27 Duration: 367ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 217937 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 12:28:13 Duration: 360ms
7 2,673 31m27s 594ms 1s298ms 706ms 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 #7
Day Hour Count Duration Avg duration Jun 21 02 5 3s393ms 678ms 10 15 10s137ms 675ms 11 202 2m20s 696ms 12 336 4m3s 724ms 13 309 3m43s 723ms 14 326 3m53s 715ms 15 198 2m20s 707ms 16 234 2m45s 706ms 17 196 2m17s 702ms 18 270 3m11s 710ms 19 447 5m6s 685ms 20 119 1m20s 677ms 23 16 10s817ms 676ms -
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 ('%%cb1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1%'))) 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-06-21 12:26:58 Duration: 1s298ms
-
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 ('%%gkt1008%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%gkt1008%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%gkt1008%'))) 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-06-21 12:19:10 Duration: 1s264ms
-
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 ('%%cb12%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1/2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1/2%'))) 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-06-21 12:26:58 Duration: 1s183ms
8 2,637 7m35s 166ms 236ms 172ms update product_warehouse_inventory set rep_loc_check_qty = coalesce((?.?), ?) + coalesce((?.?), ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 21 02 7 1s185ms 169ms 08 4 674ms 168ms 09 18 3s115ms 173ms 11 149 25s648ms 172ms 12 349 1m 173ms 13 349 1m 174ms 14 259 45s266ms 174ms 15 136 23s561ms 173ms 16 185 32s30ms 173ms 17 189 32s638ms 172ms 18 328 56s614ms 172ms 19 159 27s379ms 172ms 20 181 30s836ms 170ms 21 315 53s701ms 170ms 23 9 1s519ms 168ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((7.0), 0) + COALESCE((10.0), 0) WHERE product_id = 190567 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 13:36:09 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((0.0), 0) + COALESCE((21.0), 0) WHERE product_id = 190710 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:18:30 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((3.0), 0) + COALESCE((0.0), 0) WHERE product_id = 211746 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 18:08:27 Duration: 235ms
9 2,325 5m9s 120ms 295ms 133ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 21 02 2 246ms 123ms 07 2 248ms 124ms 08 4 525ms 131ms 09 4 509ms 127ms 10 2 241ms 120ms 11 67 8s713ms 130ms 12 360 48s321ms 134ms 13 380 50s772ms 133ms 14 358 48s343ms 135ms 15 295 39s629ms 134ms 16 199 26s174ms 131ms 17 204 26s151ms 128ms 18 178 23s308ms 130ms 19 203 27s657ms 136ms 20 45 6s180ms 137ms 21 19 2s432ms 128ms 23 3 378ms 126ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (240392, 238278)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 14:22:04 Duration: 295ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (196675)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 12:53:48 Duration: 293ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (266989, 3)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-21 14:59:34 Duration: 287ms
10 2,254 7m12s 175ms 672ms 191ms 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 #10
Day Hour Count Duration Avg duration Jun 21 12 23 4s436ms 192ms 13 67 13s153ms 196ms 14 132 26s168ms 198ms 15 715 2m18s 194ms 16 354 1m8s 193ms 17 303 56s17ms 184ms 18 222 41s674ms 187ms 19 216 41s512ms 192ms 20 175 33s483ms 191ms 21 47 8s648ms 184ms -
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 = 44302 and fd.product_id = 248600;
Date: 2024-06-21 20:56:17 Duration: 672ms
-
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 = 44304 and fd.product_id = 219747;
Date: 2024-06-21 15:51:12 Duration: 452ms
-
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 = 44302 and fd.product_id = 202653;
Date: 2024-06-21 20:56:18 Duration: 442ms
11 2,245 6m21s 155ms 318ms 170ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 21 02 4 682ms 170ms 08 9 1s502ms 166ms 09 11 1s849ms 168ms 10 5 834ms 166ms 11 41 6s966ms 169ms 12 316 54s775ms 173ms 13 386 1m6s 171ms 14 239 40s878ms 171ms 15 192 32s525ms 169ms 16 244 41s624ms 170ms 17 197 33s202ms 168ms 18 269 45s615ms 169ms 19 221 37s100ms 167ms 20 102 16s790ms 164ms 21 8 1s328ms 166ms 23 1 182ms 182ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 176029 AND warehouse_id = 44;
Date: 2024-06-21 16:21:30 Duration: 318ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219770 AND warehouse_id = 42;
Date: 2024-06-21 17:59:39 Duration: 300ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198124 AND warehouse_id = 37;
Date: 2024-06-21 14:59:32 Duration: 247ms
12 2,073 5m51s 152ms 321ms 169ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 21 08 9 1s438ms 159ms 09 3 499ms 166ms 10 50 8s132ms 162ms 11 84 13s552ms 161ms 12 216 37s760ms 174ms 13 210 36s402ms 173ms 14 150 26s545ms 176ms 15 411 1m8s 167ms 16 184 31s99ms 169ms 17 188 31s919ms 169ms 18 268 45s614ms 170ms 19 271 44s696ms 164ms 20 18 2s892ms 160ms 21 11 1s786ms 162ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%JUDS%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%JUDS%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%JUDS%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%JUDS%') OR unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') OR unaccent (res_partner.ref) ilike unaccent ('%JUDS%') OR unaccent (res_partner.vat) ilike unaccent ('JUDS')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:13:45 Duration: 321ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%05222%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%05222%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%05222%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%05222%') OR unaccent (res_partner.display_name) ilike unaccent ('%05222%') OR unaccent (res_partner.ref) ilike unaccent ('%05222%') OR unaccent (res_partner.vat) ilike unaccent ('05222')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%05222%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:22:04 Duration: 320ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11163%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11163%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11163%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11163%') OR unaccent (res_partner.display_name) ilike unaccent ('%11163%') OR unaccent (res_partner.ref) ilike unaccent ('%11163%') OR unaccent (res_partner.vat) ilike unaccent ('11163')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11163%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 15:05:45 Duration: 315ms
13 1,985 5m39s 154ms 500ms 171ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 21 02 2 347ms 173ms 09 5 845ms 169ms 11 113 19s132ms 169ms 12 275 47s721ms 173ms 13 197 33s992ms 172ms 14 269 46s603ms 173ms 15 243 41s478ms 170ms 16 204 34s542ms 169ms 17 176 30s182ms 171ms 18 177 30s142ms 170ms 19 183 30s823ms 168ms 20 77 13s226ms 171ms 21 58 9s797ms 168ms 23 6 1s18ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 185945 AND warehouse_id = 44;
Date: 2024-06-21 14:23:29 Duration: 500ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189211 AND warehouse_id = 45;
Date: 2024-06-21 16:25:58 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 266992 AND warehouse_id = 46;
Date: 2024-06-21 20:16:54 Duration: 301ms
14 1,825 13m29s 417ms 749ms 443ms 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 #14
Day Hour Count Duration Avg duration Jun 21 00 3 1s287ms 429ms 02 7 3s13ms 430ms 06 3 1s266ms 422ms 07 4 1s679ms 419ms 08 15 6s303ms 420ms 09 17 7s214ms 424ms 10 30 12s653ms 421ms 11 94 40s541ms 431ms 12 313 2m20s 448ms 13 358 2m42s 455ms 14 216 1m36s 448ms 15 182 1m20s 442ms 16 192 1m25s 443ms 17 129 56s261ms 436ms 18 111 48s699ms 438ms 19 102 44s314ms 434ms 20 36 15s547ms 431ms 21 6 2s522ms 420ms 23 7 2s946ms 420ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 14:52:48 Duration: 749ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 16:50:29 Duration: 728ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 15:05:46 Duration: 728ms
15 1,787 3m58s 120ms 333ms 133ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where (("product_warehouse_inventory"."warehouse_id" = ?) and ("product_warehouse_inventory"."product_id" = ?)) order by "product_warehouse_inventory"."warehouse_name" limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 21 10 17 2s76ms 122ms 11 21 2s623ms 124ms 12 609 1m22s 135ms 13 145 19s244ms 132ms 14 329 44s 133ms 15 316 42s592ms 134ms 16 159 20s806ms 130ms 17 52 6s633ms 127ms 18 92 11s790ms 128ms 19 47 6s63ms 129ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 177397)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-21 14:22:04 Duration: 333ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 220144)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-21 12:26:57 Duration: 279ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 188176)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-21 15:08:57 Duration: 261ms
16 1,728 4m16s 120ms 283ms 148ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 21 10 83 11s447ms 137ms 11 95 13s397ms 141ms 12 628 1m31s 145ms 13 168 27s750ms 165ms 14 162 26s416ms 163ms 15 156 24s109ms 154ms 16 85 11s691ms 137ms 17 156 22s630ms 145ms 18 160 23s100ms 144ms 19 35 4s869ms 139ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177545) 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-06-21 14:59:11 Duration: 283ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177831) 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-06-21 14:59:13 Duration: 277ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 180832) 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-06-21 13:36:16 Duration: 260ms
17 1,455 5m44s 208ms 767ms 236ms select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 21 07 11 2s350ms 213ms 08 8 1s718ms 214ms 09 7 1s574ms 224ms 10 12 2s579ms 214ms 11 53 12s32ms 227ms 12 176 42s930ms 243ms 13 190 46s454ms 244ms 14 240 58s140ms 242ms 15 210 49s300ms 234ms 16 166 38s928ms 234ms 17 109 25s207ms 231ms 18 108 25s466ms 235ms 19 106 24s288ms 229ms 20 24 5s308ms 221ms 21 34 7s604ms 223ms 23 1 222ms 222ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (214705))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 18:34:12 Duration: 767ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (177389))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 14:20:17 Duration: 733ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (267210))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 13:47:16 Duration: 648ms
18 1,443 4m57s 175ms 744ms 206ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 21 08 11 2s111ms 191ms 09 11 2s184ms 198ms 10 19 3s528ms 185ms 11 54 10s243ms 189ms 12 262 56s128ms 214ms 13 333 1m9s 208ms 14 122 25s550ms 209ms 15 209 43s349ms 207ms 16 109 22s285ms 204ms 17 121 24s240ms 200ms 18 98 20s290ms 207ms 19 56 11s47ms 197ms 20 32 6s117ms 191ms 23 6 1s142ms 190ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489549)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:29:24 Duration: 744ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1482261)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 13:36:09 Duration: 723ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489475)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:22:09 Duration: 550ms
19 1,427 4m40s 163ms 304ms 196ms 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 #19
Day Hour Count Duration Avg duration Jun 21 08 12 2s244ms 187ms 09 15 2s911ms 194ms 10 13 2s364ms 181ms 11 63 11s824ms 187ms 12 242 48s659ms 201ms 13 233 46s734ms 200ms 14 156 31s157ms 199ms 15 150 29s928ms 199ms 16 100 19s669ms 196ms 17 137 26s650ms 194ms 18 99 19s271ms 194ms 19 74 14s311ms 193ms 20 57 10s637ms 186ms 23 76 13s928ms 183ms -
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 (32533))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:51:17 Duration: 304ms
-
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 (32751))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:34:15 Duration: 304ms
-
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 (37494))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:51:12 Duration: 300ms
20 1,314 2m47s 120ms 306ms 127ms 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 Jun 21 11 41 5s288ms 128ms 12 268 34s590ms 129ms 13 270 34s829ms 128ms 14 205 25s954ms 126ms 15 160 20s373ms 127ms 16 118 15s54ms 127ms 17 81 10s145ms 125ms 18 90 11s261ms 125ms 19 57 7s234ms 126ms 20 17 2s285ms 134ms 21 7 862ms 123ms -
select id from product_warehouse_inventory where product_id = 239372 and warehouse_id = 42 and company_id = 1;
Date: 2024-06-21 20:56:26 Duration: 306ms
-
select id from product_warehouse_inventory where product_id = 219747 and warehouse_id = 42 and company_id = 1;
Date: 2024-06-21 11:45:51 Duration: 254ms
-
select id from product_warehouse_inventory where product_id = 208373 and warehouse_id = 35 and company_id = 1;
Date: 2024-06-21 12:26:57 Duration: 231ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 1s824ms 48s187ms 3s373ms 93 5m13s delete from account_move_line where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 21 11 4 7s618ms 1s904ms 12 7 16s879ms 2s411ms 13 6 19s78ms 3s179ms 14 1 3s727ms 3s727ms 16 1 3s686ms 3s686ms 17 5 24s628ms 4s925ms 18 3 37s846ms 12s615ms 20 3 12s997ms 4s332ms 23 63 3m7s 2s972ms -
DELETE FROM account_move_line WHERE id IN (4955014, 4955015, 4955016, 4955017, 4955018, 4955019, 4955020, 4955021, 4955325, 4955326, 4955327, 4955328, 4955329, 4955330, 4955331, 4954279, 4954280, 4954450, 4954451, 4954920, 4954921, 4954922, 4954923, 4954924, 5221998, 5221999);
Date: 2024-06-21 23:43:35 Duration: 48s187ms
-
DELETE FROM account_move_line WHERE id IN (5223325, 5223326, 5223327, 5223328, 5223329, 5223330, 5223331, 5223332, 5223333);
Date: 2024-06-21 18:51:44 Duration: 17s71ms
-
DELETE FROM account_move_line WHERE id IN (5223289, 5223290, 5223291, 5223292, 5223293, 5223294, 5223295, 5223296, 5223297);
Date: 2024-06-21 18:51:14 Duration: 17s48ms
2 828ms 1s260ms 878ms 655 9m35s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 21 02 3 2s549ms 849ms 10 2 1s703ms 851ms 11 24 20s694ms 862ms 12 83 1m13s 887ms 13 88 1m18s 891ms 14 106 1m33s 883ms 15 107 1m33s 877ms 16 56 49s473ms 883ms 17 67 58s428ms 872ms 18 69 59s797ms 866ms 19 37 31s883ms 861ms 20 8 6s821ms 852ms 21 4 3s461ms 865ms 23 1 862ms 862ms -
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 ('%SXL-4310%')) 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 ('%SXL-4310%'))) 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 ('%SXL-4310%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%SXL-4310%')))))) 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-06-21 15:10:56 Duration: 1s260ms
-
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 ('%67-563%')) 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 ('%67-563%'))) 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 ('%67-563%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%67-563%')))))) 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-06-21 16:48:11 Duration: 1s191ms
-
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 ('%100-53-21%')) 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 ('%100-53-21%'))) 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 ('%100-53-21%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%100-53-21%')))))) 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-06-21 14:52:36 Duration: 1s182ms
3 645ms 1s145ms 709ms 875 10m21s 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 #3
Day Hour Count Duration Avg duration Jun 21 10 1 667ms 667ms 11 20 13s510ms 675ms 12 41 28s934ms 705ms 13 131 1m33s 717ms 14 131 1m33s 712ms 15 54 37s991ms 703ms 16 144 1m41s 708ms 17 259 3m4s 710ms 18 69 49s596ms 718ms 19 25 17s44ms 681ms -
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 ('%%cw71%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cw71%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cw71%'))) 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-06-21 13:42:11 Duration: 1s145ms
-
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 ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) 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-06-21 13:15:01 Duration: 1s130ms
-
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 ('%%cw7%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cw7%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cw7%'))) 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-06-21 13:42:11 Duration: 1s88ms
4 594ms 1s298ms 706ms 2,673 31m27s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 21 02 5 3s393ms 678ms 10 15 10s137ms 675ms 11 202 2m20s 696ms 12 336 4m3s 724ms 13 309 3m43s 723ms 14 326 3m53s 715ms 15 198 2m20s 707ms 16 234 2m45s 706ms 17 196 2m17s 702ms 18 270 3m11s 710ms 19 447 5m6s 685ms 20 119 1m20s 677ms 23 16 10s817ms 676ms -
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 ('%%cb1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1%'))) 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-06-21 12:26:58 Duration: 1s298ms
-
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 ('%%gkt1008%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%gkt1008%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%gkt1008%'))) 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-06-21 12:19:10 Duration: 1s264ms
-
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 ('%%cb12%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cb1/2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cb1/2%'))) 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-06-21 12:26:58 Duration: 1s183ms
5 545ms 1s105ms 692ms 740 8m32s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 21 12 27 19s188ms 710ms 13 51 37s235ms 730ms 14 4 2s667ms 666ms 15 88 1m 686ms 16 84 58s954ms 701ms 17 53 36s468ms 688ms 18 176 2m3s 699ms 19 92 1m3s 687ms 20 165 1m51s 673ms -
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 ('%%A338%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%A338%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%A338%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 13:42:13 Duration: 1s105ms
-
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 ('%%dde2353%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%dde-2353%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%dde-2353%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 18:51:54 Duration: 1s37ms
-
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 ('%%10eastpenn%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1.0 east penn%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1.0 east penn%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-06-21 13:09:05 Duration: 988ms
6 417ms 749ms 443ms 1,825 13m29s 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 Jun 21 00 3 1s287ms 429ms 02 7 3s13ms 430ms 06 3 1s266ms 422ms 07 4 1s679ms 419ms 08 15 6s303ms 420ms 09 17 7s214ms 424ms 10 30 12s653ms 421ms 11 94 40s541ms 431ms 12 313 2m20s 448ms 13 358 2m42s 455ms 14 216 1m36s 448ms 15 182 1m20s 442ms 16 192 1m25s 443ms 17 129 56s261ms 436ms 18 111 48s699ms 438ms 19 102 44s314ms 434ms 20 36 15s547ms 431ms 21 6 2s522ms 420ms 23 7 2s946ms 420ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 14:52:48 Duration: 749ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 16:50:29 Duration: 728ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-21 15:05:46 Duration: 728ms
7 340ms 1s40ms 357ms 11,015 1h5m34s 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;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 21 02 18 6s317ms 350ms 08 18 6s355ms 353ms 09 30 10s685ms 356ms 10 10 3s561ms 356ms 11 457 2m42s 355ms 12 1,491 8m56s 359ms 13 1,451 8m40s 358ms 14 1,272 7m35s 358ms 15 1,110 6m39s 360ms 16 1,161 6m53s 356ms 17 981 5m49s 356ms 18 1,098 6m30s 355ms 19 1,052 6m13s 355ms 20 478 2m49s 355ms 21 372 2m11s 353ms 23 16 5s630ms 351ms -
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-06-21 15:00:38 Duration: 1s40ms
-
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-06-21 15:00:38 Duration: 989ms
-
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-06-21 20:56:18 Duration: 611ms
8 297ms 2s183ms 320ms 11,017 58m54s with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 21 02 18 5s504ms 305ms 08 18 5s569ms 309ms 09 31 9s723ms 313ms 10 10 3s100ms 310ms 11 456 2m26s 320ms 12 1,492 8m6s 326ms 13 1,451 7m52s 325ms 14 1,273 6m52s 324ms 15 1,109 6m 325ms 16 1,162 6m9s 317ms 17 981 5m10s 316ms 18 1,098 5m48s 317ms 19 1,052 5m32s 316ms 20 478 2m30s 314ms 21 372 1m55s 309ms 23 16 4s971ms 310ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 11:35:26 Duration: 2s183ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 14:23:20 Duration: 979ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-21 15:05:29 Duration: 952ms
9 208ms 767ms 236ms 1,455 5m44s select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 21 07 11 2s350ms 213ms 08 8 1s718ms 214ms 09 7 1s574ms 224ms 10 12 2s579ms 214ms 11 53 12s32ms 227ms 12 176 42s930ms 243ms 13 190 46s454ms 244ms 14 240 58s140ms 242ms 15 210 49s300ms 234ms 16 166 38s928ms 234ms 17 109 25s207ms 231ms 18 108 25s466ms 235ms 19 106 24s288ms 229ms 20 24 5s308ms 221ms 21 34 7s604ms 223ms 23 1 222ms 222ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (214705))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 18:34:12 Duration: 767ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (177389))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 14:20:17 Duration: 733ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (267210))) AND ("sale_report"."date" >= '2023-06-22 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-06-21 13:47:16 Duration: 648ms
10 175ms 744ms 206ms 1,443 4m57s select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 21 08 11 2s111ms 191ms 09 11 2s184ms 198ms 10 19 3s528ms 185ms 11 54 10s243ms 189ms 12 262 56s128ms 214ms 13 333 1m9s 208ms 14 122 25s550ms 209ms 15 209 43s349ms 207ms 16 109 22s285ms 204ms 17 121 24s240ms 200ms 18 98 20s290ms 207ms 19 56 11s47ms 197ms 20 32 6s117ms 191ms 23 6 1s142ms 190ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489549)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:29:24 Duration: 744ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1482261)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 13:36:09 Duration: 723ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1489475)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-06-21 12:22:09 Duration: 550ms
11 163ms 304ms 196ms 1,427 4m40s 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 #11
Day Hour Count Duration Avg duration Jun 21 08 12 2s244ms 187ms 09 15 2s911ms 194ms 10 13 2s364ms 181ms 11 63 11s824ms 187ms 12 242 48s659ms 201ms 13 233 46s734ms 200ms 14 156 31s157ms 199ms 15 150 29s928ms 199ms 16 100 19s669ms 196ms 17 137 26s650ms 194ms 18 99 19s271ms 194ms 19 74 14s311ms 193ms 20 57 10s637ms 186ms 23 76 13s928ms 183ms -
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 (32533))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:51:17 Duration: 304ms
-
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 (32751))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:34:15 Duration: 304ms
-
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 (37494))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-21 15:51:12 Duration: 300ms
12 175ms 672ms 191ms 2,254 7m12s 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 #12
Day Hour Count Duration Avg duration Jun 21 12 23 4s436ms 192ms 13 67 13s153ms 196ms 14 132 26s168ms 198ms 15 715 2m18s 194ms 16 354 1m8s 193ms 17 303 56s17ms 184ms 18 222 41s674ms 187ms 19 216 41s512ms 192ms 20 175 33s483ms 191ms 21 47 8s648ms 184ms -
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 = 44302 and fd.product_id = 248600;
Date: 2024-06-21 20:56:17 Duration: 672ms
-
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 = 44304 and fd.product_id = 219747;
Date: 2024-06-21 15:51:12 Duration: 452ms
-
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 = 44302 and fd.product_id = 202653;
Date: 2024-06-21 20:56:18 Duration: 442ms
13 157ms 1s297ms 173ms 11,748 33m54s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 21 02 19 3s205ms 168ms 08 18 3s46ms 169ms 09 30 5s171ms 172ms 10 10 1s712ms 171ms 11 514 1m28s 172ms 12 1,600 4m39s 174ms 13 1,477 4m17s 174ms 14 1,286 3m44s 174ms 15 1,118 3m13s 173ms 16 1,156 3m19s 172ms 17 1,018 2m55s 172ms 18 1,233 3m34s 173ms 19 1,092 3m7s 171ms 20 624 1m46s 170ms 21 535 1m30s 169ms 23 18 3s47ms 169ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(16.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 214506 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:48:46 Duration: 1s297ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(2.0, 0) - COALESCE(2.0, 0) WHERE product_id = 247593 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-06-21 14:22:54 Duration: 1s108ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225750 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-06-21 18:27:29 Duration: 1s78ms
14 161ms 378ms 172ms 3,879 11m10s 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 Jun 21 02 1 168ms 168ms 08 15 2s528ms 168ms 09 26 4s385ms 168ms 10 12 2s17ms 168ms 11 86 14s785ms 171ms 12 673 1m58s 175ms 13 650 1m52s 173ms 14 487 1m23s 172ms 15 417 1m12s 172ms 16 421 1m12s 172ms 17 379 1m5s 172ms 18 320 55s116ms 172ms 19 270 46s104ms 170ms 20 92 15s566ms 169ms 21 26 4s358ms 167ms 23 4 672ms 168ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 189211 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-21 16:25:58 Duration: 378ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 211201 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 12:28:27 Duration: 367ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 217937 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 12:28:13 Duration: 360ms
15 166ms 236ms 172ms 2,637 7m35s update product_warehouse_inventory set rep_loc_check_qty = coalesce((?.?), ?) + coalesce((?.?), ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 21 02 7 1s185ms 169ms 08 4 674ms 168ms 09 18 3s115ms 173ms 11 149 25s648ms 172ms 12 349 1m 173ms 13 349 1m 174ms 14 259 45s266ms 174ms 15 136 23s561ms 173ms 16 185 32s30ms 173ms 17 189 32s638ms 172ms 18 328 56s614ms 172ms 19 159 27s379ms 172ms 20 181 30s836ms 170ms 21 315 53s701ms 170ms 23 9 1s519ms 168ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((7.0), 0) + COALESCE((10.0), 0) WHERE product_id = 190567 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-21 13:36:09 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((0.0), 0) + COALESCE((21.0), 0) WHERE product_id = 190710 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-21 12:18:30 Duration: 236ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((3.0), 0) + COALESCE((0.0), 0) WHERE product_id = 211746 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-06-21 18:08:27 Duration: 235ms
16 164ms 3s169ms 172ms 10,547 30m20s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 21 02 8 1s346ms 168ms 08 28 4s729ms 168ms 09 34 5s754ms 169ms 10 12 2s28ms 169ms 11 214 36s380ms 170ms 12 899 2m35s 173ms 13 979 2m50s 173ms 14 1,377 3m58s 173ms 15 514 1m29s 173ms 16 2,096 6m3s 173ms 17 1,824 5m14s 172ms 18 1,643 4m41s 171ms 19 648 1m50s 171ms 20 262 44s718ms 170ms 23 9 1s561ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:47 Duration: 3s169ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 251.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (251.0 - 251.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191102 and warehouse_id = 37 and company_id = 1;
Date: 2024-06-21 16:33:49 Duration: 1s134ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((8.0 - 8.0) + (0.0 - 0.0), 0) ELSE GREATEST ((8.0 - 8.0), 0) END where product_id = 185428 and warehouse_id = 44 and company_id = 1;
Date: 2024-06-21 14:23:30 Duration: 1s107ms
17 154ms 500ms 171ms 1,985 5m39s 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 Jun 21 02 2 347ms 173ms 09 5 845ms 169ms 11 113 19s132ms 169ms 12 275 47s721ms 173ms 13 197 33s992ms 172ms 14 269 46s603ms 173ms 15 243 41s478ms 170ms 16 204 34s542ms 169ms 17 176 30s182ms 171ms 18 177 30s142ms 170ms 19 183 30s823ms 168ms 20 77 13s226ms 171ms 21 58 9s797ms 168ms 23 6 1s18ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 185945 AND warehouse_id = 44;
Date: 2024-06-21 14:23:29 Duration: 500ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189211 AND warehouse_id = 45;
Date: 2024-06-21 16:25:58 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 266992 AND warehouse_id = 46;
Date: 2024-06-21 20:16:54 Duration: 301ms
18 155ms 318ms 170ms 2,245 6m21s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 21 02 4 682ms 170ms 08 9 1s502ms 166ms 09 11 1s849ms 168ms 10 5 834ms 166ms 11 41 6s966ms 169ms 12 316 54s775ms 173ms 13 386 1m6s 171ms 14 239 40s878ms 171ms 15 192 32s525ms 169ms 16 244 41s624ms 170ms 17 197 33s202ms 168ms 18 269 45s615ms 169ms 19 221 37s100ms 167ms 20 102 16s790ms 164ms 21 8 1s328ms 166ms 23 1 182ms 182ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 176029 AND warehouse_id = 44;
Date: 2024-06-21 16:21:30 Duration: 318ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219770 AND warehouse_id = 42;
Date: 2024-06-21 17:59:39 Duration: 300ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198124 AND warehouse_id = 37;
Date: 2024-06-21 14:59:32 Duration: 247ms
19 152ms 321ms 169ms 2,073 5m51s select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 21 08 9 1s438ms 159ms 09 3 499ms 166ms 10 50 8s132ms 162ms 11 84 13s552ms 161ms 12 216 37s760ms 174ms 13 210 36s402ms 173ms 14 150 26s545ms 176ms 15 411 1m8s 167ms 16 184 31s99ms 169ms 17 188 31s919ms 169ms 18 268 45s614ms 170ms 19 271 44s696ms 164ms 20 18 2s892ms 160ms 21 11 1s786ms 162ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%JUDS%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%JUDS%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%JUDS%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%JUDS%') OR unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') OR unaccent (res_partner.ref) ilike unaccent ('%JUDS%') OR unaccent (res_partner.vat) ilike unaccent ('JUDS')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%JUDS%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:13:45 Duration: 321ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%05222%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%05222%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%05222%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%05222%') OR unaccent (res_partner.display_name) ilike unaccent ('%05222%') OR unaccent (res_partner.ref) ilike unaccent ('%05222%') OR unaccent (res_partner.vat) ilike unaccent ('05222')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%05222%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 14:22:04 Duration: 320ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%11163%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%11163%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%11163%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%11163%') OR unaccent (res_partner.display_name) ilike unaccent ('%11163%') OR unaccent (res_partner.ref) ilike unaccent ('%11163%') OR unaccent (res_partner.vat) ilike unaccent ('11163')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%11163%') desc, unaccent (res_partner.display_name);
Date: 2024-06-21 15:05:45 Duration: 315ms
20 120ms 283ms 148ms 1,728 4m16s 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 #20
Day Hour Count Duration Avg duration Jun 21 10 83 11s447ms 137ms 11 95 13s397ms 141ms 12 628 1m31s 145ms 13 168 27s750ms 165ms 14 162 26s416ms 163ms 15 156 24s109ms 154ms 16 85 11s691ms 137ms 17 156 22s630ms 145ms 18 160 23s100ms 144ms 19 35 4s869ms 139ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177545) 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-06-21 14:59:11 Duration: 283ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177831) 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-06-21 14:59:13 Duration: 277ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 180832) 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-06-21 13:36:16 Duration: 260ms
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
- 163,880 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 26180 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 25,425 Max number of times the same event was reported
- 26,180 Total events found
Rank Times reported Error 1 25,425 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 21 02 42 08 105 09 139 10 55 11 1,125 12 3,790 13 3,244 14 3,034 15 2,600 16 2,700 17 2,388 18 2,386 19 2,023 20 1,001 21 742 23 51 - ERROR: could not serialize access due to concurrent update
Statement: SELECT state FROM queue_job WHERE uuid='3f305102-aae5-45e4-9fb0-0bcd308903a6' AND state='enqueued' FOR UPDATE
Date: 2024-06-21 02:45:01
2 679 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jun 21 00 35 01 40 02 31 03 26 04 23 05 22 06 23 07 26 08 24 09 22 10 29 11 20 12 28 13 30 14 28 15 25 16 29 17 27 18 24 19 20 20 22 21 27 22 25 23 73 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "website_visitor"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=77 FOR UPDATE NOWAIT
Date: 2024-06-21 01:50:19
Statement: SELECT * FROM website_visitor where id = 16439948 FOR NO KEY UPDATE NOWAIT
Date: 2024-06-21 02:45:08
3 60 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Jun 21 12 8 13 5 14 14 15 12 16 5 17 4 18 3 19 8 20 1 - ERROR: process 3877454 still waiting for ShareLock on transaction 278114226 after 1000.039 ms
- ERROR: process 3877454 still waiting for ShareLock on transaction 278114244 after 1000.048 ms
- ERROR: process 3836810 still waiting for ShareLock on transaction 277958426 after 1000.055 ms
Detail: Process holding the lock: 3836811. Wait queue: 3877454.
Context: while updating tuple (43730,5) in relation "product_warehouse_inventory"
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=978,"write_date"=(now() at time zone 'UTC') WHERE id IN (337796, 369832, 369833, 131068, 61806, 62128, 61841, 48245, 7414, 52316)Date: 2024-06-21 18:35:14
Detail: Process holding the lock: 3844265. Wait queue: 3877454.
Context: while updating tuple (43730,7) in relation "product_warehouse_inventory"
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=978,"write_date"=(now() at time zone 'UTC') WHERE id IN (337796, 369832, 369833, 131068, 61806, 62128, 61841, 48245, 7414, 52316)Date: 2024-06-21 18:35:23
Detail: Process holding the lock: 3844517. Wait queue: 3836810.
Context: while updating tuple (4956,15) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1408218 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 != 1408218 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-06-21 14:02:12
4 7 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #4
Day Hour Count Jun 21 11 1 12 1 14 1 17 1 18 3 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 3844526 waits for ShareLock on transaction 278112264; blocked by process 3834385. Process 3834385 waits for ShareLock on transaction 278112250; blocked by process 3844526. Process 3844526: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=1028,"write_date"=(now() at time zone 'UTC') WHERE id IN (12672, 12617) Process 3834385: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225750 AND warehouse_id = 44 AND company_id = 1
Context: while updating tuple (6254,17) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=1028,"write_date"=(now() at time zone 'UTC') WHERE id IN (12672, 12617)Date: 2024-06-21 18:27:29
Detail: Process 3836787 waits for ShareLock on transaction 278114108; blocked by process 3877449. Process 3877449 waits for ShareLock on transaction 278114103; blocked by process 3836787. Process 3836787: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=990,"write_date"=(now() at time zone 'UTC') WHERE id IN (36578, 35396) Process 3877449: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(44.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 206034 AND warehouse_id = 45 AND company_id = 1
Context: while updating tuple (2196,26) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-06-21',"write_uid"=990,"write_date"=(now() at time zone 'UTC') WHERE id IN (36578, 35396)Date: 2024-06-21 18:34:46
Detail: Process 3837756 waits for ShareLock on transaction 277967374; blocked by process 3834807. Process 3834807 waits for ShareLock on transaction 277967370; blocked by process 3837756. Process 3837756: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 185946 AND warehouse_id = 44 Process 3834807: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((8.0 - 8.0) + (0.0 - 0.0), 0) ELSE GREATEST((8.0 - 8.0),0) END where product_id=185428 and warehouse_id=44 and company_id=1
Context: while updating tuple (1407,18) 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 = 185946 AND warehouse_id = 44Date: 2024-06-21 14:23:30
5 3 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Jun 21 15 3 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
Detail: Key (vin_sn)=(3h4ss4220m3109333) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "name", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 1008, (now() at time zone 'UTC'), 1008, (now() at time zone 'UTC'), '2024-06-21', true, 127, 0.0, 0.0, NULL, 1, NULL, 5, 34083, '2024-06-21', NULL, NULL, 0, 0.0, 'ax5650', NULL, 959, 319, 31, NULL, '9333', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '9333', '3h4ss4220m3109333') RETURNING idDate: 2024-06-21 15:51:27
6 2 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Jun 21 14 2 - ERROR: syntax error at or near "409" at character 104
Statement: select max(id) from sale_history_line where (product_name is not null and product_name ilike '5" X 25' 409 Stainless Flex' and inventory_short_vendor_name ='Grand Rock') or (product_id=247069) group by product_name
Date: 2024-06-21 14:32:10
7 2 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #7
Day Hour Count Jun 21 12 1 13 1 - ERROR: process 3834818 still waiting for ExclusiveLock on tuple (4823,14) of relation 42418 of database 65946 after 1000.048 ms
- ERROR: process 3844518 still waiting for ExclusiveLock on tuple (4090,22) of relation 42418 of database 65946 after 1000.063 ms
Detail: Process holding the lock: 3844511. Wait queue: 3834818.
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5518672,"write_uid"=1045,"write_date"=(now() at time zone 'UTC') WHERE id IN (1490182)Date: 2024-06-21 13:45:48
Detail: Process holding the lock: 3836790. Wait queue: 3844518.
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 != 1489654 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 != 1489654 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-06-21 12:48:30
8 1 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #8
Day Hour Count Jun 21 13 1 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM stock_inventory_line WHERE id IN (3048100, 3048101)
Date: 2024-06-21 13:33:52
9 1 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #9
Day Hour Count Jun 21 15 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (268871, null, cb1/2x8, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1012, 2024-06-21 15:30:37.824025, 1012, 2024-06-21 15:30:37.824025, 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, 481490, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-06-21, 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'), 1012, (now() at time zone 'UTC'), 1012, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-06-21', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'cb1/2x8', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 481490, 1, 1) RETURNING idDate: 2024-06-21 15:30:37