-
Global information
- Generated on Tue May 14 00:50:08 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 316,252 log entries in 7s
- Log start from 2024-05-13 00:00:03 to 2024-05-13 23:59:52
-
Overview
Global Stats
- 1,464 Number of unique normalized queries
- 109,734 Number of queries
- 12h22m51s Total query duration
- 2024-05-13 00:00:03 First query
- 2024-05-13 23:59:52 Last query
- 83 queries/s at 2024-05-13 15:26:11 Query peak
- 12h22m51s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 12h22m51s Execute total duration
- 1,291 Number of events
- 7 Number of unique normalized events
- 796 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
- 109,734 Average queries per session
- 12h22m51s 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
- 83 queries/s Query Peak
- 2024-05-13 15:26:11 Date
SELECT Traffic
Key values
- 83 queries/s Query Peak
- 2024-05-13 15:26:11 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2024-05-13 13:27:59 Date
Queries duration
Key values
- 12h22m51s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 13 00 857 120ms 2s619ms 215ms 6s650ms 10s986ms 14s282ms 01 1,814 120ms 5s727ms 262ms 21s537ms 29s644ms 47s669ms 02 555 120ms 1s15ms 206ms 5s338ms 6s712ms 8s27ms 03 544 120ms 555ms 196ms 4s633ms 6s804ms 8s204ms 04 611 120ms 1s161ms 219ms 6s271ms 6s574ms 8s629ms 05 561 120ms 560ms 183ms 4s241ms 6s573ms 7s409ms 06 561 120ms 640ms 204ms 5s50ms 5s636ms 9s29ms 07 729 120ms 3s68ms 221ms 7s801ms 10s386ms 14s580ms 08 650 120ms 5s74ms 239ms 8s41ms 9s113ms 10s11ms 09 642 120ms 5m7s 1s505ms 53s877ms 1m56s 5m8s 10 804 120ms 34s39ms 426ms 13s762ms 31s338ms 1m1s 11 5,741 120ms 21s29ms 389ms 1m30s 2m13s 2m45s 12 9,842 120ms 1m28s 417ms 1m46s 2m4s 2m17s 13 17,562 120ms 31s515ms 407ms 3m16s 4m27s 8m32s 14 12,256 120ms 50s524ms 403ms 2m41s 3m20s 4m41s 15 9,679 120ms 50s20ms 399ms 2m3s 2m44s 4m31s 16 8,845 120ms 42s488ms 552ms 2m46s 2m52s 4m14s 17 9,517 120ms 39s243ms 433ms 2m16s 3m10s 3m27s 18 10,586 120ms 17s975ms 364ms 1m52s 2m9s 2m40s 19 8,901 120ms 16s628ms 414ms 2m4s 2m26s 4m28s 20 4,746 120ms 8s206ms 353ms 59s137ms 1m11s 1m32s 21 2,004 120ms 5s577ms 254ms 18s63ms 29s120ms 30s885ms 22 583 120ms 1s135ms 220ms 3s911ms 14s632ms 21s121ms 23 1,144 120ms 24s239ms 472ms 33s835ms 41s34ms 54s195ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 13 00 824 0 207ms 3s845ms 6s445ms 9s684ms 01 1,442 0 229ms 7s319ms 12s201ms 21s490ms 02 555 0 206ms 3s145ms 5s338ms 7s726ms 03 544 0 196ms 2s379ms 4s633ms 6s982ms 04 607 0 218ms 3s647ms 6s271ms 8s305ms 05 561 0 183ms 2s958ms 4s241ms 6s796ms 06 560 0 204ms 3s227ms 5s50ms 7s244ms 07 729 0 221ms 3s979ms 7s801ms 12s259ms 08 613 0 212ms 3s211ms 5s161ms 8s502ms 09 536 106 1s505ms 5s574ms 52s631ms 2m4s 10 801 0 397ms 5s248ms 11s954ms 37s36ms 11 4,961 0 379ms 45s881ms 1m10s 2m29s 12 8,302 0 393ms 1m19s 1m31s 2m1s 13 14,320 0 357ms 1m48s 2m48s 4m26s 14 10,265 0 397ms 1m35s 2m29s 4m18s 15 8,120 0 354ms 1m10s 1m42s 3m17s 16 7,568 0 549ms 1m40s 2m25s 3m31s 17 7,589 0 406ms 1m19s 1m42s 2m13s 18 8,726 0 330ms 1m17s 1m31s 1m45s 19 7,326 0 388ms 1m25s 1m42s 2m21s 20 3,940 0 332ms 33s281ms 49s715ms 1m8s 21 1,695 0 233ms 13s351ms 16s265ms 26s592ms 22 568 0 214ms 1s749ms 3s284ms 15s360ms 23 1,053 0 213ms 6s237ms 9s911ms 17s415ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 13 00 15 18 0 0 414ms 0ms 0ms 1s423ms 01 156 216 0 0 393ms 1s441ms 6s439ms 10s328ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 346ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 1 0 0 0 121ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 37 0 0 682ms 0ms 0ms 4s517ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 2 1 0 8s160ms 0ms 0ms 0ms 11 84 685 8 0 453ms 5s261ms 9s179ms 17s451ms 12 78 1,405 44 0 545ms 13s236ms 17s910ms 27s559ms 13 128 3,016 87 0 627ms 32s971ms 48s389ms 1m21s 14 80 1,861 42 0 432ms 12s754ms 20s277ms 40s973ms 15 54 1,473 29 0 630ms 16s527ms 23s750ms 38s367ms 16 87 1,157 25 0 570ms 10s17ms 19s195ms 33s627ms 17 107 1,747 70 0 541ms 11s54ms 21s203ms 1m 18 87 1,702 60 0 525ms 13s373ms 24s701ms 51s 19 83 1,456 30 0 534ms 14s46ms 20s165ms 38s763ms 20 25 774 6 0 454ms 5s258ms 9s560ms 16s567ms 21 31 277 1 0 372ms 1s863ms 3s639ms 7s672ms 22 0 15 0 0 460ms 0ms 0ms 1s933ms 23 2 8 81 0 3s470ms 0ms 11s975ms 30s952ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare May 13 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second May 13 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time May 13 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time May 13 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync May 13 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) May 13 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate May 13 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size May 13 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs May 13 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
- 31 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 2m46s 2m46s 2m46s 2m46s update "bus_presence" set "last_poll" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-05-13 04:08:28' WHERE id IN (222);
Date: 2024-05-13 04:11:14
2 20 1m46s 1s239ms 38s637ms 5s309ms 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 != 1408022 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 != 1408022 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-05-13 20:27:29
3 6 52s652ms 1s328ms 42s839ms 8s775ms 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" = 5412486, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (1405590);
Date: 2024-05-13 12:58:55
4 1 24s602ms 24s602ms 24s602ms 24s602ms update "bus_presence" set "last_poll" = ?, "last_presence" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-05-13 12:30:20', "last_presence" = '2024-05-13 12:25:59.539949' WHERE id IN (98);
Date: 2024-05-13 12:30:45
5 1 7s334ms 7s334ms 7s334ms 7s334ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '3b12197e-724e-49bf-9b12-3621393d5aea', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1405915);
Date: 2024-05-13 13:46:30
6 1 4s390ms 4s390ms 4s390ms 4s390ms update "stock_move_line" set "qty_done" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_move_line" SET "qty_done" = '3.00', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (950824, 950829, 950815);
Date: 2024-05-13 12:02:08
7 1 2s547ms 2s547ms 2s547ms 2s547ms insert into "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") values (nextval(?), null, ?, ?, ?) returning id;-
INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 46045, 138670, 'sale.order') RETURNING id;
Date: 2024-05-13 12:46:47
Queries that waited the most
Rank Wait time Query 1 2m46s UPDATE "bus_presence" SET "last_poll" = '2024-05-13 04:08:28' WHERE id IN (222);[ Date: 2024-05-13 04:11:14 ]
2 42s839ms UPDATE "account_move" SET "message_main_attachment_id" = 5413688, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (1406625);[ Date: 2024-05-13 16:01:39 ]
3 38s637ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406123 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406123 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 14:38:06 ]
4 24s602ms UPDATE "bus_presence" SET "last_poll" = '2024-05-13 12:30:20', "last_presence" = '2024-05-13 12:25:59.539949' WHERE id IN (98);[ Date: 2024-05-13 12:30:45 ]
5 9s184ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406250 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406250 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 15:07:42 ]
6 8s631ms 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 != 1218809 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 != 1218809 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 13:46:14 ]
7 7s334ms UPDATE "account_move" SET "access_token" = '3b12197e-724e-49bf-9b12-3621393d5aea', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1405915);[ Date: 2024-05-13 13:46:30 ]
8 5s113ms 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 != 1405916 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 != 1405916 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 13:46:14 ]
9 4s953ms 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 != 1407032 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 != 1407032 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 17:39:10 ]
10 4s924ms 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 != 1406776 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 != 1406776 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 16:39:10 ]
11 4s594ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1405512 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1405512 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 12:44:53 ]
12 4s390ms UPDATE "stock_move_line" SET "qty_done" = '3.00', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (950824, 950829, 950815);[ Date: 2024-05-13 12:02:08 ]
13 3s696ms UPDATE "account_move" SET "message_main_attachment_id" = 5412322, "write_uid" = 1047, "write_date" = (now() at time zone 'UTC') WHERE id IN (1405462);[ Date: 2024-05-13 12:34:06 ]
14 3s541ms 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 != 1296543 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 != 1296543 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 14:33:42 ]
15 3s512ms 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 != 1405337 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 != 1405337 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 12:15:06 ]
16 3s478ms 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 != 1222015 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 != 1222015 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 13:49:45 ]
17 3s257ms 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 != 1406527 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 != 1406527 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 15:47:33 ]
18 3s70ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1405474 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1405474 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 12:37:05 ]
19 2s861ms 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 != 1407835 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 != 1407835 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-13 19:32:50 ]
20 2s547ms INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 46045, 138670, 'sale.order') RETURNING id;[ Date: 2024-05-13 12:46:47 ]
-
Queries
Queries by type
Key values
- 92,205 Total read queries
- 17,529 Total write queries
Queries by database
Key values
- unknown Main database
- 109,734 Requests
- 12h22m51s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 109,803 Requests
User Request type Count Duration unknown Total 109,803 12h23m3s copy to 106 14m16s cte 61 14s460ms delete 484 18m46s insert 1,018 5m10s select 92,274 9h27m42s tcl 7 5s700ms update 15,853 2h16m47s Duration by user
Key values
- 12h23m3s (unknown) Main time consuming user
User Request type Count Duration unknown Total 109,803 12h23m3s copy to 106 14m16s cte 61 14s460ms delete 484 18m46s insert 1,018 5m10s select 92,274 9h27m42s tcl 7 5s700ms update 15,853 2h16m47s Queries by host
Key values
- unknown Main host
- 109,803 Requests
- 12h23m3s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 109,734 Requests
- 12h22m51s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-05-13 19:41:59 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 88,093 100-500ms duration
Slowest individual queries
Rank Duration Query 1 5m7s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-05-13 09:10:56 ]
2 1m55s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-05-13 09:05:47 ]
3 1m54s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-05-13 09:03:42 ]
4 1m28s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (265657)) ORDER BY "item_list_line"."id";[ Date: 2024-05-13 12:52:24 ]
5 50s524ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 14:54:36 ]
6 50s20ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 15:01:51 ]
7 49s988ms 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-05-13 09:14:26 ]
8 48s286ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 14:59:07 ]
9 47s657ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 14:55:28 ]
10 42s488ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:24:19 ]
11 42s171ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:24:16 ]
12 40s828ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:24:37 ]
13 40s558ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:23:52 ]
14 40s437ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:43:16 ]
15 40s127ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:43:26 ]
16 39s462ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:25:03 ]
17 39s243ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 17:05:58 ]
18 38s963ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:52:54 ]
19 38s914ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 17:06:52 ]
20 38s881ms SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;[ Date: 2024-05-13 16:33:27 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h7m24s 35,394 120ms 2s790ms 317ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 13 00 193 43s627ms 226ms 01 148 43s827ms 296ms 02 142 32s605ms 229ms 03 100 25s232ms 252ms 04 158 43s236ms 273ms 05 155 27s534ms 177ms 06 111 27s162ms 244ms 07 261 1m3s 241ms 08 115 31s248ms 271ms 09 94 23s764ms 252ms 10 150 39s365ms 262ms 11 1,238 4m16s 206ms 12 3,344 16m29s 296ms 13 5,063 27m6s 321ms 14 4,147 27m32s 398ms 15 3,623 23m6s 382ms 16 3,755 19m26s 310ms 17 3,405 15m40s 276ms 18 3,584 17m42s 296ms 19 2,973 18m38s 376ms 20 1,438 5m53s 245ms 21 511 1m45s 205ms 22 288 1m10s 243ms 23 398 1m55s 289ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 14:47:13') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",51732]', '["pointspring_master","res.partner",51732]', '["pointspring_master","ir.needaction",51732]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 14:48:05 Duration: 2s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s785ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s757ms
2 45m28s 3,578 628ms 3s52ms 762ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 13 11 210 2m28s 705ms 12 293 3m35s 734ms 13 778 10m40s 822ms 14 307 3m55s 766ms 15 265 3m18s 750ms 16 342 4m16s 750ms 17 368 4m42s 766ms 18 376 4m46s 762ms 19 404 5m1s 747ms 20 222 2m34s 696ms 21 4 2s663ms 665ms 23 9 6s32ms 670ms -
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 ('%%k132%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k132%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k132%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 13:41:55 Duration: 3s52ms
-
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 ('%%81%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%81-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%81-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 14:26:16 Duration: 2s293ms
-
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 ('%%34%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3/4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3/4%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 19:02:58 Duration: 2s292ms
3 37m6s 58 35s348ms 50s524ms 38s380ms select partner.id as partner_id, ful.id as followup_level, case when partner.balance <= ? then ? when in_need_of_action_aml.id is not null and (prop_date.value_datetime is null or prop_date.value_datetime::date <= ?::date) then ? when exceeded_unreconciled_aml.id is not null then ? else ? end as followup_status from ( select partner.id, max(current_followup_level.delay) as followup_delay, sum(aml.balance) as balance from res_partner partner join account_move_line aml on aml.partner_id = partner.id join account_account account on account.id = aml.account_id join account_move move on move.id = aml.move_id left join lateral ( select coalesce(next_ful.id, ful.id) as id, coalesce(next_ful.delay, ful.delay) as delay from account_move_line line left outer join account_followup_followup_line ful on ful.id = aml.followup_line_id left outer join account_followup_followup_line next_ful on next_ful.id = ( select next_ful.id from account_followup_followup_line next_ful where next_ful.delay > coalesce(ful.delay, ?) and coalesce(aml.date_maturity, aml.date) + next_ful.delay <= ?::date and next_ful.company_id = ? order by next_ful.delay asc limit ?) where line.id = aml.id and aml.partner_id = partner.id and aml.balance > ?) current_followup_level on true where account.deprecated is not true and account.internal_type = ? and move.state = ? and aml.reconciled is not true and aml.blocked is false and aml.company_id = ? group by partner.id) partner left join account_followup_followup_line ful on ful.delay = partner.followup_delay and ful.company_id = ? left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id left join account_followup_followup_line ful on ful.id = line.followup_line_id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(ful.delay, ?) < partner.followup_delay and coalesce(line.date_maturity, line.date) + coalesce(ful.delay, ?) <= ?::date limit ?) in_need_of_action_aml on true left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(line.date_maturity, line.date) <= ?::date limit ?) exceeded_unreconciled_aml on true left outer join ir_property prop_date on prop_date.res_id = concat(?, partner.id) and prop_date.name = ? and prop_date.company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 13 14 3 2m26s 48s822ms 15 1 50s20ms 50s20ms 16 38 23m56s 37s805ms 17 16 9m52s 37s61ms -
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 14:54:36 Duration: 50s524ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 15:01:51 Duration: 50s20ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 14:59:07 Duration: 48s286ms
4 19m48s 2,704 392ms 1s384ms 439ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 13 00 2 832ms 416ms 03 2 840ms 420ms 06 2 827ms 413ms 07 2 800ms 400ms 08 9 3s681ms 409ms 10 11 4s423ms 402ms 11 229 1m36s 420ms 12 310 2m14s 434ms 13 412 3m15s 473ms 14 294 2m9s 439ms 15 280 2m5s 449ms 16 274 1m58s 433ms 17 304 2m11s 431ms 18 263 1m54s 436ms 19 159 1m8s 431ms 20 102 42s778ms 419ms 21 35 14s269ms 407ms 22 9 3s597ms 399ms 23 5 2s34ms 406ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 13:20:17 Duration: 1s384ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 12:00:37 Duration: 1s186ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-eb53748/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 14:27:57 Duration: 1s92ms
5 18m18s 5,804 160ms 1s878ms 189ms 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 #5
Day Hour Count Duration Avg duration May 13 00 53 9s103ms 171ms 01 344 57s287ms 166ms 12 31 5s652ms 182ms 13 1,045 3m33s 204ms 14 1,235 3m58s 193ms 16 81 14s902ms 183ms 17 419 1m20s 191ms 18 929 2m53s 187ms 19 686 2m15s 197ms 20 470 1m21s 174ms 21 511 1m27s 172ms -
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 = 42043 and fd.product_id = 209734;
Date: 2024-05-13 14:41:57 Duration: 1s878ms
-
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 = 41998 and fd.product_id = 263358;
Date: 2024-05-13 13:36:20 Duration: 1s490ms
-
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 = 41717 and fd.product_id = 178549;
Date: 2024-05-13 19:38:52 Duration: 1s482ms
6 17m29s 1,134 816ms 2s577ms 925ms 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 #6
Day Hour Count Duration Avg duration May 13 00 2 1s656ms 828ms 10 8 6s611ms 826ms 11 47 41s206ms 876ms 12 100 1m31s 917ms 13 208 3m21s 969ms 14 126 1m57s 931ms 15 114 1m46s 937ms 16 132 2m2s 931ms 17 102 1m32s 910ms 18 169 2m33s 909ms 19 63 57s879ms 918ms 20 62 53s782ms 867ms 21 1 958ms 958ms -
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 ('%r803110%')) 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 ('%r803110%'))) 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 ('%r803110%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%r803110%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 16:02:06 Duration: 2s577ms
-
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 ('%43-1265%')) 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 ('%43-1265%'))) 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 ('%43-1265%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%43-1265%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 12:27:55 Duration: 2s300ms
-
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 ('%294241%')) 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 ('%294241%'))) 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 ('%294241%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%294241%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 14:46:23 Duration: 2s289ms
7 13m56s 5,763 134ms 678ms 145ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 13 00 240 33s152ms 138ms 01 240 33s96ms 137ms 02 240 33s104ms 137ms 03 240 33s137ms 138ms 04 240 33s119ms 137ms 05 240 33s51ms 137ms 06 240 32s987ms 137ms 07 240 33s42ms 137ms 08 240 33s91ms 137ms 09 240 33s302ms 138ms 10 240 33s150ms 138ms 11 240 35s258ms 146ms 12 240 36s976ms 154ms 13 240 39s716ms 165ms 14 240 37s713ms 157ms 15 241 38s164ms 158ms 16 240 37s721ms 157ms 17 241 37s121ms 154ms 18 241 37s545ms 155ms 19 240 37s462ms 156ms 20 240 34s325ms 143ms 21 240 33s565ms 139ms 22 240 33s317ms 138ms 23 240 33s248ms 138ms -
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_shdescription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_cast', 'pg_catalog.pg_rules', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_inherits', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_collation', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_roles', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_opclass', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_tables', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_proc', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_conversion', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_namespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_settings', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_depend', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_transform', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'information_schema.constraint_column_usage', 'information_schema.key_column_usage', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.column_domain_usage', 'information_schema.domains', 'information_schema.table_constraints', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.domain_constraints', 'information_schema.schemata', 'information_schema.routine_table_usage', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.sql_implementation_info', 'information_schema.udt_privileges', 'information_schema.foreign_servers', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.attributes', 'information_schema.routines', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.character_sets', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.column_options', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrapper_options', 'information_schema.role_column_grants', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 15:49:06 Duration: 678ms
-
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_config', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_operator', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opclass', 'pg_catalog.pg_transform', 'pg_catalog.pg_inherits', 'pg_catalog.pg_am', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_language', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_enum', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_amop', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_sequence', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_index', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_database_conflicts', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.role_udt_grants', 'information_schema.user_mapping_options', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.routine_privileges', 'information_schema.triggered_update_columns', 'information_schema.data_type_privileges', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.key_column_usage', 'information_schema.sql_features', 'information_schema.role_column_grants', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.parameters', 'information_schema.user_defined_types', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.triggers', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.collations', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.column_options', 'information_schema.role_table_grants', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.foreign_table_options', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 11:38:21 Duration: 677ms
-
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_language', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_policies', 'pg_catalog.pg_attribute', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_operator', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_proc', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_range', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_namespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_enum', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_description', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_inherits', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.role_table_grants', 'information_schema.domain_udt_usage', 'information_schema.character_sets', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.routine_routine_usage', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.foreign_table_options', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.columns', 'information_schema.table_constraints', 'information_schema.view_table_usage', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.user_mappings', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.usage_privileges', 'information_schema.foreign_servers', 'information_schema.key_column_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 14:46:22 Duration: 654ms
8 11m35s 156 1s699ms 31s515ms 4s460ms delete from account_move_line where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 13 11 1 3s614ms 3s614ms 12 28 1m21s 2s907ms 13 25 2m28s 5s957ms 14 8 54s516ms 6s814ms 15 7 19s456ms 2s779ms 16 6 1m11s 11s964ms 17 11 29s169ms 2s651ms 19 1 6s998ms 6s998ms 23 69 4m39s 4s57ms -
DELETE FROM account_move_line WHERE id IN (4910417, 4910418, 4910419, 4910420, 4910421, 4910422, 4910423, 4910424, 4910425, 4910426, 4910427, 4910428, 4910429, 4910430, 4910431, 4910464, 4910465);
Date: 2024-05-13 13:44:06 Duration: 31s515ms
-
DELETE FROM account_move_line WHERE id IN (4673227, 4673228, 4673229, 4673230, 4673231, 4673232, 4673233, 4673234, 4673235, 4673236, 4673237, 4673238, 4673239, 4673240, 4673241, 4917650, 4917651);
Date: 2024-05-13 14:37:52 Duration: 31s454ms
-
DELETE FROM account_move_line WHERE id IN (4910051, 4910052, 4910053, 4910054, 4910055, 4910056, 4910057, 4919889, 4919890, 4919891, 4919892, 4919895, 4919896, 4919897);
Date: 2024-05-13 23:30:56 Duration: 24s239ms
9 11m13s 672 323ms 5s548ms 1s2ms update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 13 08 7 6s275ms 896ms 11 21 19s810ms 943ms 12 100 1m43s 1s35ms 13 106 1m52s 1s64ms 14 61 54s108ms 887ms 15 123 2m4s 1s14ms 16 87 1m29s 1s27ms 17 40 37s230ms 930ms 18 33 31s293ms 948ms 19 34 30s663ms 901ms 20 53 57s230ms 1s79ms 21 7 6s260ms 894ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 4.0, "date" = '2024-05-13 20:10:56', "is_done" = true, "state" = 'done', "write_uid" = 1017, "write_date" = (now() at time zone 'UTC') WHERE id IN (933969, 933971, 933975, 933967);
Date: 2024-05-13 20:11:08 Duration: 5s548ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2024-05-13 16:44:02', "is_done" = true, "state" = 'done', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (945893, 945895);
Date: 2024-05-13 16:44:08 Duration: 3s245ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 4.0, "date" = '2024-05-13 16:49:07', "is_done" = true, "state" = 'done', "write_uid" = 1017, "write_date" = (now() at time zone 'UTC') WHERE id IN (926555, 926556, 926557);
Date: 2024-05-13 16:49:13 Duration: 2s989ms
10 9m57s 3,437 120ms 1s531ms 173ms 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 #10
Day Hour Count Duration Avg duration May 13 00 14 2s8ms 143ms 01 210 36s263ms 172ms 08 3 472ms 157ms 10 6 805ms 134ms 11 377 2m18s 366ms 12 200 28s341ms 141ms 13 711 1m46s 150ms 14 286 44s521ms 155ms 15 228 30s885ms 135ms 16 216 31s746ms 146ms 17 293 41s997ms 143ms 18 366 53s132ms 145ms 19 299 49s675ms 166ms 20 149 20s253ms 135ms 21 77 11s988ms 155ms 22 1 120ms 120ms 23 1 122ms 122ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (248195)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 14:48:04 Duration: 1s531ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (246786, 210246, 210206, 210189, 210149, 210147, 210142)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 14:46:22 Duration: 1s470ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (238944)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 16:16:13 Duration: 1s98ms
11 8m43s 868 159ms 2s591ms 602ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 13 08 7 4s199ms 599ms 11 28 21s33ms 751ms 12 113 1m11s 631ms 13 167 1m50s 661ms 14 94 54s855ms 583ms 15 77 47s749ms 620ms 16 67 36s729ms 548ms 17 113 1m4s 571ms 18 86 46s850ms 544ms 19 59 32s614ms 552ms 20 44 25s658ms 583ms 21 10 5s850ms 585ms 22 3 1s402ms 467ms -
UPDATE "stock_quant" SET "quantity" = 1.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (449321, 406724, 142700, 352941);
Date: 2024-05-13 13:07:50 Duration: 2s591ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (479113, 479114);
Date: 2024-05-13 13:08:12 Duration: 2s476ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (479569, 479571, 479573, 479575, 479577);
Date: 2024-05-13 17:38:57 Duration: 2s388ms
12 8m25s 661 642ms 3s156ms 764ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 13 12 135 1m39s 738ms 13 197 2m37s 797ms 14 108 1m19s 740ms 15 90 1m12s 808ms 16 22 16s298ms 740ms 17 23 16s856ms 732ms 18 30 23s100ms 770ms 19 44 31s159ms 708ms 20 12 8s502ms 708ms -
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 ('%%lw1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 3s156ms
-
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 ('%%lw1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1/%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1/%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 2s957ms
-
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 ('%%lw12%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1/2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1/2%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 2s742ms
13 8m17s 867 149ms 8s897ms 573ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 13 00 4 3s737ms 934ms 01 25 36s962ms 1s478ms 11 74 49s830ms 673ms 12 65 43s436ms 668ms 13 144 1m16s 534ms 14 79 39s108ms 495ms 15 73 39s679ms 543ms 16 60 26s43ms 434ms 17 85 40s374ms 474ms 18 91 47s236ms 519ms 19 81 48s330ms 596ms 20 52 27s515ms 529ms 21 33 17s913ms 542ms 23 1 165ms 165ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (945184, 945185, 945186, 945187, 945188, 945189, 945190, 945173, 945174, 945175, 945176, 945177, 945179, 945180, 945181, 945182, 945183);
Date: 2024-05-13 13:03:59 Duration: 8s897ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (944784, 944786, 944788, 944789, 944790, 944792, 944794, 944796, 944798);
Date: 2024-05-13 01:38:21 Duration: 5s727ms
-
UPDATE "stock_move" SET "state" = 'waiting', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (945025, 945027, 945021, 945022, 945023);
Date: 2024-05-13 12:04:48 Duration: 5s609ms
14 7m32s 115 331ms 31s137ms 3s937ms update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 13 11 1 761ms 761ms 12 8 28s941ms 3s617ms 13 21 50s352ms 2s397ms 14 13 30s999ms 2s384ms 15 20 52s834ms 2s641ms 16 5 24s627ms 4s925ms 17 16 3m7s 11s720ms 18 17 1m 3s571ms 19 11 13s258ms 1s205ms 21 2 2s 1s 22 1 790ms 790ms -
UPDATE "stock_move" SET "date" = '2024-05-13 17:53:15', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:53:46 Duration: 31s137ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:55:26', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:55:54 Duration: 27s998ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:56:33', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:57:00 Duration: 27s1ms
15 6m59s 2,900 120ms 536ms 144ms 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 May 13 11 119 18s950ms 159ms 12 552 1m15s 136ms 13 800 2m8s 160ms 14 187 25s368ms 135ms 15 505 1m10s 139ms 16 98 13s407ms 136ms 17 228 32s496ms 142ms 18 241 32s749ms 135ms 19 135 18s383ms 136ms 20 35 4s560ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 188188)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:56 Duration: 536ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 189291)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:54 Duration: 507ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 183340)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:53 Duration: 503ms
16 6m39s 1,787 181ms 1s821ms 223ms 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 May 13 00 1 300ms 300ms 10 9 1s783ms 198ms 11 87 18s442ms 211ms 12 156 33s682ms 215ms 13 258 1m5s 252ms 14 211 47s904ms 227ms 15 152 33s295ms 219ms 16 202 44s457ms 220ms 17 164 36s961ms 225ms 18 225 49s307ms 219ms 19 177 37s971ms 214ms 20 119 24s723ms 207ms 21 26 5s118ms 196ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (172085))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:34:26 Duration: 1s821ms
-
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 (210246))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 14:56:25 Duration: 1s199ms
-
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 (216274))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:27:22 Duration: 1s195ms
17 6m15s 310 991ms 4s136ms 1s211ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?)))) order by coalesce("product_template"."is_published", false) desc, "product_template"."website_sequence" asc, "product_template"."id" desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 13 01 4 4s11ms 1s2ms 10 12 12s99ms 1s8ms 11 79 1m25s 1s80ms 12 41 45s574ms 1s111ms 13 50 1m26s 1s727ms 14 37 47s182ms 1s275ms 15 3 3s305ms 1s101ms 16 13 14s531ms 1s117ms 17 36 39s418ms 1s94ms 18 13 14s276ms 1s98ms 19 18 19s359ms 1s75ms 20 2 2s63ms 1s31ms 22 2 2s17ms 1s8ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%a4515%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4515%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%a4515%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%a4515%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%a4515%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%a4515%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:34:26 Duration: 4s136ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%489xfahx-%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%489xfahx-%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%489xfahx-%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%489xfahx-%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%489xfahx-%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%489xfahx-%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:14:00 Duration: 4s52ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%489xfahx%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%489xfahx%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%489xfahx%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%489xfahx%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%489xfahx%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%489xfahx%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:14:00 Duration: 4s23ms
18 6m4s 622 157ms 5s999ms 585ms update "stock_quant" set "quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 13 08 1 157ms 157ms 11 7 2s987ms 426ms 12 71 32s883ms 463ms 13 71 35s133ms 494ms 14 29 14s55ms 484ms 15 113 1m3s 565ms 16 52 35s33ms 673ms 17 112 1m17s 693ms 18 83 49s771ms 599ms 19 60 39s372ms 656ms 20 21 12s581ms 599ms 21 2 630ms 315ms -
UPDATE "stock_quant" SET "quantity" = 2.0, "write_uid" = 1297, "write_date" = (now() at time zone 'UTC') WHERE id IN (417996, 417997, 143183, 143090, 143028, 358836, 237589, 429111, 358841, 348763, 237595, 358844, 143262);
Date: 2024-05-13 19:28:20 Duration: 5s999ms
-
UPDATE "stock_quant" SET "quantity" = 3.0, "write_uid" = 1297, "write_date" = (now() at time zone 'UTC') WHERE id IN (443937, 451139, 443934, 143053, 471566, 471568, 471570, 413822);
Date: 2024-05-13 19:28:23 Duration: 3s810ms
-
UPDATE "stock_quant" SET "quantity" = 4.0, "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (325536, 401002, 401003, 471732, 478268, 414815);
Date: 2024-05-13 17:54:01 Duration: 3s356ms
19 6m2s 345 165ms 5s776ms 1s51ms update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 13 08 1 792ms 792ms 11 9 15s653ms 1s739ms 12 36 36s627ms 1s17ms 13 53 55s968ms 1s56ms 14 36 40s490ms 1s124ms 15 22 25s443ms 1s156ms 16 27 25s973ms 961ms 17 65 1m5s 1s13ms 18 60 1m 1s7ms 19 23 23s489ms 1s21ms 20 9 8s128ms 903ms 21 2 2s315ms 1s157ms 22 2 1s553ms 776ms -
UPDATE "stock_move" SET "date" = '2024-05-13 17:21:53', "is_done" = true, "state" = 'done', "write_uid" = 1280, "write_date" = (now() at time zone 'UTC') WHERE id IN (931488, 931490, 931491, 931492, 931493, 931494, 931487);
Date: 2024-05-13 17:22:01 Duration: 5s776ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 11:50:39', "is_done" = true, "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (944967, 944968, 944969, 944970, 944971);
Date: 2024-05-13 11:50:44 Duration: 4s298ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:38:48', "is_done" = true, "state" = 'done', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (931430, 931279, 931383, 931384, 931355);
Date: 2024-05-13 17:38:55 Duration: 4s81ms
20 5m53s 313 164ms 13s325ms 1s129ms update "stock_move" set "branch_id" = ?, "picking_id" = ?, "related_core_purchase_line_id" = ?, "related_core_repair_line_id" = ?, "related_core_sale_line_id" = ?, "scrapped" = false, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 13 11 21 29s247ms 1s392ms 12 32 38s614ms 1s206ms 13 54 1m21s 1s507ms 14 29 32s320ms 1s114ms 15 29 32s626ms 1s125ms 16 28 31s477ms 1s124ms 17 30 24s359ms 811ms 18 33 30s699ms 930ms 19 33 30s480ms 923ms 20 21 20s316ms 967ms 21 2 928ms 464ms 23 1 904ms 904ms -
UPDATE "stock_move" SET "branch_id" = 44, "picking_id" = 410337, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (945312, 945313, 945314, 945315, 945316, 945317, 945318, 945319, 945320, 945321, 945322, 945323, 945307, 945308, 945309, 945310, 945311);
Date: 2024-05-13 13:27:51 Duration: 13s325ms
-
UPDATE "stock_move" SET "branch_id" = 37, "picking_id" = 410156, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (944992, 944993, 944994, 944985, 944986, 944987, 944988, 944989, 944990, 944991);
Date: 2024-05-13 11:54:27 Duration: 4s929ms
-
UPDATE "stock_move" SET "branch_id" = 45, "picking_id" = 410340, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (945329, 945330, 945331, 945332, 945333, 945334);
Date: 2024-05-13 13:28:24 Duration: 4s859ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 35,394 3h7m24s 120ms 2s790ms 317ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 13 00 193 43s627ms 226ms 01 148 43s827ms 296ms 02 142 32s605ms 229ms 03 100 25s232ms 252ms 04 158 43s236ms 273ms 05 155 27s534ms 177ms 06 111 27s162ms 244ms 07 261 1m3s 241ms 08 115 31s248ms 271ms 09 94 23s764ms 252ms 10 150 39s365ms 262ms 11 1,238 4m16s 206ms 12 3,344 16m29s 296ms 13 5,063 27m6s 321ms 14 4,147 27m32s 398ms 15 3,623 23m6s 382ms 16 3,755 19m26s 310ms 17 3,405 15m40s 276ms 18 3,584 17m42s 296ms 19 2,973 18m38s 376ms 20 1,438 5m53s 245ms 21 511 1m45s 205ms 22 288 1m10s 243ms 23 398 1m55s 289ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 14:47:13') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",51732]', '["pointspring_master","res.partner",51732]', '["pointspring_master","ir.needaction",51732]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 14:48:05 Duration: 2s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s785ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s757ms
2 5,804 18m18s 160ms 1s878ms 189ms 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 #2
Day Hour Count Duration Avg duration May 13 00 53 9s103ms 171ms 01 344 57s287ms 166ms 12 31 5s652ms 182ms 13 1,045 3m33s 204ms 14 1,235 3m58s 193ms 16 81 14s902ms 183ms 17 419 1m20s 191ms 18 929 2m53s 187ms 19 686 2m15s 197ms 20 470 1m21s 174ms 21 511 1m27s 172ms -
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 = 42043 and fd.product_id = 209734;
Date: 2024-05-13 14:41:57 Duration: 1s878ms
-
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 = 41998 and fd.product_id = 263358;
Date: 2024-05-13 13:36:20 Duration: 1s490ms
-
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 = 41717 and fd.product_id = 178549;
Date: 2024-05-13 19:38:52 Duration: 1s482ms
3 5,763 13m56s 134ms 678ms 145ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 13 00 240 33s152ms 138ms 01 240 33s96ms 137ms 02 240 33s104ms 137ms 03 240 33s137ms 138ms 04 240 33s119ms 137ms 05 240 33s51ms 137ms 06 240 32s987ms 137ms 07 240 33s42ms 137ms 08 240 33s91ms 137ms 09 240 33s302ms 138ms 10 240 33s150ms 138ms 11 240 35s258ms 146ms 12 240 36s976ms 154ms 13 240 39s716ms 165ms 14 240 37s713ms 157ms 15 241 38s164ms 158ms 16 240 37s721ms 157ms 17 241 37s121ms 154ms 18 241 37s545ms 155ms 19 240 37s462ms 156ms 20 240 34s325ms 143ms 21 240 33s565ms 139ms 22 240 33s317ms 138ms 23 240 33s248ms 138ms -
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_shdescription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_attribute', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_cast', 'pg_catalog.pg_rules', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_inherits', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_collation', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_roles', 'pg_catalog.pg_amproc', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_opclass', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_tables', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_proc', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_extension', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_conversion', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_namespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_settings', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_depend', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_transform', 'information_schema.user_mapping_options', 'information_schema.foreign_tables', 'information_schema.constraint_column_usage', 'information_schema.key_column_usage', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.column_domain_usage', 'information_schema.domains', 'information_schema.table_constraints', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.domain_constraints', 'information_schema.schemata', 'information_schema.routine_table_usage', 'information_schema.view_column_usage', 'information_schema.foreign_table_options', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.sql_implementation_info', 'information_schema.udt_privileges', 'information_schema.foreign_servers', 'information_schema.data_type_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.routine_privileges', 'information_schema.routine_routine_usage', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.attributes', 'information_schema.routines', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.character_sets', 'information_schema.parameters', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.column_options', 'information_schema.sql_sizing', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrapper_options', 'information_schema.role_column_grants', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 15:49:06 Duration: 678ms
-
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_config', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_operator', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_opclass', 'pg_catalog.pg_transform', 'pg_catalog.pg_inherits', 'pg_catalog.pg_am', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_language', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_enum', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_amop', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_sequence', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_index', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_database_conflicts', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.role_udt_grants', 'information_schema.user_mapping_options', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.domain_constraints', 'information_schema.view_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.routine_privileges', 'information_schema.triggered_update_columns', 'information_schema.data_type_privileges', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.key_column_usage', 'information_schema.sql_features', 'information_schema.role_column_grants', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.parameters', 'information_schema.user_defined_types', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.triggers', 'information_schema.attributes', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.tables', 'information_schema.collations', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.column_options', 'information_schema.role_table_grants', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.foreign_table_options', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 11:38:21 Duration: 677ms
-
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_language', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_policies', 'pg_catalog.pg_attribute', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_operator', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_proc', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_conversion', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_range', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_database', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_namespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_enum', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_description', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_inherits', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.foreign_tables', 'information_schema.routine_table_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.role_table_grants', 'information_schema.domain_udt_usage', 'information_schema.character_sets', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.routine_routine_usage', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.foreign_table_options', 'information_schema.column_column_usage', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.columns', 'information_schema.table_constraints', 'information_schema.view_table_usage', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.user_mappings', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.usage_privileges', 'information_schema.foreign_servers', 'information_schema.key_column_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.referential_constraints', 'information_schema.sequences', 'information_schema.udt_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-13 14:46:22 Duration: 654ms
4 3,578 45m28s 628ms 3s52ms 762ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 13 11 210 2m28s 705ms 12 293 3m35s 734ms 13 778 10m40s 822ms 14 307 3m55s 766ms 15 265 3m18s 750ms 16 342 4m16s 750ms 17 368 4m42s 766ms 18 376 4m46s 762ms 19 404 5m1s 747ms 20 222 2m34s 696ms 21 4 2s663ms 665ms 23 9 6s32ms 670ms -
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 ('%%k132%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k132%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k132%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 13:41:55 Duration: 3s52ms
-
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 ('%%81%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%81-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%81-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 14:26:16 Duration: 2s293ms
-
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 ('%%34%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3/4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3/4%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 19:02:58 Duration: 2s292ms
5 3,437 9m57s 120ms 1s531ms 173ms 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 #5
Day Hour Count Duration Avg duration May 13 00 14 2s8ms 143ms 01 210 36s263ms 172ms 08 3 472ms 157ms 10 6 805ms 134ms 11 377 2m18s 366ms 12 200 28s341ms 141ms 13 711 1m46s 150ms 14 286 44s521ms 155ms 15 228 30s885ms 135ms 16 216 31s746ms 146ms 17 293 41s997ms 143ms 18 366 53s132ms 145ms 19 299 49s675ms 166ms 20 149 20s253ms 135ms 21 77 11s988ms 155ms 22 1 120ms 120ms 23 1 122ms 122ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (248195)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 14:48:04 Duration: 1s531ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (246786, 210246, 210206, 210189, 210149, 210147, 210142)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 14:46:22 Duration: 1s470ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (238944)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 16:16:13 Duration: 1s98ms
6 2,900 6m59s 120ms 536ms 144ms 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 #6
Day Hour Count Duration Avg duration May 13 11 119 18s950ms 159ms 12 552 1m15s 136ms 13 800 2m8s 160ms 14 187 25s368ms 135ms 15 505 1m10s 139ms 16 98 13s407ms 136ms 17 228 32s496ms 142ms 18 241 32s749ms 135ms 19 135 18s383ms 136ms 20 35 4s560ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 188188)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:56 Duration: 536ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 189291)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:54 Duration: 507ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 183340)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-13 11:57:53 Duration: 503ms
7 2,704 19m48s 392ms 1s384ms 439ms 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 May 13 00 2 832ms 416ms 03 2 840ms 420ms 06 2 827ms 413ms 07 2 800ms 400ms 08 9 3s681ms 409ms 10 11 4s423ms 402ms 11 229 1m36s 420ms 12 310 2m14s 434ms 13 412 3m15s 473ms 14 294 2m9s 439ms 15 280 2m5s 449ms 16 274 1m58s 433ms 17 304 2m11s 431ms 18 263 1m54s 436ms 19 159 1m8s 431ms 20 102 42s778ms 419ms 21 35 14s269ms 407ms 22 9 3s597ms 399ms 23 5 2s34ms 406ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 13:20:17 Duration: 1s384ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 12:00:37 Duration: 1s186ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-eb53748/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 14:27:57 Duration: 1s92ms
8 1,958 5m51s 150ms 1s44ms 179ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 13 12 5 1s65ms 213ms 13 618 1m59s 192ms 14 635 1m50s 173ms 16 24 4s217ms 175ms 17 160 27s523ms 172ms 18 200 34s307ms 171ms 19 126 23s398ms 185ms 20 98 16s302ms 166ms 21 92 15s96ms 164ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209436) and warehouse_id = (42));
Date: 2024-05-13 13:51:25 Duration: 1s44ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (173641) and warehouse_id = (42));
Date: 2024-05-13 19:52:15 Duration: 656ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (173394) and warehouse_id = (42));
Date: 2024-05-13 19:52:16 Duration: 511ms
9 1,787 6m39s 181ms 1s821ms 223ms 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 May 13 00 1 300ms 300ms 10 9 1s783ms 198ms 11 87 18s442ms 211ms 12 156 33s682ms 215ms 13 258 1m5s 252ms 14 211 47s904ms 227ms 15 152 33s295ms 219ms 16 202 44s457ms 220ms 17 164 36s961ms 225ms 18 225 49s307ms 219ms 19 177 37s971ms 214ms 20 119 24s723ms 207ms 21 26 5s118ms 196ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (172085))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:34:26 Duration: 1s821ms
-
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 (210246))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 14:56:25 Duration: 1s199ms
-
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 (216274))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:27:22 Duration: 1s195ms
10 1,334 4m10s 161ms 906ms 188ms 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 #10
Day Hour Count Duration Avg duration May 13 08 4 673ms 168ms 10 2 334ms 167ms 11 78 14s13ms 179ms 12 142 26s449ms 186ms 13 196 38s339ms 195ms 14 136 26s781ms 196ms 15 229 42s976ms 187ms 16 164 30s330ms 184ms 17 110 20s500ms 186ms 18 133 25s550ms 192ms 19 86 15s145ms 176ms 20 47 8s653ms 184ms 21 5 860ms 172ms 22 2 330ms 165ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%alexander%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%alexander%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%alexander%')))) 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 ('%alexander%') OR unaccent (res_partner.display_name) ilike unaccent ('%alexander%') OR unaccent (res_partner.ref) ilike unaccent ('%alexander%') OR unaccent (res_partner.vat) ilike unaccent ('alexander')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%alexander%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 15:38:02 Duration: 906ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%n-04737%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%n-04737%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%n-04737%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%n-04737%') OR unaccent (res_partner.display_name) ilike unaccent ('%n-04737%') OR unaccent (res_partner.ref) ilike unaccent ('%n-04737%') OR unaccent (res_partner.vat) ilike unaccent ('n-04737')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%n-04737%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 13:51:25 Duration: 861ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%13004%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%13004%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%13004%')))) 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 ('%13004%') OR unaccent (res_partner.display_name) ilike unaccent ('%13004%') OR unaccent (res_partner.ref) ilike unaccent ('%13004%') OR unaccent (res_partner.vat) ilike unaccent ('13004')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%13004%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 14:56:24 Duration: 792ms
11 1,227 4m10s 146ms 1s862ms 204ms 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 #11
Day Hour Count Duration Avg duration May 13 08 10 1s657ms 165ms 11 59 10s753ms 182ms 12 170 34s356ms 202ms 13 201 44s169ms 219ms 14 146 29s721ms 203ms 15 173 35s789ms 206ms 16 97 19s438ms 200ms 17 145 31s6ms 213ms 18 77 14s809ms 192ms 19 93 19s234ms 206ms 20 38 6s969ms 183ms 21 12 2s1ms 166ms 22 6 1s14ms 169ms -
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 (1407190)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 17:55:37 Duration: 1s862ms
-
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 (1407919)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 19:52:16 Duration: 1s345ms
-
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 (1406885)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 17:06:17 Duration: 1s98ms
12 1,217 2m54s 120ms 1s19ms 143ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_tmpl_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 13 00 2 308ms 154ms 10 1 125ms 125ms 11 45 6s65ms 134ms 12 71 10s210ms 143ms 13 224 32s158ms 143ms 14 137 20s524ms 149ms 15 107 16s215ms 151ms 16 176 24s710ms 140ms 17 121 17s123ms 141ms 18 134 19s668ms 146ms 19 139 18s438ms 132ms 20 58 8s672ms 149ms 21 2 250ms 125ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (188862)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 14:19:26 Duration: 1s19ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (206741)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 15:26:10 Duration: 1s15ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (239000)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-13 16:16:12 Duration: 749ms
13 1,149 2m51s 120ms 551ms 149ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 13 11 29 3s941ms 135ms 12 167 24s389ms 146ms 13 398 1m1s 154ms 14 58 8s223ms 141ms 15 177 27s36ms 152ms 16 8 1s25ms 128ms 17 119 18s389ms 154ms 18 124 17s309ms 139ms 19 67 9s63ms 135ms 20 2 308ms 154ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172218) 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" = '40')))))) 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-05-13 15:34:50 Duration: 551ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189835) 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" = '38')))))) 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-05-13 15:34:50 Duration: 407ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 181404) 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-05-13 15:09:01 Duration: 323ms
14 1,134 17m29s 816ms 2s577ms 925ms 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 #14
Day Hour Count Duration Avg duration May 13 00 2 1s656ms 828ms 10 8 6s611ms 826ms 11 47 41s206ms 876ms 12 100 1m31s 917ms 13 208 3m21s 969ms 14 126 1m57s 931ms 15 114 1m46s 937ms 16 132 2m2s 931ms 17 102 1m32s 910ms 18 169 2m33s 909ms 19 63 57s879ms 918ms 20 62 53s782ms 867ms 21 1 958ms 958ms -
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 ('%r803110%')) 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 ('%r803110%'))) 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 ('%r803110%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%r803110%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 16:02:06 Duration: 2s577ms
-
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 ('%43-1265%')) 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 ('%43-1265%'))) 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 ('%43-1265%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%43-1265%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 12:27:55 Duration: 2s300ms
-
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 ('%294241%')) 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 ('%294241%'))) 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 ('%294241%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%294241%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 14:46:23 Duration: 2s289ms
15 1,104 5m33s 282ms 654ms 302ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 13 00 84 24s454ms 291ms 01 78 23s272ms 298ms 02 45 13s306ms 295ms 03 48 14s83ms 293ms 04 75 22s3ms 293ms 05 48 14s68ms 293ms 06 66 19s496ms 295ms 07 57 16s671ms 292ms 08 51 15s19ms 294ms 09 72 21s39ms 292ms 10 78 22s932ms 294ms 11 69 21s10ms 304ms 12 39 12s875ms 330ms 13 9 2s897ms 321ms 14 141 44s983ms 319ms 15 81 25s894ms 319ms 16 27 8s805ms 326ms 20 33 10s185ms 308ms 23 3 868ms 289ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:57:16 Duration: 654ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:29:36 Duration: 615ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 12:22:36 Duration: 597ms
16 1,103 3m11s 148ms 499ms 173ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 13 00 2 319ms 159ms 01 23 3s628ms 157ms 11 87 14s473ms 166ms 12 104 17s862ms 171ms 13 195 35s60ms 179ms 14 93 16s75ms 172ms 15 102 18s207ms 178ms 16 74 12s849ms 173ms 17 119 20s693ms 173ms 18 125 21s413ms 171ms 19 105 18s241ms 173ms 20 56 9s358ms 167ms 21 17 2s799ms 164ms 23 1 165ms 165ms -
UPDATE "stock_quant" SET "reserved_quantity" = 1.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (163034, 210, 317332);
Date: 2024-05-13 15:43:15 Duration: 499ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 1.0, "write_uid" = 1047, "write_date" = (now() at time zone 'UTC') WHERE id IN (479566);
Date: 2024-05-13 19:36:08 Duration: 443ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 10.0, "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (279093);
Date: 2024-05-13 15:41:19 Duration: 303ms
17 1,014 3m47s 209ms 596ms 224ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 13 00 93 20s159ms 216ms 01 105 22s863ms 217ms 02 51 11s139ms 218ms 03 33 7s112ms 215ms 04 51 11s30ms 216ms 05 51 10s983ms 215ms 06 51 11s59ms 216ms 07 42 9s55ms 215ms 08 66 14s291ms 216ms 09 57 12s471ms 218ms 10 48 10s364ms 215ms 11 51 11s197ms 219ms 12 66 15s76ms 228ms 13 12 2s793ms 232ms 14 111 27s616ms 248ms 15 69 16s894ms 244ms 16 9 2s120ms 235ms 17 3 641ms 213ms 20 36 8s538ms 237ms 21 6 1s292ms 215ms 22 3 653ms 217ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:20:19 Duration: 596ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:20:18 Duration: 546ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:36:26 Duration: 462ms
18 1,013 3m9s 162ms 1s91ms 186ms select res_partner.id from "res_partner" where (((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 #18
Day Hour Count Duration Avg duration May 13 11 57 12s301ms 215ms 12 140 27s197ms 194ms 13 150 29s371ms 195ms 14 118 20s527ms 173ms 15 163 28s729ms 176ms 16 275 51s781ms 188ms 17 1 172ms 172ms 19 109 19s298ms 177ms -
SELECT res_partner.id FROM "res_partner" WHERE (((unaccent ("res_partner"."name"::text) ilike unaccent ('%AIM%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%AIM%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%AIM%'))) 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 ('%AIM%') OR unaccent (res_partner.display_name) ilike unaccent ('%AIM%') OR unaccent (res_partner.ref) ilike unaccent ('%AIM%') OR unaccent (res_partner.vat) ilike unaccent ('AIM')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%AIM%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 13:41:54 Duration: 1s91ms
-
SELECT res_partner.id FROM "res_partner" WHERE (((unaccent ("res_partner"."name"::text) ilike unaccent ('%[CAP012L]%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%[CAP012L]%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%[CAP012L]%'))) 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 ('%[CAP012L]%') OR unaccent (res_partner.display_name) ilike unaccent ('%[CAP012L]%') OR unaccent (res_partner.ref) ilike unaccent ('%[CAP012L]%') OR unaccent (res_partner.vat) ilike unaccent ('CAP012L')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%[CAP012L]%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 14:36:01 Duration: 367ms
-
SELECT res_partner.id FROM "res_partner" WHERE (((unaccent ("res_partner"."name"::text) ilike unaccent ('%[RTLO18918B_C]%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%[RTLO18918B_C]%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%[RTLO18918B_C]%'))) 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 ('%[RTLO18918B_C]%') OR unaccent (res_partner.display_name) ilike unaccent ('%[RTLO18918B_C]%') OR unaccent (res_partner.ref) ilike unaccent ('%[RTLO18918B_C]%') OR unaccent (res_partner.vat) ilike unaccent ('RTLO18918BC')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%[RTLO18918B_C]%') desc, unaccent (res_partner.display_name);
Date: 2024-05-13 11:53:09 Duration: 343ms
19 997 2m38s 120ms 1s220ms 158ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (unaccent ("product_product"."barcode"::text) ilike unaccent (?)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name");Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 13 11 39 6s24ms 154ms 12 76 11s268ms 148ms 13 195 31s294ms 160ms 14 121 19s166ms 158ms 15 80 13s618ms 170ms 16 99 15s565ms 157ms 17 132 20s172ms 152ms 18 117 17s987ms 153ms 19 91 16s530ms 181ms 20 43 6s179ms 143ms 21 4 636ms 159ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%mfk154%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-13 19:12:35 Duration: 1s220ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%816967%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-13 15:26:10 Duration: 1s132ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (unaccent ("product_product"."barcode"::text) ilike unaccent ('%294241%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-13 14:46:20 Duration: 1s86ms
20 995 3m15s 156ms 3s68ms 196ms select count(?) 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 >= ? and m.model = ? and m.message_type = ? and v.old_value_char = ? and v.new_value_char = ? and po.company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 13 07 3 3s552ms 1s184ms 10 3 766ms 255ms 11 43 8s841ms 205ms 12 129 25s598ms 198ms 13 107 21s809ms 203ms 14 95 18s346ms 193ms 15 206 39s53ms 189ms 16 81 15s614ms 192ms 17 88 16s867ms 191ms 18 153 28s354ms 185ms 19 64 11s775ms 183ms 20 23 4s635ms 201ms -
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-05-06 07:57:14' 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-05-13 07:57:17 Duration: 3s68ms
-
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-05-06 12:27:53' 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-05-13 12:27:54 Duration: 1s7ms
-
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-05-06 13:51:24' 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-05-13 13:51:25 Duration: 997ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 35s348ms 50s524ms 38s380ms 58 37m6s select partner.id as partner_id, ful.id as followup_level, case when partner.balance <= ? then ? when in_need_of_action_aml.id is not null and (prop_date.value_datetime is null or prop_date.value_datetime::date <= ?::date) then ? when exceeded_unreconciled_aml.id is not null then ? else ? end as followup_status from ( select partner.id, max(current_followup_level.delay) as followup_delay, sum(aml.balance) as balance from res_partner partner join account_move_line aml on aml.partner_id = partner.id join account_account account on account.id = aml.account_id join account_move move on move.id = aml.move_id left join lateral ( select coalesce(next_ful.id, ful.id) as id, coalesce(next_ful.delay, ful.delay) as delay from account_move_line line left outer join account_followup_followup_line ful on ful.id = aml.followup_line_id left outer join account_followup_followup_line next_ful on next_ful.id = ( select next_ful.id from account_followup_followup_line next_ful where next_ful.delay > coalesce(ful.delay, ?) and coalesce(aml.date_maturity, aml.date) + next_ful.delay <= ?::date and next_ful.company_id = ? order by next_ful.delay asc limit ?) where line.id = aml.id and aml.partner_id = partner.id and aml.balance > ?) current_followup_level on true where account.deprecated is not true and account.internal_type = ? and move.state = ? and aml.reconciled is not true and aml.blocked is false and aml.company_id = ? group by partner.id) partner left join account_followup_followup_line ful on ful.delay = partner.followup_delay and ful.company_id = ? left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id left join account_followup_followup_line ful on ful.id = line.followup_line_id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(ful.delay, ?) < partner.followup_delay and coalesce(line.date_maturity, line.date) + coalesce(ful.delay, ?) <= ?::date limit ?) in_need_of_action_aml on true left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(line.date_maturity, line.date) <= ?::date limit ?) exceeded_unreconciled_aml on true left outer join ir_property prop_date on prop_date.res_id = concat(?, partner.id) and prop_date.name = ? and prop_date.company_id = ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 13 14 3 2m26s 48s822ms 15 1 50s20ms 50s20ms 16 38 23m56s 37s805ms 17 16 9m52s 37s61ms -
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 14:54:36 Duration: 50s524ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 15:01:51 Duration: 50s20ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2024-05-13'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2024-05-13'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2024-05-13'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2024-05-13'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2024-05-13 14:59:07 Duration: 48s286ms
2 1s699ms 31s515ms 4s460ms 156 11m35s delete from account_move_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 13 11 1 3s614ms 3s614ms 12 28 1m21s 2s907ms 13 25 2m28s 5s957ms 14 8 54s516ms 6s814ms 15 7 19s456ms 2s779ms 16 6 1m11s 11s964ms 17 11 29s169ms 2s651ms 19 1 6s998ms 6s998ms 23 69 4m39s 4s57ms -
DELETE FROM account_move_line WHERE id IN (4910417, 4910418, 4910419, 4910420, 4910421, 4910422, 4910423, 4910424, 4910425, 4910426, 4910427, 4910428, 4910429, 4910430, 4910431, 4910464, 4910465);
Date: 2024-05-13 13:44:06 Duration: 31s515ms
-
DELETE FROM account_move_line WHERE id IN (4673227, 4673228, 4673229, 4673230, 4673231, 4673232, 4673233, 4673234, 4673235, 4673236, 4673237, 4673238, 4673239, 4673240, 4673241, 4917650, 4917651);
Date: 2024-05-13 14:37:52 Duration: 31s454ms
-
DELETE FROM account_move_line WHERE id IN (4910051, 4910052, 4910053, 4910054, 4910055, 4910056, 4910057, 4919889, 4919890, 4919891, 4919892, 4919895, 4919896, 4919897);
Date: 2024-05-13 23:30:56 Duration: 24s239ms
3 331ms 31s137ms 3s937ms 115 7m32s update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 13 11 1 761ms 761ms 12 8 28s941ms 3s617ms 13 21 50s352ms 2s397ms 14 13 30s999ms 2s384ms 15 20 52s834ms 2s641ms 16 5 24s627ms 4s925ms 17 16 3m7s 11s720ms 18 17 1m 3s571ms 19 11 13s258ms 1s205ms 21 2 2s 1s 22 1 790ms 790ms -
UPDATE "stock_move" SET "date" = '2024-05-13 17:53:15', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:53:46 Duration: 31s137ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:55:26', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:55:54 Duration: 27s998ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:56:33', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (942230, 942231, 942232, 942233, 942234, 942235, 942236, 942237, 942238, 942239, 942240, 942241, 942242, 942243, 942244, 942245, 942246, 942247, 942248, 942249, 942250, 942251, 942252, 942254, 942255, 942256, 942257, 942258, 942259, 942260, 942261, 942262);
Date: 2024-05-13 17:57:00 Duration: 27s1ms
4 991ms 4s136ms 1s211ms 310 6m15s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?)))) order by coalesce("product_template"."is_published", false) desc, "product_template"."website_sequence" asc, "product_template"."id" desc limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 13 01 4 4s11ms 1s2ms 10 12 12s99ms 1s8ms 11 79 1m25s 1s80ms 12 41 45s574ms 1s111ms 13 50 1m26s 1s727ms 14 37 47s182ms 1s275ms 15 3 3s305ms 1s101ms 16 13 14s531ms 1s117ms 17 36 39s418ms 1s94ms 18 13 14s276ms 1s98ms 19 18 19s359ms 1s75ms 20 2 2s63ms 1s31ms 22 2 2s17ms 1s8ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%a4515%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4515%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%a4515%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%a4515%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%a4515%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%a4515%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:34:26 Duration: 4s136ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%489xfahx-%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%489xfahx-%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%489xfahx-%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%489xfahx-%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%489xfahx-%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%489xfahx-%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:14:00 Duration: 4s52ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%489xfahx%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%489xfahx%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%489xfahx%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%489xfahx%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%489xfahx%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%489xfahx%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2024-05-13 13:14:00 Duration: 4s23ms
5 164ms 13s325ms 1s129ms 313 5m53s update "stock_move" set "branch_id" = ?, "picking_id" = ?, "related_core_purchase_line_id" = ?, "related_core_repair_line_id" = ?, "related_core_sale_line_id" = ?, "scrapped" = false, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 13 11 21 29s247ms 1s392ms 12 32 38s614ms 1s206ms 13 54 1m21s 1s507ms 14 29 32s320ms 1s114ms 15 29 32s626ms 1s125ms 16 28 31s477ms 1s124ms 17 30 24s359ms 811ms 18 33 30s699ms 930ms 19 33 30s480ms 923ms 20 21 20s316ms 967ms 21 2 928ms 464ms 23 1 904ms 904ms -
UPDATE "stock_move" SET "branch_id" = 44, "picking_id" = 410337, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (945312, 945313, 945314, 945315, 945316, 945317, 945318, 945319, 945320, 945321, 945322, 945323, 945307, 945308, 945309, 945310, 945311);
Date: 2024-05-13 13:27:51 Duration: 13s325ms
-
UPDATE "stock_move" SET "branch_id" = 37, "picking_id" = 410156, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (944992, 944993, 944994, 944985, 944986, 944987, 944988, 944989, 944990, 944991);
Date: 2024-05-13 11:54:27 Duration: 4s929ms
-
UPDATE "stock_move" SET "branch_id" = 45, "picking_id" = 410340, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (945329, 945330, 945331, 945332, 945333, 945334);
Date: 2024-05-13 13:28:24 Duration: 4s859ms
6 165ms 5s776ms 1s51ms 345 6m2s update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 13 08 1 792ms 792ms 11 9 15s653ms 1s739ms 12 36 36s627ms 1s17ms 13 53 55s968ms 1s56ms 14 36 40s490ms 1s124ms 15 22 25s443ms 1s156ms 16 27 25s973ms 961ms 17 65 1m5s 1s13ms 18 60 1m 1s7ms 19 23 23s489ms 1s21ms 20 9 8s128ms 903ms 21 2 2s315ms 1s157ms 22 2 1s553ms 776ms -
UPDATE "stock_move" SET "date" = '2024-05-13 17:21:53', "is_done" = true, "state" = 'done', "write_uid" = 1280, "write_date" = (now() at time zone 'UTC') WHERE id IN (931488, 931490, 931491, 931492, 931493, 931494, 931487);
Date: 2024-05-13 17:22:01 Duration: 5s776ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 11:50:39', "is_done" = true, "state" = 'done', "write_uid" = 1001, "write_date" = (now() at time zone 'UTC') WHERE id IN (944967, 944968, 944969, 944970, 944971);
Date: 2024-05-13 11:50:44 Duration: 4s298ms
-
UPDATE "stock_move" SET "date" = '2024-05-13 17:38:48', "is_done" = true, "state" = 'done', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (931430, 931279, 931383, 931384, 931355);
Date: 2024-05-13 17:38:55 Duration: 4s81ms
7 323ms 5s548ms 1s2ms 672 11m13s update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 13 08 7 6s275ms 896ms 11 21 19s810ms 943ms 12 100 1m43s 1s35ms 13 106 1m52s 1s64ms 14 61 54s108ms 887ms 15 123 2m4s 1s14ms 16 87 1m29s 1s27ms 17 40 37s230ms 930ms 18 33 31s293ms 948ms 19 34 30s663ms 901ms 20 53 57s230ms 1s79ms 21 7 6s260ms 894ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 4.0, "date" = '2024-05-13 20:10:56', "is_done" = true, "state" = 'done', "write_uid" = 1017, "write_date" = (now() at time zone 'UTC') WHERE id IN (933969, 933971, 933975, 933967);
Date: 2024-05-13 20:11:08 Duration: 5s548ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2024-05-13 16:44:02', "is_done" = true, "state" = 'done', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (945893, 945895);
Date: 2024-05-13 16:44:08 Duration: 3s245ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 4.0, "date" = '2024-05-13 16:49:07', "is_done" = true, "state" = 'done', "write_uid" = 1017, "write_date" = (now() at time zone 'UTC') WHERE id IN (926555, 926556, 926557);
Date: 2024-05-13 16:49:13 Duration: 2s989ms
8 816ms 2s577ms 925ms 1,134 17m29s 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 #8
Day Hour Count Duration Avg duration May 13 00 2 1s656ms 828ms 10 8 6s611ms 826ms 11 47 41s206ms 876ms 12 100 1m31s 917ms 13 208 3m21s 969ms 14 126 1m57s 931ms 15 114 1m46s 937ms 16 132 2m2s 931ms 17 102 1m32s 910ms 18 169 2m33s 909ms 19 63 57s879ms 918ms 20 62 53s782ms 867ms 21 1 958ms 958ms -
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 ('%r803110%')) 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 ('%r803110%'))) 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 ('%r803110%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%r803110%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 16:02:06 Duration: 2s577ms
-
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 ('%43-1265%')) 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 ('%43-1265%'))) 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 ('%43-1265%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%43-1265%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 12:27:55 Duration: 2s300ms
-
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 ('%294241%')) 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 ('%294241%'))) 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 ('%294241%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%294241%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-13 14:46:23 Duration: 2s289ms
9 642ms 3s156ms 764ms 661 8m25s 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 May 13 12 135 1m39s 738ms 13 197 2m37s 797ms 14 108 1m19s 740ms 15 90 1m12s 808ms 16 22 16s298ms 740ms 17 23 16s856ms 732ms 18 30 23s100ms 770ms 19 44 31s159ms 708ms 20 12 8s502ms 708ms -
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 ('%%lw1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 3s156ms
-
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 ('%%lw1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1/%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1/%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 2s957ms
-
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 ('%%lw12%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%lw1/2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%lw1/2%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 15:26:12 Duration: 2s742ms
10 628ms 3s52ms 762ms 3,578 45m28s 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 #10
Day Hour Count Duration Avg duration May 13 11 210 2m28s 705ms 12 293 3m35s 734ms 13 778 10m40s 822ms 14 307 3m55s 766ms 15 265 3m18s 750ms 16 342 4m16s 750ms 17 368 4m42s 766ms 18 376 4m46s 762ms 19 404 5m1s 747ms 20 222 2m34s 696ms 21 4 2s663ms 665ms 23 9 6s32ms 670ms -
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 ('%%k132%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k132%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k132%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 13:41:55 Duration: 3s52ms
-
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 ('%%81%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%81-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%81-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 14:26:16 Duration: 2s293ms
-
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 ('%%34%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3/4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3/4%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-13 19:02:58 Duration: 2s292ms
11 159ms 2s591ms 602ms 868 8m43s update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 13 08 7 4s199ms 599ms 11 28 21s33ms 751ms 12 113 1m11s 631ms 13 167 1m50s 661ms 14 94 54s855ms 583ms 15 77 47s749ms 620ms 16 67 36s729ms 548ms 17 113 1m4s 571ms 18 86 46s850ms 544ms 19 59 32s614ms 552ms 20 44 25s658ms 583ms 21 10 5s850ms 585ms 22 3 1s402ms 467ms -
UPDATE "stock_quant" SET "quantity" = 1.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (449321, 406724, 142700, 352941);
Date: 2024-05-13 13:07:50 Duration: 2s591ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (479113, 479114);
Date: 2024-05-13 13:08:12 Duration: 2s476ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (479569, 479571, 479573, 479575, 479577);
Date: 2024-05-13 17:38:57 Duration: 2s388ms
12 157ms 5s999ms 585ms 622 6m4s update "stock_quant" set "quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 13 08 1 157ms 157ms 11 7 2s987ms 426ms 12 71 32s883ms 463ms 13 71 35s133ms 494ms 14 29 14s55ms 484ms 15 113 1m3s 565ms 16 52 35s33ms 673ms 17 112 1m17s 693ms 18 83 49s771ms 599ms 19 60 39s372ms 656ms 20 21 12s581ms 599ms 21 2 630ms 315ms -
UPDATE "stock_quant" SET "quantity" = 2.0, "write_uid" = 1297, "write_date" = (now() at time zone 'UTC') WHERE id IN (417996, 417997, 143183, 143090, 143028, 358836, 237589, 429111, 358841, 348763, 237595, 358844, 143262);
Date: 2024-05-13 19:28:20 Duration: 5s999ms
-
UPDATE "stock_quant" SET "quantity" = 3.0, "write_uid" = 1297, "write_date" = (now() at time zone 'UTC') WHERE id IN (443937, 451139, 443934, 143053, 471566, 471568, 471570, 413822);
Date: 2024-05-13 19:28:23 Duration: 3s810ms
-
UPDATE "stock_quant" SET "quantity" = 4.0, "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (325536, 401002, 401003, 471732, 478268, 414815);
Date: 2024-05-13 17:54:01 Duration: 3s356ms
13 149ms 8s897ms 573ms 867 8m17s update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 13 00 4 3s737ms 934ms 01 25 36s962ms 1s478ms 11 74 49s830ms 673ms 12 65 43s436ms 668ms 13 144 1m16s 534ms 14 79 39s108ms 495ms 15 73 39s679ms 543ms 16 60 26s43ms 434ms 17 85 40s374ms 474ms 18 91 47s236ms 519ms 19 81 48s330ms 596ms 20 52 27s515ms 529ms 21 33 17s913ms 542ms 23 1 165ms 165ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (945184, 945185, 945186, 945187, 945188, 945189, 945190, 945173, 945174, 945175, 945176, 945177, 945179, 945180, 945181, 945182, 945183);
Date: 2024-05-13 13:03:59 Duration: 8s897ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (944784, 944786, 944788, 944789, 944790, 944792, 944794, 944796, 944798);
Date: 2024-05-13 01:38:21 Duration: 5s727ms
-
UPDATE "stock_move" SET "state" = 'waiting', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (945025, 945027, 945021, 945022, 945023);
Date: 2024-05-13 12:04:48 Duration: 5s609ms
14 392ms 1s384ms 439ms 2,704 19m48s 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 May 13 00 2 832ms 416ms 03 2 840ms 420ms 06 2 827ms 413ms 07 2 800ms 400ms 08 9 3s681ms 409ms 10 11 4s423ms 402ms 11 229 1m36s 420ms 12 310 2m14s 434ms 13 412 3m15s 473ms 14 294 2m9s 439ms 15 280 2m5s 449ms 16 274 1m58s 433ms 17 304 2m11s 431ms 18 263 1m54s 436ms 19 159 1m8s 431ms 20 102 42s778ms 419ms 21 35 14s269ms 407ms 22 9 3s597ms 399ms 23 5 2s34ms 406ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 13:20:17 Duration: 1s384ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 12:00:37 Duration: 1s186ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-eb53748/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-13 14:27:57 Duration: 1s92ms
15 120ms 2s790ms 317ms 35,394 3h7m24s select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 13 00 193 43s627ms 226ms 01 148 43s827ms 296ms 02 142 32s605ms 229ms 03 100 25s232ms 252ms 04 158 43s236ms 273ms 05 155 27s534ms 177ms 06 111 27s162ms 244ms 07 261 1m3s 241ms 08 115 31s248ms 271ms 09 94 23s764ms 252ms 10 150 39s365ms 262ms 11 1,238 4m16s 206ms 12 3,344 16m29s 296ms 13 5,063 27m6s 321ms 14 4,147 27m32s 398ms 15 3,623 23m6s 382ms 16 3,755 19m26s 310ms 17 3,405 15m40s 276ms 18 3,584 17m42s 296ms 19 2,973 18m38s 376ms 20 1,438 5m53s 245ms 21 511 1m45s 205ms 22 288 1m10s 243ms 23 398 1m55s 289ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 14:47:13') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",51732]', '["pointspring_master","res.partner",51732]', '["pointspring_master","ir.needaction",51732]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 14:48:05 Duration: 2s790ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s785ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-13 13:35:28') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-13 13:36:21 Duration: 2s757ms
16 282ms 654ms 302ms 1,104 5m33s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 13 00 84 24s454ms 291ms 01 78 23s272ms 298ms 02 45 13s306ms 295ms 03 48 14s83ms 293ms 04 75 22s3ms 293ms 05 48 14s68ms 293ms 06 66 19s496ms 295ms 07 57 16s671ms 292ms 08 51 15s19ms 294ms 09 72 21s39ms 292ms 10 78 22s932ms 294ms 11 69 21s10ms 304ms 12 39 12s875ms 330ms 13 9 2s897ms 321ms 14 141 44s983ms 319ms 15 81 25s894ms 319ms 16 27 8s805ms 326ms 20 33 10s185ms 308ms 23 3 868ms 289ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:57:16 Duration: 654ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:29:36 Duration: 615ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-05-13 12:22:36 Duration: 597ms
17 209ms 596ms 224ms 1,014 3m47s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 13 00 93 20s159ms 216ms 01 105 22s863ms 217ms 02 51 11s139ms 218ms 03 33 7s112ms 215ms 04 51 11s30ms 216ms 05 51 10s983ms 215ms 06 51 11s59ms 216ms 07 42 9s55ms 215ms 08 66 14s291ms 216ms 09 57 12s471ms 218ms 10 48 10s364ms 215ms 11 51 11s197ms 219ms 12 66 15s76ms 228ms 13 12 2s793ms 232ms 14 111 27s616ms 248ms 15 69 16s894ms 244ms 16 9 2s120ms 235ms 17 3 641ms 213ms 20 36 8s538ms 237ms 21 6 1s292ms 215ms 22 3 653ms 217ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:20:19 Duration: 596ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:20:18 Duration: 546ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-05-13 14:36:26 Duration: 462ms
18 181ms 1s821ms 223ms 1,787 6m39s select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 13 00 1 300ms 300ms 10 9 1s783ms 198ms 11 87 18s442ms 211ms 12 156 33s682ms 215ms 13 258 1m5s 252ms 14 211 47s904ms 227ms 15 152 33s295ms 219ms 16 202 44s457ms 220ms 17 164 36s961ms 225ms 18 225 49s307ms 219ms 19 177 37s971ms 214ms 20 119 24s723ms 207ms 21 26 5s118ms 196ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (172085))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:34:26 Duration: 1s821ms
-
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 (210246))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 14:56:25 Duration: 1s199ms
-
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 (216274))) AND ("sale_report"."date" >= '2023-05-14 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-13 13:27:22 Duration: 1s195ms
19 146ms 1s862ms 204ms 1,227 4m10s select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 13 08 10 1s657ms 165ms 11 59 10s753ms 182ms 12 170 34s356ms 202ms 13 201 44s169ms 219ms 14 146 29s721ms 203ms 15 173 35s789ms 206ms 16 97 19s438ms 200ms 17 145 31s6ms 213ms 18 77 14s809ms 192ms 19 93 19s234ms 206ms 20 38 6s969ms 183ms 21 12 2s1ms 166ms 22 6 1s14ms 169ms -
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 (1407190)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 17:55:37 Duration: 1s862ms
-
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 (1407919)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 19:52:16 Duration: 1s345ms
-
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 (1406885)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-13 17:06:17 Duration: 1s98ms
20 156ms 3s68ms 196ms 995 3m15s select count(?) 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 >= ? and m.model = ? and m.message_type = ? and v.old_value_char = ? and v.new_value_char = ? and po.company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 13 07 3 3s552ms 1s184ms 10 3 766ms 255ms 11 43 8s841ms 205ms 12 129 25s598ms 198ms 13 107 21s809ms 203ms 14 95 18s346ms 193ms 15 206 39s53ms 189ms 16 81 15s614ms 192ms 17 88 16s867ms 191ms 18 153 28s354ms 185ms 19 64 11s775ms 183ms 20 23 4s635ms 201ms -
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-05-06 07:57:14' 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-05-13 07:57:17 Duration: 3s68ms
-
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-05-06 12:27:53' 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-05-13 12:27:54 Duration: 1s7ms
-
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-05-06 13:51:24' 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-05-13 13:51:25 Duration: 997ms
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
- 112,472 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1291 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 796 Max number of times the same event was reported
- 1,291 Total events found
Rank Times reported Error 1 796 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count May 13 00 23 01 24 02 27 03 27 04 20 05 18 06 21 07 92 08 67 09 25 10 38 11 28 12 27 13 26 14 29 15 26 16 26 17 34 18 25 19 27 20 24 21 30 22 21 23 91 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "res_partner"
- 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-05-13 10:50:34
Statement: SELECT "supplier_rank" FROM res_partner WHERE ID IN (32871, 30496) FOR UPDATE NOWAIT; UPDATE res_partner SET "supplier_rank" = "supplier_rank" + 1 WHERE id IN (32871, 30496)
Date: 2024-05-13 14:10:05
Statement: SELECT * FROM website_visitor where id = 13596071 FOR NO KEY UPDATE NOWAIT
Date: 2024-05-13 17:29:15
2 458 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count May 13 00 2 04 2 06 1 07 3 09 1 10 4 11 42 12 60 13 96 14 49 15 42 16 47 17 39 18 36 19 16 20 14 21 1 23 3 - ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-05-13 10:54:28',"last_presence"='2024-05-13 10:54:28.406347' WHERE id IN (70)
Date: 2024-05-13 10:54:28
3 29 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count May 13 04 1 12 9 13 9 14 2 15 2 16 2 17 2 19 1 20 1 - ERROR: process 3126630 still waiting for ShareLock on transaction 260191736 after 1000.056 ms
- ERROR: process 3407207 still waiting for ShareLock on transaction 260201940 after 1000.039 ms
- ERROR: process 3395545 still waiting for ShareLock on transaction 260202811 after 1000.051 ms
Detail: Process holding the lock: 3250526. Wait queue: 3126630.
Context: while updating tuple (5726,30) 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 != 1253600 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 != 1253600 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-13 13:50:03
Detail: Process holding the lock: 3033352. Wait queue: 3407207.
Context: while updating tuple (6109,28) 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 != 1296543 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 != 1296543 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-13 14:33:39
Detail: Process holding the lock: 3652192. Wait queue: 3395545.
Context: while updating tuple (6223,27) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406123 AND sequence_prefix = (SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1406123 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-13 14:37:28
4 4 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #4
Day Hour Count May 13 12 1 15 2 18 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (267208, null, M65400, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1006, 2024-05-13 18:30:19.099807, 1006, 2024-05-13 18:30:19.099807, 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, 474305, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-05-13, 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'), 1006, (now() at time zone 'UTC'), 1006, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-05-13', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'M65400', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 474305, 1, 1) RETURNING idDate: 2024-05-13 18:30:19
5 2 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #5
Day Hour Count May 13 13 2 - ERROR: process 3478833 still waiting for ExclusiveLock on tuple (5814,7) of relation 42418 of database 65946 after 1000.059 ms
- ERROR: process 3455015 still waiting for ExclusiveLock on tuple (5804,15) of relation 42418 of database 65946 after 1000.040 ms
Detail: Process holding the lock: 3482765. Wait queue: 3478833.
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 != 1405916 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 != 1405916 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-13 13:46:10
Detail: Process holding the lock: 3366756. Wait queue: 3455015.
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 != 1221981 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 != 1221981 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-13 13:46:29
6 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count May 13 10 1 - ERROR: syntax error at or near "inv_screen" at character 1
Statement: inv_screen=self.env['product.warehouse.inventory'].search([('qty_reserve','!=',0)], order="warehouse_id") mismatch_rec={} mismatch_rec_list=[] for line in inv_screen: product_id = line.product_id warehouse_id = line.warehouse_id.id qty_reserve = line.qty_reserve action = 'new_product%' if product_id.is_core: action='core_return%' self._cr.execute("""select sum(product_uom_qty) as qty from stock_move where product_id=%s and warehouse_id=%s and location_dest_id in (5,15,468) and state not in ('done','cancel','draft') and move_options ilike '%s'"""%(product_id.id,warehouse_id,action)) data = list(filter(None, map(lambda x: x[0], self._cr.fetchall()))) if data: exiting_qty = data[0] else: exiting_qty = 0 if qty_reserve != exiting_qty: mismatch_rec = { #'product':line.product_id.default_code, #'warehouse': line.warehouse_id.name, #'inv screen qty': line.qty_reserve , 'product_id': line.product_id.id, 'warehouse_id':line.warehouse_id.id } mismatch_rec_list.append(mismatch_rec) raise Warning(mismatch_rec_list)select pp.default_code,pw.product_id,sw.name,pw.qty_in_transist, CAST (xx.qty AS FLOAT),pw.warehouse_id from product_warehouse_inventory as pw inner join ( select product_id,dest_warehouse_id, sum(product_uom_qty) as qty from ( select product_id,dest_warehouse_id,product_uom_qty from stock_move where location_dest_id=468 and state='done' UNION all select product_id,dest_warehouse_id,product_uom_qty * -1 from stock_move where location_id=468 and state='done') as x group by product_id,dest_warehouse_id) as xx on pw.product_id = xx.product_id and pw.warehouse_id=xx.dest_warehouse_id inner join product_product pp on pp.id=pw.product_id left join stock_warehouse as sw on sw.id=pw.warehouse_id where abs(pw.qty_in_transist) !=abs(CAST (xx.qty AS FLOAT)) and (pw.is_core=False or pw.is_core is Null);
Date: 2024-05-13 10:19:08
7 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count May 13 12 1 - ERROR: duplicate key value violates unique constraint "mail_followers_mail_followers_res_partner_res_model_id_uniq"
Detail: Key (res_model, res_id, partner_id)=(sale.order, 138670, 46045) already exists.
Statement: INSERT INTO "mail_followers" ("id", "channel_id", "partner_id", "res_id", "res_model") VALUES (nextval('mail_followers_id_seq'), NULL, 46045, 138670, 'sale.order') RETURNING idDate: 2024-05-13 12:46:47