-
Global information
- Generated on Fri Oct 18 20:50:30 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 717,446 log entries in 29s
- Log start from 2024-10-18 00:00:02 to 2024-10-18 23:59:57
-
Overview
Global Stats
- 1,000 Number of unique normalized queries
- 247,394 Number of queries
- 17h42m39s Total query duration
- 2024-10-18 00:00:02 First query
- 2024-10-18 23:59:57 Last query
- 57 queries/s at 2024-10-18 19:12:40 Query peak
- 17h42m39s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 17h42m39s Execute total duration
- 1,512 Number of events
- 6 Number of unique normalized events
- 1,118 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
- 247,394 Average queries per session
- 17h42m39s 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
- 57 queries/s Query Peak
- 2024-10-18 19:12:40 Date
SELECT Traffic
Key values
- 57 queries/s Query Peak
- 2024-10-18 19:12:40 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 8 queries/s Query Peak
- 2024-10-18 15:33:32 Date
Queries duration
Key values
- 17h42m39s 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) Oct 18 00 4,742 120ms 1s235ms 189ms 23s768ms 34s240ms 45s13ms 01 7,311 120ms 1s820ms 214ms 39s912ms 43s773ms 53s51ms 02 4,789 120ms 925ms 200ms 25s573ms 28s504ms 33s206ms 03 4,450 120ms 853ms 193ms 23s399ms 28s609ms 32s490ms 04 4,592 120ms 1s336ms 203ms 32s449ms 34s563ms 37s817ms 05 5,030 120ms 1s223ms 186ms 30s105ms 40s40ms 46s13ms 06 4,540 120ms 831ms 178ms 24s354ms 34s452ms 40s388ms 07 4,725 120ms 1s338ms 189ms 24s363ms 27s58ms 37s3ms 08 4,662 120ms 926ms 182ms 20s989ms 23s441ms 27s186ms 09 5,695 120ms 4m3s 340ms 1m22s 2m9s 4m20s 10 5,595 120ms 2s659ms 197ms 31s489ms 38s536ms 45s984ms 11 9,915 120ms 23s801ms 265ms 1m33s 1m45s 1m56s 12 20,461 120ms 1m5s 310ms 2m43s 3m3s 4m10s 13 23,590 120ms 3m9s 293ms 2m58s 3m19s 4m38s 14 19,411 120ms 1m7s 280ms 2m38s 2m53s 3m43s 15 22,763 120ms 24s388ms 279ms 2m45s 3m6s 3m15s 16 18,813 120ms 8s210ms 257ms 2m10s 2m20s 2m49s 17 20,282 120ms 1m15s 271ms 2m19s 3m2s 3m50s 18 16,362 120ms 7s722ms 257ms 1m55s 2m4s 2m43s 19 19,204 120ms 7s910ms 262ms 2m1s 2m6s 3m41s 20 8,201 120ms 6s959ms 223ms 1m6s 1m19s 2m11s 21 4,117 120ms 1s8ms 195ms 21s538ms 24s975ms 33s327ms 22 3,934 120ms 726ms 185ms 19s859ms 22s668ms 27s511ms 23 4,210 120ms 53s550ms 308ms 59s398ms 1m5s 1m10s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 18 00 4,742 0 189ms 21s305ms 23s768ms 35s417ms 01 6,900 0 216ms 30s719ms 35s583ms 40s731ms 02 4,789 0 200ms 21s777ms 25s573ms 29s5ms 03 4,450 0 193ms 19s383ms 23s399ms 28s812ms 04 4,576 0 202ms 23s210ms 32s449ms 36s644ms 05 5,029 0 186ms 20s380ms 30s105ms 41s787ms 06 4,540 0 178ms 16s103ms 24s354ms 34s654ms 07 4,718 0 189ms 19s680ms 24s363ms 34s110ms 08 4,649 0 181ms 19s493ms 20s989ms 26s606ms 09 5,358 118 346ms 29s145ms 1m7s 2m28s 10 5,593 0 197ms 24s631ms 31s489ms 41s391ms 11 9,097 0 271ms 1m 1m28s 1m42s 12 17,519 0 327ms 2m 2m33s 3m10s 13 17,760 0 317ms 2m5s 2m38s 4m1s 14 16,266 0 282ms 1m41s 2m2s 2m27s 15 17,788 0 294ms 1m56s 2m17s 2m55s 16 14,970 0 271ms 1m35s 1m44s 2m19s 17 15,128 0 297ms 1m37s 2m2s 2m50s 18 13,584 0 270ms 1m18s 1m39s 2m9s 19 14,914 0 281ms 1m27s 1m41s 2m41s 20 6,665 0 231ms 38s383ms 52s947ms 1m1s 21 4,090 0 195ms 19s806ms 21s538ms 31s180ms 22 3,934 0 185ms 18s 19s859ms 23s96ms 23 4,136 0 191ms 19s734ms 21s424ms 25s653ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 18 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 411 0 0 182ms 0ms 2s705ms 7s209ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 2 0 0 403ms 0ms 0ms 0ms 05 0 0 1 0 1s223ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 398ms 0ms 0ms 0ms 08 0 12 0 0 239ms 0ms 0ms 0ms 09 0 213 0 0 183ms 0ms 0ms 5s969ms 10 0 2 0 0 308ms 0ms 0ms 0ms 11 0 815 1 0 196ms 2s92ms 4s515ms 7s479ms 12 0 2,923 16 0 205ms 9s619ms 15s716ms 29s626ms 13 1 5,757 70 0 222ms 21s718ms 29s538ms 34s698ms 14 0 3,096 42 0 270ms 11s855ms 17s665ms 34s93ms 15 0 4,924 45 0 223ms 18s211ms 24s787ms 40s588ms 16 0 3,827 15 0 200ms 13s226ms 19s107ms 34s876ms 17 0 5,130 21 0 197ms 19s211ms 27s539ms 34s90ms 18 0 2,758 16 0 195ms 9s655ms 15s728ms 23s714ms 19 0 4,269 21 0 195ms 12s995ms 22s385ms 32s971ms 20 0 1,531 5 0 188ms 1s387ms 9s996ms 27s873ms 21 0 26 0 0 181ms 0ms 0ms 184ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 74 0 6s842ms 0ms 15s654ms 49s885ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 18 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 Oct 18 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 Oct 18 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 Oct 18 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 Oct 18 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) Oct 18 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 Oct 18 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 Oct 18 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 Oct 18 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
- 13 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 9 1m40s 1s398ms 1m20s 11s156ms 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 != 1718722 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 != 1718722 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-10-18 12:38:38
2 4 6s741ms 1s234ms 2s173ms 1s685ms 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" = 5775565, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1718741);
Date: 2024-10-18 12:40:55
Queries that waited the most
Rank Wait time Query 1 1m20s 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 != 1719148 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 != 1719148 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 14:08:13 ]
2 5s324ms 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 != 1718975 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 != 1718975 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 13:23:32 ]
3 4s321ms 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 != 1719844 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 != 1719844 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 16:54:39 ]
4 2s488ms 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 != 1719394 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 != 1719394 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 15:07:59 ]
5 2s302ms 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 != 1719326 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 != 1719326 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 15:00:40 ]
6 2s173ms UPDATE "account_move" SET "message_main_attachment_id" = 5776789, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (1719911);[ Date: 2024-10-18 17:04:53 ]
7 1s805ms UPDATE "account_move" SET "message_main_attachment_id" = 5775588, "write_uid" = 965, "write_date" = (now() at time zone 'UTC') WHERE id IN (1718748);[ Date: 2024-10-18 12:44:18 ]
8 1s630ms 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 != 1671290 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 != 1671290 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 14:53:50 ]
9 1s528ms UPDATE "account_move" SET "message_main_attachment_id" = 5776106, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (1719235);[ Date: 2024-10-18 14:29:58 ]
10 1s398ms 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 != 1718722 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 != 1718722 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 12:38:38 ]
11 1s367ms 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 != 1720416 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 != 1720416 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 19:18:35 ]
12 1s234ms UPDATE "account_move" SET "message_main_attachment_id" = 5775565, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1718741);[ Date: 2024-10-18 12:40:55 ]
13 1s152ms 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 != 1655798 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 != 1655798 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-18 14:16:26 ]
-
Queries
Queries by type
Key values
- 211,195 Total read queries
- 36,199 Total write queries
Queries by database
Key values
- unknown Main database
- 247,394 Requests
- 17h42m39s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 248,289 Requests
User Request type Count Duration unknown Total 248,289 17h45m59s copy to 118 13m58s cte 35 15s681ms delete 335 22m22s insert 1 140ms select 212,081 15h15m39s tcl 20 10s735ms update 35,699 1h53m32s Duration by user
Key values
- 17h45m59s (unknown) Main time consuming user
User Request type Count Duration unknown Total 248,289 17h45m59s copy to 118 13m58s cte 35 15s681ms delete 335 22m22s insert 1 140ms select 212,081 15h15m39s tcl 20 10s735ms update 35,699 1h53m32s Queries by host
Key values
- unknown Main host
- 248,289 Requests
- 17h45m59s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 247,394 Requests
- 17h42m39s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-10-18 20:19:03 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 230,448 100-500ms duration
Slowest individual queries
Rank Duration Query 1 4m3s 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-10-18 09:10:47 ]
2 3m9s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (270963)) ORDER BY "item_list_line"."id";[ Date: 2024-10-18 13:28:59 ]
3 2m15s 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-10-18 09:04:29 ]
4 2m 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-10-18 09:06:42 ]
5 1m15s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-10-01') AND ("sale_history_line"."invoice_date" <= '2024-10-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-10-18 17:20:24 ]
6 1m10s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-10-01') AND ("sale_history_line"."invoice_date" <= '2024-10-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-10-18 17:08:24 ]
7 1m7s DELETE FROM account_move_line WHERE id IN (5960282, 5960283, 5960284, 5960285, 5960286, 5960287, 5960288, 5960289, 5960290, 5960291, 5960292, 5960293, 5960294, 5960295, 5960296, 5960297, 5960298, 5960299, 5960300, 5960301, 5978262, 5978263, 5978264, 6010118, 6010119, 6010120, 6010121, 6010122);[ Date: 2024-10-18 14:07:59 ]
8 1m5s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-10-01') AND ("sale_history_line"."invoice_date" <= '2024-10-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-10-18 12:02:52 ]
9 1m3s DELETE FROM account_move_line WHERE id IN (5986949, 5986950, 5986951, 5986952, 5986953, 5986954, 5986955, 5986956, 5986957, 5986958, 5986959, 5986960, 5986961, 5986962, 5986963, 5986964, 5986965, 5986966, 5986967, 5986968, 5986969, 5986970, 5986971, 5986972, 5986973, 5986974, 5986975, 5986976);[ Date: 2024-10-18 14:43:06 ]
10 53s550ms DELETE FROM account_move_line WHERE id IN (6031674, 6031675, 6031676, 6031677, 6031678, 6031679, 6031680, 6031681, 6031682, 6031683, 6031684, 6031685, 6031279, 6031280, 6031281, 6031282, 6031283, 6031284, 6031285, 6031286, 6031189, 6031190, 6031191, 6031192);[ Date: 2024-10-18 23:42:57 ]
11 41s33ms 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, reconcile_date_from_add) TO stdout;[ Date: 2024-10-18 09:01:06 ]
12 37s880ms DELETE FROM account_move_line WHERE id IN (6039699, 6039700, 6039701, 6039702, 6039703, 6039704, 6039705, 6039706, 6039707, 6039708, 6039709, 6039710, 6039027, 6039028, 6039029, 6039030, 6039031);[ Date: 2024-10-18 23:37:35 ]
13 35s661ms DELETE FROM account_move_line WHERE id IN (6037980, 6037981, 6037982, 6037983, 6037984, 6037985, 6037986, 6037987, 6037988, 6038699, 6038700, 6038701, 6038702, 6038703, 6038704, 6038705);[ Date: 2024-10-18 23:03:29 ]
14 32s866ms DELETE FROM account_move_line WHERE id IN (6040353, 6040354, 6040355, 6039915, 6039916, 6040116, 6040117, 6040118, 6040119, 6040120, 6040121, 6040122, 6040123, 6040124, 6040125);[ Date: 2024-10-18 23:01:20 ]
15 31s350ms DELETE FROM account_move_line WHERE id IN (6037087, 6037088, 6037089, 6037090, 6037091, 6037092, 6037093, 6037094, 6037095, 6037096, 6037097, 6037098, 6037099, 6037100);[ Date: 2024-10-18 23:45:22 ]
16 31s223ms DELETE FROM account_move_line WHERE id IN (5997501, 5997502, 5997503, 5997504, 5997505, 5997506, 5997507, 5997508, 5997509, 5997510, 5997511, 5997512, 6039577, 6039578);[ Date: 2024-10-18 23:44:31 ]
17 28s886ms DELETE FROM account_move_line WHERE id IN (6042279, 6042280, 6042281, 6042282, 6042283, 6042284, 6042285, 6042286, 6042287, 6042288, 6042289, 6042290, 6042291);[ Date: 2024-10-18 23:31:17 ]
18 24s663ms 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, pricelist_id, product_pricelist_item_name, pricelist_name) TO stdout;[ Date: 2024-10-18 09:13:16 ]
19 24s388ms DELETE FROM sale_order_line WHERE id IN (506270, 506271, 506272);[ Date: 2024-10-18 15:30:07 ]
20 23s801ms SELECT 0 AS period_index, COUNT(DISTINCT account_move_line.account_id) AS count_rows, COALESCE(SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)), 0.0) 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") 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-12-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" = 13) 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)));[ Date: 2024-10-18 11:44:49 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 6h30m1s 118,373 130ms 2s408ms 197ms 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 Oct 18 20 3,379 9m 159ms 21 3,400 9m19s 164ms 22 3,179 9m10s 173ms 23 3,049 8m30s 167ms 00 3,050 8m38s 169ms 01 3,490 8m57s 154ms 02 3,376 8m40s 154ms 03 3,217 8m24s 156ms 04 3,453 9m3s 157ms 05 3,374 9m18s 165ms 06 3,293 9m31s 173ms 07 4,852 15m55s 196ms 08 8,693 31m55s 220ms 09 8,293 33m32s 242ms 10 8,532 29m30s 207ms 11 8,548 33m41s 236ms 12 7,834 28m39s 219ms 13 7,959 29m14s 220ms 14 7,683 27m32s 215ms 15 7,355 27m15s 222ms 16 4,220 12m44s 181ms 17 2,818 7m46s 165ms 18 2,706 6m51s 151ms 19 2,620 6m45s 154ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s408ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:08:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1317"', '["pointspring_master","calendar.alarm",54613]', '["pointspring_master","res.partner",54613]', '["pointspring_master","ir.needaction",54613]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:08:56 Duration: 2s294ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","mail.channel",655]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s291ms
2 43m31s 3,019 641ms 3s96ms 864ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 18 21 6 4s491ms 748ms 07 135 1m45s 781ms 08 341 4m52s 856ms 09 575 8m41s 906ms 10 413 5m56s 862ms 11 393 5m54s 902ms 12 266 3m43s 841ms 13 285 4m7s 867ms 14 249 3m31s 847ms 15 261 3m34s 821ms 16 88 1m14s 846ms 17 7 5s295ms 756ms -
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 ('%%1330%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-30%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-30%'))) 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-10-18 13:50:45 Duration: 3s96ms
-
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 ('%%133%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-3%'))) 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-10-18 13:50:45 Duration: 3s83ms
-
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 ('%%3230951%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3230951%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3230951%'))) 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-10-18 13:08:57 Duration: 2s893ms
3 40m42s 5,765 382ms 1s846ms 423ms 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 Oct 18 21 123 49s618ms 403ms 04 1 394ms 394ms 05 18 7s204ms 400ms 07 151 1m2s 416ms 08 425 3m3s 432ms 09 930 6m33s 423ms 10 465 3m18s 427ms 11 772 5m35s 433ms 12 627 4m25s 423ms 13 738 5m12s 422ms 14 518 3m36s 418ms 15 784 5m29s 419ms 16 209 1m26s 413ms 17 4 1s599ms 399ms -
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-10-18 15:41:29 Duration: 1s846ms
-
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-10-18 19:12:40 Duration: 1s703ms
-
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-10-18 17:53:55 Duration: 1s193ms
4 36m43s 6,071 322ms 2s50ms 362ms 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 #4
Day Hour Count Duration Avg duration Oct 18 20 230 1m19s 346ms 21 168 58s139ms 346ms 22 240 1m22s 343ms 23 240 1m22s 343ms 00 312 1m47s 343ms 01 306 1m45s 345ms 02 231 1m19s 343ms 03 285 1m37s 342ms 04 183 1m2s 344ms 05 303 1m46s 351ms 06 276 1m35s 345ms 07 264 1m35s 360ms 08 225 1m31s 408ms 09 195 1m20s 411ms 10 288 1m55s 401ms 11 243 1m39s 410ms 12 276 1m47s 389ms 13 234 1m33s 399ms 14 273 1m45s 386ms 15 261 1m43s 396ms 16 231 1m20s 347ms 17 288 1m37s 339ms 18 243 1m22s 339ms 19 276 1m33s 338ms -
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-10-18 13:01:35 Duration: 2s50ms
-
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-10-18 14:39:53 Duration: 1s663ms
-
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-10-18 11:46:56 Duration: 1s638ms
5 35m59s 5,765 304ms 2s870ms 374ms 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 Oct 18 21 123 41s838ms 340ms 04 1 320ms 320ms 05 18 6s71ms 337ms 07 151 55s101ms 364ms 08 425 2m49s 397ms 09 930 5m46s 372ms 10 465 2m57s 380ms 11 772 4m59s 388ms 12 627 3m55s 375ms 13 738 4m36s 375ms 14 518 3m10s 368ms 15 784 4m47s 366ms 16 209 1m12s 347ms 17 4 1s298ms 324ms -
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-10-18 17:02:33 Duration: 2s870ms
-
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-10-18 16:57:27 Duration: 2s642ms
-
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-10-18 19:52:48 Duration: 2s553ms
6 32m54s 5,493 322ms 1s698ms 359ms 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 #6
Day Hour Count Duration Avg duration Oct 18 20 225 1m17s 345ms 21 183 1m3s 345ms 22 225 1m18s 346ms 23 252 1m27s 346ms 00 318 1m48s 342ms 01 255 1m28s 347ms 02 207 1m11s 344ms 03 291 1m40s 344ms 04 213 1m13s 346ms 05 302 1m44s 347ms 06 271 1m34s 347ms 07 234 1m22s 351ms 08 234 1m34s 403ms 09 153 59s260ms 387ms 10 237 1m33s 396ms 11 216 1m29s 415ms 12 279 1m49s 393ms 13 183 1m12s 394ms 14 147 54s311ms 369ms 15 201 1m14s 372ms 16 210 1m13s 349ms 17 183 1m2s 340ms 18 234 1m18s 335ms 19 240 1m21s 337ms -
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-10-18 16:57:26 Duration: 1s698ms
-
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-10-18 16:27:44 Duration: 1s454ms
-
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-10-18 15:33:53 Duration: 942ms
7 32m1s 7,185 237ms 1s578ms 267ms 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 #7
Day Hour Count Duration Avg duration Oct 18 20 264 1m8s 259ms 21 2,100 9m1s 258ms 22 432 1m51s 258ms 23 189 48s968ms 259ms 00 222 56s817ms 255ms 01 234 1m 260ms 02 147 37s583ms 255ms 03 198 50s727ms 256ms 04 174 45s86ms 259ms 05 270 1m10s 261ms 06 213 55s20ms 258ms 07 234 1m1s 261ms 08 228 1m10s 309ms 09 174 53s171ms 305ms 10 216 1m6s 306ms 11 225 1m8s 304ms 12 207 59s250ms 286ms 13 231 1m10s 303ms 14 189 55s1ms 291ms 15 207 59s207ms 286ms 16 216 56s278ms 260ms 17 255 1m4s 252ms 18 207 51s797ms 250ms 19 153 38s348ms 250ms -
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-10-18 13:01:35 Duration: 1s578ms
-
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-10-18 18:06:06 Duration: 1s393ms
-
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-10-18 14:39:53 Duration: 1s310ms
8 27m3s 8,573 171ms 740ms 189ms 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 #8
Day Hour Count Duration Avg duration Oct 18 21 4 721ms 180ms 04 3 523ms 174ms 05 48 8s815ms 183ms 06 2 617ms 308ms 07 203 38s132ms 187ms 08 804 2m36s 194ms 09 1,353 4m18s 190ms 10 1,015 3m13s 190ms 11 1,245 4m 193ms 12 501 1m35s 190ms 13 1,244 3m52s 187ms 14 470 1m27s 185ms 15 1,089 3m22s 185ms 16 586 1m46s 181ms 17 6 1s85ms 180ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((193.0 - 188.0) + (0.0 - 0.0), 0) ELSE GREATEST ((193.0 - 188.0), 0) END where product_id = 206627 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-18 13:29:37 Duration: 740ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((15.0 - 5.0) + (0.0 - 0.0), 0) ELSE GREATEST ((15.0 - 5.0), 0) END where product_id = 195270 and warehouse_id = 41 and company_id = 1;
Date: 2024-10-18 12:16:24 Duration: 676ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 237209 and warehouse_id = 44 and company_id = 1;
Date: 2024-10-18 14:53:10 Duration: 614ms
9 25m52s 5,790 235ms 1s132ms 268ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 18 20 240 1m1s 256ms 21 153 39s510ms 258ms 22 270 1m9s 255ms 23 237 1m1s 257ms 00 291 1m14s 256ms 01 287 1m13s 257ms 02 184 47s32ms 255ms 03 291 1m14s 257ms 04 195 49s975ms 256ms 05 330 1m25s 260ms 06 243 1m2s 256ms 07 249 1m5s 263ms 08 201 1m 299ms 09 162 47s861ms 295ms 10 267 1m19s 297ms 11 315 1m34s 300ms 12 231 1m8s 297ms 13 225 1m4s 286ms 14 255 1m8s 269ms 15 243 1m9s 285ms 16 246 1m3s 257ms 17 213 53s643ms 251ms 18 252 1m3s 250ms 19 210 52s843ms 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 (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-10-18 16:48:42 Duration: 1s132ms
-
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-10-18 16:57:27 Duration: 997ms
-
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-10-18 16:36:14 Duration: 793ms
10 24m49s 7,830 169ms 751ms 190ms 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 #10
Day Hour Count Duration Avg duration Oct 18 21 214 39s22ms 182ms 04 1 178ms 178ms 05 18 3s493ms 194ms 07 186 34s674ms 186ms 08 540 1m45s 195ms 09 1,320 4m11s 190ms 10 602 1m54s 190ms 11 973 3m8s 194ms 12 894 2m48s 188ms 13 1,086 3m27s 190ms 14 696 2m11s 188ms 15 1,029 3m13s 188ms 16 266 49s521ms 186ms 17 5 891ms 178ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(1.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 195267 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-10-18 18:31:41 Duration: 751ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(312.0, 0) - COALESCE(0.0, 0) WHERE product_id = 213564 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-10-18 20:02:41 Duration: 523ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(10.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 238877 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-18 12:23:28 Duration: 519ms
11 19m12s 1,975 492ms 2s287ms 583ms 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 #11
Day Hour Count Duration Avg duration Oct 18 20 5 2s545ms 509ms 21 9 4s621ms 513ms 22 6 3s68ms 511ms 01 8 4s105ms 513ms 04 6 3s133ms 522ms 05 6 3s229ms 538ms 06 10 5s158ms 515ms 07 98 52s788ms 538ms 08 245 2m26s 597ms 09 209 2m6s 603ms 10 233 2m17s 589ms 11 278 2m46s 600ms 12 163 1m32s 564ms 13 198 2m1s 611ms 14 261 2m25s 558ms 15 198 1m54s 579ms 16 40 22s136ms 553ms 17 1 511ms 511ms 19 1 494ms 494ms -
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-10-18 12:31:50 Duration: 2s287ms
-
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-10-18 17:56:29 Duration: 1s853ms
-
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/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-18 17:12:37 Duration: 1s558ms
12 15m37s 6,855 120ms 750ms 136ms 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"."website_sequence" asc, "product_template"."id" desc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 18 20 124 15s510ms 125ms 21 113 14s91ms 124ms 22 141 17s359ms 123ms 23 177 22s145ms 125ms 00 134 16s638ms 124ms 01 182 22s648ms 124ms 02 151 18s547ms 122ms 03 175 22s44ms 125ms 04 156 19s632ms 125ms 05 397 49s663ms 125ms 06 956 1m59s 124ms 07 906 2m4s 137ms 08 1,186 2m55s 148ms 09 196 30s560ms 155ms 10 312 45s599ms 146ms 11 308 47s776ms 155ms 12 238 34s44ms 143ms 13 289 41s101ms 142ms 14 135 18s714ms 138ms 15 318 47s125ms 148ms 16 95 13s37ms 137ms 17 73 9s453ms 129ms 18 46 5s835ms 126ms 19 47 5s992ms 127ms -
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 19:10:39 Duration: 750ms
-
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 15:28:32 Duration: 676ms
-
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 11:46:55 Duration: 669ms
13 15m13s 5,760 133ms 446ms 158ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 18 20 240 36s289ms 151ms 21 240 36s732ms 153ms 22 240 36s510ms 152ms 23 240 36s411ms 151ms 00 240 36s417ms 151ms 01 240 36s715ms 152ms 02 240 36s608ms 152ms 03 240 36s253ms 151ms 04 240 36s233ms 150ms 05 241 36s910ms 153ms 06 240 36s452ms 151ms 07 240 38s35ms 158ms 08 240 42s514ms 177ms 09 239 40s878ms 171ms 10 240 40s885ms 170ms 11 240 42s63ms 175ms 12 240 40s329ms 168ms 13 240 42s820ms 178ms 14 240 39s419ms 164ms 15 240 40s743ms 169ms 16 240 36s636ms 152ms 17 240 35s984ms 149ms 18 240 35s829ms 149ms 19 240 35s638ms 148ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_am', 'pg_catalog.pg_publication', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_extension', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_depend', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_amproc', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_settings', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_gssapi', 'information_schema.attributes', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.column_options', 'information_schema.routines', 'information_schema.table_privileges', 'information_schema.schemata', 'information_schema.routine_table_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.column_udt_usage', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.sequences', 'information_schema.data_type_privileges', 'information_schema.views', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.administrable_role_authorizations', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.foreign_servers', 'information_schema.sql_features', 'information_schema.check_constraint_routine_usage', 'information_schema.domain_constraints', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.applicable_roles', 'information_schema.column_column_usage', 'information_schema.table_constraints', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.sql_sizing');
Date: 2024-10-18 17:02:31 Duration: 446ms
-
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_operator', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_locks', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_amproc', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_range', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_roles', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_user', 'pg_catalog.pg_group', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policy', 'pg_catalog.pg_cast', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_am', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'information_schema.columns', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.column_options', 'information_schema.sequences', 'information_schema.constraint_table_usage', 'information_schema.sql_implementation_info', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraint_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.column_udt_usage', 'information_schema.schemata', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.information_schema_catalog_name', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.column_domain_usage', 'information_schema.table_privileges', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.applicable_roles', 'information_schema.domain_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.constraint_column_usage', 'information_schema.tables', 'information_schema.attributes', 'information_schema.routine_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_usage_grants', 'information_schema.routine_privileges', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 17:26:31 Duration: 403ms
-
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_publication', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_constraint', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_description', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_enum', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_class', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_policies', 'pg_catalog.pg_views', 'pg_catalog.pg_stats', 'pg_catalog.pg_group', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_extension', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_locks', 'pg_catalog.pg_rules', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.sql_implementation_info', 'information_schema.character_sets', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.udt_privileges', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.role_udt_grants', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.domain_udt_usage', 'information_schema.routine_table_usage', 'information_schema.foreign_servers', 'information_schema.routines', 'information_schema.schemata', 'information_schema.referential_constraints', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.column_privileges', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.routine_column_usage', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.enabled_roles', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.tables', 'information_schema.triggered_update_columns', 'information_schema.administrable_role_authorizations', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.views', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.table_privileges', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 16:33:31 Duration: 397ms
14 13m46s 954 720ms 2s349ms 866ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 18 07 22 17s636ms 801ms 08 7 6s141ms 877ms 09 210 3m8s 895ms 10 95 1m24s 894ms 11 247 3m33s 866ms 12 17 13s874ms 816ms 13 168 2m23s 852ms 14 52 45s230ms 869ms 15 129 1m48s 838ms 16 7 5s500ms 785ms -
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 ('%%PL1368%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%PL1368-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%PL1368-%'))) 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-10-18 18:31:42 Duration: 2s349ms
-
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 ('%%58%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8%'))) 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-10-18 14:39:53 Duration: 2s326ms
-
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 ('%%58x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8x%'))) 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-10-18 14:39:54 Duration: 2s178ms
15 13m33s 4,190 172ms 845ms 194ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 18 21 10 1s816ms 181ms 04 3 546ms 182ms 05 32 5s906ms 184ms 07 118 22s409ms 189ms 08 423 1m23s 198ms 09 715 2m19s 195ms 10 342 1m7s 196ms 11 528 1m44s 198ms 12 445 1m26s 194ms 13 622 1m58s 190ms 14 274 51s651ms 188ms 15 498 1m36s 193ms 16 176 33s130ms 188ms 17 4 721ms 180ms -
UPDATE product_warehouse_inventory SET qty_available = 110.0 WHERE product_id = 213440 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:43 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 7.0 WHERE product_id = 177345 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 16:50:56 Duration: 801ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216173 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:44 Duration: 741ms
16 13m9s 124 2s149ms 1m7s 6s363ms delete from account_move_line where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 18 09 28 1m31s 3s259ms 10 12 2m37s 13s142ms 11 18 1m6s 3s683ms 12 2 11s664ms 5s832ms 14 1 7s722ms 7s722ms 15 1 6s743ms 6s743ms 19 62 7m27s 7s221ms -
DELETE FROM account_move_line WHERE id IN (5960282, 5960283, 5960284, 5960285, 5960286, 5960287, 5960288, 5960289, 5960290, 5960291, 5960292, 5960293, 5960294, 5960295, 5960296, 5960297, 5960298, 5960299, 5960300, 5960301, 5978262, 5978263, 5978264, 6010118, 6010119, 6010120, 6010121, 6010122);
Date: 2024-10-18 14:07:59 Duration: 1m7s
-
DELETE FROM account_move_line WHERE id IN (5986949, 5986950, 5986951, 5986952, 5986953, 5986954, 5986955, 5986956, 5986957, 5986958, 5986959, 5986960, 5986961, 5986962, 5986963, 5986964, 5986965, 5986966, 5986967, 5986968, 5986969, 5986970, 5986971, 5986972, 5986973, 5986974, 5986975, 5986976);
Date: 2024-10-18 14:43:06 Duration: 1m3s
-
DELETE FROM account_move_line WHERE id IN (6031674, 6031675, 6031676, 6031677, 6031678, 6031679, 6031680, 6031681, 6031682, 6031683, 6031684, 6031685, 6031279, 6031280, 6031281, 6031282, 6031283, 6031284, 6031285, 6031286, 6031189, 6031190, 6031191, 6031192);
Date: 2024-10-18 23:42:57 Duration: 53s550ms
17 12m2s 702 889ms 1s732ms 1s29ms 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 #17
Day Hour Count Duration Avg duration Oct 18 20 3 2s815ms 938ms 07 23 23s315ms 1s13ms 08 104 1m50s 1s60ms 09 99 1m41s 1s25ms 10 86 1m28s 1s27ms 11 53 55s993ms 1s56ms 12 69 1m9s 1s12ms 13 80 1m23s 1s49ms 14 85 1m25s 1s 15 74 1m16s 1s27ms 16 26 25s369ms 975ms -
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 ('%330-3024%')) 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 ('%330-3024%'))) 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 ('%330-3024%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%330-3024%')))))) 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-10-18 11:59:10 Duration: 1s732ms
-
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 ('%309-0973%')) 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 ('%309-0973%'))) 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 ('%309-0973%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%309-0973%')))))) 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-10-18 14:13:58 Duration: 1s694ms
-
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 ('%7/16x16%')) 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 ('%7/16x16%'))) 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 ('%7/16x16%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%7/16x16%')))))) 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-10-18 19:12:01 Duration: 1s646ms
18 7m39s 2,735 120ms 939ms 168ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 18 21 18 2s448ms 136ms 22 1 148ms 148ms 04 1 145ms 145ms 05 6 784ms 130ms 07 60 9s551ms 159ms 08 277 39s820ms 143ms 09 386 56s334ms 145ms 10 484 2m10s 270ms 11 442 1m3s 142ms 12 238 33s511ms 140ms 13 246 34s999ms 142ms 14 169 23s985ms 141ms 15 345 55s256ms 160ms 16 61 9s89ms 149ms 17 1 123ms 123ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177177)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 11:46:56 Duration: 939ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (188571, 188572)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 13:55:47 Duration: 815ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177141, 177171, 177160, 177161, 177150, 246907)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 14:52:25 Duration: 800ms
19 7m18s 2,296 171ms 415ms 191ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 18 21 36 6s518ms 181ms 05 3 531ms 177ms 07 75 14s34ms 187ms 08 142 28s212ms 198ms 09 381 1m13s 192ms 10 218 42s15ms 192ms 11 316 1m 193ms 12 243 45s673ms 187ms 13 307 59s141ms 192ms 14 201 38s322ms 190ms 15 305 57s593ms 188ms 16 67 12s186ms 181ms 17 2 386ms 193ms -
UPDATE product_warehouse_inventory SET qty_reserve = 40.0 WHERE product_id = 188090 AND warehouse_id = 40;
Date: 2024-10-18 13:55:47 Duration: 415ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 202844 AND warehouse_id = 37;
Date: 2024-10-18 15:44:02 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 211784 AND warehouse_id = 39;
Date: 2024-10-18 13:37:16 Duration: 314ms
20 7m11s 2,421 120ms 1s142ms 178ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 18 07 133 20s444ms 153ms 08 509 1m30s 177ms 09 417 1m25s 205ms 10 172 30s953ms 179ms 11 111 17s864ms 160ms 12 357 1m7s 189ms 13 116 16s343ms 140ms 14 265 42s596ms 160ms 15 341 1m 176ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237305) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:35 Duration: 1s142ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172911) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:34 Duration: 806ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177379) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 16:50:18 Duration: 569ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 118,373 6h30m1s 130ms 2s408ms 197ms 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 Oct 18 20 3,379 9m 159ms 21 3,400 9m19s 164ms 22 3,179 9m10s 173ms 23 3,049 8m30s 167ms 00 3,050 8m38s 169ms 01 3,490 8m57s 154ms 02 3,376 8m40s 154ms 03 3,217 8m24s 156ms 04 3,453 9m3s 157ms 05 3,374 9m18s 165ms 06 3,293 9m31s 173ms 07 4,852 15m55s 196ms 08 8,693 31m55s 220ms 09 8,293 33m32s 242ms 10 8,532 29m30s 207ms 11 8,548 33m41s 236ms 12 7,834 28m39s 219ms 13 7,959 29m14s 220ms 14 7,683 27m32s 215ms 15 7,355 27m15s 222ms 16 4,220 12m44s 181ms 17 2,818 7m46s 165ms 18 2,706 6m51s 151ms 19 2,620 6m45s 154ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s408ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:08:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1317"', '["pointspring_master","calendar.alarm",54613]', '["pointspring_master","res.partner",54613]', '["pointspring_master","ir.needaction",54613]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:08:56 Duration: 2s294ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","mail.channel",655]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s291ms
2 8,573 27m3s 171ms 740ms 189ms 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 Oct 18 21 4 721ms 180ms 04 3 523ms 174ms 05 48 8s815ms 183ms 06 2 617ms 308ms 07 203 38s132ms 187ms 08 804 2m36s 194ms 09 1,353 4m18s 190ms 10 1,015 3m13s 190ms 11 1,245 4m 193ms 12 501 1m35s 190ms 13 1,244 3m52s 187ms 14 470 1m27s 185ms 15 1,089 3m22s 185ms 16 586 1m46s 181ms 17 6 1s85ms 180ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((193.0 - 188.0) + (0.0 - 0.0), 0) ELSE GREATEST ((193.0 - 188.0), 0) END where product_id = 206627 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-18 13:29:37 Duration: 740ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((15.0 - 5.0) + (0.0 - 0.0), 0) ELSE GREATEST ((15.0 - 5.0), 0) END where product_id = 195270 and warehouse_id = 41 and company_id = 1;
Date: 2024-10-18 12:16:24 Duration: 676ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 237209 and warehouse_id = 44 and company_id = 1;
Date: 2024-10-18 14:53:10 Duration: 614ms
3 7,830 24m49s 169ms 751ms 190ms 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 Oct 18 21 214 39s22ms 182ms 04 1 178ms 178ms 05 18 3s493ms 194ms 07 186 34s674ms 186ms 08 540 1m45s 195ms 09 1,320 4m11s 190ms 10 602 1m54s 190ms 11 973 3m8s 194ms 12 894 2m48s 188ms 13 1,086 3m27s 190ms 14 696 2m11s 188ms 15 1,029 3m13s 188ms 16 266 49s521ms 186ms 17 5 891ms 178ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(1.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 195267 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-10-18 18:31:41 Duration: 751ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(312.0, 0) - COALESCE(0.0, 0) WHERE product_id = 213564 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-10-18 20:02:41 Duration: 523ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(10.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 238877 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-18 12:23:28 Duration: 519ms
4 7,185 32m1s 237ms 1s578ms 267ms 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 #4
Day Hour Count Duration Avg duration Oct 18 20 264 1m8s 259ms 21 2,100 9m1s 258ms 22 432 1m51s 258ms 23 189 48s968ms 259ms 00 222 56s817ms 255ms 01 234 1m 260ms 02 147 37s583ms 255ms 03 198 50s727ms 256ms 04 174 45s86ms 259ms 05 270 1m10s 261ms 06 213 55s20ms 258ms 07 234 1m1s 261ms 08 228 1m10s 309ms 09 174 53s171ms 305ms 10 216 1m6s 306ms 11 225 1m8s 304ms 12 207 59s250ms 286ms 13 231 1m10s 303ms 14 189 55s1ms 291ms 15 207 59s207ms 286ms 16 216 56s278ms 260ms 17 255 1m4s 252ms 18 207 51s797ms 250ms 19 153 38s348ms 250ms -
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-10-18 13:01:35 Duration: 1s578ms
-
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-10-18 18:06:06 Duration: 1s393ms
-
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-10-18 14:39:53 Duration: 1s310ms
5 6,855 15m37s 120ms 750ms 136ms 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"."website_sequence" asc, "product_template"."id" desc;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 18 20 124 15s510ms 125ms 21 113 14s91ms 124ms 22 141 17s359ms 123ms 23 177 22s145ms 125ms 00 134 16s638ms 124ms 01 182 22s648ms 124ms 02 151 18s547ms 122ms 03 175 22s44ms 125ms 04 156 19s632ms 125ms 05 397 49s663ms 125ms 06 956 1m59s 124ms 07 906 2m4s 137ms 08 1,186 2m55s 148ms 09 196 30s560ms 155ms 10 312 45s599ms 146ms 11 308 47s776ms 155ms 12 238 34s44ms 143ms 13 289 41s101ms 142ms 14 135 18s714ms 138ms 15 318 47s125ms 148ms 16 95 13s37ms 137ms 17 73 9s453ms 129ms 18 46 5s835ms 126ms 19 47 5s992ms 127ms -
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 19:10:39 Duration: 750ms
-
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 15:28:32 Duration: 676ms
-
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"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-10-18 11:46:55 Duration: 669ms
6 6,071 36m43s 322ms 2s50ms 362ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 18 20 230 1m19s 346ms 21 168 58s139ms 346ms 22 240 1m22s 343ms 23 240 1m22s 343ms 00 312 1m47s 343ms 01 306 1m45s 345ms 02 231 1m19s 343ms 03 285 1m37s 342ms 04 183 1m2s 344ms 05 303 1m46s 351ms 06 276 1m35s 345ms 07 264 1m35s 360ms 08 225 1m31s 408ms 09 195 1m20s 411ms 10 288 1m55s 401ms 11 243 1m39s 410ms 12 276 1m47s 389ms 13 234 1m33s 399ms 14 273 1m45s 386ms 15 261 1m43s 396ms 16 231 1m20s 347ms 17 288 1m37s 339ms 18 243 1m22s 339ms 19 276 1m33s 338ms -
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-10-18 13:01:35 Duration: 2s50ms
-
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-10-18 14:39:53 Duration: 1s663ms
-
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-10-18 11:46:56 Duration: 1s638ms
7 5,790 25m52s 235ms 1s132ms 268ms 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 #7
Day Hour Count Duration Avg duration Oct 18 20 240 1m1s 256ms 21 153 39s510ms 258ms 22 270 1m9s 255ms 23 237 1m1s 257ms 00 291 1m14s 256ms 01 287 1m13s 257ms 02 184 47s32ms 255ms 03 291 1m14s 257ms 04 195 49s975ms 256ms 05 330 1m25s 260ms 06 243 1m2s 256ms 07 249 1m5s 263ms 08 201 1m 299ms 09 162 47s861ms 295ms 10 267 1m19s 297ms 11 315 1m34s 300ms 12 231 1m8s 297ms 13 225 1m4s 286ms 14 255 1m8s 269ms 15 243 1m9s 285ms 16 246 1m3s 257ms 17 213 53s643ms 251ms 18 252 1m3s 250ms 19 210 52s843ms 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 (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-10-18 16:48:42 Duration: 1s132ms
-
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-10-18 16:57:27 Duration: 997ms
-
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-10-18 16:36:14 Duration: 793ms
8 5,765 40m42s 382ms 1s846ms 423ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 18 21 123 49s618ms 403ms 04 1 394ms 394ms 05 18 7s204ms 400ms 07 151 1m2s 416ms 08 425 3m3s 432ms 09 930 6m33s 423ms 10 465 3m18s 427ms 11 772 5m35s 433ms 12 627 4m25s 423ms 13 738 5m12s 422ms 14 518 3m36s 418ms 15 784 5m29s 419ms 16 209 1m26s 413ms 17 4 1s599ms 399ms -
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-10-18 15:41:29 Duration: 1s846ms
-
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-10-18 19:12:40 Duration: 1s703ms
-
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-10-18 17:53:55 Duration: 1s193ms
9 5,765 35m59s 304ms 2s870ms 374ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 18 21 123 41s838ms 340ms 04 1 320ms 320ms 05 18 6s71ms 337ms 07 151 55s101ms 364ms 08 425 2m49s 397ms 09 930 5m46s 372ms 10 465 2m57s 380ms 11 772 4m59s 388ms 12 627 3m55s 375ms 13 738 4m36s 375ms 14 518 3m10s 368ms 15 784 4m47s 366ms 16 209 1m12s 347ms 17 4 1s298ms 324ms -
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-10-18 17:02:33 Duration: 2s870ms
-
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-10-18 16:57:27 Duration: 2s642ms
-
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-10-18 19:52:48 Duration: 2s553ms
10 5,760 15m13s 133ms 446ms 158ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 18 20 240 36s289ms 151ms 21 240 36s732ms 153ms 22 240 36s510ms 152ms 23 240 36s411ms 151ms 00 240 36s417ms 151ms 01 240 36s715ms 152ms 02 240 36s608ms 152ms 03 240 36s253ms 151ms 04 240 36s233ms 150ms 05 241 36s910ms 153ms 06 240 36s452ms 151ms 07 240 38s35ms 158ms 08 240 42s514ms 177ms 09 239 40s878ms 171ms 10 240 40s885ms 170ms 11 240 42s63ms 175ms 12 240 40s329ms 168ms 13 240 42s820ms 178ms 14 240 39s419ms 164ms 15 240 40s743ms 169ms 16 240 36s636ms 152ms 17 240 35s984ms 149ms 18 240 35s829ms 149ms 19 240 35s638ms 148ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_am', 'pg_catalog.pg_publication', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_extension', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_depend', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_amproc', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_settings', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_gssapi', 'information_schema.attributes', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.column_options', 'information_schema.routines', 'information_schema.table_privileges', 'information_schema.schemata', 'information_schema.routine_table_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.column_udt_usage', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.sequences', 'information_schema.data_type_privileges', 'information_schema.views', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.administrable_role_authorizations', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.foreign_servers', 'information_schema.sql_features', 'information_schema.check_constraint_routine_usage', 'information_schema.domain_constraints', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.applicable_roles', 'information_schema.column_column_usage', 'information_schema.table_constraints', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.sql_sizing');
Date: 2024-10-18 17:02:31 Duration: 446ms
-
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_operator', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_locks', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_amproc', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_range', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_roles', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_user', 'pg_catalog.pg_group', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policy', 'pg_catalog.pg_cast', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_am', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'information_schema.columns', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.column_options', 'information_schema.sequences', 'information_schema.constraint_table_usage', 'information_schema.sql_implementation_info', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraint_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.column_udt_usage', 'information_schema.schemata', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.information_schema_catalog_name', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.column_domain_usage', 'information_schema.table_privileges', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.applicable_roles', 'information_schema.domain_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.constraint_column_usage', 'information_schema.tables', 'information_schema.attributes', 'information_schema.routine_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_usage_grants', 'information_schema.routine_privileges', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 17:26:31 Duration: 403ms
-
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_publication', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_constraint', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_description', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_enum', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_class', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_policies', 'pg_catalog.pg_views', 'pg_catalog.pg_stats', 'pg_catalog.pg_group', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_extension', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_locks', 'pg_catalog.pg_rules', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.sql_implementation_info', 'information_schema.character_sets', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.udt_privileges', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.role_udt_grants', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.domain_udt_usage', 'information_schema.routine_table_usage', 'information_schema.foreign_servers', 'information_schema.routines', 'information_schema.schemata', 'information_schema.referential_constraints', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.column_privileges', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.routine_column_usage', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.enabled_roles', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.tables', 'information_schema.triggered_update_columns', 'information_schema.administrable_role_authorizations', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.views', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.table_privileges', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 16:33:31 Duration: 397ms
11 5,493 32m54s 322ms 1s698ms 359ms 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 Oct 18 20 225 1m17s 345ms 21 183 1m3s 345ms 22 225 1m18s 346ms 23 252 1m27s 346ms 00 318 1m48s 342ms 01 255 1m28s 347ms 02 207 1m11s 344ms 03 291 1m40s 344ms 04 213 1m13s 346ms 05 302 1m44s 347ms 06 271 1m34s 347ms 07 234 1m22s 351ms 08 234 1m34s 403ms 09 153 59s260ms 387ms 10 237 1m33s 396ms 11 216 1m29s 415ms 12 279 1m49s 393ms 13 183 1m12s 394ms 14 147 54s311ms 369ms 15 201 1m14s 372ms 16 210 1m13s 349ms 17 183 1m2s 340ms 18 234 1m18s 335ms 19 240 1m21s 337ms -
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-10-18 16:57:26 Duration: 1s698ms
-
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-10-18 16:27:44 Duration: 1s454ms
-
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-10-18 15:33:53 Duration: 942ms
12 4,190 13m33s 172ms 845ms 194ms 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 Oct 18 21 10 1s816ms 181ms 04 3 546ms 182ms 05 32 5s906ms 184ms 07 118 22s409ms 189ms 08 423 1m23s 198ms 09 715 2m19s 195ms 10 342 1m7s 196ms 11 528 1m44s 198ms 12 445 1m26s 194ms 13 622 1m58s 190ms 14 274 51s651ms 188ms 15 498 1m36s 193ms 16 176 33s130ms 188ms 17 4 721ms 180ms -
UPDATE product_warehouse_inventory SET qty_available = 110.0 WHERE product_id = 213440 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:43 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 7.0 WHERE product_id = 177345 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 16:50:56 Duration: 801ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216173 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:44 Duration: 741ms
13 3,019 43m31s 641ms 3s96ms 864ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 18 21 6 4s491ms 748ms 07 135 1m45s 781ms 08 341 4m52s 856ms 09 575 8m41s 906ms 10 413 5m56s 862ms 11 393 5m54s 902ms 12 266 3m43s 841ms 13 285 4m7s 867ms 14 249 3m31s 847ms 15 261 3m34s 821ms 16 88 1m14s 846ms 17 7 5s295ms 756ms -
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 ('%%1330%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-30%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-30%'))) 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-10-18 13:50:45 Duration: 3s96ms
-
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 ('%%133%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-3%'))) 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-10-18 13:50:45 Duration: 3s83ms
-
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 ('%%3230951%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3230951%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3230951%'))) 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-10-18 13:08:57 Duration: 2s893ms
14 2,735 7m39s 120ms 939ms 168ms 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 #14
Day Hour Count Duration Avg duration Oct 18 21 18 2s448ms 136ms 22 1 148ms 148ms 04 1 145ms 145ms 05 6 784ms 130ms 07 60 9s551ms 159ms 08 277 39s820ms 143ms 09 386 56s334ms 145ms 10 484 2m10s 270ms 11 442 1m3s 142ms 12 238 33s511ms 140ms 13 246 34s999ms 142ms 14 169 23s985ms 141ms 15 345 55s256ms 160ms 16 61 9s89ms 149ms 17 1 123ms 123ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177177)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 11:46:56 Duration: 939ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (188571, 188572)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 13:55:47 Duration: 815ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177141, 177171, 177160, 177161, 177150, 246907)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 14:52:25 Duration: 800ms
15 2,421 7m11s 120ms 1s142ms 178ms 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 #15
Day Hour Count Duration Avg duration Oct 18 07 133 20s444ms 153ms 08 509 1m30s 177ms 09 417 1m25s 205ms 10 172 30s953ms 179ms 11 111 17s864ms 160ms 12 357 1m7s 189ms 13 116 16s343ms 140ms 14 265 42s596ms 160ms 15 341 1m 176ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237305) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:35 Duration: 1s142ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172911) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:34 Duration: 806ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177379) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 16:50:18 Duration: 569ms
16 2,296 7m18s 171ms 415ms 191ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 18 21 36 6s518ms 181ms 05 3 531ms 177ms 07 75 14s34ms 187ms 08 142 28s212ms 198ms 09 381 1m13s 192ms 10 218 42s15ms 192ms 11 316 1m 193ms 12 243 45s673ms 187ms 13 307 59s141ms 192ms 14 201 38s322ms 190ms 15 305 57s593ms 188ms 16 67 12s186ms 181ms 17 2 386ms 193ms -
UPDATE product_warehouse_inventory SET qty_reserve = 40.0 WHERE product_id = 188090 AND warehouse_id = 40;
Date: 2024-10-18 13:55:47 Duration: 415ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 202844 AND warehouse_id = 37;
Date: 2024-10-18 15:44:02 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 211784 AND warehouse_id = 39;
Date: 2024-10-18 13:37:16 Duration: 314ms
17 2,123 6m42s 169ms 1s49ms 189ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 18 04 1 174ms 174ms 05 17 3s34ms 178ms 07 41 7s664ms 186ms 08 198 38s453ms 194ms 09 341 1m4s 189ms 10 151 28s520ms 188ms 11 306 59s622ms 194ms 12 257 47s766ms 185ms 13 292 54s570ms 186ms 14 194 36s391ms 187ms 15 222 42s719ms 192ms 16 102 18s437ms 180ms 17 1 178ms 178ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198372 AND warehouse_id = 38;
Date: 2024-10-18 19:10:39 Duration: 1s49ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198851 AND warehouse_id = 38;
Date: 2024-10-18 19:10:38 Duration: 746ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 178258 AND warehouse_id = 35;
Date: 2024-10-18 15:17:00 Duration: 347ms
18 2,025 5m4s 120ms 1s481ms 150ms 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 #18
Day Hour Count Duration Avg duration Oct 18 05 2 278ms 139ms 07 48 7s94ms 147ms 08 246 38s859ms 157ms 09 371 54s122ms 145ms 10 263 38s982ms 148ms 11 388 57s545ms 148ms 12 125 20s230ms 161ms 13 240 37s123ms 154ms 14 76 10s263ms 135ms 15 209 31s853ms 152ms 16 57 7s661ms 134ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 259957 and sol.warehouse_id = 37 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-10-18 17:56:29 Duration: 1s481ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 208587 and sol.warehouse_id = 45 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-10-18 19:44:12 Duration: 1s47ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 213564 and sol.warehouse_id = 37 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-10-18 12:31:48 Duration: 890ms
19 1,975 19m12s 492ms 2s287ms 583ms 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 #19
Day Hour Count Duration Avg duration Oct 18 20 5 2s545ms 509ms 21 9 4s621ms 513ms 22 6 3s68ms 511ms 01 8 4s105ms 513ms 04 6 3s133ms 522ms 05 6 3s229ms 538ms 06 10 5s158ms 515ms 07 98 52s788ms 538ms 08 245 2m26s 597ms 09 209 2m6s 603ms 10 233 2m17s 589ms 11 278 2m46s 600ms 12 163 1m32s 564ms 13 198 2m1s 611ms 14 261 2m25s 558ms 15 198 1m54s 579ms 16 40 22s136ms 553ms 17 1 511ms 511ms 19 1 494ms 494ms -
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-10-18 12:31:50 Duration: 2s287ms
-
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-10-18 17:56:29 Duration: 1s853ms
-
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/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-18 17:12:37 Duration: 1s558ms
20 1,777 4m21s 120ms 944ms 147ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 18 21 4 588ms 147ms 05 1 173ms 173ms 07 47 6s968ms 148ms 08 198 28s804ms 145ms 09 295 43s54ms 145ms 10 135 20s248ms 149ms 11 342 49s737ms 145ms 12 150 22s910ms 152ms 13 220 32s330ms 146ms 14 146 21s445ms 146ms 15 211 31s450ms 149ms 16 28 3s766ms 134ms -
select id from product_warehouse_inventory where product_id = 184395 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-18 13:08:57 Duration: 944ms
-
select id from product_warehouse_inventory where product_id = 208409 and warehouse_id = 46 and company_id = 1;
Date: 2024-10-18 16:36:13 Duration: 712ms
-
select id from product_warehouse_inventory where product_id = 187994 and warehouse_id = 43 and company_id = 1;
Date: 2024-10-18 14:33:27 Duration: 570ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s149ms 1m7s 6s363ms 124 13m9s delete from account_move_line where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 18 09 28 1m31s 3s259ms 10 12 2m37s 13s142ms 11 18 1m6s 3s683ms 12 2 11s664ms 5s832ms 14 1 7s722ms 7s722ms 15 1 6s743ms 6s743ms 19 62 7m27s 7s221ms -
DELETE FROM account_move_line WHERE id IN (5960282, 5960283, 5960284, 5960285, 5960286, 5960287, 5960288, 5960289, 5960290, 5960291, 5960292, 5960293, 5960294, 5960295, 5960296, 5960297, 5960298, 5960299, 5960300, 5960301, 5978262, 5978263, 5978264, 6010118, 6010119, 6010120, 6010121, 6010122);
Date: 2024-10-18 14:07:59 Duration: 1m7s
-
DELETE FROM account_move_line WHERE id IN (5986949, 5986950, 5986951, 5986952, 5986953, 5986954, 5986955, 5986956, 5986957, 5986958, 5986959, 5986960, 5986961, 5986962, 5986963, 5986964, 5986965, 5986966, 5986967, 5986968, 5986969, 5986970, 5986971, 5986972, 5986973, 5986974, 5986975, 5986976);
Date: 2024-10-18 14:43:06 Duration: 1m3s
-
DELETE FROM account_move_line WHERE id IN (6031674, 6031675, 6031676, 6031677, 6031678, 6031679, 6031680, 6031681, 6031682, 6031683, 6031684, 6031685, 6031279, 6031280, 6031281, 6031282, 6031283, 6031284, 6031285, 6031286, 6031189, 6031190, 6031191, 6031192);
Date: 2024-10-18 23:42:57 Duration: 53s550ms
2 889ms 1s732ms 1s29ms 702 12m2s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 18 20 3 2s815ms 938ms 07 23 23s315ms 1s13ms 08 104 1m50s 1s60ms 09 99 1m41s 1s25ms 10 86 1m28s 1s27ms 11 53 55s993ms 1s56ms 12 69 1m9s 1s12ms 13 80 1m23s 1s49ms 14 85 1m25s 1s 15 74 1m16s 1s27ms 16 26 25s369ms 975ms -
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 ('%330-3024%')) 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 ('%330-3024%'))) 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 ('%330-3024%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%330-3024%')))))) 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-10-18 11:59:10 Duration: 1s732ms
-
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 ('%309-0973%')) 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 ('%309-0973%'))) 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 ('%309-0973%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%309-0973%')))))) 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-10-18 14:13:58 Duration: 1s694ms
-
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 ('%7/16x16%')) 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 ('%7/16x16%'))) 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 ('%7/16x16%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%7/16x16%')))))) 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-10-18 19:12:01 Duration: 1s646ms
3 720ms 2s349ms 866ms 954 13m46s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 18 07 22 17s636ms 801ms 08 7 6s141ms 877ms 09 210 3m8s 895ms 10 95 1m24s 894ms 11 247 3m33s 866ms 12 17 13s874ms 816ms 13 168 2m23s 852ms 14 52 45s230ms 869ms 15 129 1m48s 838ms 16 7 5s500ms 785ms -
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 ('%%PL1368%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%PL1368-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%PL1368-%'))) 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-10-18 18:31:42 Duration: 2s349ms
-
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 ('%%58%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8%'))) 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-10-18 14:39:53 Duration: 2s326ms
-
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 ('%%58x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5/8x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5/8x%'))) 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-10-18 14:39:54 Duration: 2s178ms
4 641ms 3s96ms 864ms 3,019 43m31s 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 Oct 18 21 6 4s491ms 748ms 07 135 1m45s 781ms 08 341 4m52s 856ms 09 575 8m41s 906ms 10 413 5m56s 862ms 11 393 5m54s 902ms 12 266 3m43s 841ms 13 285 4m7s 867ms 14 249 3m31s 847ms 15 261 3m34s 821ms 16 88 1m14s 846ms 17 7 5s295ms 756ms -
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 ('%%1330%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-30%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-30%'))) 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-10-18 13:50:45 Duration: 3s96ms
-
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 ('%%133%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%13-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%13-3%'))) 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-10-18 13:50:45 Duration: 3s83ms
-
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 ('%%3230951%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%3230951%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%3230951%'))) 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-10-18 13:08:57 Duration: 2s893ms
5 492ms 2s287ms 583ms 1,975 19m12s 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 #5
Day Hour Count Duration Avg duration Oct 18 20 5 2s545ms 509ms 21 9 4s621ms 513ms 22 6 3s68ms 511ms 01 8 4s105ms 513ms 04 6 3s133ms 522ms 05 6 3s229ms 538ms 06 10 5s158ms 515ms 07 98 52s788ms 538ms 08 245 2m26s 597ms 09 209 2m6s 603ms 10 233 2m17s 589ms 11 278 2m46s 600ms 12 163 1m32s 564ms 13 198 2m1s 611ms 14 261 2m25s 558ms 15 198 1m54s 579ms 16 40 22s136ms 553ms 17 1 511ms 511ms 19 1 494ms 494ms -
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-10-18 12:31:50 Duration: 2s287ms
-
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-10-18 17:56:29 Duration: 1s853ms
-
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/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-18 17:12:37 Duration: 1s558ms
6 382ms 1s846ms 423ms 5,765 40m42s 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 Oct 18 21 123 49s618ms 403ms 04 1 394ms 394ms 05 18 7s204ms 400ms 07 151 1m2s 416ms 08 425 3m3s 432ms 09 930 6m33s 423ms 10 465 3m18s 427ms 11 772 5m35s 433ms 12 627 4m25s 423ms 13 738 5m12s 422ms 14 518 3m36s 418ms 15 784 5m29s 419ms 16 209 1m26s 413ms 17 4 1s599ms 399ms -
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-10-18 15:41:29 Duration: 1s846ms
-
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-10-18 19:12:40 Duration: 1s703ms
-
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-10-18 17:53:55 Duration: 1s193ms
7 304ms 2s870ms 374ms 5,765 35m59s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 18 21 123 41s838ms 340ms 04 1 320ms 320ms 05 18 6s71ms 337ms 07 151 55s101ms 364ms 08 425 2m49s 397ms 09 930 5m46s 372ms 10 465 2m57s 380ms 11 772 4m59s 388ms 12 627 3m55s 375ms 13 738 4m36s 375ms 14 518 3m10s 368ms 15 784 4m47s 366ms 16 209 1m12s 347ms 17 4 1s298ms 324ms -
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-10-18 17:02:33 Duration: 2s870ms
-
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-10-18 16:57:27 Duration: 2s642ms
-
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-10-18 19:52:48 Duration: 2s553ms
8 322ms 2s50ms 362ms 6,071 36m43s 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 #8
Day Hour Count Duration Avg duration Oct 18 20 230 1m19s 346ms 21 168 58s139ms 346ms 22 240 1m22s 343ms 23 240 1m22s 343ms 00 312 1m47s 343ms 01 306 1m45s 345ms 02 231 1m19s 343ms 03 285 1m37s 342ms 04 183 1m2s 344ms 05 303 1m46s 351ms 06 276 1m35s 345ms 07 264 1m35s 360ms 08 225 1m31s 408ms 09 195 1m20s 411ms 10 288 1m55s 401ms 11 243 1m39s 410ms 12 276 1m47s 389ms 13 234 1m33s 399ms 14 273 1m45s 386ms 15 261 1m43s 396ms 16 231 1m20s 347ms 17 288 1m37s 339ms 18 243 1m22s 339ms 19 276 1m33s 338ms -
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-10-18 13:01:35 Duration: 2s50ms
-
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-10-18 14:39:53 Duration: 1s663ms
-
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-10-18 11:46:56 Duration: 1s638ms
9 322ms 1s698ms 359ms 5,493 32m54s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 18 20 225 1m17s 345ms 21 183 1m3s 345ms 22 225 1m18s 346ms 23 252 1m27s 346ms 00 318 1m48s 342ms 01 255 1m28s 347ms 02 207 1m11s 344ms 03 291 1m40s 344ms 04 213 1m13s 346ms 05 302 1m44s 347ms 06 271 1m34s 347ms 07 234 1m22s 351ms 08 234 1m34s 403ms 09 153 59s260ms 387ms 10 237 1m33s 396ms 11 216 1m29s 415ms 12 279 1m49s 393ms 13 183 1m12s 394ms 14 147 54s311ms 369ms 15 201 1m14s 372ms 16 210 1m13s 349ms 17 183 1m2s 340ms 18 234 1m18s 335ms 19 240 1m21s 337ms -
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-10-18 16:57:26 Duration: 1s698ms
-
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-10-18 16:27:44 Duration: 1s454ms
-
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-10-18 15:33:53 Duration: 942ms
10 235ms 1s132ms 268ms 5,790 25m52s 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 #10
Day Hour Count Duration Avg duration Oct 18 20 240 1m1s 256ms 21 153 39s510ms 258ms 22 270 1m9s 255ms 23 237 1m1s 257ms 00 291 1m14s 256ms 01 287 1m13s 257ms 02 184 47s32ms 255ms 03 291 1m14s 257ms 04 195 49s975ms 256ms 05 330 1m25s 260ms 06 243 1m2s 256ms 07 249 1m5s 263ms 08 201 1m 299ms 09 162 47s861ms 295ms 10 267 1m19s 297ms 11 315 1m34s 300ms 12 231 1m8s 297ms 13 225 1m4s 286ms 14 255 1m8s 269ms 15 243 1m9s 285ms 16 246 1m3s 257ms 17 213 53s643ms 251ms 18 252 1m3s 250ms 19 210 52s843ms 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 (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-10-18 16:48:42 Duration: 1s132ms
-
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-10-18 16:57:27 Duration: 997ms
-
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-10-18 16:36:14 Duration: 793ms
11 237ms 1s578ms 267ms 7,185 32m1s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 18 20 264 1m8s 259ms 21 2,100 9m1s 258ms 22 432 1m51s 258ms 23 189 48s968ms 259ms 00 222 56s817ms 255ms 01 234 1m 260ms 02 147 37s583ms 255ms 03 198 50s727ms 256ms 04 174 45s86ms 259ms 05 270 1m10s 261ms 06 213 55s20ms 258ms 07 234 1m1s 261ms 08 228 1m10s 309ms 09 174 53s171ms 305ms 10 216 1m6s 306ms 11 225 1m8s 304ms 12 207 59s250ms 286ms 13 231 1m10s 303ms 14 189 55s1ms 291ms 15 207 59s207ms 286ms 16 216 56s278ms 260ms 17 255 1m4s 252ms 18 207 51s797ms 250ms 19 153 38s348ms 250ms -
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-10-18 13:01:35 Duration: 1s578ms
-
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-10-18 18:06:06 Duration: 1s393ms
-
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-10-18 14:39:53 Duration: 1s310ms
12 130ms 2s408ms 197ms 118,373 6h30m1s select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 18 20 3,379 9m 159ms 21 3,400 9m19s 164ms 22 3,179 9m10s 173ms 23 3,049 8m30s 167ms 00 3,050 8m38s 169ms 01 3,490 8m57s 154ms 02 3,376 8m40s 154ms 03 3,217 8m24s 156ms 04 3,453 9m3s 157ms 05 3,374 9m18s 165ms 06 3,293 9m31s 173ms 07 4,852 15m55s 196ms 08 8,693 31m55s 220ms 09 8,293 33m32s 242ms 10 8,532 29m30s 207ms 11 8,548 33m41s 236ms 12 7,834 28m39s 219ms 13 7,959 29m14s 220ms 14 7,683 27m32s 215ms 15 7,355 27m15s 222ms 16 4,220 12m44s 181ms 17 2,818 7m46s 165ms 18 2,706 6m51s 151ms 19 2,620 6m45s 154ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s408ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:08:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1317"', '["pointspring_master","calendar.alarm",54613]', '["pointspring_master","res.partner",54613]', '["pointspring_master","ir.needaction",54613]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:08:56 Duration: 2s294ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-18 13:49:52') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","mail.channel",655]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-18 13:50:44 Duration: 2s291ms
13 172ms 845ms 194ms 4,190 13m33s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 18 21 10 1s816ms 181ms 04 3 546ms 182ms 05 32 5s906ms 184ms 07 118 22s409ms 189ms 08 423 1m23s 198ms 09 715 2m19s 195ms 10 342 1m7s 196ms 11 528 1m44s 198ms 12 445 1m26s 194ms 13 622 1m58s 190ms 14 274 51s651ms 188ms 15 498 1m36s 193ms 16 176 33s130ms 188ms 17 4 721ms 180ms -
UPDATE product_warehouse_inventory SET qty_available = 110.0 WHERE product_id = 213440 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:43 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 7.0 WHERE product_id = 177345 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 16:50:56 Duration: 801ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216173 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-18 13:50:44 Duration: 741ms
14 171ms 415ms 191ms 2,296 7m18s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 18 21 36 6s518ms 181ms 05 3 531ms 177ms 07 75 14s34ms 187ms 08 142 28s212ms 198ms 09 381 1m13s 192ms 10 218 42s15ms 192ms 11 316 1m 193ms 12 243 45s673ms 187ms 13 307 59s141ms 192ms 14 201 38s322ms 190ms 15 305 57s593ms 188ms 16 67 12s186ms 181ms 17 2 386ms 193ms -
UPDATE product_warehouse_inventory SET qty_reserve = 40.0 WHERE product_id = 188090 AND warehouse_id = 40;
Date: 2024-10-18 13:55:47 Duration: 415ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 202844 AND warehouse_id = 37;
Date: 2024-10-18 15:44:02 Duration: 332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 211784 AND warehouse_id = 39;
Date: 2024-10-18 13:37:16 Duration: 314ms
15 169ms 751ms 190ms 7,830 24m49s 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 #15
Day Hour Count Duration Avg duration Oct 18 21 214 39s22ms 182ms 04 1 178ms 178ms 05 18 3s493ms 194ms 07 186 34s674ms 186ms 08 540 1m45s 195ms 09 1,320 4m11s 190ms 10 602 1m54s 190ms 11 973 3m8s 194ms 12 894 2m48s 188ms 13 1,086 3m27s 190ms 14 696 2m11s 188ms 15 1,029 3m13s 188ms 16 266 49s521ms 186ms 17 5 891ms 178ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(1.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 195267 AND warehouse_id = 39 AND company_id = 1;
Date: 2024-10-18 18:31:41 Duration: 751ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(312.0, 0) - COALESCE(0.0, 0) WHERE product_id = 213564 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-10-18 20:02:41 Duration: 523ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(10.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 238877 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-18 12:23:28 Duration: 519ms
16 171ms 740ms 189ms 8,573 27m3s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 18 21 4 721ms 180ms 04 3 523ms 174ms 05 48 8s815ms 183ms 06 2 617ms 308ms 07 203 38s132ms 187ms 08 804 2m36s 194ms 09 1,353 4m18s 190ms 10 1,015 3m13s 190ms 11 1,245 4m 193ms 12 501 1m35s 190ms 13 1,244 3m52s 187ms 14 470 1m27s 185ms 15 1,089 3m22s 185ms 16 586 1m46s 181ms 17 6 1s85ms 180ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((193.0 - 188.0) + (0.0 - 0.0), 0) ELSE GREATEST ((193.0 - 188.0), 0) END where product_id = 206627 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-18 13:29:37 Duration: 740ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((15.0 - 5.0) + (0.0 - 0.0), 0) ELSE GREATEST ((15.0 - 5.0), 0) END where product_id = 195270 and warehouse_id = 41 and company_id = 1;
Date: 2024-10-18 12:16:24 Duration: 676ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 237209 and warehouse_id = 44 and company_id = 1;
Date: 2024-10-18 14:53:10 Duration: 614ms
17 169ms 1s49ms 189ms 2,123 6m42s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 18 04 1 174ms 174ms 05 17 3s34ms 178ms 07 41 7s664ms 186ms 08 198 38s453ms 194ms 09 341 1m4s 189ms 10 151 28s520ms 188ms 11 306 59s622ms 194ms 12 257 47s766ms 185ms 13 292 54s570ms 186ms 14 194 36s391ms 187ms 15 222 42s719ms 192ms 16 102 18s437ms 180ms 17 1 178ms 178ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198372 AND warehouse_id = 38;
Date: 2024-10-18 19:10:39 Duration: 1s49ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 198851 AND warehouse_id = 38;
Date: 2024-10-18 19:10:38 Duration: 746ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 178258 AND warehouse_id = 35;
Date: 2024-10-18 15:17:00 Duration: 347ms
18 120ms 1s142ms 178ms 2,421 7m11s select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 18 07 133 20s444ms 153ms 08 509 1m30s 177ms 09 417 1m25s 205ms 10 172 30s953ms 179ms 11 111 17s864ms 160ms 12 357 1m7s 189ms 13 116 16s343ms 140ms 14 265 42s596ms 160ms 15 341 1m 176ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237305) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:35 Duration: 1s142ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172911) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 13:01:34 Duration: 806ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 177379) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-18 16:50:18 Duration: 569ms
19 120ms 939ms 168ms 2,735 7m39s 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 Oct 18 21 18 2s448ms 136ms 22 1 148ms 148ms 04 1 145ms 145ms 05 6 784ms 130ms 07 60 9s551ms 159ms 08 277 39s820ms 143ms 09 386 56s334ms 145ms 10 484 2m10s 270ms 11 442 1m3s 142ms 12 238 33s511ms 140ms 13 246 34s999ms 142ms 14 169 23s985ms 141ms 15 345 55s256ms 160ms 16 61 9s89ms 149ms 17 1 123ms 123ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177177)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 11:46:56 Duration: 939ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (188571, 188572)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 13:55:47 Duration: 815ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177141, 177171, 177160, 177161, 177150, 246907)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-18 14:52:25 Duration: 800ms
20 133ms 446ms 158ms 5,760 15m13s 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 #20
Day Hour Count Duration Avg duration Oct 18 20 240 36s289ms 151ms 21 240 36s732ms 153ms 22 240 36s510ms 152ms 23 240 36s411ms 151ms 00 240 36s417ms 151ms 01 240 36s715ms 152ms 02 240 36s608ms 152ms 03 240 36s253ms 151ms 04 240 36s233ms 150ms 05 241 36s910ms 153ms 06 240 36s452ms 151ms 07 240 38s35ms 158ms 08 240 42s514ms 177ms 09 239 40s878ms 171ms 10 240 40s885ms 170ms 11 240 42s63ms 175ms 12 240 40s329ms 168ms 13 240 42s820ms 178ms 14 240 39s419ms 164ms 15 240 40s743ms 169ms 16 240 36s636ms 152ms 17 240 35s984ms 149ms 18 240 35s829ms 149ms 19 240 35s638ms 148ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_am', 'pg_catalog.pg_publication', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_extension', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_depend', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_amproc', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_database', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_constraint', 'pg_catalog.pg_language', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_range', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_cast', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_settings', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_collation', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_gssapi', 'information_schema.attributes', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.column_options', 'information_schema.routines', 'information_schema.table_privileges', 'information_schema.schemata', 'information_schema.routine_table_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.character_sets', 'information_schema.column_udt_usage', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.role_udt_grants', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.referential_constraints', 'information_schema.sql_implementation_info', 'information_schema.sequences', 'information_schema.data_type_privileges', 'information_schema.views', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.administrable_role_authorizations', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.information_schema_catalog_name', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_tables', 'information_schema.role_column_grants', 'information_schema.role_routine_grants', 'information_schema.view_table_usage', 'information_schema.foreign_servers', 'information_schema.sql_features', 'information_schema.check_constraint_routine_usage', 'information_schema.domain_constraints', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.applicable_roles', 'information_schema.column_column_usage', 'information_schema.table_constraints', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.column_domain_usage', 'information_schema.sql_sizing');
Date: 2024-10-18 17:02:31 Duration: 446ms
-
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_operator', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_database', 'pg_catalog.pg_locks', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_index', 'pg_catalog.pg_amproc', 'pg_catalog.pg_collation', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_range', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_roles', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_user', 'pg_catalog.pg_group', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_cursors', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_policy', 'pg_catalog.pg_cast', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_am', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_tables', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'information_schema.columns', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.column_options', 'information_schema.sequences', 'information_schema.constraint_table_usage', 'information_schema.sql_implementation_info', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraint_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_column_usage', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.column_udt_usage', 'information_schema.schemata', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.sql_sizing', 'information_schema.view_routine_usage', 'information_schema.foreign_servers', 'information_schema.information_schema_catalog_name', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.column_domain_usage', 'information_schema.table_privileges', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.applicable_roles', 'information_schema.domain_udt_usage', 'information_schema.routine_sequence_usage', 'information_schema.constraint_column_usage', 'information_schema.tables', 'information_schema.attributes', 'information_schema.routine_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_usage_grants', 'information_schema.routine_privileges', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.user_mapping_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 17:26:31 Duration: 403ms
-
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_publication', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_constraint', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_description', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_language', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_depend', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_type', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_enum', 'pg_catalog.pg_operator', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_class', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_policies', 'pg_catalog.pg_views', 'pg_catalog.pg_stats', 'pg_catalog.pg_group', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_extension', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_locks', 'pg_catalog.pg_rules', 'information_schema.applicable_roles', 'information_schema.collation_character_set_applicability', 'information_schema.constraint_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.sql_implementation_info', 'information_schema.character_sets', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sequences', 'information_schema.udt_privileges', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.check_constraint_routine_usage', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.role_udt_grants', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mappings', 'information_schema.domain_udt_usage', 'information_schema.routine_table_usage', 'information_schema.foreign_servers', 'information_schema.routines', 'information_schema.schemata', 'information_schema.referential_constraints', 'information_schema.view_column_usage', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.column_privileges', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.routine_column_usage', 'information_schema.sql_features', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.enabled_roles', 'information_schema.parameters', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.tables', 'information_schema.triggered_update_columns', 'information_schema.administrable_role_authorizations', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.role_routine_grants', 'information_schema.views', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.table_privileges', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.element_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-18 16:33:31 Duration: 397ms
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
- 250,495 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1512 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1,118 Max number of times the same event was reported
- 1,512 Total events found
Rank Times reported Error 1 1,118 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 18 20 36 21 35 22 38 23 39 00 35 01 37 02 37 03 107 04 116 05 36 06 35 07 38 08 37 09 39 10 41 11 35 12 42 13 41 14 35 15 35 16 31 17 36 18 37 19 120 - 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-10-18 02:50:16
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-10-18 03:00:08
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=65 FOR UPDATE NOWAIT
Date: 2024-10-18 03:10:14
2 368 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Oct 18 20 1 23 1 04 2 06 3 07 31 08 62 09 50 10 38 11 45 12 22 13 31 14 32 15 27 16 8 17 1 18 13 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-10-18 03:35:23' WHERE id IN (56)
Date: 2024-10-18 03:35:23
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-18 08:54:10',"last_presence"='2024-10-17 20:42:37.819063' WHERE id IN (154)
Date: 2024-10-18 08:54:10
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-18 16:50:15',"last_presence"='2024-10-18 16:50:13.751109' WHERE id IN (90)
Date: 2024-10-18 16:50:15
3 13 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Oct 18 08 3 09 1 10 4 11 2 12 1 13 1 15 1 - ERROR: process 2404997 still waiting for ShareLock on transaction 317606388 after 1000.089 ms
- ERROR: process 2392661 still waiting for ShareLock on transaction 317610959 after 1000.050 ms
- ERROR: process 2778245 still waiting for ShareLock on transaction 317665762 after 1000.056 ms
Detail: Process holding the lock: 2387268. Wait queue: 2404997.
Context: while updating tuple (27308,36) 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 != 1719844 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 != 1719844 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-18 16:54:36
Detail: Process holding the lock: 2404998. Wait queue: 2392661.
Context: while updating tuple (27552,9) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5776789,"write_uid"=979,"write_date"=(now() at time zone 'UTC') WHERE id IN (1719911)Date: 2024-10-18 17:04:52
Detail: Process holding the lock: 2460075. Wait queue: 2778245.
Context: while updating tuple (27899,23) 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 != 1720416 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 != 1720416 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-18 19:18:35
4 8 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Oct 18 07 1 08 5 10 2 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "vendor_account_master_unique_warehouse"
- ERROR: duplicate key value violates unique constraint "vendor_account_master_unique_warehouse"
Detail: Key (partner_id)=(42087) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1147, (now() at time zone 'UTC'), 1147, (now() at time zone 'UTC'), '8dc50c898ab4471ca52499f929d5c586', true, NULL, 1, '2024-10-18 11:46:57', 'Lander Enterprises LLC', 42087, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-18 11:46:57
Detail: Key (warehouse_id, psd_vendor_id)=(42, 3303) already exists.
Statement: INSERT INTO "vendor_account_master" ("id", "create_uid", "create_date", "write_uid", "write_date", "account_number", "psd_vendor_id", "warehouse_id") VALUES (nextval('vendor_account_master_id_seq'), 1012, (now() at time zone 'UTC'), 1012, (now() at time zone 'UTC'), '1723500', 3303, 42) RETURNING idDate: 2024-10-18 14:09:18
Detail: Key (warehouse_id, psd_vendor_id)=(42, 3304) already exists.
Statement: INSERT INTO "vendor_account_master" ("id", "create_uid", "create_date", "write_uid", "write_date", "account_number", "psd_vendor_id", "warehouse_id") VALUES (nextval('vendor_account_master_id_seq'), 1012, (now() at time zone 'UTC'), 1012, (now() at time zone 'UTC'), '1723500', 3304, 42) RETURNING idDate: 2024-10-18 14:10:00
5 4 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #5
Day Hour Count Oct 18 09 3 13 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (272935, null, 7dv4542mw, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 990, 2024-10-18 17:42:20.902722, 990, 2024-10-18 17:42:20.902722, 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, 499160, never, 0, , 48, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-10-18, 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'), 990, (now() at time zone 'UTC'), 990, (now() at time zone 'UTC'), true, false, 0.0, 48, NULL, 1, '', 'no', '2024-10-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '7dv4542mw', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 499160, 1, 1) RETURNING idDate: 2024-10-18 17:42:20
Detail: Failing row contains (272913, null, 500-G, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 997, 2024-10-18 13:19:49.838372, 997, 2024-10-18 13:19:49.838372, 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, 499075, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-10-18, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 997, (now() at time zone 'UTC'), 997, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-10-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '500-G', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 499075, 1, 1) RETURNING idDate: 2024-10-18 13:19:49
Detail: Failing row contains (272914, null, 100351, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1005, 2024-10-18 13:20:04.057481, 1005, 2024-10-18 13:20:04.057481, 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, 499075, never, 0, , 37, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-10-18, 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'), 1005, (now() at time zone 'UTC'), 1005, (now() at time zone 'UTC'), true, false, 0.0, 37, NULL, 1, '', 'no', '2024-10-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '100351', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 499075, 1, 1) RETURNING idDate: 2024-10-18 13:20:04
6 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Oct 18 14 1 - ERROR: syntax error at or near "CB" at character 98
Statement: select max(id) from sale_history_line where (product_name is not null and product_name ilike '3' CB ANT. 16G BL' and inventory_short_vendor_name ='DAS') or (product_id=210141) group by product_name
Date: 2024-10-18 18:03:10