-
Global information
- Generated on Thu Sep 19 20:50:25 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 622,026 log entries in 24s
- Log start from 2024-09-19 00:00:02 to 2024-09-19 23:59:57
-
Overview
Global Stats
- 1,004 Number of unique normalized queries
- 212,557 Number of queries
- 16h9m48s Total query duration
- 2024-09-19 00:00:02 First query
- 2024-09-19 23:59:57 Last query
- 76 queries/s at 2024-09-19 16:13:52 Query peak
- 16h9m48s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 16h9m48s Execute total duration
- 1,308 Number of events
- 11 Number of unique normalized events
- 995 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
- 212,557 Average queries per session
- 16h9m48s 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
- 76 queries/s Query Peak
- 2024-09-19 16:13:52 Date
SELECT Traffic
Key values
- 73 queries/s Query Peak
- 2024-09-19 16:13:52 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 7 queries/s Query Peak
- 2024-09-19 15:38:08 Date
Queries duration
Key values
- 16h9m48s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 19 00 4,671 120ms 1s109ms 175ms 24s264ms 33s126ms 38s54ms 01 4,343 120ms 1s19ms 155ms 14s942ms 22s529ms 25s278ms 02 4,024 120ms 1s12ms 161ms 19s755ms 23s609ms 30s730ms 03 4,373 124ms 866ms 155ms 13s681ms 22s298ms 30s923ms 04 4,690 120ms 1s457ms 167ms 16s763ms 24s102ms 30s95ms 05 4,618 120ms 957ms 167ms 17s298ms 20s226ms 27s457ms 06 3,983 120ms 1s370ms 156ms 11s531ms 15s529ms 44s397ms 07 4,387 120ms 6s473ms 154ms 14s452ms 19s689ms 29s505ms 08 4,782 120ms 3s560ms 176ms 25s360ms 30s311ms 37s117ms 09 5,083 120ms 3m57s 327ms 1m18s 2m11s 4m30s 10 5,542 120ms 20s982ms 180ms 33s40ms 38s329ms 1m21s 11 8,595 120ms 19s859ms 241ms 1m2s 1m12s 1m26s 12 16,454 120ms 1m9s 295ms 2m13s 2m39s 3m8s 13 17,205 120ms 15s762ms 255ms 2m9s 2m29s 4m3s 14 18,780 120ms 29s437ms 287ms 2m21s 3m20s 5m26s 15 19,660 120ms 41s864ms 306ms 2m57s 3m29s 4m10s 16 17,173 120ms 21s219ms 265ms 2m16s 3m20s 4m28s 17 17,513 120ms 4m28s 340ms 2m57s 3m23s 5m59s 18 15,821 120ms 21s924ms 278ms 2m2s 2m52s 3m18s 19 12,696 120ms 1h9m52s 586ms 1m32s 3m2s 1h10m28s 20 8,475 120ms 6s649ms 238ms 55s617ms 1m21s 1m25s 21 3,300 125ms 744ms 161ms 13s422ms 16s249ms 22s981ms 22 3,016 120ms 973ms 151ms 10s47ms 12s90ms 16s487ms 23 3,373 120ms 14s756ms 247ms 39s639ms 45s740ms 1m17s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 19 00 4,527 0 175ms 14s645ms 23s718ms 33s126ms 01 4,321 0 155ms 12s421ms 14s942ms 22s529ms 02 4,024 0 161ms 11s924ms 19s755ms 25s476ms 03 4,373 0 155ms 12s609ms 13s681ms 24s80ms 04 4,686 0 167ms 15s117ms 16s763ms 25s248ms 05 4,617 0 167ms 15s315ms 17s298ms 21s582ms 06 3,983 0 156ms 11s101ms 11s531ms 30s938ms 07 4,385 0 152ms 12s145ms 14s416ms 19s926ms 08 4,774 0 175ms 15s391ms 25s360ms 30s504ms 09 4,707 117 335ms 23s466ms 59s671ms 2m24s 10 4,998 0 181ms 16s714ms 28s428ms 33s658ms 11 7,493 0 246ms 42s646ms 57s301ms 1m6s 12 13,496 0 317ms 1m44s 2m13s 2m38s 13 13,603 0 273ms 1m27s 1m44s 2m34s 14 15,240 0 309ms 1m44s 2m9s 3m40s 15 15,311 0 337ms 1m56s 2m48s 3m44s 16 13,403 0 286ms 1m12s 2m1s 3m39s 17 14,528 0 350ms 2m10s 2m28s 3m23s 18 12,811 0 295ms 1m16s 1m42s 2m41s 19 10,673 0 660ms 1m 1m20s 3m27s 20 6,533 0 255ms 39s31ms 44s313ms 1m14s 21 3,300 0 161ms 10s308ms 13s422ms 20s171ms 22 3,015 0 151ms 8s214ms 10s47ms 16s170ms 23 3,283 0 164ms 13s221ms 16s716ms 25s441ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 19 00 0 144 0 0 175ms 0ms 0ms 3s365ms 01 0 22 0 0 172ms 0ms 0ms 348ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 382ms 0ms 0ms 0ms 05 0 0 1 0 957ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 2 0 4s531ms 0ms 0ms 0ms 08 0 2 0 0 525ms 0ms 0ms 0ms 09 0 259 0 0 177ms 0ms 1s849ms 5s703ms 10 0 543 1 0 171ms 0ms 0ms 10s716ms 11 0 1,085 16 0 207ms 2s414ms 7s290ms 15s482ms 12 0 2,932 21 0 198ms 10s873ms 15s191ms 26s601ms 13 0 3,573 12 0 191ms 12s409ms 17s916ms 31s146ms 14 0 3,525 14 0 190ms 12s218ms 17s464ms 29s977ms 15 0 4,318 20 0 197ms 16s366ms 23s107ms 31s804ms 16 0 3,744 25 0 191ms 14s161ms 19s352ms 28s735ms 17 0 2,937 33 0 289ms 8s321ms 17s669ms 34s473ms 18 0 2,975 30 0 208ms 11s197ms 16s351ms 26s415ms 19 0 1,997 26 0 193ms 5s519ms 10s181ms 16s767ms 20 0 1,932 8 0 182ms 5s201ms 10s898ms 20s359ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 1 89 0 3s271ms 0ms 11s17ms 28s39ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Sep 19 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Sep 19 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Sep 19 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Sep 19 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Sep 19 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Sep 19 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Sep 19 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Sep 19 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Sep 19 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
- 26 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 6 11m25s 52s306ms 2m42s 1m54s update "bus_presence" set "last_poll" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:13' WHERE id IN (56);
Date: 2024-09-19 13:45:55
2 12 5m3s 2s404ms 4m4s 25s293ms 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 != 1665888 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 != 1665888 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-09-19 13:42:34
3 4 4m30s 2s517ms 2m54s 1m7s update "bus_presence" set "last_poll" = ?, "last_presence" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:01', "last_presence" = '2024-09-19 13:43:01.486468' WHERE id IN (56);
Date: 2024-09-19 13:45:55
4 3 7s45ms 1s358ms 3s41ms 2s348ms 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" = 5711973, "write_uid" = 980, "write_date" = (now() at time zone 'UTC') WHERE id IN (1665756);
Date: 2024-09-19 13:16:35
5 1 3s559ms 3s559ms 3s559ms 3s559ms select "ir_model_fields".id from "ir_model_fields" where ("ir_model_fields"."model" = ?) order by "ir_model_fields"."name";-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";
Date: 2024-09-19 08:27:33
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";
Date: 2024-09-19 08:27:33
Queries that waited the most
Rank Wait time Query 1 4m4s 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 != 1664431 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 != 1664431 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 17:30:11 ]
2 2m54s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:01', "last_presence" = '2024-09-19 13:43:01.486468' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
3 2m42s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:13' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
4 2m40s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:15' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
5 2m39s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:43:15' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
6 1m26s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:44:29', "last_presence" = '2024-09-19 13:43:01.277627' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
7 1m20s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:44:34' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
8 1m9s UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:44:45' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
9 52s306ms UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:45:03' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
10 20s124ms 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 != 1664431 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 != 1664431 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 17:30:11 ]
11 12s934ms 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 != 979495 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 != 979495 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 18:15:11 ]
12 7s230ms UPDATE "bus_presence" SET "last_poll" = '2024-09-19 13:45:48', "last_presence" = '2024-09-19 13:43:01.272811' WHERE id IN (56);[ Date: 2024-09-19 13:45:55 ]
13 4s805ms 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 != 1665574 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 != 1665574 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 12:31:21 ]
14 3s770ms 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 != 1664431 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 != 1664431 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 17:30:16 ]
15 3s565ms 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 != 1666752 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 != 1666752 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 17:15:25 ]
16 3s559ms SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";[ Date: 2024-09-19 08:27:33 ]
17 3s315ms 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 != 1610367 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 != 1610367 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 18:07:45 ]
18 3s166ms 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 != 1453775 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 != 1453775 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-19 18:20:28 ]
19 3s41ms UPDATE "account_move" SET "message_main_attachment_id" = 5713192, "write_uid" = 1018, "write_date" = (now() at time zone 'UTC') WHERE id IN (1667108);[ Date: 2024-09-19 18:53:48 ]
20 2s645ms UPDATE "account_move" SET "message_main_attachment_id" = 5711795, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (1665612);[ Date: 2024-09-19 12:38:10 ]
-
Queries
Queries by type
Key values
- 182,084 Total read queries
- 30,473 Total write queries
Queries by database
Key values
- unknown Main database
- 212,557 Requests
- 16h9m48s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 213,334 Requests
User Request type Count Duration unknown Total 213,334 16h11m43s copy to 117 14m9s cte 65 22s314ms delete 298 16m46s select 182,847 14h9m25s update 30,007 1h30m58s Duration by user
Key values
- 16h11m43s (unknown) Main time consuming user
User Request type Count Duration unknown Total 213,334 16h11m43s copy to 117 14m9s cte 65 22s314ms delete 298 16m46s select 182,847 14h9m25s update 30,007 1h30m58s Queries by host
Key values
- unknown Main host
- 213,334 Requests
- 16h11m43s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 212,557 Requests
- 16h9m48s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-09-19 16:52:29 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 195,683 100-500ms duration
Slowest individual queries
Rank Duration Query 1 1h9m52s SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'payable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);[ Date: 2024-09-19 19:23:57 ]
2 4m28s DELETE FROM account_move_line WHERE id IN (5866601, 5866602, 5866603, 5866604, 5866605, 5866606, 5866607, 5866608, 5866609, 5866610, 5866611, 5866612, 5866613, 5866614, 5866615, 5866616, 5866617, 5866618, 5866619, 5866620, 5866621, 5866622, 5866623, 5866624, 5866625, 5866626, 5866627, 5866628, 5866629, 5866630, 5866631, 5866632, 5866633, 5866634, 5866635, 5866636, 5866637, 5866638, 5866639, 5866640, 5866641, 5866642, 5866643, 5866644, 5866645, 5866646, 5866647, 5866648, 5866649, 5866650, 5866651, 5866652, 5866653, 5866654, 5866655, 5866656, 5866657, 5866658, 5866659, 5866660, 5866661, 5866662, 5866663, 5866664, 5866665, 5866666, 5866667, 5866668, 5866669, 5866670, 5866671, 5866672, 5866673, 5866674, 5866675, 5866676, 5866677, 5866678, 5866679, 5866680, 5866681, 5866682, 5866683, 5866684, 5866685, 5866686, 5866687, 5866688, 5866689, 5866690, 5866691, 5866692, 5866693, 5866694, 5866695, 5866696, 5866697, 5866698, 5866699, 5866700, 5866701, 5866702, 5866703, 5866704, 5866705, 5866706, 5866707, 5866708, 5866709, 5866710, 5866711, 5866712, 5866713, 5866714, 5866715, 5866716, 5866717, 5866718, 5866719, 5866720, 5866721, 5866722);[ Date: 2024-09-19 17:30:08 ]
3 3m57s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-09-19 09:10:31 ]
4 2m11s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-09-19 09:04:20 ]
5 1m57s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-09-19 09:06:32 ]
6 1m9s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (270033)) ORDER BY "item_list_line"."id";[ Date: 2024-09-19 12:37:28 ]
7 41s864ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 15:34:17 ]
8 39s222ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-09-19 09:01:03 ]
9 37s876ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 15:31:09 ]
10 37s605ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 17:26:13 ]
11 37s570ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 17:12:17 ]
12 36s828ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 15:37:57 ]
13 36s520ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND ((((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12523%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12523%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 17:13:26 ]
14 33s706ms SELECT "account_move_line".id FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND (("account_move_line"."parent_state" = 'posted') AND (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) ORDER BY "account_move_line"."date" DESC, "account_move_line"."move_name" DESC, "account_move_line"."id", "account_move_line"."id" LIMIT 80;[ Date: 2024-09-19 17:50:07 ]
15 29s437ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-19 14:16:34 ]
16 29s218ms SELECT min("account_move_line".id) AS id, count("account_move_line".id) AS "journal_id_count", min("account_move_line"."date") AS "date", sum("account_move_line"."debit") AS "debit", sum("account_move_line"."credit") AS "credit", sum("account_move_line"."amount_currency") AS "amount_currency", "account_move_line"."journal_id" as "journal_id" FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN "account_journal" AS "account_move_line__journal_id" ON ("account_move_line"."journal_id" = "account_move_line__journal_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND ((("account_move_line"."parent_state" = 'posted') AND "account_move_line"."partner_id" IS NULL) AND (((((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%V-INV-12128%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%V-INV-12128%'))) OR FALSE) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-INV-23319%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-INV-23319%'))) OR FALSE)) OR (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%G-RINV-01592%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%G-RINV-01592%'))) OR FALSE)))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY "account_move_line"."journal_id", "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" ORDER BY "account_move_line__journal_id"."sequence", "account_move_line__journal_id"."type", "account_move_line__journal_id"."code" LIMIT 80;[ Date: 2024-09-19 15:29:47 ]
17 25s665ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type, current_branch) TO stdout;[ Date: 2024-09-19 09:13:29 ]
18 22s340ms DELETE FROM sale_order_line WHERE id IN (487578, 487581, 487583);[ Date: 2024-09-19 15:33:03 ]
19 21s924ms SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'receivable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);[ Date: 2024-09-19 18:13:41 ]
20 21s844ms DELETE FROM account_move_line WHERE id IN (5776281, 5776282, 5776283, 5776284, 5776285, 5776286, 5776287, 5776288, 5776289, 5776290);[ Date: 2024-09-19 18:15:08 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 6h57m41s 124,069 122ms 3s56ms 201ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 19 20 3,837 9m51s 154ms 21 3,863 9m26s 146ms 22 3,633 9m28s 156ms 23 3,776 9m9s 145ms 00 3,852 9m37s 149ms 01 3,704 9m9s 148ms 02 3,611 9m12s 153ms 03 3,834 9m11s 143ms 04 3,987 10m49s 163ms 05 4,209 10m28s 149ms 06 4,222 10m18s 146ms 07 5,119 14m25s 169ms 08 8,177 34m12s 251ms 09 8,595 32m52s 229ms 10 8,712 35m36s 245ms 11 8,112 34m33s 255ms 12 8,373 35m10s 252ms 13 7,958 36m25s 274ms 14 7,626 29m58s 235ms 15 6,728 26m20s 234ms 16 4,136 11m20s 164ms 17 2,757 6m50s 148ms 18 2,675 6m30s 146ms 19 2,573 6m41s 155ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s56ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s31ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19543]', '["pointspring_master","mail.channel",31]', '["pointspring_master","mail.channel",48]', '["pointspring_master","mail.channel",287]', '["pointspring_master","mail.channel",329]', '["pointspring_master","mail.channel",353]', '["pointspring_master","mail.channel",360]', '["pointspring_master","mail.channel",361]', '["pointspring_master","mail.channel",470]', '["pointspring_master","mail.channel",501]', '["pointspring_master","mail.channel",502]', '["pointspring_master","mail.channel",595]', '["pointspring_master","res.partner",19543]', '["pointspring_master","ir.needaction",19543]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s19ms
2 1h10m13s 2 21s924ms 1h9m52s 35m6s select partner_id, partner_name, to_char(last_time_entries_checked, ?) as last_time_entries_checked, account_id, account_name, account_code, max_date from ( select p.id as partner_id, p.name as partner_name, p.last_time_entries_checked as last_time_entries_checked, a.id as account_id, a.name as account_name, a.code as account_code, max(l.write_date) as max_date from account_move_line l right join account_account a on (a.id = l.account_id) right join account_account_type at on (at.id = a.user_type_id) right join res_partner p on (l.partner_id = p.id) where a.reconcile is true and l.full_reconcile_id is null and at.type = ? and l.company_id = ? and exists ( select null from account_move_line l join account_move move on l.move_id = move.id join account_journal journal on l.journal_id = journal.id where l.account_id = a.id and l.partner_id = p.id and l.amount_residual > ? and move.state = ?) and exists ( select null from account_move_line l join account_move move on l.move_id = move.id join account_journal journal on l.journal_id = journal.id where l.account_id = a.id and l.partner_id = p.id and l.amount_residual < ? and move.state = ?) group by l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked order by p.last_time_entries_checked) as s where (last_time_entries_checked is null or max_date > last_time_entries_checked);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 19 14 1 21s924ms 21s924ms 15 1 1h9m52s 1h9m52s -
SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'payable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);
Date: 2024-09-19 19:23:57 Duration: 1h9m52s
-
SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'receivable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);
Date: 2024-09-19 18:13:41 Duration: 21s924ms
3 32m49s 4,859 375ms 1s879ms 405ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 19 20 36 14s143ms 392ms 21 6 2s301ms 383ms 04 1 390ms 390ms 05 25 9s687ms 387ms 06 79 30s865ms 390ms 07 211 1m23s 394ms 08 489 3m19s 407ms 09 524 3m31s 403ms 10 593 4m4s 411ms 11 779 5m16s 406ms 12 668 4m27s 401ms 13 452 3m7s 414ms 14 449 3m3s 408ms 15 288 1m55s 402ms 16 259 1m42s 396ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 14:35:46 Duration: 1s879ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 17:47:18 Duration: 1s874ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 12:57:09 Duration: 1s670ms
4 32m42s 2,406 708ms 3s309ms 815ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 19 20 61 45s371ms 743ms 21 14 10s325ms 737ms 07 281 3m34s 764ms 08 431 5m56s 826ms 09 195 2m42s 832ms 10 204 2m49s 830ms 11 257 3m35s 839ms 12 190 2m42s 854ms 13 221 3m 815ms 14 294 4m5s 834ms 15 124 1m37s 782ms 16 134 1m43s 771ms -
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 ('%%40020228%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%40020228%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%40020228%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 3s309ms
-
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 ('%%WKS4707QVHPMatHD0OnHand2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 12:23:51 Duration: 3s75ms
-
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 ('%%ct2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ct2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ct2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 2s940ms
5 28m35s 4,860 299ms 2s331ms 353ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 19 20 36 11s768ms 326ms 21 6 1s917ms 319ms 04 1 319ms 319ms 05 25 7s992ms 319ms 06 79 26s628ms 337ms 07 211 1m9s 328ms 08 490 2m54s 355ms 09 524 3m6s 355ms 10 593 3m34s 361ms 11 779 4m40s 359ms 12 668 3m50s 345ms 13 452 2m47s 371ms 14 449 2m40s 356ms 15 288 1m38s 342ms 16 259 1m25s 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 15:39:27 Duration: 2s331ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 16:50:26 Duration: 1s985ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 14:16:59 Duration: 1s707ms
6 23m4s 7,592 166ms 972ms 182ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 19 20 37 6s487ms 175ms 21 8 1s376ms 172ms 05 63 11s81ms 175ms 06 48 8s292ms 172ms 07 252 44s702ms 177ms 08 835 2m32s 183ms 09 883 2m40s 182ms 10 739 2m16s 184ms 11 1,001 3m3s 183ms 12 899 2m42s 180ms 13 656 2m3s 188ms 14 979 2m58s 182ms 15 639 1m55s 180ms 16 553 1m38s 177ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 56.0 IS NOT NULL THEN GREATEST ((2186.0 - 2186.0) + (56.0 - 56.0), 0) ELSE GREATEST ((2186.0 - 2186.0), 0) END where product_id = 195399 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 13:38:39 Duration: 972ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((1538.0 - 2701.0) + (0.0 - 245.0), 0) ELSE GREATEST ((1538.0 - 2701.0), 0) END where product_id = 3 and warehouse_id = 42 and company_id = 1;
Date: 2024-09-19 15:57:02 Duration: 954ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 2.0 IS NOT NULL THEN GREATEST ((1.0 - 1.0) + (2.0 - 2.0), 0) ELSE GREATEST ((1.0 - 1.0), 0) END where product_id = 211877 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 12:48:29 Duration: 927ms
7 19m11s 6,318 160ms 900ms 182ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 19 20 48 8s416ms 175ms 21 8 1s375ms 171ms 05 26 4s571ms 175ms 06 154 26s566ms 172ms 07 298 52s455ms 176ms 08 646 1m58s 183ms 09 644 1m58s 184ms 10 772 2m20s 182ms 11 1,013 3m4s 182ms 12 810 2m27s 181ms 13 617 1m54s 185ms 14 556 1m42s 185ms 15 362 1m5s 180ms 16 364 1m4s 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) - COALESCE(2.0, 0) WHERE product_id = 194489 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 18:57:12 Duration: 900ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(47.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 248952 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 17:58:04 Duration: 777ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(60.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 207549 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 16:42:54 Duration: 596ms
8 15m38s 1,737 486ms 2s353ms 540ms 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 #8
Day Hour Count Duration Avg duration Sep 19 20 3 1s466ms 488ms 21 8 3s906ms 488ms 22 11 5s426ms 493ms 02 1 487ms 487ms 03 4 1s984ms 496ms 04 7 3s451ms 493ms 05 27 13s491ms 499ms 06 12 6s58ms 504ms 07 117 1m 516ms 08 257 2m18s 538ms 09 201 1m53s 563ms 10 197 1m48s 550ms 11 141 1m16s 539ms 12 145 1m18s 543ms 13 199 1m52s 563ms 14 155 1m24s 542ms 15 132 1m8s 521ms 16 112 57s505ms 513ms 17 3 1s467ms 489ms 18 5 2s452ms 490ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 17:48:12 Duration: 2s353ms
-
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/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 14:00:01 Duration: 2s29ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 20:02:04 Duration: 1s546ms
9 14m37s 5,763 140ms 926ms 152ms 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 #9
Day Hour Count Duration Avg duration Sep 19 20 240 35s158ms 146ms 21 240 35s233ms 146ms 22 240 34s838ms 145ms 23 240 34s765ms 144ms 00 240 34s638ms 144ms 01 240 34s710ms 144ms 02 240 34s712ms 144ms 03 240 34s960ms 145ms 04 240 34s902ms 145ms 05 240 35s379ms 147ms 06 240 35s628ms 148ms 07 240 36s284ms 151ms 08 240 39s92ms 162ms 09 240 38s759ms 161ms 10 241 40s299ms 167ms 11 240 39s514ms 164ms 12 240 37s365ms 155ms 13 241 40s96ms 166ms 14 241 41s25ms 170ms 15 240 38s158ms 158ms 16 240 36s834ms 153ms 17 240 34s932ms 145ms 18 240 34s808ms 145ms 19 240 34s933ms 145ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_operator', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_range', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_rules', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_collation', 'pg_catalog.pg_group', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_matviews', 'pg_catalog.pg_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_language', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_trigger', 'pg_catalog.pg_transform', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_cursors', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_routine_usage', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.check_constraints', 'information_schema.routine_routine_usage', 'information_schema.view_column_usage', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.tables', 'information_schema.attributes', 'information_schema.triggered_update_columns', 'information_schema.schemata', 'information_schema.user_mapping_options', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.view_table_usage', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.sequences', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.triggers', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.routines', 'information_schema.columns', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.routine_table_usage', 'information_schema.sql_implementation_info', 'information_schema.role_usage_grants', 'information_schema.element_types', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-09-19 14:06:42 Duration: 926ms
-
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_opclass', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication', 'pg_catalog.pg_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_index', 'pg_catalog.pg_operator', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_constraint', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_range', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_matviews', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_group', 'pg_catalog.pg_attribute', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stats', 'pg_catalog.pg_amop', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_cursors', 'pg_catalog.pg_amproc', 'pg_catalog.pg_description', 'pg_catalog.pg_collation', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_depend', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_database', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdepend', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.check_constraints', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domain_udt_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.administrable_role_authorizations', 'information_schema.column_column_usage', 'information_schema.views', 'information_schema.columns', 'information_schema.sql_features', 'information_schema.user_mappings', 'information_schema.triggers', 'information_schema.character_sets', 'information_schema.key_column_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.column_privileges', 'information_schema.domain_constraints', 'information_schema.routine_privileges', 'information_schema.sequences', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.triggered_update_columns', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.role_usage_grants', 'information_schema.role_column_grants', 'information_schema.udt_privileges', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.tables', 'information_schema.foreign_table_options', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.collations', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.routine_table_usage', 'information_schema.check_constraint_routine_usage', 'information_schema.schemata', 'information_schema.role_routine_grants', 'information_schema.sql_implementation_info', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.view_routine_usage', 'information_schema.information_schema_catalog_name', 'information_schema.column_domain_usage', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-19 18:40:27 Duration: 878ms
-
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_statio_all_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_subscription', 'pg_catalog.pg_publication', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_locks', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_database', 'pg_catalog.pg_group', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_roles', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_amop', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_index', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_class', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_inherits', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_conversion', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_extension', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rules', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_proc', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_parser', 'information_schema.table_constraints', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.user_mapping_options', 'information_schema.role_column_grants', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.foreign_data_wrapper_options', 'information_schema.routine_column_usage', 'information_schema.triggers', 'information_schema.foreign_server_options', 'information_schema.table_privileges', 'information_schema.column_column_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.collation_character_set_applicability', 'information_schema.data_type_privileges', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.routines', 'information_schema.parameters', 'information_schema.user_mappings', 'information_schema.attributes', 'information_schema.column_domain_usage', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.sql_sizing', 'information_schema.role_routine_grants', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.applicable_roles', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.collations', 'information_schema.view_table_usage', 'information_schema.role_table_grants', 'information_schema.routine_table_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-19 18:57:12 Duration: 845ms
10 14m36s 1,057 696ms 2s892ms 829ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 19 08 5 3s956ms 791ms 09 86 1m10s 821ms 10 390 5m28s 841ms 11 490 6m43s 823ms 12 35 26s968ms 770ms 13 25 22s300ms 892ms 14 15 12s462ms 830ms 15 11 8s377ms 761ms -
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 ('%%MBA00099005455%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MBA00099005455%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MBA00099005455%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 14:06:42 Duration: 2s892ms
-
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 ('%%MBA000990054%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MBA000990054%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MBA000990054%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 14:06:42 Duration: 2s834ms
-
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 ('%%1011%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1011%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1011%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 15:46:03 Duration: 2s806ms
11 13m59s 1,031 709ms 2s856ms 814ms 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 #11
Day Hour Count Duration Avg duration Sep 19 06 34 25s134ms 739ms 07 21 15s762ms 750ms 08 52 43s562ms 837ms 09 117 1m34s 809ms 10 71 58s276ms 820ms 11 86 1m7s 784ms 12 123 1m39s 809ms 13 259 3m37s 841ms 14 103 1m29s 865ms 15 93 1m12s 781ms 16 72 55s283ms 767ms -
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 ('%%ruj%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ruj%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ruj%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 18:23:39 Duration: 2s856ms
-
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 ('%%N65%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N6.5-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%N6.5-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 17:33:22 Duration: 2s187ms
-
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 ('%%N6528%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N6.5-28-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%N6.5-28-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 17:33:22 Duration: 1s647ms
12 11m19s 3,680 161ms 1s341ms 184ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 19 20 10 1s796ms 179ms 21 2 364ms 182ms 05 50 9s350ms 187ms 06 70 12s31ms 171ms 07 126 22s620ms 179ms 08 330 1m1s 186ms 09 569 1m43s 182ms 10 312 59s438ms 190ms 11 448 1m22s 184ms 12 520 1m36s 185ms 13 394 1m13s 186ms 14 345 1m4s 187ms 15 218 39s938ms 183ms 16 286 50s870ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 212973 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-19 16:13:50 Duration: 1s341ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:55 Duration: 823ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:56 Duration: 399ms
13 10m52s 648 902ms 2s971ms 1s7ms 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 #13
Day Hour Count Duration Avg duration Sep 19 21 2 1s827ms 913ms 07 37 35s876ms 969ms 08 108 1m48s 1s3ms 09 67 1m5s 982ms 10 99 1m40s 1s13ms 11 69 1m12s 1s53ms 12 48 48s914ms 1s19ms 13 71 1m13s 1s33ms 14 59 59s618ms 1s10ms 15 64 1m2s 982ms 16 24 23s50ms 960ms -
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 ('%r201609%')) 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 ('%r201609%'))) 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 ('%r201609%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%r201609%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 15:44:39 Duration: 2s971ms
-
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 ('%39mt%')) 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 ('%39mt%'))) 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 ('%39mt%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%39mt%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 18:57:14 Duration: 2s844ms
-
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 ('%EE75380%')) 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 ('%EE75380%'))) 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 ('%EE75380%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%EE75380%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 12:05:26 Duration: 2s672ms
14 10m46s 103 2s89ms 4m28s 6s273ms delete from account_move_line where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 19 03 1 6s473ms 6s473ms 08 5 24s667ms 4s933ms 11 2 10s913ms 5s456ms 13 10 5m2s 30s271ms 14 4 37s248ms 9s312ms 15 1 2s310ms 2s310ms 19 80 4m21s 3s273ms -
DELETE FROM account_move_line WHERE id IN (5866601, 5866602, 5866603, 5866604, 5866605, 5866606, 5866607, 5866608, 5866609, 5866610, 5866611, 5866612, 5866613, 5866614, 5866615, 5866616, 5866617, 5866618, 5866619, 5866620, 5866621, 5866622, 5866623, 5866624, 5866625, 5866626, 5866627, 5866628, 5866629, 5866630, 5866631, 5866632, 5866633, 5866634, 5866635, 5866636, 5866637, 5866638, 5866639, 5866640, 5866641, 5866642, 5866643, 5866644, 5866645, 5866646, 5866647, 5866648, 5866649, 5866650, 5866651, 5866652, 5866653, 5866654, 5866655, 5866656, 5866657, 5866658, 5866659, 5866660, 5866661, 5866662, 5866663, 5866664, 5866665, 5866666, 5866667, 5866668, 5866669, 5866670, 5866671, 5866672, 5866673, 5866674, 5866675, 5866676, 5866677, 5866678, 5866679, 5866680, 5866681, 5866682, 5866683, 5866684, 5866685, 5866686, 5866687, 5866688, 5866689, 5866690, 5866691, 5866692, 5866693, 5866694, 5866695, 5866696, 5866697, 5866698, 5866699, 5866700, 5866701, 5866702, 5866703, 5866704, 5866705, 5866706, 5866707, 5866708, 5866709, 5866710, 5866711, 5866712, 5866713, 5866714, 5866715, 5866716, 5866717, 5866718, 5866719, 5866720, 5866721, 5866722);
Date: 2024-09-19 17:30:08 Duration: 4m28s
-
DELETE FROM account_move_line WHERE id IN (5776281, 5776282, 5776283, 5776284, 5776285, 5776286, 5776287, 5776288, 5776289, 5776290);
Date: 2024-09-19 18:15:08 Duration: 21s844ms
-
DELETE FROM account_move_line WHERE id IN (5869117, 5869118, 5869119, 5869120, 5869121, 5869122, 5869123);
Date: 2024-09-19 23:24:30 Duration: 14s756ms
15 9m52s 1,701 316ms 1s450ms 348ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 19 20 78 25s997ms 333ms 21 45 14s606ms 324ms 22 39 12s804ms 328ms 23 96 31s727ms 330ms 00 162 52s742ms 325ms 01 111 36s68ms 324ms 02 57 18s854ms 330ms 03 27 8s883ms 329ms 04 51 16s929ms 331ms 05 15 5s81ms 338ms 06 27 8s996ms 333ms 07 18 6s263ms 347ms 08 27 10s353ms 383ms 09 162 58s614ms 361ms 10 60 23s176ms 386ms 11 152 57s303ms 376ms 12 88 31s799ms 361ms 13 114 44s653ms 391ms 14 45 16s35ms 356ms 15 126 43s989ms 349ms 16 108 37s190ms 344ms 17 75 24s669ms 328ms 18 9 2s940ms 326ms 19 9 2s974ms 330ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:39:27 Duration: 1s450ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 17:33:22 Duration: 1s33ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 16:37:44 Duration: 837ms
16 8m24s 1,473 315ms 2s309ms 342ms 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 Sep 19 20 75 24s721ms 329ms 21 30 9s830ms 327ms 22 24 7s871ms 327ms 23 66 21s724ms 329ms 00 165 53s870ms 326ms 01 183 1m 328ms 02 21 6s869ms 327ms 03 21 7s42ms 335ms 04 39 12s983ms 332ms 05 18 6s119ms 339ms 06 21 7s17ms 334ms 07 12 3s929ms 327ms 08 15 5s210ms 347ms 09 108 40s449ms 374ms 10 66 23s289ms 352ms 11 96 35s417ms 368ms 12 78 28s480ms 365ms 13 105 37s739ms 359ms 14 6 2s195ms 365ms 15 123 42s621ms 346ms 16 93 32s96ms 345ms 17 102 33s258ms 326ms 18 3 966ms 322ms 19 3 984ms 328ms -
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-09-19 13:32:02 Duration: 2s309ms
-
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-09-19 13:32:03 Duration: 764ms
-
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-09-19 13:32:22 Duration: 722ms
17 6m56s 1,659 235ms 545ms 251ms 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 Sep 19 20 75 18s264ms 243ms 21 30 7s263ms 242ms 22 42 10s151ms 241ms 23 69 16s805ms 243ms 00 105 25s359ms 241ms 01 159 38s613ms 242ms 02 24 5s747ms 239ms 03 150 36s659ms 244ms 04 282 1m9s 247ms 05 15 3s832ms 255ms 06 30 7s369ms 245ms 07 36 8s875ms 246ms 08 12 3s18ms 251ms 09 42 11s757ms 279ms 10 21 6s472ms 308ms 11 42 12s90ms 287ms 12 87 23s832ms 273ms 13 75 19s141ms 255ms 14 12 3s229ms 269ms 15 156 40s760ms 261ms 16 93 23s175ms 249ms 17 75 18s255ms 243ms 18 21 5s99ms 242ms 19 6 1s470ms 245ms -
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-09-19 14:53:15 Duration: 545ms
-
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-09-19 15:35:41 Duration: 509ms
-
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-09-19 15:10:40 Duration: 509ms
18 6m56s 1,605 234ms 1s514ms 259ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 19 20 27 6s696ms 248ms 21 45 11s115ms 247ms 22 15 3s656ms 243ms 23 48 11s746ms 244ms 00 153 37s780ms 246ms 01 204 50s408ms 247ms 02 9 2s210ms 245ms 03 54 13s285ms 246ms 04 42 11s107ms 264ms 05 3 768ms 256ms 06 42 10s657ms 253ms 07 12 2s936ms 244ms 08 18 4s840ms 268ms 09 102 27s791ms 272ms 10 105 27s544ms 262ms 11 159 43s919ms 276ms 12 135 35s220ms 260ms 13 102 28s679ms 281ms 14 33 10s914ms 330ms 15 120 31s554ms 262ms 16 105 26s264ms 250ms 17 45 11s47ms 245ms 18 21 5s128ms 244ms 19 6 1s476ms 246ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 18:47:41 Duration: 1s514ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 05:41:41 Duration: 656ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:16:43 Duration: 648ms
19 6m53s 705 504ms 2s665ms 586ms select id from account_move_line where main_invoice_line_id = ? and product_id is not null;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 19 08 6 3s542ms 590ms 13 662 6m29s 588ms 14 8 4s591ms 573ms 15 29 16s275ms 561ms -
select id from account_move_line where main_invoice_line_id = 5866852 and product_id is not null;
Date: 2024-09-19 17:32:38 Duration: 2s665ms
-
select id from account_move_line where main_invoice_line_id = 5866800 and product_id is not null;
Date: 2024-09-19 17:35:10 Duration: 1s583ms
-
select id from account_move_line where main_invoice_line_id = 5866849 and product_id is not null;
Date: 2024-09-19 17:39:22 Duration: 1s158ms
20 6m31s 2,180 159ms 482ms 179ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 19 20 5 884ms 176ms 05 19 3s241ms 170ms 06 29 4s860ms 167ms 07 54 9s702ms 179ms 08 181 33s326ms 184ms 09 232 41s478ms 178ms 10 362 1m4s 179ms 11 402 1m13s 181ms 12 270 47s644ms 176ms 13 208 37s766ms 181ms 14 191 33s673ms 176ms 15 106 19s74ms 179ms 16 121 21s770ms 179ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 45;
Date: 2024-09-19 12:41:56 Duration: 482ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 45;
Date: 2024-09-19 12:41:56 Duration: 376ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 182790 AND warehouse_id = 36;
Date: 2024-09-19 11:58:37 Duration: 354ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 124,069 6h57m41s 122ms 3s56ms 201ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 19 20 3,837 9m51s 154ms 21 3,863 9m26s 146ms 22 3,633 9m28s 156ms 23 3,776 9m9s 145ms 00 3,852 9m37s 149ms 01 3,704 9m9s 148ms 02 3,611 9m12s 153ms 03 3,834 9m11s 143ms 04 3,987 10m49s 163ms 05 4,209 10m28s 149ms 06 4,222 10m18s 146ms 07 5,119 14m25s 169ms 08 8,177 34m12s 251ms 09 8,595 32m52s 229ms 10 8,712 35m36s 245ms 11 8,112 34m33s 255ms 12 8,373 35m10s 252ms 13 7,958 36m25s 274ms 14 7,626 29m58s 235ms 15 6,728 26m20s 234ms 16 4,136 11m20s 164ms 17 2,757 6m50s 148ms 18 2,675 6m30s 146ms 19 2,573 6m41s 155ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s56ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s31ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19543]', '["pointspring_master","mail.channel",31]', '["pointspring_master","mail.channel",48]', '["pointspring_master","mail.channel",287]', '["pointspring_master","mail.channel",329]', '["pointspring_master","mail.channel",353]', '["pointspring_master","mail.channel",360]', '["pointspring_master","mail.channel",361]', '["pointspring_master","mail.channel",470]', '["pointspring_master","mail.channel",501]', '["pointspring_master","mail.channel",502]', '["pointspring_master","mail.channel",595]', '["pointspring_master","res.partner",19543]', '["pointspring_master","ir.needaction",19543]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s19ms
2 7,592 23m4s 166ms 972ms 182ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 19 20 37 6s487ms 175ms 21 8 1s376ms 172ms 05 63 11s81ms 175ms 06 48 8s292ms 172ms 07 252 44s702ms 177ms 08 835 2m32s 183ms 09 883 2m40s 182ms 10 739 2m16s 184ms 11 1,001 3m3s 183ms 12 899 2m42s 180ms 13 656 2m3s 188ms 14 979 2m58s 182ms 15 639 1m55s 180ms 16 553 1m38s 177ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 56.0 IS NOT NULL THEN GREATEST ((2186.0 - 2186.0) + (56.0 - 56.0), 0) ELSE GREATEST ((2186.0 - 2186.0), 0) END where product_id = 195399 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 13:38:39 Duration: 972ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((1538.0 - 2701.0) + (0.0 - 245.0), 0) ELSE GREATEST ((1538.0 - 2701.0), 0) END where product_id = 3 and warehouse_id = 42 and company_id = 1;
Date: 2024-09-19 15:57:02 Duration: 954ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 2.0 IS NOT NULL THEN GREATEST ((1.0 - 1.0) + (2.0 - 2.0), 0) ELSE GREATEST ((1.0 - 1.0), 0) END where product_id = 211877 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 12:48:29 Duration: 927ms
3 6,318 19m11s 160ms 900ms 182ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 19 20 48 8s416ms 175ms 21 8 1s375ms 171ms 05 26 4s571ms 175ms 06 154 26s566ms 172ms 07 298 52s455ms 176ms 08 646 1m58s 183ms 09 644 1m58s 184ms 10 772 2m20s 182ms 11 1,013 3m4s 182ms 12 810 2m27s 181ms 13 617 1m54s 185ms 14 556 1m42s 185ms 15 362 1m5s 180ms 16 364 1m4s 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) - COALESCE(2.0, 0) WHERE product_id = 194489 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 18:57:12 Duration: 900ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(47.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 248952 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 17:58:04 Duration: 777ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(60.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 207549 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 16:42:54 Duration: 596ms
4 5,763 14m37s 140ms 926ms 152ms 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 #4
Day Hour Count Duration Avg duration Sep 19 20 240 35s158ms 146ms 21 240 35s233ms 146ms 22 240 34s838ms 145ms 23 240 34s765ms 144ms 00 240 34s638ms 144ms 01 240 34s710ms 144ms 02 240 34s712ms 144ms 03 240 34s960ms 145ms 04 240 34s902ms 145ms 05 240 35s379ms 147ms 06 240 35s628ms 148ms 07 240 36s284ms 151ms 08 240 39s92ms 162ms 09 240 38s759ms 161ms 10 241 40s299ms 167ms 11 240 39s514ms 164ms 12 240 37s365ms 155ms 13 241 40s96ms 166ms 14 241 41s25ms 170ms 15 240 38s158ms 158ms 16 240 36s834ms 153ms 17 240 34s932ms 145ms 18 240 34s808ms 145ms 19 240 34s933ms 145ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_description', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_operator', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_range', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_rules', 'pg_catalog.pg_cast', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_collation', 'pg_catalog.pg_group', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_matviews', 'pg_catalog.pg_indexes', 'pg_catalog.pg_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_language', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_trigger', 'pg_catalog.pg_transform', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_cursors', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.view_routine_usage', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.check_constraints', 'information_schema.routine_routine_usage', 'information_schema.view_column_usage', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.tables', 'information_schema.attributes', 'information_schema.triggered_update_columns', 'information_schema.schemata', 'information_schema.user_mapping_options', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.view_table_usage', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.column_udt_usage', 'information_schema.sequences', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.triggers', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.parameters', 'information_schema.sql_features', 'information_schema.routines', 'information_schema.columns', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.column_domain_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.role_table_grants', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.routine_table_usage', 'information_schema.sql_implementation_info', 'information_schema.role_usage_grants', 'information_schema.element_types', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-09-19 14:06:42 Duration: 926ms
-
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_opclass', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication', 'pg_catalog.pg_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_extension', 'pg_catalog.pg_index', 'pg_catalog.pg_operator', 'pg_catalog.pg_views', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_constraint', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_range', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_matviews', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_group', 'pg_catalog.pg_attribute', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_policy', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stats', 'pg_catalog.pg_amop', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_conversion', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_cursors', 'pg_catalog.pg_amproc', 'pg_catalog.pg_description', 'pg_catalog.pg_collation', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_depend', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_database', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdepend', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.check_constraints', 'information_schema.constraint_column_usage', 'information_schema.routine_column_usage', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domain_udt_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.administrable_role_authorizations', 'information_schema.column_column_usage', 'information_schema.views', 'information_schema.columns', 'information_schema.sql_features', 'information_schema.user_mappings', 'information_schema.triggers', 'information_schema.character_sets', 'information_schema.key_column_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.column_privileges', 'information_schema.domain_constraints', 'information_schema.routine_privileges', 'information_schema.sequences', 'information_schema.routines', 'information_schema.column_udt_usage', 'information_schema.triggered_update_columns', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.role_usage_grants', 'information_schema.role_column_grants', 'information_schema.udt_privileges', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.tables', 'information_schema.foreign_table_options', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.collations', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.routine_table_usage', 'information_schema.check_constraint_routine_usage', 'information_schema.schemata', 'information_schema.role_routine_grants', 'information_schema.sql_implementation_info', 'information_schema.table_privileges', 'information_schema.usage_privileges', 'information_schema.view_routine_usage', 'information_schema.information_schema_catalog_name', 'information_schema.column_domain_usage', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-19 18:40:27 Duration: 878ms
-
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_statio_all_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_subscription', 'pg_catalog.pg_publication', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_locks', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_database', 'pg_catalog.pg_group', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_roles', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_amop', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_index', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_class', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_policy', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_inherits', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stats', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_conversion', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_extension', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rules', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_proc', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_parser', 'information_schema.table_constraints', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.sql_implementation_info', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.user_mapping_options', 'information_schema.role_column_grants', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage', 'information_schema.administrable_role_authorizations', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.foreign_data_wrapper_options', 'information_schema.routine_column_usage', 'information_schema.triggers', 'information_schema.foreign_server_options', 'information_schema.table_privileges', 'information_schema.column_column_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.collation_character_set_applicability', 'information_schema.data_type_privileges', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.routines', 'information_schema.parameters', 'information_schema.user_mappings', 'information_schema.attributes', 'information_schema.column_domain_usage', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.information_schema_catalog_name', 'information_schema.sql_sizing', 'information_schema.role_routine_grants', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.applicable_roles', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.key_column_usage', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.collations', 'information_schema.view_table_usage', 'information_schema.role_table_grants', 'information_schema.routine_table_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-19 18:57:12 Duration: 845ms
5 4,860 28m35s 299ms 2s331ms 353ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 19 20 36 11s768ms 326ms 21 6 1s917ms 319ms 04 1 319ms 319ms 05 25 7s992ms 319ms 06 79 26s628ms 337ms 07 211 1m9s 328ms 08 490 2m54s 355ms 09 524 3m6s 355ms 10 593 3m34s 361ms 11 779 4m40s 359ms 12 668 3m50s 345ms 13 452 2m47s 371ms 14 449 2m40s 356ms 15 288 1m38s 342ms 16 259 1m25s 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 15:39:27 Duration: 2s331ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 16:50:26 Duration: 1s985ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 14:16:59 Duration: 1s707ms
6 4,859 32m49s 375ms 1s879ms 405ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 19 20 36 14s143ms 392ms 21 6 2s301ms 383ms 04 1 390ms 390ms 05 25 9s687ms 387ms 06 79 30s865ms 390ms 07 211 1m23s 394ms 08 489 3m19s 407ms 09 524 3m31s 403ms 10 593 4m4s 411ms 11 779 5m16s 406ms 12 668 4m27s 401ms 13 452 3m7s 414ms 14 449 3m3s 408ms 15 288 1m55s 402ms 16 259 1m42s 396ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 14:35:46 Duration: 1s879ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 17:47:18 Duration: 1s874ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 12:57:09 Duration: 1s670ms
7 3,680 11m19s 161ms 1s341ms 184ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 19 20 10 1s796ms 179ms 21 2 364ms 182ms 05 50 9s350ms 187ms 06 70 12s31ms 171ms 07 126 22s620ms 179ms 08 330 1m1s 186ms 09 569 1m43s 182ms 10 312 59s438ms 190ms 11 448 1m22s 184ms 12 520 1m36s 185ms 13 394 1m13s 186ms 14 345 1m4s 187ms 15 218 39s938ms 183ms 16 286 50s870ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 212973 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-19 16:13:50 Duration: 1s341ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:55 Duration: 823ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:56 Duration: 399ms
8 2,406 32m42s 708ms 3s309ms 815ms 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 #8
Day Hour Count Duration Avg duration Sep 19 20 61 45s371ms 743ms 21 14 10s325ms 737ms 07 281 3m34s 764ms 08 431 5m56s 826ms 09 195 2m42s 832ms 10 204 2m49s 830ms 11 257 3m35s 839ms 12 190 2m42s 854ms 13 221 3m 815ms 14 294 4m5s 834ms 15 124 1m37s 782ms 16 134 1m43s 771ms -
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 ('%%40020228%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%40020228%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%40020228%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 3s309ms
-
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 ('%%WKS4707QVHPMatHD0OnHand2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 12:23:51 Duration: 3s75ms
-
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 ('%%ct2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ct2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ct2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 2s940ms
9 2,216 6m16s 120ms 560ms 169ms 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 #9
Day Hour Count Duration Avg duration Sep 19 07 167 27s494ms 164ms 08 393 1m2s 159ms 09 321 56s873ms 177ms 10 426 1m24s 198ms 11 220 39s730ms 180ms 12 199 30s257ms 152ms 13 107 16s988ms 158ms 14 214 33s960ms 158ms 15 106 15s273ms 144ms 16 63 8s260ms 131ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 181365) 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-09-19 12:56:16 Duration: 560ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 184263) 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-09-19 12:56:17 Duration: 551ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 185142) 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-09-19 13:14:16 Duration: 547ms
10 2,180 6m31s 159ms 482ms 179ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 19 20 5 884ms 176ms 05 19 3s241ms 170ms 06 29 4s860ms 167ms 07 54 9s702ms 179ms 08 181 33s326ms 184ms 09 232 41s478ms 178ms 10 362 1m4s 179ms 11 402 1m13s 181ms 12 270 47s644ms 176ms 13 208 37s766ms 181ms 14 191 33s673ms 176ms 15 106 19s74ms 179ms 16 121 21s770ms 179ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 45;
Date: 2024-09-19 12:41:56 Duration: 482ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238648 AND warehouse_id = 45;
Date: 2024-09-19 12:41:56 Duration: 376ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 182790 AND warehouse_id = 36;
Date: 2024-09-19 11:58:37 Duration: 354ms
11 1,784 5m25s 161ms 1s107ms 182ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 19 20 20 3s458ms 172ms 21 4 676ms 169ms 05 4 838ms 209ms 06 33 5s590ms 169ms 07 104 18s197ms 174ms 08 193 35s5ms 181ms 09 226 41s35ms 181ms 10 181 33s477ms 184ms 11 184 33s600ms 182ms 12 253 47s486ms 187ms 13 197 36s110ms 183ms 14 152 27s987ms 184ms 15 146 26s492ms 181ms 16 87 15s564ms 178ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 177165 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 1s107ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 176920 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 397ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 207571 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 378ms
12 1,737 15m38s 486ms 2s353ms 540ms 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 #12
Day Hour Count Duration Avg duration Sep 19 20 3 1s466ms 488ms 21 8 3s906ms 488ms 22 11 5s426ms 493ms 02 1 487ms 487ms 03 4 1s984ms 496ms 04 7 3s451ms 493ms 05 27 13s491ms 499ms 06 12 6s58ms 504ms 07 117 1m 516ms 08 257 2m18s 538ms 09 201 1m53s 563ms 10 197 1m48s 550ms 11 141 1m16s 539ms 12 145 1m18s 543ms 13 199 1m52s 563ms 14 155 1m24s 542ms 15 132 1m8s 521ms 16 112 57s505ms 513ms 17 3 1s467ms 489ms 18 5 2s452ms 490ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 17:48:12 Duration: 2s353ms
-
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/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 14:00:01 Duration: 2s29ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 20:02:04 Duration: 1s546ms
13 1,701 9m52s 316ms 1s450ms 348ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 19 20 78 25s997ms 333ms 21 45 14s606ms 324ms 22 39 12s804ms 328ms 23 96 31s727ms 330ms 00 162 52s742ms 325ms 01 111 36s68ms 324ms 02 57 18s854ms 330ms 03 27 8s883ms 329ms 04 51 16s929ms 331ms 05 15 5s81ms 338ms 06 27 8s996ms 333ms 07 18 6s263ms 347ms 08 27 10s353ms 383ms 09 162 58s614ms 361ms 10 60 23s176ms 386ms 11 152 57s303ms 376ms 12 88 31s799ms 361ms 13 114 44s653ms 391ms 14 45 16s35ms 356ms 15 126 43s989ms 349ms 16 108 37s190ms 344ms 17 75 24s669ms 328ms 18 9 2s940ms 326ms 19 9 2s974ms 330ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:39:27 Duration: 1s450ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 17:33:22 Duration: 1s33ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 16:37:44 Duration: 837ms
14 1,659 6m56s 235ms 545ms 251ms 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 #14
Day Hour Count Duration Avg duration Sep 19 20 75 18s264ms 243ms 21 30 7s263ms 242ms 22 42 10s151ms 241ms 23 69 16s805ms 243ms 00 105 25s359ms 241ms 01 159 38s613ms 242ms 02 24 5s747ms 239ms 03 150 36s659ms 244ms 04 282 1m9s 247ms 05 15 3s832ms 255ms 06 30 7s369ms 245ms 07 36 8s875ms 246ms 08 12 3s18ms 251ms 09 42 11s757ms 279ms 10 21 6s472ms 308ms 11 42 12s90ms 287ms 12 87 23s832ms 273ms 13 75 19s141ms 255ms 14 12 3s229ms 269ms 15 156 40s760ms 261ms 16 93 23s175ms 249ms 17 75 18s255ms 243ms 18 21 5s99ms 242ms 19 6 1s470ms 245ms -
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-09-19 14:53:15 Duration: 545ms
-
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-09-19 15:35:41 Duration: 509ms
-
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-09-19 15:10:40 Duration: 509ms
15 1,605 6m56s 234ms 1s514ms 259ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 19 20 27 6s696ms 248ms 21 45 11s115ms 247ms 22 15 3s656ms 243ms 23 48 11s746ms 244ms 00 153 37s780ms 246ms 01 204 50s408ms 247ms 02 9 2s210ms 245ms 03 54 13s285ms 246ms 04 42 11s107ms 264ms 05 3 768ms 256ms 06 42 10s657ms 253ms 07 12 2s936ms 244ms 08 18 4s840ms 268ms 09 102 27s791ms 272ms 10 105 27s544ms 262ms 11 159 43s919ms 276ms 12 135 35s220ms 260ms 13 102 28s679ms 281ms 14 33 10s914ms 330ms 15 120 31s554ms 262ms 16 105 26s264ms 250ms 17 45 11s47ms 245ms 18 21 5s128ms 244ms 19 6 1s476ms 246ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 18:47:41 Duration: 1s514ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 05:41:41 Duration: 656ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:16:43 Duration: 648ms
16 1,561 4m1s 120ms 1s788ms 155ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 19 20 3 391ms 130ms 05 8 1s21ms 127ms 06 3 398ms 132ms 07 28 4s245ms 151ms 08 206 32s725ms 158ms 09 167 26s181ms 156ms 10 205 29s746ms 145ms 11 214 33s15ms 154ms 12 180 26s402ms 146ms 13 201 33s789ms 168ms 14 193 31s205ms 161ms 15 107 16s369ms 152ms 16 46 6s485ms 140ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 197892 and sol.warehouse_id = 36 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-19 17:54:07 Duration: 1s788ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 214037 and sol.warehouse_id = 36 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-19 15:34:29 Duration: 1s277ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 191045 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-19 18:34:00 Duration: 1s152ms
17 1,473 8m24s 315ms 2s309ms 342ms 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 #17
Day Hour Count Duration Avg duration Sep 19 20 75 24s721ms 329ms 21 30 9s830ms 327ms 22 24 7s871ms 327ms 23 66 21s724ms 329ms 00 165 53s870ms 326ms 01 183 1m 328ms 02 21 6s869ms 327ms 03 21 7s42ms 335ms 04 39 12s983ms 332ms 05 18 6s119ms 339ms 06 21 7s17ms 334ms 07 12 3s929ms 327ms 08 15 5s210ms 347ms 09 108 40s449ms 374ms 10 66 23s289ms 352ms 11 96 35s417ms 368ms 12 78 28s480ms 365ms 13 105 37s739ms 359ms 14 6 2s195ms 365ms 15 123 42s621ms 346ms 16 93 32s96ms 345ms 17 102 33s258ms 326ms 18 3 966ms 322ms 19 3 984ms 328ms -
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-09-19 13:32:02 Duration: 2s309ms
-
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-09-19 13:32:03 Duration: 764ms
-
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-09-19 13:32:22 Duration: 722ms
18 1,426 4m32s 159ms 1s552ms 191ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 19 05 6 989ms 164ms 06 2 328ms 164ms 07 21 3s688ms 175ms 08 86 16s326ms 189ms 09 136 25s249ms 185ms 10 109 21s185ms 194ms 11 195 37s773ms 193ms 12 220 41s238ms 187ms 13 161 30s454ms 189ms 14 212 40s674ms 191ms 15 269 53s400ms 198ms 16 9 1s639ms 182ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%6128199%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%6128199%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%6128199%')))) 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 ('%6128199%') OR unaccent (res_partner.display_name) ilike unaccent ('%6128199%') OR unaccent (res_partner.ref) ilike unaccent ('%6128199%') OR unaccent (res_partner.vat) ilike unaccent ('6128199')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%6128199%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 19:24:29 Duration: 1s552ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%24610%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%24610%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%24610%')))) 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 ('%24610%') OR unaccent (res_partner.display_name) ilike unaccent ('%24610%') OR unaccent (res_partner.ref) ilike unaccent ('%24610%') OR unaccent (res_partner.vat) ilike unaccent ('24610')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%24610%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 14:05:49 Duration: 1s387ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%C-03928%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%C-03928%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%C-03928%')))) 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 ('%C-03928%') OR unaccent (res_partner.display_name) ilike unaccent ('%C-03928%') OR unaccent (res_partner.ref) ilike unaccent ('%C-03928%') OR unaccent (res_partner.vat) ilike unaccent ('C-03928')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%C-03928%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 19:24:30 Duration: 1s363ms
19 1,305 3m5s 120ms 812ms 141ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 19 20 8 1s17ms 127ms 21 2 377ms 188ms 05 20 2s753ms 137ms 06 3 380ms 126ms 07 69 9s203ms 133ms 08 185 26s755ms 144ms 09 120 16s931ms 141ms 10 173 24s786ms 143ms 11 152 22s713ms 149ms 12 119 16s427ms 138ms 13 154 22s87ms 143ms 14 192 26s998ms 140ms 15 75 10s289ms 137ms 16 33 4s319ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (214175, 214168)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-19 15:34:28 Duration: 812ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (199634)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-19 12:41:57 Duration: 734ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (181416)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-19 14:05:50 Duration: 665ms
20 1,234 2m45s 120ms 254ms 134ms 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 #20
Day Hour Count Duration Avg duration Sep 19 07 63 8s275ms 131ms 08 195 26s205ms 134ms 09 117 15s602ms 133ms 10 209 28s511ms 136ms 11 61 8s266ms 135ms 12 178 23s861ms 134ms 13 164 22s37ms 134ms 14 139 19s150ms 137ms 15 62 8s83ms 130ms 16 46 5s896ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 39) AND ("product_warehouse_inventory"."product_id" = 211715)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-19 18:14:21 Duration: 254ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 209352)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-19 12:55:10 Duration: 246ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 209452)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-19 13:07:45 Duration: 241ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 21s924ms 1h9m52s 35m6s 2 1h10m13s select partner_id, partner_name, to_char(last_time_entries_checked, ?) as last_time_entries_checked, account_id, account_name, account_code, max_date from ( select p.id as partner_id, p.name as partner_name, p.last_time_entries_checked as last_time_entries_checked, a.id as account_id, a.name as account_name, a.code as account_code, max(l.write_date) as max_date from account_move_line l right join account_account a on (a.id = l.account_id) right join account_account_type at on (at.id = a.user_type_id) right join res_partner p on (l.partner_id = p.id) where a.reconcile is true and l.full_reconcile_id is null and at.type = ? and l.company_id = ? and exists ( select null from account_move_line l join account_move move on l.move_id = move.id join account_journal journal on l.journal_id = journal.id where l.account_id = a.id and l.partner_id = p.id and l.amount_residual > ? and move.state = ?) and exists ( select null from account_move_line l join account_move move on l.move_id = move.id join account_journal journal on l.journal_id = journal.id where l.account_id = a.id and l.partner_id = p.id and l.amount_residual < ? and move.state = ?) group by l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked order by p.last_time_entries_checked) as s where (last_time_entries_checked is null or max_date > last_time_entries_checked);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 19 14 1 21s924ms 21s924ms 15 1 1h9m52s 1h9m52s -
SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'payable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);
Date: 2024-09-19 19:23:57 Duration: 1h9m52s
-
SELECT partner_id, partner_name, to_char(last_time_entries_checked, 'YYYY-MM-DD') AS last_time_entries_checked, account_id, account_name, account_code, max_date FROM ( SELECT p.id AS partner_id, p.name AS partner_name, p.last_time_entries_checked AS last_time_entries_checked, a.id AS account_id, a.name AS account_name, a.code AS account_code, MAX(l.write_date) AS max_date FROM account_move_line l RIGHT JOIN account_account a ON (a.id = l.account_id) RIGHT JOIN account_account_type at ON (at.id = a.user_type_id) RIGHT JOIN res_partner p ON (l.partner_id = p.id) WHERE a.reconcile IS TRUE AND l.full_reconcile_id is NULL AND at.type = 'receivable' AND l.company_id = 1 AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual > 0 AND move.state = 'posted') AND EXISTS ( SELECT NULL FROM account_move_line l JOIN account_move move ON l.move_id = move.id JOIN account_journal journal ON l.journal_id = journal.id WHERE l.account_id = a.id AND l.partner_id = p.id AND l.amount_residual < 0 AND move.state = 'posted') GROUP BY l.partner_id, p.id, a.id, a.name, a.code, p.last_time_entries_checked ORDER BY p.last_time_entries_checked) as s WHERE (last_time_entries_checked IS NULL OR max_date > last_time_entries_checked);
Date: 2024-09-19 18:13:41 Duration: 21s924ms
2 2s89ms 4m28s 6s273ms 103 10m46s delete from account_move_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 19 03 1 6s473ms 6s473ms 08 5 24s667ms 4s933ms 11 2 10s913ms 5s456ms 13 10 5m2s 30s271ms 14 4 37s248ms 9s312ms 15 1 2s310ms 2s310ms 19 80 4m21s 3s273ms -
DELETE FROM account_move_line WHERE id IN (5866601, 5866602, 5866603, 5866604, 5866605, 5866606, 5866607, 5866608, 5866609, 5866610, 5866611, 5866612, 5866613, 5866614, 5866615, 5866616, 5866617, 5866618, 5866619, 5866620, 5866621, 5866622, 5866623, 5866624, 5866625, 5866626, 5866627, 5866628, 5866629, 5866630, 5866631, 5866632, 5866633, 5866634, 5866635, 5866636, 5866637, 5866638, 5866639, 5866640, 5866641, 5866642, 5866643, 5866644, 5866645, 5866646, 5866647, 5866648, 5866649, 5866650, 5866651, 5866652, 5866653, 5866654, 5866655, 5866656, 5866657, 5866658, 5866659, 5866660, 5866661, 5866662, 5866663, 5866664, 5866665, 5866666, 5866667, 5866668, 5866669, 5866670, 5866671, 5866672, 5866673, 5866674, 5866675, 5866676, 5866677, 5866678, 5866679, 5866680, 5866681, 5866682, 5866683, 5866684, 5866685, 5866686, 5866687, 5866688, 5866689, 5866690, 5866691, 5866692, 5866693, 5866694, 5866695, 5866696, 5866697, 5866698, 5866699, 5866700, 5866701, 5866702, 5866703, 5866704, 5866705, 5866706, 5866707, 5866708, 5866709, 5866710, 5866711, 5866712, 5866713, 5866714, 5866715, 5866716, 5866717, 5866718, 5866719, 5866720, 5866721, 5866722);
Date: 2024-09-19 17:30:08 Duration: 4m28s
-
DELETE FROM account_move_line WHERE id IN (5776281, 5776282, 5776283, 5776284, 5776285, 5776286, 5776287, 5776288, 5776289, 5776290);
Date: 2024-09-19 18:15:08 Duration: 21s844ms
-
DELETE FROM account_move_line WHERE id IN (5869117, 5869118, 5869119, 5869120, 5869121, 5869122, 5869123);
Date: 2024-09-19 23:24:30 Duration: 14s756ms
3 902ms 2s971ms 1s7ms 648 10m52s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 19 21 2 1s827ms 913ms 07 37 35s876ms 969ms 08 108 1m48s 1s3ms 09 67 1m5s 982ms 10 99 1m40s 1s13ms 11 69 1m12s 1s53ms 12 48 48s914ms 1s19ms 13 71 1m13s 1s33ms 14 59 59s618ms 1s10ms 15 64 1m2s 982ms 16 24 23s50ms 960ms -
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 ('%r201609%')) 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 ('%r201609%'))) 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 ('%r201609%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%r201609%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 15:44:39 Duration: 2s971ms
-
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 ('%39mt%')) 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 ('%39mt%'))) 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 ('%39mt%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%39mt%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 18:57:14 Duration: 2s844ms
-
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 ('%EE75380%')) 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 ('%EE75380%'))) 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 ('%EE75380%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%EE75380%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-19 12:05:26 Duration: 2s672ms
4 696ms 2s892ms 829ms 1,057 14m36s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 19 08 5 3s956ms 791ms 09 86 1m10s 821ms 10 390 5m28s 841ms 11 490 6m43s 823ms 12 35 26s968ms 770ms 13 25 22s300ms 892ms 14 15 12s462ms 830ms 15 11 8s377ms 761ms -
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 ('%%MBA00099005455%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MBA00099005455%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MBA00099005455%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 14:06:42 Duration: 2s892ms
-
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 ('%%MBA000990054%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MBA000990054%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MBA000990054%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 14:06:42 Duration: 2s834ms
-
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 ('%%1011%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1011%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1011%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 15:46:03 Duration: 2s806ms
5 708ms 3s309ms 815ms 2,406 32m42s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 19 20 61 45s371ms 743ms 21 14 10s325ms 737ms 07 281 3m34s 764ms 08 431 5m56s 826ms 09 195 2m42s 832ms 10 204 2m49s 830ms 11 257 3m35s 839ms 12 190 2m42s 854ms 13 221 3m 815ms 14 294 4m5s 834ms 15 124 1m37s 782ms 16 134 1m43s 771ms -
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 ('%%40020228%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%40020228%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%40020228%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 3s309ms
-
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 ('%%WKS4707QVHPMatHD0OnHand2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%[WKS4707QVHP] Mat HD (0 On Hand)2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 12:23:51 Duration: 3s75ms
-
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 ('%%ct2%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ct2%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ct2%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 16:50:27 Duration: 2s940ms
6 709ms 2s856ms 814ms 1,031 13m59s 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 #6
Day Hour Count Duration Avg duration Sep 19 06 34 25s134ms 739ms 07 21 15s762ms 750ms 08 52 43s562ms 837ms 09 117 1m34s 809ms 10 71 58s276ms 820ms 11 86 1m7s 784ms 12 123 1m39s 809ms 13 259 3m37s 841ms 14 103 1m29s 865ms 15 93 1m12s 781ms 16 72 55s283ms 767ms -
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 ('%%ruj%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ruj%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ruj%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 18:23:39 Duration: 2s856ms
-
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 ('%%N65%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N6.5-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%N6.5-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 17:33:22 Duration: 2s187ms
-
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 ('%%N6528%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N6.5-28-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%N6.5-28-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-19 17:33:22 Duration: 1s647ms
7 504ms 2s665ms 586ms 705 6m53s select id from account_move_line where main_invoice_line_id = ? and product_id is not null;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 19 08 6 3s542ms 590ms 13 662 6m29s 588ms 14 8 4s591ms 573ms 15 29 16s275ms 561ms -
select id from account_move_line where main_invoice_line_id = 5866852 and product_id is not null;
Date: 2024-09-19 17:32:38 Duration: 2s665ms
-
select id from account_move_line where main_invoice_line_id = 5866800 and product_id is not null;
Date: 2024-09-19 17:35:10 Duration: 1s583ms
-
select id from account_move_line where main_invoice_line_id = 5866849 and product_id is not null;
Date: 2024-09-19 17:39:22 Duration: 1s158ms
8 486ms 2s353ms 540ms 1,737 15m38s 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 #8
Day Hour Count Duration Avg duration Sep 19 20 3 1s466ms 488ms 21 8 3s906ms 488ms 22 11 5s426ms 493ms 02 1 487ms 487ms 03 4 1s984ms 496ms 04 7 3s451ms 493ms 05 27 13s491ms 499ms 06 12 6s58ms 504ms 07 117 1m 516ms 08 257 2m18s 538ms 09 201 1m53s 563ms 10 197 1m48s 550ms 11 141 1m16s 539ms 12 145 1m18s 543ms 13 199 1m52s 563ms 14 155 1m24s 542ms 15 132 1m8s 521ms 16 112 57s505ms 513ms 17 3 1s467ms 489ms 18 5 2s452ms 490ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 17:48:12 Duration: 2s353ms
-
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/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 14:00:01 Duration: 2s29ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-19 20:02:04 Duration: 1s546ms
9 375ms 1s879ms 405ms 4,859 32m49s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 19 20 36 14s143ms 392ms 21 6 2s301ms 383ms 04 1 390ms 390ms 05 25 9s687ms 387ms 06 79 30s865ms 390ms 07 211 1m23s 394ms 08 489 3m19s 407ms 09 524 3m31s 403ms 10 593 4m4s 411ms 11 779 5m16s 406ms 12 668 4m27s 401ms 13 452 3m7s 414ms 14 449 3m3s 408ms 15 288 1m55s 402ms 16 259 1m42s 396ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 14:35:46 Duration: 1s879ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 17:47:18 Duration: 1s874ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-19 12:57:09 Duration: 1s670ms
10 299ms 2s331ms 353ms 4,860 28m35s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 19 20 36 11s768ms 326ms 21 6 1s917ms 319ms 04 1 319ms 319ms 05 25 7s992ms 319ms 06 79 26s628ms 337ms 07 211 1m9s 328ms 08 490 2m54s 355ms 09 524 3m6s 355ms 10 593 3m34s 361ms 11 779 4m40s 359ms 12 668 3m50s 345ms 13 452 2m47s 371ms 14 449 2m40s 356ms 15 288 1m38s 342ms 16 259 1m25s 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 15:39:27 Duration: 2s331ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 16:50:26 Duration: 1s985ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-19 14:16:59 Duration: 1s707ms
11 316ms 1s450ms 348ms 1,701 9m52s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 19 20 78 25s997ms 333ms 21 45 14s606ms 324ms 22 39 12s804ms 328ms 23 96 31s727ms 330ms 00 162 52s742ms 325ms 01 111 36s68ms 324ms 02 57 18s854ms 330ms 03 27 8s883ms 329ms 04 51 16s929ms 331ms 05 15 5s81ms 338ms 06 27 8s996ms 333ms 07 18 6s263ms 347ms 08 27 10s353ms 383ms 09 162 58s614ms 361ms 10 60 23s176ms 386ms 11 152 57s303ms 376ms 12 88 31s799ms 361ms 13 114 44s653ms 391ms 14 45 16s35ms 356ms 15 126 43s989ms 349ms 16 108 37s190ms 344ms 17 75 24s669ms 328ms 18 9 2s940ms 326ms 19 9 2s974ms 330ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:39:27 Duration: 1s450ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 17:33:22 Duration: 1s33ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-19 16:37:44 Duration: 837ms
12 315ms 2s309ms 342ms 1,473 8m24s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 19 20 75 24s721ms 329ms 21 30 9s830ms 327ms 22 24 7s871ms 327ms 23 66 21s724ms 329ms 00 165 53s870ms 326ms 01 183 1m 328ms 02 21 6s869ms 327ms 03 21 7s42ms 335ms 04 39 12s983ms 332ms 05 18 6s119ms 339ms 06 21 7s17ms 334ms 07 12 3s929ms 327ms 08 15 5s210ms 347ms 09 108 40s449ms 374ms 10 66 23s289ms 352ms 11 96 35s417ms 368ms 12 78 28s480ms 365ms 13 105 37s739ms 359ms 14 6 2s195ms 365ms 15 123 42s621ms 346ms 16 93 32s96ms 345ms 17 102 33s258ms 326ms 18 3 966ms 322ms 19 3 984ms 328ms -
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-09-19 13:32:02 Duration: 2s309ms
-
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-09-19 13:32:03 Duration: 764ms
-
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-09-19 13:32:22 Duration: 722ms
13 234ms 1s514ms 259ms 1,605 6m56s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 19 20 27 6s696ms 248ms 21 45 11s115ms 247ms 22 15 3s656ms 243ms 23 48 11s746ms 244ms 00 153 37s780ms 246ms 01 204 50s408ms 247ms 02 9 2s210ms 245ms 03 54 13s285ms 246ms 04 42 11s107ms 264ms 05 3 768ms 256ms 06 42 10s657ms 253ms 07 12 2s936ms 244ms 08 18 4s840ms 268ms 09 102 27s791ms 272ms 10 105 27s544ms 262ms 11 159 43s919ms 276ms 12 135 35s220ms 260ms 13 102 28s679ms 281ms 14 33 10s914ms 330ms 15 120 31s554ms 262ms 16 105 26s264ms 250ms 17 45 11s47ms 245ms 18 21 5s128ms 244ms 19 6 1s476ms 246ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 18:47:41 Duration: 1s514ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 05:41:41 Duration: 656ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-19 15:16:43 Duration: 648ms
14 235ms 545ms 251ms 1,659 6m56s 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 #14
Day Hour Count Duration Avg duration Sep 19 20 75 18s264ms 243ms 21 30 7s263ms 242ms 22 42 10s151ms 241ms 23 69 16s805ms 243ms 00 105 25s359ms 241ms 01 159 38s613ms 242ms 02 24 5s747ms 239ms 03 150 36s659ms 244ms 04 282 1m9s 247ms 05 15 3s832ms 255ms 06 30 7s369ms 245ms 07 36 8s875ms 246ms 08 12 3s18ms 251ms 09 42 11s757ms 279ms 10 21 6s472ms 308ms 11 42 12s90ms 287ms 12 87 23s832ms 273ms 13 75 19s141ms 255ms 14 12 3s229ms 269ms 15 156 40s760ms 261ms 16 93 23s175ms 249ms 17 75 18s255ms 243ms 18 21 5s99ms 242ms 19 6 1s470ms 245ms -
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-09-19 14:53:15 Duration: 545ms
-
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-09-19 15:35:41 Duration: 509ms
-
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-09-19 15:10:40 Duration: 509ms
15 122ms 3s56ms 201ms 124,069 6h57m41s 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 Sep 19 20 3,837 9m51s 154ms 21 3,863 9m26s 146ms 22 3,633 9m28s 156ms 23 3,776 9m9s 145ms 00 3,852 9m37s 149ms 01 3,704 9m9s 148ms 02 3,611 9m12s 153ms 03 3,834 9m11s 143ms 04 3,987 10m49s 163ms 05 4,209 10m28s 149ms 06 4,222 10m18s 146ms 07 5,119 14m25s 169ms 08 8,177 34m12s 251ms 09 8,595 32m52s 229ms 10 8,712 35m36s 245ms 11 8,112 34m33s 255ms 12 8,373 35m10s 252ms 13 7,958 36m25s 274ms 14 7,626 29m58s 235ms 15 6,728 26m20s 234ms 16 4,136 11m20s 164ms 17 2,757 6m50s 148ms 18 2,675 6m30s 146ms 19 2,573 6m41s 155ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s56ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s31ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-19 16:12:59') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19543]', '["pointspring_master","mail.channel",31]', '["pointspring_master","mail.channel",48]', '["pointspring_master","mail.channel",287]', '["pointspring_master","mail.channel",329]', '["pointspring_master","mail.channel",353]', '["pointspring_master","mail.channel",360]', '["pointspring_master","mail.channel",361]', '["pointspring_master","mail.channel",470]', '["pointspring_master","mail.channel",501]', '["pointspring_master","mail.channel",502]', '["pointspring_master","mail.channel",595]', '["pointspring_master","res.partner",19543]', '["pointspring_master","ir.needaction",19543]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-19 16:13:52 Duration: 3s19ms
16 159ms 1s552ms 191ms 1,426 4m32s 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 #16
Day Hour Count Duration Avg duration Sep 19 05 6 989ms 164ms 06 2 328ms 164ms 07 21 3s688ms 175ms 08 86 16s326ms 189ms 09 136 25s249ms 185ms 10 109 21s185ms 194ms 11 195 37s773ms 193ms 12 220 41s238ms 187ms 13 161 30s454ms 189ms 14 212 40s674ms 191ms 15 269 53s400ms 198ms 16 9 1s639ms 182ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%6128199%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%6128199%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%6128199%')))) 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 ('%6128199%') OR unaccent (res_partner.display_name) ilike unaccent ('%6128199%') OR unaccent (res_partner.ref) ilike unaccent ('%6128199%') OR unaccent (res_partner.vat) ilike unaccent ('6128199')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%6128199%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 19:24:29 Duration: 1s552ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%24610%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%24610%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%24610%')))) 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 ('%24610%') OR unaccent (res_partner.display_name) ilike unaccent ('%24610%') OR unaccent (res_partner.ref) ilike unaccent ('%24610%') OR unaccent (res_partner.vat) ilike unaccent ('24610')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%24610%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 14:05:49 Duration: 1s387ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%C-03928%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%C-03928%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%C-03928%')))) 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 ('%C-03928%') OR unaccent (res_partner.display_name) ilike unaccent ('%C-03928%') OR unaccent (res_partner.ref) ilike unaccent ('%C-03928%') OR unaccent (res_partner.vat) ilike unaccent ('C-03928')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%C-03928%') desc, unaccent (res_partner.display_name);
Date: 2024-09-19 19:24:30 Duration: 1s363ms
17 161ms 1s341ms 184ms 3,680 11m19s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 19 20 10 1s796ms 179ms 21 2 364ms 182ms 05 50 9s350ms 187ms 06 70 12s31ms 171ms 07 126 22s620ms 179ms 08 330 1m1s 186ms 09 569 1m43s 182ms 10 312 59s438ms 190ms 11 448 1m22s 184ms 12 520 1m36s 185ms 13 394 1m13s 186ms 14 345 1m4s 187ms 15 218 39s938ms 183ms 16 286 50s870ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 212973 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-09-19 16:13:50 Duration: 1s341ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:55 Duration: 823ms
-
UPDATE product_warehouse_inventory SET qty_available = 8.0 WHERE product_id = 251476 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 14:46:56 Duration: 399ms
18 161ms 1s107ms 182ms 1,784 5m25s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 19 20 20 3s458ms 172ms 21 4 676ms 169ms 05 4 838ms 209ms 06 33 5s590ms 169ms 07 104 18s197ms 174ms 08 193 35s5ms 181ms 09 226 41s35ms 181ms 10 181 33s477ms 184ms 11 184 33s600ms 182ms 12 253 47s486ms 187ms 13 197 36s110ms 183ms 14 152 27s987ms 184ms 15 146 26s492ms 181ms 16 87 15s564ms 178ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 177165 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 1s107ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 176920 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 397ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 207571 AND warehouse_id = 41;
Date: 2024-09-19 16:13:52 Duration: 378ms
19 166ms 972ms 182ms 7,592 23m4s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 19 20 37 6s487ms 175ms 21 8 1s376ms 172ms 05 63 11s81ms 175ms 06 48 8s292ms 172ms 07 252 44s702ms 177ms 08 835 2m32s 183ms 09 883 2m40s 182ms 10 739 2m16s 184ms 11 1,001 3m3s 183ms 12 899 2m42s 180ms 13 656 2m3s 188ms 14 979 2m58s 182ms 15 639 1m55s 180ms 16 553 1m38s 177ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 56.0 IS NOT NULL THEN GREATEST ((2186.0 - 2186.0) + (56.0 - 56.0), 0) ELSE GREATEST ((2186.0 - 2186.0), 0) END where product_id = 195399 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 13:38:39 Duration: 972ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((1538.0 - 2701.0) + (0.0 - 245.0), 0) ELSE GREATEST ((1538.0 - 2701.0), 0) END where product_id = 3 and warehouse_id = 42 and company_id = 1;
Date: 2024-09-19 15:57:02 Duration: 954ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 2.0 IS NOT NULL THEN GREATEST ((1.0 - 1.0) + (2.0 - 2.0), 0) ELSE GREATEST ((1.0 - 1.0), 0) END where product_id = 211877 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-19 12:48:29 Duration: 927ms
20 160ms 900ms 182ms 6,318 19m11s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 19 20 48 8s416ms 175ms 21 8 1s375ms 171ms 05 26 4s571ms 175ms 06 154 26s566ms 172ms 07 298 52s455ms 176ms 08 646 1m58s 183ms 09 644 1m58s 184ms 10 772 2m20s 182ms 11 1,013 3m4s 182ms 12 810 2m27s 181ms 13 617 1m54s 185ms 14 556 1m42s 185ms 15 362 1m5s 180ms 16 364 1m4s 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) - COALESCE(2.0, 0) WHERE product_id = 194489 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 18:57:12 Duration: 900ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(47.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 248952 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-19 17:58:04 Duration: 777ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(60.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 207549 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-09-19 16:42:54 Duration: 596ms
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
- 215,288 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1308 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 995 Max number of times the same event was reported
- 1,308 Total events found
Rank Times reported Error 1 995 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 19 20 34 21 29 22 34 23 33 00 33 01 32 02 33 03 102 04 102 05 32 06 32 07 35 08 33 09 38 10 33 11 37 12 32 13 33 14 40 15 31 16 37 17 27 18 30 19 93 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-09-19 06:50:05
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-09-19 07:00:03
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=58 FOR UPDATE NOWAIT
Date: 2024-09-19 07:06:21
2 276 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 19 22 2 01 7 03 1 04 2 05 1 06 2 07 18 08 33 09 49 10 27 11 22 12 14 13 35 14 27 15 15 16 19 18 1 19 1 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-19 23:25:32' WHERE id IN (21)
Date: 2024-09-19 23:25:32
Statement: SELECT * FROM website_visitor where id = 23174301 FOR NO KEY UPDATE NOWAIT
Date: 2024-09-19 05:29:30
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5712378) FOR NO KEY UPDATE SKIP LOCKED )
Date: 2024-09-19 14:57:14
3 15 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 19 08 3 09 3 13 5 14 4 - ERROR: process 37158 still waiting for ShareLock on transaction 308360014 after 1000.065 ms
- ERROR: process 50649 still waiting for ShareLock on transaction 308363610 after 1000.047 ms
- ERROR: process 3807919 still waiting for ShareLock on transaction 308366813 after 1000.040 ms
Detail: Process holding the lock: 3807745. Wait queue: 37158.
Context: while updating tuple (21872,10) 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 != 1666722 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 != 1666722 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-19 17:04:41
Detail: Process holding the lock: 23108. Wait queue: 50649.
Context: while updating tuple (22132,20) 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 != 1666752 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 != 1666752 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-19 17:15:23
Detail: Process holding the lock: 37006. Wait queue: 3807919.
Context: while updating tuple (21803,2) 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 != 1664431 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 != 1664431 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-19 17:26:08
4 10 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 19 09 9 13 1 - ERROR: process 3807829 still waiting for ExclusiveLock on tuple (21803,2) of relation 42418 of database 65946 after 1000.077 ms
- ERROR: process 3955879 still waiting for ExclusiveLock on tuple (6,33) of relation 42995 of database 65946 after 1000.052 ms
- ERROR: process 3859465 still waiting for ExclusiveLock on tuple (6,33) of relation 42995 of database 65946 after 1000.051 ms
Detail: Process holding the lock: 3807919. Wait queue: 3807829.
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 != 1664431 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 != 1664431 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-19 17:29:52
Detail: Process holding the lock: 4100137. Wait queue: 3955879.
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-19 13:43:13' WHERE id IN (56)Date: 2024-09-19 13:43:14
Detail: Process holding the lock: 4100137. Wait queue: 3955879, 3859465, 4100138.
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-19 13:43:15' WHERE id IN (56)Date: 2024-09-19 13:43:16
5 4 ERROR: column "..." of relation "..." contains null values
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 19 04 4 - ERROR: column "from_date" of relation "account_fiscal_position" contains null values
- ERROR: column "to_date" of relation "account_fiscal_position" contains null values
Statement: ALTER TABLE "account_fiscal_position" ALTER COLUMN "from_date" SET NOT NULL
Date: 2024-09-19 08:27:05
Statement: ALTER TABLE "account_fiscal_position" ALTER COLUMN "to_date" SET NOT NULL
Date: 2024-09-19 08:27:05
6 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 19 07 1 09 1 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
- ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
Detail: Key (vin_sn)=(1XKWD49X8KJ946662) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "name", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 969, (now() at time zone 'UTC'), 969, (now() at time zone 'UTC'), '2024-09-19', true, 114, 0.0, 0.0, NULL, 1, NULL, 5, 34093, '2024-09-19', NULL, NULL, 0, 0.0, NULL, NULL, 2, 200, 30, '2019', '46662', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '3045', '1XKWD49X8KJ946662') RETURNING idDate: 2024-09-19 11:04:38
Detail: Key (vehicle_unit_no, driver_id)=(843, 34094) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 953, (now() at time zone 'UTC'), 953, (now() at time zone 'UTC'), '2024-09-19', true, 117, 0.0, 0.0, NULL, 1, NULL, 5, 34094, '2024-09-19', NULL, NULL, 0, 0.0, 'AH34519', NULL, 2, 195, 21, NULL, 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '843', '9J128843') RETURNING idDate: 2024-09-19 13:37:35
7 2 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Sep 19 04 2 - ERROR: could not create unique index "vendor_account_master_unique_acc_no"
Detail: Key (account_number)=(0002609) is duplicated.
Statement: ALTER TABLE "vendor_account_master" ADD CONSTRAINT "vendor_account_master_unique_acc_no" unique (account_number)Date: 2024-09-19 08:27:04
8 1 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #8
Day Hour Count Sep 19 04 1 - ERROR: process 3764567 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.058 ms at character 34
Detail: Process holding the lock: 3764332. Wait queue: 3764567.
Statement: SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name"Date: 2024-09-19 08:27:31
9 1 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #9
Day Hour Count Sep 19 13 1 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM monthly_statement_line WHERE id IN (1258844, 1258839, 1258840, 1258841, 1258842, 1258843)
Date: 2024-09-19 17:49:01
10 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #10
Day Hour Count Sep 19 05 1 11 1 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #11
Day Hour Count Sep 19 11 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (271923, null, 43-2069, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 999, 2024-09-19 15:47:58.424003, 999, 2024-09-19 15:47:58.424003, 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, 494835, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-19, 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'), 999, (now() at time zone 'UTC'), 999, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-09-19', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '43-2069', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494835, 1, 1) RETURNING idDate: 2024-09-19 15:47:58