-
Global information
- Generated on Sat Jul 13 00:50:30 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 539,491 log entries in 28s
- Log start from 2024-07-12 00:00:00 to 2024-07-12 23:59:58
-
Overview
Global Stats
- 1,039 Number of unique normalized queries
- 179,686 Number of queries
- 13h55m22s Total query duration
- 2024-07-12 00:00:00 First query
- 2024-07-12 23:59:58 Last query
- 70 queries/s at 2024-07-12 17:57:56 Query peak
- 13h55m22s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 13h55m22s Execute total duration
- 6,192 Number of events
- 6 Number of unique normalized events
- 4,930 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
- 179,686 Average queries per session
- 13h55m22s 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
- 70 queries/s Query Peak
- 2024-07-12 17:57:56 Date
SELECT Traffic
Key values
- 70 queries/s Query Peak
- 2024-07-12 17:57:56 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 16 queries/s Query Peak
- 2024-07-12 15:43:21 Date
Queries duration
Key values
- 13h55m22s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 12 00 1,831 120ms 762ms 200ms 8s308ms 11s66ms 16s383ms 01 1,458 120ms 1s150ms 216ms 7s435ms 11s500ms 14s269ms 02 1,460 120ms 651ms 220ms 7s878ms 9s725ms 13s263ms 03 1,662 0ms 7s901ms 234ms 10s207ms 24s644ms 55s203ms 04 1,389 120ms 1s283ms 214ms 8s809ms 9s773ms 12s603ms 05 1,576 120ms 564ms 195ms 7s43ms 7s650ms 11s421ms 06 1,453 120ms 614ms 210ms 9s256ms 9s853ms 12s423ms 07 1,223 120ms 1s343ms 185ms 8s213ms 8s607ms 9s196ms 08 965 120ms 2s187ms 163ms 3s876ms 7s136ms 8s517ms 09 1,853 120ms 4m7s 629ms 59s37ms 2m9s 4m51s 10 2,364 120ms 17s803ms 235ms 20s390ms 26s171ms 44s124ms 11 8,154 120ms 2m53s 335ms 1m43s 2m5s 3m39s 12 17,147 120ms 18s624ms 298ms 2m23s 3m14s 4m22s 13 19,910 120ms 18s53ms 277ms 2m23s 2m37s 3m43s 14 20,869 120ms 33s173ms 267ms 2m54s 3m27s 4m28s 15 22,884 120ms 37s177ms 289ms 3m39s 3m46s 3m54s 16 17,732 120ms 17s388ms 269ms 2m53s 3m11s 4m33s 17 17,621 120ms 13s403ms 280ms 2m36s 3m12s 4m10s 18 17,429 120ms 12s167ms 278ms 2m33s 2m50s 3m15s 19 10,713 120ms 25s355ms 266ms 1m26s 1m41s 1m52s 20 5,575 120ms 35s962ms 280ms 1m6s 1m18s 2m15s 21 830 120ms 1s132ms 214ms 6s787ms 7s641ms 28s601ms 22 1,415 120ms 1s310ms 220ms 7s809ms 11s303ms 12s789ms 23 2,173 120ms 13s571ms 276ms 36s386ms 40s606ms 46s725ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 12 00 1,831 0 200ms 7s548ms 8s308ms 11s528ms 01 1,457 0 216ms 6s816ms 7s435ms 13s36ms 02 1,460 0 220ms 6s776ms 7s878ms 10s421ms 03 1,659 0 226ms 7s243ms 10s207ms 30s519ms 04 1,387 0 214ms 7s39ms 8s809ms 9s848ms 05 1,576 0 195ms 6s808ms 7s43ms 11s93ms 06 1,453 0 210ms 6s869ms 9s256ms 11s441ms 07 1,221 0 185ms 5s656ms 7s906ms 9s141ms 08 956 0 158ms 3s35ms 3s824ms 8s254ms 09 1,659 114 650ms 11s613ms 57s972ms 2m14s 10 2,297 0 238ms 11s199ms 20s390ms 27s569ms 11 7,281 0 348ms 1m1s 1m43s 2m5s 12 15,025 0 309ms 1m55s 2m20s 3m29s 13 16,987 0 287ms 1m50s 2m3s 2m19s 14 18,373 0 270ms 2m6s 2m34s 3m34s 15 19,105 0 298ms 2m23s 2m59s 3m41s 16 15,673 0 277ms 1m49s 2m26s 3m54s 17 15,189 0 290ms 1m51s 2m22s 3m7s 18 15,316 0 286ms 1m36s 2m21s 2m39s 19 9,798 0 262ms 1m4s 1m13s 1m34s 20 4,863 0 295ms 42s626ms 59s343ms 1m25s 21 830 0 214ms 4s996ms 6s787ms 11s250ms 22 1,415 0 220ms 6s385ms 7s809ms 12s104ms 23 2,106 0 197ms 9s323ms 19s19ms 23s244ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 12 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 376ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 3 0 4s681ms 0ms 0ms 0ms 04 0 2 0 0 359ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 359ms 0ms 0ms 0ms 08 0 3 0 0 498ms 0ms 0ms 0ms 09 0 79 0 0 163ms 0ms 0ms 1s769ms 10 0 67 0 0 162ms 0ms 0ms 1s837ms 11 0 864 9 0 222ms 1s993ms 4s417ms 18s948ms 12 0 2,076 40 0 224ms 6s857ms 10s514ms 24s183ms 13 0 2,855 61 0 218ms 8s472ms 14s589ms 29s79ms 14 0 2,419 72 0 249ms 8s64ms 13s263ms 24s825ms 15 0 3,594 180 0 245ms 15s477ms 20s661ms 38s325ms 16 0 2,038 18 0 211ms 5s999ms 12s181ms 28s457ms 17 0 2,400 27 0 217ms 7s843ms 11s356ms 22s827ms 18 0 2,067 42 0 223ms 6s279ms 11s304ms 21s799ms 19 0 871 43 0 308ms 3s963ms 6s832ms 9s410ms 20 0 711 1 0 176ms 893ms 3s205ms 12s454ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 67 0 2s766ms 0ms 0ms 21s807ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 12 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jul 12 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Jul 12 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Jul 12 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 12 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 12 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jul 12 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Jul 12 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Jul 12 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
- 148 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 26 1m25s 1s563ms 11s147ms 3s274ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239794 AND warehouse_id = 42;
Date: 2024-07-12 14:51:05
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;
Date: 2024-07-12 15:42:11
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195992 AND warehouse_id = 42;
Date: 2024-07-12 18:40:53
2 27 1m15s 2s139ms 8s220ms 2s803ms 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 != 1531812 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 != 1531812 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-12 12:47:57
-
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 != 1507607 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 != 1507607 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-12 12:07:31
-
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 != 1531891 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 != 1531891 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-12 13:00:12
3 13 40s14ms 1s233ms 9s53ms 3s78ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 7.0 WHERE product_id = 262214 AND warehouse_id = 43;
Date: 2024-07-12 16:19:08
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 225530 AND warehouse_id = 44;
Date: 2024-07-12 17:15:13
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 179524 AND warehouse_id = 43;
Date: 2024-07-12 20:04:38
4 21 39s656ms 1s630ms 5s461ms 1s888ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 10.0 WHERE product_id = 262214 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-12 16:19:15
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 202515 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 15:03:12
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 239794 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:51:17
5 14 38s647ms 1s169ms 6s205ms 2s760ms update "product_warehouse_inventory" set "loc_check_qty" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 2.0, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (69447);
Date: 2024-07-12 17:37:11
-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 15.0, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (37063);
Date: 2024-07-12 15:17:46
-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 2.0, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (69447);
Date: 2024-07-12 17:37:11
6 15 35s387ms 1s61ms 5s990ms 2s359ms update product_warehouse_inventory set qty_ytd_sold = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 44.0 WHERE product_id = 211732 AND warehouse_id = 39;
Date: 2024-07-12 17:04:40
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = - 1166.0 WHERE product_id = 237202 AND warehouse_id = 35;
Date: 2024-07-12 11:04:56
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 44.0 WHERE product_id = 211732 AND warehouse_id = 39;
Date: 2024-07-12 17:04:52
7 10 22s803ms 1s94ms 9s399ms 2s280ms update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 242987 AND warehouse_id = 37;
Date: 2024-07-12 18:32:51
-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 198760 AND warehouse_id = 46;
Date: 2024-07-12 19:31:33
-
UPDATE product_warehouse_inventory SET qty_on_order = 1.0 WHERE product_id = 267915 AND warehouse_id = 43;
Date: 2024-07-12 18:36:25
8 6 13s737ms 3s48ms 3s339ms 2s289ms 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" = 5561880, "write_uid" = 1021, "write_date" = (now() at time zone 'UTC') WHERE id IN (1532431);
Date: 2024-07-12 14:50:34
-
UPDATE "account_move" SET "message_main_attachment_id" = 5561513, "write_uid" = 1037, "write_date" = (now() at time zone 'UTC') WHERE id IN (1532227);
Date: 2024-07-12 13:57:30
-
UPDATE "account_move" SET "message_main_attachment_id" = 5562485, "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (1533144);
Date: 2024-07-12 17:04:50
9 5 9s877ms 1s115ms 4s284ms 1s975ms update product_warehouse_inventory set qty_mtd_sold = ?.? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 1.0 - 0 WHERE product_id = 194592 AND warehouse_id = 45;
Date: 2024-07-12 18:00:10
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 52.0 - 0 WHERE product_id = 237099 AND warehouse_id = 40;
Date: 2024-07-12 15:06:51
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 1.0 - 0 WHERE product_id = 210037 AND warehouse_id = 36;
Date: 2024-07-12 16:43:20
10 2 4s785ms 2s209ms 2s575ms 2s392ms update product_warehouse_inventory set qty_available = ? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 240453 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-07-12 20:00:23
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 240453 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-07-12 20:00:23
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267627 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:59:10
11 1 3s725ms 3s725ms 3s725ms 3s725ms 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 sequence_prefix = ( select sequence_prefix from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) 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 = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') 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') ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-07-12 19:27:35
12 2 3s604ms 1s654ms 1s949ms 1s802ms update product_warehouse_inventory set qty_mtd_sold = ? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 190849 AND warehouse_id = 45;
Date: 2024-07-12 12:38:56
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 176263 AND warehouse_id = 46;
Date: 2024-07-12 13:07:21
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 186697 AND warehouse_id = 43;
Date: 2024-07-12 13:25:11
13 1 2s671ms 2s671ms 2s671ms 2s671ms update product_warehouse_inventory set qty_on_order = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 267881 AND warehouse_id = 38;
Date: 2024-07-12 12:54:49
-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 176263 AND warehouse_id = 46;
Date: 2024-07-12 13:07:20
-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 173533 AND warehouse_id = 43;
Date: 2024-07-12 15:01:13
14 1 2s72ms 2s72ms 2s72ms 2s72ms update "account_move" set "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = 5561020, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (1531751);
Date: 2024-07-12 12:42:19
-
UPDATE "account_move" SET "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = 5561020, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (1531751);
Date: 2024-07-12 12:42:19
15 1 1s687ms 1s687ms 1s687ms 1s687ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_quant" SET "reserved_quantity" = 4.0, "write_uid" = 1282, "write_date" = (now() at time zone 'UTC') WHERE id IN (488194);
Date: 2024-07-12 18:22:23
16 1 1s293ms 1s293ms 1s293ms 1s293ms update product_warehouse_inventory set qty_in_transist = ?.? - ?.?, last_intra_company_receipt_date = ?::timestamp, last_intra_company_qty = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_in_transist = 845.0 - 837.0, last_intra_company_receipt_date = '2024-07-12T13:02:44'::timestamp, last_intra_company_qty = 10.0 WHERE product_id = 238919 AND warehouse_id = 45;
Date: 2024-07-12 13:03:07
-
UPDATE product_warehouse_inventory SET qty_in_transist = 7.0 - 6.0, last_intra_company_receipt_date = '2023-01-16T20:52:13'::timestamp, last_intra_company_qty = 1.0 WHERE product_id = 206573 AND warehouse_id = 37;
Date: 2024-07-12 14:59:09
-
UPDATE product_warehouse_inventory SET qty_in_transist = 2.0 - 2.0, last_intra_company_receipt_date = '2024-07-12T14:25:39'::timestamp, last_intra_company_qty = 2.0 WHERE product_id = 185566 AND warehouse_id = 42;
Date: 2024-07-12 14:25:46
17 1 1s201ms 1s201ms 1s201ms 1s201ms update "product_warehouse_inventory" set "loc_check_qty" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "loc_check_qty" = - 4.0, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (25772);
Date: 2024-07-12 16:57:19
18 1 1s 1s 1s 1s update "product_warehouse_inventory" set "rep_loc_check_qty" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "rep_loc_check_qty" = 34.0, "write_uid" = 1012, "write_date" = (now() at time zone 'UTC') WHERE id IN (26195);
Date: 2024-07-12 15:40:40
-
UPDATE "product_warehouse_inventory" SET "rep_loc_check_qty" = 34.0, "write_uid" = 1012, "write_date" = (now() at time zone 'UTC') WHERE id IN (26195);
Date: 2024-07-12 15:40:40
Queries that waited the most
Rank Wait time Query 1 11s147ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239794 AND warehouse_id = 42;[ Date: 2024-07-12 14:51:05 ]
2 9s899ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;[ Date: 2024-07-12 15:42:30 ]
3 9s632ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;[ Date: 2024-07-12 15:42:11 ]
4 9s399ms UPDATE product_warehouse_inventory SET qty_on_order = 3.0 WHERE product_id = 217291 AND warehouse_id = 43;[ Date: 2024-07-12 15:42:20 ]
5 9s53ms UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 216546 AND warehouse_id = 43;[ Date: 2024-07-12 15:58:59 ]
6 8s220ms 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 != 1531814 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 != 1531814 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-07-12 12:48:10 ]
7 7s959ms UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 216546 AND warehouse_id = 43;[ Date: 2024-07-12 15:59:07 ]
8 6s205ms UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 1.0, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (38615);[ Date: 2024-07-12 16:16:33 ]
9 6s103ms 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 != 1531812 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 != 1531812 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-07-12 12:47:57 ]
10 5s990ms UPDATE product_warehouse_inventory SET qty_ytd_sold = 21.0 WHERE product_id = 211735 AND warehouse_id = 39;[ Date: 2024-07-12 16:45:25 ]
11 5s867ms UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 1.0, "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (38615);[ Date: 2024-07-12 16:16:33 ]
12 5s756ms 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 != 1507607 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 != 1507607 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-07-12 12:07:31 ]
13 5s679ms UPDATE product_warehouse_inventory SET qty_ytd_sold = 44.0 WHERE product_id = 211732 AND warehouse_id = 39;[ Date: 2024-07-12 17:04:30 ]
14 5s461ms UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 239794 AND warehouse_id = 42 AND company_id = 1;[ Date: 2024-07-12 14:51:11 ]
15 5s372ms UPDATE product_warehouse_inventory SET qty_reserve = 7.0 WHERE product_id = 262214 AND warehouse_id = 43;[ Date: 2024-07-12 16:19:08 ]
16 5s362ms UPDATE product_warehouse_inventory SET qty_ytd_sold = 44.0 WHERE product_id = 211732 AND warehouse_id = 39;[ Date: 2024-07-12 17:04:40 ]
17 5s233ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;[ Date: 2024-07-12 15:42:41 ]
18 5s218ms UPDATE "product_warehouse_inventory" SET "loc_check_qty" = 2.0, "write_uid" = 1012, "write_date" = (now() at time zone 'UTC') WHERE id IN (23936);[ Date: 2024-07-12 15:43:22 ]
19 4s535ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195992 AND warehouse_id = 42;[ Date: 2024-07-12 18:40:53 ]
20 4s330ms UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 194592 AND warehouse_id = 45;[ Date: 2024-07-12 18:00:00 ]
-
Queries
Queries by type
Key values
- 158,917 Total read queries
- 20,769 Total write queries
Queries by database
Key values
- unknown Main database
- 179,686 Requests
- 13h55m22s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 179,904 Requests
User Request type Count Duration unknown Total 179,904 13h56m9s copy to 114 13m20s cte 40 16s190ms delete 564 19m53s select 159,133 12h20m28s tcl 3 499ms update 20,050 1h2m10s Duration by user
Key values
- 13h56m9s (unknown) Main time consuming user
User Request type Count Duration unknown Total 179,904 13h56m9s copy to 114 13m20s cte 40 16s190ms delete 564 19m53s select 159,133 12h20m28s tcl 3 499ms update 20,050 1h2m10s Queries by host
Key values
- unknown Main host
- 179,904 Requests
- 13h56m9s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 179,686 Requests
- 13h55m22s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-07-12 16:41:18 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 163,490 100-500ms duration
Slowest individual queries
Rank Duration Query 1 4m7s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-07-12 09:10:21 ]
2 2m53s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (267877)) ORDER BY "item_list_line"."id";[ Date: 2024-07-12 11:23:41 ]
3 2m2s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-07-12 09:04:01 ]
4 1m59s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-07-12 09:06:13 ]
5 37s177ms DELETE FROM account_move_line WHERE id IN (5396327, 5396328, 5396329, 5396330, 5396331, 5396332, 5396333, 5396334, 5396335, 5396336, 5396337, 5396338, 5396339, 5396340, 5396341, 5396342, 5396343, 5396344);[ Date: 2024-07-12 15:17:23 ]
6 35s962ms SELECT "account_move_line".id FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") WHERE (((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line"."parent_state" != 'cancel') OR "account_move_line"."parent_state" IS NULL)) AND (("account_move_line"."parent_state" = 'posted') AND (((unaccent ("account_move_line__move_id"."name"::text) ilike unaccent ('%03-C/IN/09957%')) OR (unaccent ("account_move_line__move_id"."ref"::text) ilike unaccent ('%03-C/IN/09957%'))) OR FALSE))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) ORDER BY "account_move_line"."date" DESC, "account_move_line"."move_name" DESC, "account_move_line"."id", "account_move_line"."id" LIMIT 80;[ Date: 2024-07-12 20:16:49 ]
7 35s635ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-07-12 09:00:57 ]
8 33s967ms DELETE FROM account_move_line WHERE id IN (5351162, 5351163, 5351164, 5351166, 5351167, 5351168, 5351169, 5351170, 5351171, 5351173, 5351174, 5351175, 5351176, 5351177, 5351178);[ Date: 2024-07-12 15:16:10 ]
9 33s173ms DELETE FROM sale_order_line WHERE id IN (437304, 437538, 439613, 440668, 440669);[ Date: 2024-07-12 14:56:19 ]
10 32s876ms DELETE FROM account_move_line WHERE id IN (5351162, 5351163, 5351164, 5351166, 5351167, 5351168, 5351169, 5351170, 5351171, 5351173, 5351174, 5351175, 5351176, 5351177, 5351178);[ Date: 2024-07-12 15:14:32 ]
11 27s733ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE (((((("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name";[ Date: 2024-07-12 14:59:40 ]
12 25s772ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE (((((("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%mcgahan%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name";[ Date: 2024-07-12 14:59:38 ]
13 25s355ms DELETE FROM sale_order_line WHERE id IN (443375, 443376, 443377, 443378);[ Date: 2024-07-12 19:27:12 ]
14 23s360ms DELETE FROM account_move_line WHERE id IN (5396913, 5396914, 5396916, 5396917, 5396918, 5396919, 5396920, 5396921, 5396923, 5396924);[ Date: 2024-07-12 15:54:44 ]
15 22s454ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type) TO stdout;[ Date: 2024-07-12 09:12:41 ]
16 18s624ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."fri_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-07-12 12:38:47 ]
17 18s452ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."fri_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-07-12 12:39:19 ]
18 18s53ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE (((((("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name";[ Date: 2024-07-12 13:32:34 ]
19 17s855ms COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-07-12 09:01:24 ]
20 17s803ms SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 3)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;[ Date: 2024-07-12 10:04:07 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h32m58s 56,162 120ms 2s312ms 227ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 12 00 866 2m9s 149ms 01 539 1m29s 166ms 02 454 1m18s 171ms 03 504 1m18s 156ms 04 491 1m21s 165ms 05 639 1m31s 143ms 06 639 1m44s 163ms 07 583 1m24s 144ms 08 646 1m35s 147ms 09 741 2m7s 172ms 10 744 1m55s 154ms 11 2,455 7m29s 183ms 12 5,029 22m7s 264ms 13 6,014 22m38s 225ms 14 6,185 22m42s 220ms 15 6,225 26m53s 259ms 16 5,654 23m7s 245ms 17 5,096 24m12s 285ms 18 5,231 21m39s 248ms 19 4,161 14m43s 212ms 20 1,912 6m2s 189ms 21 374 1m2s 166ms 22 412 1m5s 158ms 23 568 1m16s 135ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s312ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19576]', '["pointspring_master","mail.channel",61]', '["pointspring_master","mail.channel",62]', '["pointspring_master","mail.channel",63]', '["pointspring_master","mail.channel",252]', '["pointspring_master","mail.channel",545]', '["pointspring_master","res.partner",19576]', '["pointspring_master","ir.needaction",19576]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s167ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_978"', '["pointspring_master","calendar.alarm",19516]', '["pointspring_master","mail.channel",236]', '["pointspring_master","mail.channel",237]', '["pointspring_master","mail.channel",238]', '["pointspring_master","mail.channel",340]', '["pointspring_master","mail.channel",444]', '["pointspring_master","mail.channel",578]', '["pointspring_master","res.partner",19516]', '["pointspring_master","ir.needaction",19516]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s99ms
2 1h36m1s 15,193 269ms 1s869ms 379ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 12 09 35 11s40ms 315ms 10 18 6s97ms 338ms 11 738 4m25s 359ms 12 1,456 9m12s 379ms 13 1,820 11m31s 380ms 14 1,830 12m 393ms 15 2,584 16m57s 393ms 16 1,578 10m9s 386ms 17 1,599 10m1s 376ms 18 1,921 12m 374ms 19 883 5m15s 357ms 20 731 4m9s 340ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 17:47:29 Duration: 1s869ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 12:59:18 Duration: 1s414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 16:15:30 Duration: 1s382ms
3 43m22s 3,038 581ms 2s392ms 856ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 12 10 36 25s690ms 713ms 11 397 5m15s 794ms 12 449 6m25s 858ms 13 432 6m1s 837ms 14 417 6m24s 922ms 15 206 3m16s 955ms 16 214 3m11s 896ms 17 336 4m53s 872ms 18 257 3m41s 862ms 19 165 2m7s 774ms 20 129 1m37s 755ms -
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 ('%%83%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%83-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%83-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:15:31 Duration: 2s392ms
-
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 ('%%AUBK8374%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%AUBK8374-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%AUBK8374-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:02:17 Duration: 2s229ms
-
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 ('%%GREPF35S%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%GRE-PF35S%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%GRE-PF35S%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:38:26 Duration: 2s221ms
4 21m37s 3,744 306ms 2s37ms 346ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 12 00 216 1m9s 321ms 01 174 55s505ms 318ms 02 213 1m7s 318ms 03 195 1m2s 321ms 04 147 47s174ms 320ms 05 129 41s696ms 323ms 06 216 1m9s 320ms 07 105 33s592ms 319ms 08 12 3s812ms 317ms 09 102 32s773ms 321ms 10 177 57s507ms 324ms 11 165 1m1s 371ms 12 123 45s467ms 369ms 13 189 1m13s 387ms 14 180 1m13s 408ms 15 189 1m19s 422ms 16 141 54s596ms 387ms 17 150 58s539ms 390ms 18 180 1m9s 383ms 19 111 38s118ms 343ms 20 168 56s481ms 336ms 21 63 19s830ms 314ms 22 228 1m11s 314ms 23 171 53s939ms 315ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:57:57 Duration: 2s37ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 16:26:37 Duration: 1s250ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 12:17:07 Duration: 1s51ms
5 19m44s 2,200 435ms 1s706ms 538ms 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 Jul 12 00 3 1s312ms 437ms 01 3 1s312ms 437ms 07 2 888ms 444ms 08 4 1s760ms 440ms 09 26 11s540ms 443ms 10 19 8s445ms 444ms 11 132 1m6s 500ms 12 293 2m37s 536ms 13 326 3m3s 564ms 14 389 3m37s 559ms 15 297 2m49s 571ms 16 143 1m19s 552ms 17 194 1m40s 516ms 18 203 1m45s 521ms 19 98 48s191ms 491ms 20 59 27s148ms 460ms 22 7 3s96ms 442ms 23 2 897ms 448ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 15:23:43 Duration: 1s706ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 13:29:32 Duration: 1s553ms
-
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-07-12 11:50:03 Duration: 1s456ms
6 18m24s 3,225 306ms 1s328ms 342ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 12 00 156 49s450ms 316ms 01 192 1m 314ms 02 165 51s747ms 313ms 03 153 48s28ms 313ms 04 174 54s674ms 314ms 05 96 30s205ms 314ms 06 174 54s577ms 313ms 07 57 17s841ms 313ms 08 3 924ms 308ms 09 96 30s353ms 316ms 10 156 49s514ms 317ms 11 171 56s688ms 331ms 12 168 1m7s 401ms 13 144 53s671ms 372ms 14 105 43s894ms 418ms 15 195 1m19s 407ms 16 135 51s692ms 382ms 17 114 47s724ms 418ms 18 177 1m4s 366ms 19 90 29s845ms 331ms 20 156 51s731ms 331ms 21 60 18s945ms 315ms 22 126 39s593ms 314ms 23 162 51s200ms 316ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 15:01:14 Duration: 1s328ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:50:17 Duration: 831ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:58:26 Duration: 831ms
7 16m4s 6,327 120ms 895ms 152ms 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 #7
Day Hour Count Duration Avg duration Jul 12 09 22 2s894ms 131ms 10 11 1s513ms 137ms 11 248 36s861ms 148ms 12 731 1m48s 148ms 13 853 2m12s 155ms 14 1,076 2m50s 158ms 15 611 1m34s 154ms 16 917 2m16s 149ms 17 920 2m19s 152ms 18 592 1m32s 155ms 19 232 33s571ms 144ms 20 114 15s487ms 135ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 189566 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 16:34:47 Duration: 895ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 267915 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 18:36:25 Duration: 749ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 214037 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 13:50:18 Duration: 601ms
8 15m37s 3,628 228ms 1s211ms 258ms 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 #8
Day Hour Count Duration Avg duration Jul 12 00 193 45s587ms 236ms 01 156 36s751ms 235ms 02 192 45s29ms 234ms 03 171 40s146ms 234ms 04 174 40s830ms 234ms 05 126 29s736ms 236ms 06 165 38s953ms 236ms 07 108 25s497ms 236ms 08 9 2s120ms 235ms 09 156 36s973ms 237ms 10 162 38s376ms 236ms 11 165 41s126ms 249ms 12 156 41s678ms 267ms 13 183 58s399ms 319ms 14 159 51s54ms 321ms 15 135 41s166ms 304ms 16 180 53s647ms 298ms 17 114 33s46ms 289ms 18 186 58s209ms 312ms 19 120 30s862ms 257ms 20 150 38s342ms 255ms 21 51 11s868ms 232ms 22 246 57s902ms 235ms 23 171 40s330ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 18:51:21 Duration: 1s211ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 14:02:17 Duration: 826ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:47:28 Duration: 811ms
9 14m52s 5,761 138ms 866ms 154ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 12 00 240 35s54ms 146ms 01 240 34s519ms 143ms 02 240 34s258ms 142ms 03 240 34s388ms 143ms 04 240 34s694ms 144ms 05 240 34s381ms 143ms 06 240 34s276ms 142ms 07 240 34s447ms 143ms 08 240 34s346ms 143ms 09 240 34s818ms 145ms 10 240 34s490ms 143ms 11 240 37s206ms 155ms 12 241 41s436ms 171ms 13 240 44s170ms 184ms 14 240 43s549ms 181ms 15 240 46s139ms 192ms 16 240 40s983ms 170ms 17 240 42s319ms 176ms 18 240 41s376ms 172ms 19 240 37s424ms 155ms 20 240 35s449ms 147ms 21 240 34s244ms 142ms 22 240 34s364ms 143ms 23 240 34s427ms 143ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_subscription', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_constraint', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_enum', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_namespace', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_amproc', 'pg_catalog.pg_database', 'pg_catalog.pg_publication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_transform', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_sequence', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_depend', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cursors', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_indexes', 'information_schema.constraint_table_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.user_mappings', 'information_schema.check_constraints', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.column_domain_usage', 'information_schema.column_privileges', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.views', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.referential_constraints', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.sql_sizing', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.data_type_privileges', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.sequences', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.role_udt_grants', 'information_schema.foreign_tables', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.usage_privileges');
Date: 2024-07-12 15:23:43 Duration: 866ms
-
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_statistic_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_description', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_database', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_group', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_policy', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_transform', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_constraint', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_amproc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_conversion', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_collation', 'pg_catalog.pg_range', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_am', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_cursors', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_config_map', 'information_schema.administrable_role_authorizations', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.column_options', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.role_table_grants', 'information_schema.routines', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.triggered_update_columns', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.routine_routine_usage', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.attributes', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.user_mappings', 'information_schema.applicable_roles', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-12 15:01:12 Duration: 638ms
-
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 ('information_schema.sql_implementation_info', 'information_schema.collations', 'information_schema.enabled_roles', 'information_schema.table_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.constraint_column_usage', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.column_udt_usage', 'information_schema.sql_features', 'information_schema.check_constraints', 'information_schema.routine_table_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.sequences', 'information_schema.tables', 'information_schema.data_type_privileges', 'information_schema.constraint_table_usage', 'information_schema.role_table_grants', 'information_schema.schemata', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.foreign_table_options', 'information_schema.user_mapping_options', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.sql_sizing', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.foreign_tables', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_settings', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_roles', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rules', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_locks', 'pg_catalog.pg_attribute', 'pg_catalog.pg_operator', 'pg_catalog.pg_am', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_group', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_enum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_language', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_sequences');
Date: 2024-07-12 13:31:12 Duration: 538ms
10 14m24s 3,345 227ms 1s117ms 258ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 12 00 156 36s597ms 234ms 01 147 34s256ms 233ms 02 195 45s470ms 233ms 03 114 26s403ms 231ms 04 150 35s183ms 234ms 05 345 1m20s 233ms 06 16 3s707ms 231ms 07 59 13s768ms 233ms 08 3 703ms 234ms 09 114 26s791ms 235ms 10 156 37s25ms 237ms 11 162 42s348ms 261ms 12 186 56s754ms 305ms 13 174 54s344ms 312ms 14 126 40s579ms 322ms 15 114 34s82ms 298ms 16 198 55s361ms 279ms 17 90 26s391ms 293ms 18 99 27s401ms 276ms 19 441 1m54s 260ms 20 33 8s942ms 270ms 21 6 1s412ms 235ms 22 135 31s552ms 233ms 23 126 29s691ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:07:36 Duration: 1s117ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 13:26:39 Duration: 945ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:59:13 Duration: 913ms
11 13m12s 759 876ms 2s662ms 1s44ms 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 #11
Day Hour Count Duration Avg duration Jul 12 10 2 1s813ms 906ms 11 41 40s189ms 980ms 12 115 2m1s 1s58ms 13 97 1m39s 1s25ms 14 103 1m50s 1s76ms 15 105 1m54s 1s95ms 16 100 1m40s 1s4ms 17 53 57s893ms 1s92ms 18 80 1m25s 1s63ms 19 47 45s455ms 967ms 20 16 14s834ms 927ms -
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 ('%ab1dk23m-9373%')) 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 ('%ab1dk23m-9373%'))) 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 ('%ab1dk23m-9373%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%ab1dk23m-9373%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 18:36:26 Duration: 2s662ms
-
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 ('%4411-6%')) 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 ('%4411-6%'))) 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 ('%4411-6%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%4411-6%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 17:33:28 Duration: 2s45ms
-
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 ('%66864b%')) 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 ('%66864b%'))) 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 ('%66864b%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%66864b%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 17:50:21 Duration: 1s838ms
12 12m41s 876 691ms 1s641ms 868ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 12 11 17 12s830ms 754ms 12 59 49s8ms 830ms 13 96 1m22s 857ms 14 105 1m35s 908ms 15 81 1m12s 898ms 16 129 1m55s 896ms 17 152 2m11s 864ms 18 44 38s658ms 878ms 19 175 2m28s 846ms 20 18 14s937ms 829ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE (("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:15:31 Duration: 1s641ms
-
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 ('%%cra%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cra%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cra%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:42:41 Duration: 1s626ms
-
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 ('%%MHS25%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MHS25%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MHS25%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:01:43 Duration: 1s594ms
13 11m58s 5,210 120ms 556ms 137ms select coalesce(loc_check_qty, ?) as loc_check_qty from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 12 09 4 497ms 124ms 10 3 390ms 130ms 11 161 21s826ms 135ms 12 584 1m20s 137ms 13 586 1m19s 135ms 14 946 2m15s 143ms 15 713 1m39s 140ms 16 540 1m12s 133ms 17 867 1m59s 138ms 18 549 1m15s 136ms 19 170 22s433ms 131ms 20 87 11s349ms 130ms -
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:02:16 Duration: 556ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-07-12 14:02:15 Duration: 532ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:02:15 Duration: 500ms
14 11m57s 3,915 147ms 2s863ms 183ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 12 09 18 3s51ms 169ms 10 11 1s848ms 168ms 11 160 27s931ms 174ms 12 477 1m26s 182ms 13 604 1m52s 186ms 14 543 1m43s 190ms 15 457 1m23s 183ms 16 394 1m12s 183ms 17 563 1m41s 180ms 18 436 1m19s 182ms 19 142 25s252ms 177ms 20 110 19s56ms 173ms -
UPDATE product_warehouse_inventory SET qty_available = 10.0 WHERE product_id = 262214 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-12 16:19:15 Duration: 2s863ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 202515 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 15:03:12 Duration: 1s603ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 239794 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:51:17 Duration: 787ms
15 10m30s 4,080 120ms 752ms 154ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 12 09 1 145ms 145ms 11 93 13s634ms 146ms 12 400 1m1s 152ms 13 536 1m24s 156ms 14 763 1m58s 154ms 15 755 1m58s 156ms 16 462 1m11s 154ms 17 436 1m5s 149ms 18 455 1m10s 154ms 19 140 22s73ms 157ms 20 39 6s794ms 174ms -
select id from product_warehouse_inventory where product_id = 267806 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 13:23:30 Duration: 752ms
-
select id from product_warehouse_inventory where product_id = 221338 and warehouse_id = 45 and company_id = 1;
Date: 2024-07-12 14:10:32 Duration: 619ms
-
select id from product_warehouse_inventory where product_id = 213424 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 15:45:57 Duration: 610ms
16 10m11s 2,712 146ms 891ms 225ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 12 03 10 1s878ms 187ms 09 29 6s417ms 221ms 10 31 6s95ms 196ms 11 93 20s428ms 219ms 12 294 1m6s 226ms 13 296 1m9s 236ms 14 158 39s303ms 248ms 15 445 1m47s 241ms 16 309 1m9s 224ms 17 198 47s111ms 237ms 18 269 1m2s 231ms 19 254 52s372ms 206ms 20 46 9s401ms 204ms 23 280 52s214ms 186ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (34094))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:38:45 Duration: 891ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33251))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 18:39:46 Duration: 841ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (53687))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:23:43 Duration: 797ms
17 9m26s 3,093 120ms 812ms 183ms 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 #17
Day Hour Count Duration Avg duration Jul 12 11 217 43s380ms 199ms 12 795 2m19s 174ms 13 458 1m13s 160ms 14 227 39s140ms 172ms 15 121 22s155ms 183ms 16 448 1m15s 167ms 17 302 1m7s 224ms 18 379 1m19s 210ms 19 146 26s686ms 182ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 188251) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:41 Duration: 812ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189315) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 12:15:00 Duration: 707ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 240474) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:42 Duration: 675ms
18 9m19s 2,757 145ms 11s349ms 202ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 12 09 11 1s712ms 155ms 10 9 1s433ms 159ms 11 81 13s707ms 169ms 12 261 47s122ms 180ms 13 420 1m20s 191ms 14 288 1m4s 224ms 15 621 2m18s 223ms 16 255 51s358ms 201ms 17 267 52s151ms 195ms 18 323 1m9s 215ms 19 79 13s709ms 173ms 20 142 24s879ms 175ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239794 AND warehouse_id = 42;
Date: 2024-07-12 14:51:05 Duration: 11s349ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;
Date: 2024-07-12 15:42:11 Duration: 9s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195992 AND warehouse_id = 42;
Date: 2024-07-12 18:40:53 Duration: 4s692ms
19 8m31s 3,538 120ms 608ms 144ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 12 11 89 13s54ms 146ms 12 363 51s663ms 142ms 13 360 50s752ms 140ms 14 643 1m33s 146ms 15 710 1m43s 146ms 16 411 57s859ms 140ms 17 457 1m8s 149ms 18 362 52s510ms 145ms 19 101 13s939ms 138ms 20 42 5s994ms 142ms -
select id from product_warehouse_inventory where product_id = 240648 and warehouse_id = 35 and company_id = 1;
Date: 2024-07-12 18:00:53 Duration: 608ms
-
select id from product_warehouse_inventory where product_id = 206528 and warehouse_id = 35 and company_id = 1;
Date: 2024-07-12 15:01:13 Duration: 549ms
-
select id from product_warehouse_inventory where product_id = 205620 and warehouse_id = 37 and company_id = 1;
Date: 2024-07-12 14:02:16 Duration: 533ms
20 8m24s 572 686ms 2s526ms 881ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 12 12 13 10s430ms 802ms 13 194 2m47s 865ms 14 17 16s591ms 975ms 15 82 1m8s 837ms 16 34 26s283ms 773ms 17 173 2m43s 944ms 18 34 28s71ms 825ms 19 18 17s554ms 975ms 20 7 5s220ms 745ms -
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 ('%%RG0%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG0%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG0%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s526ms
-
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 ('%%RG04%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG04%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG04%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s408ms
-
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 ('%%RG04%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG04-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG04-%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s78ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 56,162 3h32m58s 120ms 2s312ms 227ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 12 00 866 2m9s 149ms 01 539 1m29s 166ms 02 454 1m18s 171ms 03 504 1m18s 156ms 04 491 1m21s 165ms 05 639 1m31s 143ms 06 639 1m44s 163ms 07 583 1m24s 144ms 08 646 1m35s 147ms 09 741 2m7s 172ms 10 744 1m55s 154ms 11 2,455 7m29s 183ms 12 5,029 22m7s 264ms 13 6,014 22m38s 225ms 14 6,185 22m42s 220ms 15 6,225 26m53s 259ms 16 5,654 23m7s 245ms 17 5,096 24m12s 285ms 18 5,231 21m39s 248ms 19 4,161 14m43s 212ms 20 1,912 6m2s 189ms 21 374 1m2s 166ms 22 412 1m5s 158ms 23 568 1m16s 135ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s312ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19576]', '["pointspring_master","mail.channel",61]', '["pointspring_master","mail.channel",62]', '["pointspring_master","mail.channel",63]', '["pointspring_master","mail.channel",252]', '["pointspring_master","mail.channel",545]', '["pointspring_master","res.partner",19576]', '["pointspring_master","ir.needaction",19576]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s167ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_978"', '["pointspring_master","calendar.alarm",19516]', '["pointspring_master","mail.channel",236]', '["pointspring_master","mail.channel",237]', '["pointspring_master","mail.channel",238]', '["pointspring_master","mail.channel",340]', '["pointspring_master","mail.channel",444]', '["pointspring_master","mail.channel",578]', '["pointspring_master","res.partner",19516]', '["pointspring_master","ir.needaction",19516]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s99ms
2 15,193 1h36m1s 269ms 1s869ms 379ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 12 09 35 11s40ms 315ms 10 18 6s97ms 338ms 11 738 4m25s 359ms 12 1,456 9m12s 379ms 13 1,820 11m31s 380ms 14 1,830 12m 393ms 15 2,584 16m57s 393ms 16 1,578 10m9s 386ms 17 1,599 10m1s 376ms 18 1,921 12m 374ms 19 883 5m15s 357ms 20 731 4m9s 340ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 17:47:29 Duration: 1s869ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 12:59:18 Duration: 1s414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 16:15:30 Duration: 1s382ms
3 6,327 16m4s 120ms 895ms 152ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 12 09 22 2s894ms 131ms 10 11 1s513ms 137ms 11 248 36s861ms 148ms 12 731 1m48s 148ms 13 853 2m12s 155ms 14 1,076 2m50s 158ms 15 611 1m34s 154ms 16 917 2m16s 149ms 17 920 2m19s 152ms 18 592 1m32s 155ms 19 232 33s571ms 144ms 20 114 15s487ms 135ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 189566 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 16:34:47 Duration: 895ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 267915 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 18:36:25 Duration: 749ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 214037 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 13:50:18 Duration: 601ms
4 5,761 14m52s 138ms 866ms 154ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 12 00 240 35s54ms 146ms 01 240 34s519ms 143ms 02 240 34s258ms 142ms 03 240 34s388ms 143ms 04 240 34s694ms 144ms 05 240 34s381ms 143ms 06 240 34s276ms 142ms 07 240 34s447ms 143ms 08 240 34s346ms 143ms 09 240 34s818ms 145ms 10 240 34s490ms 143ms 11 240 37s206ms 155ms 12 241 41s436ms 171ms 13 240 44s170ms 184ms 14 240 43s549ms 181ms 15 240 46s139ms 192ms 16 240 40s983ms 170ms 17 240 42s319ms 176ms 18 240 41s376ms 172ms 19 240 37s424ms 155ms 20 240 35s449ms 147ms 21 240 34s244ms 142ms 22 240 34s364ms 143ms 23 240 34s427ms 143ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_subscription', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_constraint', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_enum', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_namespace', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_amproc', 'pg_catalog.pg_database', 'pg_catalog.pg_publication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_transform', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_sequence', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_depend', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cursors', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_indexes', 'information_schema.constraint_table_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.user_mappings', 'information_schema.check_constraints', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.column_domain_usage', 'information_schema.column_privileges', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.views', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.referential_constraints', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.sql_sizing', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.data_type_privileges', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.sequences', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.role_udt_grants', 'information_schema.foreign_tables', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.usage_privileges');
Date: 2024-07-12 15:23:43 Duration: 866ms
-
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_statistic_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_description', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_database', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_group', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_policy', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_transform', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_constraint', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_amproc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_conversion', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_collation', 'pg_catalog.pg_range', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_am', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_cursors', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_config_map', 'information_schema.administrable_role_authorizations', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.column_options', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.role_table_grants', 'information_schema.routines', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.triggered_update_columns', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.routine_routine_usage', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.attributes', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.user_mappings', 'information_schema.applicable_roles', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-12 15:01:12 Duration: 638ms
-
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 ('information_schema.sql_implementation_info', 'information_schema.collations', 'information_schema.enabled_roles', 'information_schema.table_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.constraint_column_usage', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.column_udt_usage', 'information_schema.sql_features', 'information_schema.check_constraints', 'information_schema.routine_table_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.sequences', 'information_schema.tables', 'information_schema.data_type_privileges', 'information_schema.constraint_table_usage', 'information_schema.role_table_grants', 'information_schema.schemata', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.foreign_table_options', 'information_schema.user_mapping_options', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.sql_sizing', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.foreign_tables', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_settings', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_roles', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rules', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_locks', 'pg_catalog.pg_attribute', 'pg_catalog.pg_operator', 'pg_catalog.pg_am', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_group', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_enum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_language', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_sequences');
Date: 2024-07-12 13:31:12 Duration: 538ms
5 5,210 11m58s 120ms 556ms 137ms select coalesce(loc_check_qty, ?) as loc_check_qty from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 12 09 4 497ms 124ms 10 3 390ms 130ms 11 161 21s826ms 135ms 12 584 1m20s 137ms 13 586 1m19s 135ms 14 946 2m15s 143ms 15 713 1m39s 140ms 16 540 1m12s 133ms 17 867 1m59s 138ms 18 549 1m15s 136ms 19 170 22s433ms 131ms 20 87 11s349ms 130ms -
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:02:16 Duration: 556ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-07-12 14:02:15 Duration: 532ms
-
SELECT COALESCE(loc_check_qty, 0) as loc_check_qty FROM product_warehouse_inventory WHERE product_id = 205620 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:02:15 Duration: 500ms
6 4,080 10m30s 120ms 752ms 154ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 12 09 1 145ms 145ms 11 93 13s634ms 146ms 12 400 1m1s 152ms 13 536 1m24s 156ms 14 763 1m58s 154ms 15 755 1m58s 156ms 16 462 1m11s 154ms 17 436 1m5s 149ms 18 455 1m10s 154ms 19 140 22s73ms 157ms 20 39 6s794ms 174ms -
select id from product_warehouse_inventory where product_id = 267806 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 13:23:30 Duration: 752ms
-
select id from product_warehouse_inventory where product_id = 221338 and warehouse_id = 45 and company_id = 1;
Date: 2024-07-12 14:10:32 Duration: 619ms
-
select id from product_warehouse_inventory where product_id = 213424 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 15:45:57 Duration: 610ms
7 3,915 11m57s 147ms 2s863ms 183ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 12 09 18 3s51ms 169ms 10 11 1s848ms 168ms 11 160 27s931ms 174ms 12 477 1m26s 182ms 13 604 1m52s 186ms 14 543 1m43s 190ms 15 457 1m23s 183ms 16 394 1m12s 183ms 17 563 1m41s 180ms 18 436 1m19s 182ms 19 142 25s252ms 177ms 20 110 19s56ms 173ms -
UPDATE product_warehouse_inventory SET qty_available = 10.0 WHERE product_id = 262214 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-12 16:19:15 Duration: 2s863ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 202515 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 15:03:12 Duration: 1s603ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 239794 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:51:17 Duration: 787ms
8 3,744 21m37s 306ms 2s37ms 346ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 12 00 216 1m9s 321ms 01 174 55s505ms 318ms 02 213 1m7s 318ms 03 195 1m2s 321ms 04 147 47s174ms 320ms 05 129 41s696ms 323ms 06 216 1m9s 320ms 07 105 33s592ms 319ms 08 12 3s812ms 317ms 09 102 32s773ms 321ms 10 177 57s507ms 324ms 11 165 1m1s 371ms 12 123 45s467ms 369ms 13 189 1m13s 387ms 14 180 1m13s 408ms 15 189 1m19s 422ms 16 141 54s596ms 387ms 17 150 58s539ms 390ms 18 180 1m9s 383ms 19 111 38s118ms 343ms 20 168 56s481ms 336ms 21 63 19s830ms 314ms 22 228 1m11s 314ms 23 171 53s939ms 315ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:57:57 Duration: 2s37ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 16:26:37 Duration: 1s250ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 12:17:07 Duration: 1s51ms
9 3,628 15m37s 228ms 1s211ms 258ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 12 00 193 45s587ms 236ms 01 156 36s751ms 235ms 02 192 45s29ms 234ms 03 171 40s146ms 234ms 04 174 40s830ms 234ms 05 126 29s736ms 236ms 06 165 38s953ms 236ms 07 108 25s497ms 236ms 08 9 2s120ms 235ms 09 156 36s973ms 237ms 10 162 38s376ms 236ms 11 165 41s126ms 249ms 12 156 41s678ms 267ms 13 183 58s399ms 319ms 14 159 51s54ms 321ms 15 135 41s166ms 304ms 16 180 53s647ms 298ms 17 114 33s46ms 289ms 18 186 58s209ms 312ms 19 120 30s862ms 257ms 20 150 38s342ms 255ms 21 51 11s868ms 232ms 22 246 57s902ms 235ms 23 171 40s330ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 18:51:21 Duration: 1s211ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 14:02:17 Duration: 826ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:47:28 Duration: 811ms
10 3,538 8m31s 120ms 608ms 144ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 12 11 89 13s54ms 146ms 12 363 51s663ms 142ms 13 360 50s752ms 140ms 14 643 1m33s 146ms 15 710 1m43s 146ms 16 411 57s859ms 140ms 17 457 1m8s 149ms 18 362 52s510ms 145ms 19 101 13s939ms 138ms 20 42 5s994ms 142ms -
select id from product_warehouse_inventory where product_id = 240648 and warehouse_id = 35 and company_id = 1;
Date: 2024-07-12 18:00:53 Duration: 608ms
-
select id from product_warehouse_inventory where product_id = 206528 and warehouse_id = 35 and company_id = 1;
Date: 2024-07-12 15:01:13 Duration: 549ms
-
select id from product_warehouse_inventory where product_id = 205620 and warehouse_id = 37 and company_id = 1;
Date: 2024-07-12 14:02:16 Duration: 533ms
11 3,345 14m24s 227ms 1s117ms 258ms select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 12 00 156 36s597ms 234ms 01 147 34s256ms 233ms 02 195 45s470ms 233ms 03 114 26s403ms 231ms 04 150 35s183ms 234ms 05 345 1m20s 233ms 06 16 3s707ms 231ms 07 59 13s768ms 233ms 08 3 703ms 234ms 09 114 26s791ms 235ms 10 156 37s25ms 237ms 11 162 42s348ms 261ms 12 186 56s754ms 305ms 13 174 54s344ms 312ms 14 126 40s579ms 322ms 15 114 34s82ms 298ms 16 198 55s361ms 279ms 17 90 26s391ms 293ms 18 99 27s401ms 276ms 19 441 1m54s 260ms 20 33 8s942ms 270ms 21 6 1s412ms 235ms 22 135 31s552ms 233ms 23 126 29s691ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:07:36 Duration: 1s117ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 13:26:39 Duration: 945ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:59:13 Duration: 913ms
12 3,225 18m24s 306ms 1s328ms 342ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 12 00 156 49s450ms 316ms 01 192 1m 314ms 02 165 51s747ms 313ms 03 153 48s28ms 313ms 04 174 54s674ms 314ms 05 96 30s205ms 314ms 06 174 54s577ms 313ms 07 57 17s841ms 313ms 08 3 924ms 308ms 09 96 30s353ms 316ms 10 156 49s514ms 317ms 11 171 56s688ms 331ms 12 168 1m7s 401ms 13 144 53s671ms 372ms 14 105 43s894ms 418ms 15 195 1m19s 407ms 16 135 51s692ms 382ms 17 114 47s724ms 418ms 18 177 1m4s 366ms 19 90 29s845ms 331ms 20 156 51s731ms 331ms 21 60 18s945ms 315ms 22 126 39s593ms 314ms 23 162 51s200ms 316ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 15:01:14 Duration: 1s328ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:50:17 Duration: 831ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:58:26 Duration: 831ms
13 3,093 9m26s 120ms 812ms 183ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 12 11 217 43s380ms 199ms 12 795 2m19s 174ms 13 458 1m13s 160ms 14 227 39s140ms 172ms 15 121 22s155ms 183ms 16 448 1m15s 167ms 17 302 1m7s 224ms 18 379 1m19s 210ms 19 146 26s686ms 182ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 188251) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:41 Duration: 812ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189315) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 12:15:00 Duration: 707ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 240474) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:42 Duration: 675ms
14 3,038 43m22s 581ms 2s392ms 856ms 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 #14
Day Hour Count Duration Avg duration Jul 12 10 36 25s690ms 713ms 11 397 5m15s 794ms 12 449 6m25s 858ms 13 432 6m1s 837ms 14 417 6m24s 922ms 15 206 3m16s 955ms 16 214 3m11s 896ms 17 336 4m53s 872ms 18 257 3m41s 862ms 19 165 2m7s 774ms 20 129 1m37s 755ms -
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 ('%%83%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%83-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%83-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:15:31 Duration: 2s392ms
-
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 ('%%AUBK8374%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%AUBK8374-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%AUBK8374-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:02:17 Duration: 2s229ms
-
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 ('%%GREPF35S%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%GRE-PF35S%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%GRE-PF35S%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:38:26 Duration: 2s221ms
15 2,757 9m19s 145ms 11s349ms 202ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 12 09 11 1s712ms 155ms 10 9 1s433ms 159ms 11 81 13s707ms 169ms 12 261 47s122ms 180ms 13 420 1m20s 191ms 14 288 1m4s 224ms 15 621 2m18s 223ms 16 255 51s358ms 201ms 17 267 52s151ms 195ms 18 323 1m9s 215ms 19 79 13s709ms 173ms 20 142 24s879ms 175ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239794 AND warehouse_id = 42;
Date: 2024-07-12 14:51:05 Duration: 11s349ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;
Date: 2024-07-12 15:42:11 Duration: 9s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195992 AND warehouse_id = 42;
Date: 2024-07-12 18:40:53 Duration: 4s692ms
16 2,712 10m11s 146ms 891ms 225ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 12 03 10 1s878ms 187ms 09 29 6s417ms 221ms 10 31 6s95ms 196ms 11 93 20s428ms 219ms 12 294 1m6s 226ms 13 296 1m9s 236ms 14 158 39s303ms 248ms 15 445 1m47s 241ms 16 309 1m9s 224ms 17 198 47s111ms 237ms 18 269 1m2s 231ms 19 254 52s372ms 206ms 20 46 9s401ms 204ms 23 280 52s214ms 186ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (34094))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:38:45 Duration: 891ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33251))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 18:39:46 Duration: 841ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (53687))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:23:43 Duration: 797ms
17 2,578 5m56s 120ms 512ms 138ms select coalesce(replenish_branch_id, ?) as replenish_branch_id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 12 11 71 9s937ms 139ms 12 289 40s59ms 138ms 13 306 41s706ms 136ms 14 472 1m6s 141ms 15 352 49s497ms 140ms 16 256 34s652ms 135ms 17 428 59s907ms 139ms 18 280 37s809ms 135ms 19 77 10s609ms 137ms 20 47 5s937ms 126ms -
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 240648 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-12 18:00:54 Duration: 512ms
-
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 208664 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-12 15:08:41 Duration: 397ms
-
SELECT COALESCE(replenish_branch_id, 0) as replenish_branch_id FROM product_warehouse_inventory WHERE product_id = 208882 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-07-12 15:08:42 Duration: 370ms
18 2,478 7m57s 151ms 1s216ms 192ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 12 12 7 1s106ms 158ms 13 41 7s407ms 180ms 14 75 17s178ms 229ms 15 631 2m5s 199ms 16 536 1m40s 188ms 17 510 1m40s 196ms 18 371 1m11s 192ms 19 298 52s349ms 175ms 20 9 1s419ms 157ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46023 and fd.product_id = 216826;
Date: 2024-07-12 15:59:33 Duration: 1s216ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46276 and fd.product_id = 204035;
Date: 2024-07-12 17:42:42 Duration: 741ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46276 and fd.product_id = 203735;
Date: 2024-07-12 17:42:41 Duration: 724ms
19 2,443 7m30s 146ms 5s537ms 184ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 12 08 2 505ms 252ms 09 4 671ms 167ms 11 185 32s985ms 178ms 12 279 49s825ms 178ms 13 266 49s255ms 185ms 14 329 1m 184ms 15 406 1m13s 181ms 16 209 42s304ms 202ms 17 252 46s845ms 185ms 18 236 44s572ms 188ms 19 170 30s244ms 177ms 20 105 18s588ms 177ms -
UPDATE product_warehouse_inventory SET qty_reserve = 7.0 WHERE product_id = 262214 AND warehouse_id = 43;
Date: 2024-07-12 16:19:08 Duration: 5s537ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 225530 AND warehouse_id = 44;
Date: 2024-07-12 17:15:13 Duration: 1s143ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 179524 AND warehouse_id = 43;
Date: 2024-07-12 20:04:38 Duration: 1s17ms
20 2,200 19m44s 435ms 1s706ms 538ms 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 #20
Day Hour Count Duration Avg duration Jul 12 00 3 1s312ms 437ms 01 3 1s312ms 437ms 07 2 888ms 444ms 08 4 1s760ms 440ms 09 26 11s540ms 443ms 10 19 8s445ms 444ms 11 132 1m6s 500ms 12 293 2m37s 536ms 13 326 3m3s 564ms 14 389 3m37s 559ms 15 297 2m49s 571ms 16 143 1m19s 552ms 17 194 1m40s 516ms 18 203 1m45s 521ms 19 98 48s191ms 491ms 20 59 27s148ms 460ms 22 7 3s96ms 442ms 23 2 897ms 448ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 15:23:43 Duration: 1s706ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 13:29:32 Duration: 1s553ms
-
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-07-12 11:50:03 Duration: 1s456ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 876ms 2s662ms 1s44ms 759 13m12s 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 #1
Day Hour Count Duration Avg duration Jul 12 10 2 1s813ms 906ms 11 41 40s189ms 980ms 12 115 2m1s 1s58ms 13 97 1m39s 1s25ms 14 103 1m50s 1s76ms 15 105 1m54s 1s95ms 16 100 1m40s 1s4ms 17 53 57s893ms 1s92ms 18 80 1m25s 1s63ms 19 47 45s455ms 967ms 20 16 14s834ms 927ms -
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 ('%ab1dk23m-9373%')) 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 ('%ab1dk23m-9373%'))) 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 ('%ab1dk23m-9373%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%ab1dk23m-9373%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 18:36:26 Duration: 2s662ms
-
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 ('%4411-6%')) 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 ('%4411-6%'))) 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 ('%4411-6%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%4411-6%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 17:33:28 Duration: 2s45ms
-
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 ('%66864b%')) 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 ('%66864b%'))) 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 ('%66864b%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%66864b%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-07-12 17:50:21 Duration: 1s838ms
2 686ms 2s526ms 881ms 572 8m24s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 12 12 13 10s430ms 802ms 13 194 2m47s 865ms 14 17 16s591ms 975ms 15 82 1m8s 837ms 16 34 26s283ms 773ms 17 173 2m43s 944ms 18 34 28s71ms 825ms 19 18 17s554ms 975ms 20 7 5s220ms 745ms -
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 ('%%RG0%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG0%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG0%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s526ms
-
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 ('%%RG04%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG04%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG04%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s408ms
-
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 ('%%RG04%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RG04-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%RG04-%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:46:38 Duration: 2s78ms
3 691ms 1s641ms 868ms 876 12m41s 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 Jul 12 11 17 12s830ms 754ms 12 59 49s8ms 830ms 13 96 1m22s 857ms 14 105 1m35s 908ms 15 81 1m12s 898ms 16 129 1m55s 896ms 17 152 2m11s 864ms 18 44 38s658ms 878ms 19 175 2m28s 846ms 20 18 14s937ms 829ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE (("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:15:31 Duration: 1s641ms
-
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 ('%%cra%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cra%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cra%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 17:42:41 Duration: 1s626ms
-
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 ('%%MHS25%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%MHS25%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%MHS25%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:01:43 Duration: 1s594ms
4 581ms 2s392ms 856ms 3,038 43m22s 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 Jul 12 10 36 25s690ms 713ms 11 397 5m15s 794ms 12 449 6m25s 858ms 13 432 6m1s 837ms 14 417 6m24s 922ms 15 206 3m16s 955ms 16 214 3m11s 896ms 17 336 4m53s 872ms 18 257 3m41s 862ms 19 165 2m7s 774ms 20 129 1m37s 755ms -
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 ('%%83%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%83-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%83-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 16:15:31 Duration: 2s392ms
-
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 ('%%AUBK8374%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%AUBK8374-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%AUBK8374-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:02:17 Duration: 2s229ms
-
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 ('%%GREPF35S%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%GRE-PF35S%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%GRE-PF35S%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-07-12 14:38:26 Duration: 2s221ms
5 435ms 1s706ms 538ms 2,200 19m44s 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 Jul 12 00 3 1s312ms 437ms 01 3 1s312ms 437ms 07 2 888ms 444ms 08 4 1s760ms 440ms 09 26 11s540ms 443ms 10 19 8s445ms 444ms 11 132 1m6s 500ms 12 293 2m37s 536ms 13 326 3m3s 564ms 14 389 3m37s 559ms 15 297 2m49s 571ms 16 143 1m19s 552ms 17 194 1m40s 516ms 18 203 1m45s 521ms 19 98 48s191ms 491ms 20 59 27s148ms 460ms 22 7 3s96ms 442ms 23 2 897ms 448ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c93381c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 15:23:43 Duration: 1s706ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-07-12 13:29:32 Duration: 1s553ms
-
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-07-12 11:50:03 Duration: 1s456ms
6 269ms 1s869ms 379ms 15,193 1h36m1s 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 #6
Day Hour Count Duration Avg duration Jul 12 09 35 11s40ms 315ms 10 18 6s97ms 338ms 11 738 4m25s 359ms 12 1,456 9m12s 379ms 13 1,820 11m31s 380ms 14 1,830 12m 393ms 15 2,584 16m57s 393ms 16 1,578 10m9s 386ms 17 1,599 10m1s 376ms 18 1,921 12m 374ms 19 883 5m15s 357ms 20 731 4m9s 340ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 17:47:29 Duration: 1s869ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 12:59:18 Duration: 1s414ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-07-12 16:15:30 Duration: 1s382ms
7 306ms 2s37ms 346ms 3,744 21m37s 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 #7
Day Hour Count Duration Avg duration Jul 12 00 216 1m9s 321ms 01 174 55s505ms 318ms 02 213 1m7s 318ms 03 195 1m2s 321ms 04 147 47s174ms 320ms 05 129 41s696ms 323ms 06 216 1m9s 320ms 07 105 33s592ms 319ms 08 12 3s812ms 317ms 09 102 32s773ms 321ms 10 177 57s507ms 324ms 11 165 1m1s 371ms 12 123 45s467ms 369ms 13 189 1m13s 387ms 14 180 1m13s 408ms 15 189 1m19s 422ms 16 141 54s596ms 387ms 17 150 58s539ms 390ms 18 180 1m9s 383ms 19 111 38s118ms 343ms 20 168 56s481ms 336ms 21 63 19s830ms 314ms 22 228 1m11s 314ms 23 171 53s939ms 315ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:57:57 Duration: 2s37ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 16:26:37 Duration: 1s250ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-07-12 12:17:07 Duration: 1s51ms
8 306ms 1s328ms 342ms 3,225 18m24s 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 Jul 12 00 156 49s450ms 316ms 01 192 1m 314ms 02 165 51s747ms 313ms 03 153 48s28ms 313ms 04 174 54s674ms 314ms 05 96 30s205ms 314ms 06 174 54s577ms 313ms 07 57 17s841ms 313ms 08 3 924ms 308ms 09 96 30s353ms 316ms 10 156 49s514ms 317ms 11 171 56s688ms 331ms 12 168 1m7s 401ms 13 144 53s671ms 372ms 14 105 43s894ms 418ms 15 195 1m19s 407ms 16 135 51s692ms 382ms 17 114 47s724ms 418ms 18 177 1m4s 366ms 19 90 29s845ms 331ms 20 156 51s731ms 331ms 21 60 18s945ms 315ms 22 126 39s593ms 314ms 23 162 51s200ms 316ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 15:01:14 Duration: 1s328ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:50:17 Duration: 831ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:58:26 Duration: 831ms
9 228ms 1s211ms 258ms 3,628 15m37s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" asc, "product_template"."id" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 12 00 193 45s587ms 236ms 01 156 36s751ms 235ms 02 192 45s29ms 234ms 03 171 40s146ms 234ms 04 174 40s830ms 234ms 05 126 29s736ms 236ms 06 165 38s953ms 236ms 07 108 25s497ms 236ms 08 9 2s120ms 235ms 09 156 36s973ms 237ms 10 162 38s376ms 236ms 11 165 41s126ms 249ms 12 156 41s678ms 267ms 13 183 58s399ms 319ms 14 159 51s54ms 321ms 15 135 41s166ms 304ms 16 180 53s647ms 298ms 17 114 33s46ms 289ms 18 186 58s209ms 312ms 19 120 30s862ms 257ms 20 150 38s342ms 255ms 21 51 11s868ms 232ms 22 246 57s902ms 235ms 23 171 40s330ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 18:51:21 Duration: 1s211ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 14:02:17 Duration: 826ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-07-12 17:47:28 Duration: 811ms
10 227ms 1s117ms 258ms 3,345 14m24s select "product_template".id from "product_template" where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, "product_template"."list_price" desc, "product_template"."id" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 12 00 156 36s597ms 234ms 01 147 34s256ms 233ms 02 195 45s470ms 233ms 03 114 26s403ms 231ms 04 150 35s183ms 234ms 05 345 1m20s 233ms 06 16 3s707ms 231ms 07 59 13s768ms 233ms 08 3 703ms 234ms 09 114 26s791ms 235ms 10 156 37s25ms 237ms 11 162 42s348ms 261ms 12 186 56s754ms 305ms 13 174 54s344ms 312ms 14 126 40s579ms 322ms 15 114 34s82ms 298ms 16 198 55s361ms 279ms 17 90 26s391ms 293ms 18 99 27s401ms 276ms 19 441 1m54s 260ms 20 33 8s942ms 270ms 21 6 1s412ms 235ms 22 135 31s552ms 233ms 23 126 29s691ms 235ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 12:07:36 Duration: 1s117ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 13:26:39 Duration: 945ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-07-12 14:59:13 Duration: 913ms
11 120ms 2s312ms 227ms 56,162 3h32m58s 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 #11
Day Hour Count Duration Avg duration Jul 12 00 866 2m9s 149ms 01 539 1m29s 166ms 02 454 1m18s 171ms 03 504 1m18s 156ms 04 491 1m21s 165ms 05 639 1m31s 143ms 06 639 1m44s 163ms 07 583 1m24s 144ms 08 646 1m35s 147ms 09 741 2m7s 172ms 10 744 1m55s 154ms 11 2,455 7m29s 183ms 12 5,029 22m7s 264ms 13 6,014 22m38s 225ms 14 6,185 22m42s 220ms 15 6,225 26m53s 259ms 16 5,654 23m7s 245ms 17 5,096 24m12s 285ms 18 5,231 21m39s 248ms 19 4,161 14m43s 212ms 20 1,912 6m2s 189ms 21 374 1m2s 166ms 22 412 1m5s 158ms 23 568 1m16s 135ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_982"', '["pointspring_master","calendar.alarm",19520]', '["pointspring_master","mail.channel",117]', '["pointspring_master","mail.channel",118]', '["pointspring_master","mail.channel",119]', '["pointspring_master","mail.channel",120]', '["pointspring_master","mail.channel",337]', '["pointspring_master","res.partner",19520]', '["pointspring_master","ir.needaction",19520]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s312ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19576]', '["pointspring_master","mail.channel",61]', '["pointspring_master","mail.channel",62]', '["pointspring_master","mail.channel",63]', '["pointspring_master","mail.channel",252]', '["pointspring_master","mail.channel",545]', '["pointspring_master","res.partner",19576]', '["pointspring_master","ir.needaction",19576]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s167ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-07-12 17:57:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_978"', '["pointspring_master","calendar.alarm",19516]', '["pointspring_master","mail.channel",236]', '["pointspring_master","mail.channel",237]', '["pointspring_master","mail.channel",238]', '["pointspring_master","mail.channel",340]', '["pointspring_master","mail.channel",444]', '["pointspring_master","mail.channel",578]', '["pointspring_master","res.partner",19516]', '["pointspring_master","ir.needaction",19516]'))) ORDER BY "bus_bus"."id";
Date: 2024-07-12 17:57:56 Duration: 2s99ms
12 146ms 891ms 225ms 2,712 10m11s select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 12 03 10 1s878ms 187ms 09 29 6s417ms 221ms 10 31 6s95ms 196ms 11 93 20s428ms 219ms 12 294 1m6s 226ms 13 296 1m9s 236ms 14 158 39s303ms 248ms 15 445 1m47s 241ms 16 309 1m9s 224ms 17 198 47s111ms 237ms 18 269 1m2s 231ms 19 254 52s372ms 206ms 20 46 9s401ms 204ms 23 280 52s214ms 186ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (34094))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:38:45 Duration: 891ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (33251))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 18:39:46 Duration: 841ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (53687))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-07-12 15:23:43 Duration: 797ms
13 145ms 11s349ms 202ms 2,757 9m19s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 12 09 11 1s712ms 155ms 10 9 1s433ms 159ms 11 81 13s707ms 169ms 12 261 47s122ms 180ms 13 420 1m20s 191ms 14 288 1m4s 224ms 15 621 2m18s 223ms 16 255 51s358ms 201ms 17 267 52s151ms 195ms 18 323 1m9s 215ms 19 79 13s709ms 173ms 20 142 24s879ms 175ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239794 AND warehouse_id = 42;
Date: 2024-07-12 14:51:05 Duration: 11s349ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 217291 AND warehouse_id = 43;
Date: 2024-07-12 15:42:11 Duration: 9s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195992 AND warehouse_id = 42;
Date: 2024-07-12 18:40:53 Duration: 4s692ms
14 151ms 1s216ms 192ms 2,478 7m57s select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 12 12 7 1s106ms 158ms 13 41 7s407ms 180ms 14 75 17s178ms 229ms 15 631 2m5s 199ms 16 536 1m40s 188ms 17 510 1m40s 196ms 18 371 1m11s 192ms 19 298 52s349ms 175ms 20 9 1s419ms 157ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46023 and fd.product_id = 216826;
Date: 2024-07-12 15:59:33 Duration: 1s216ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46276 and fd.product_id = 204035;
Date: 2024-07-12 17:42:42 Duration: 741ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 46276 and fd.product_id = 203735;
Date: 2024-07-12 17:42:41 Duration: 724ms
15 146ms 5s537ms 184ms 2,443 7m30s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 12 08 2 505ms 252ms 09 4 671ms 167ms 11 185 32s985ms 178ms 12 279 49s825ms 178ms 13 266 49s255ms 185ms 14 329 1m 184ms 15 406 1m13s 181ms 16 209 42s304ms 202ms 17 252 46s845ms 185ms 18 236 44s572ms 188ms 19 170 30s244ms 177ms 20 105 18s588ms 177ms -
UPDATE product_warehouse_inventory SET qty_reserve = 7.0 WHERE product_id = 262214 AND warehouse_id = 43;
Date: 2024-07-12 16:19:08 Duration: 5s537ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 225530 AND warehouse_id = 44;
Date: 2024-07-12 17:15:13 Duration: 1s143ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 179524 AND warehouse_id = 43;
Date: 2024-07-12 20:04:38 Duration: 1s17ms
16 120ms 812ms 183ms 3,093 9m26s select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 12 11 217 43s380ms 199ms 12 795 2m19s 174ms 13 458 1m13s 160ms 14 227 39s140ms 172ms 15 121 22s155ms 183ms 16 448 1m15s 167ms 17 302 1m7s 224ms 18 379 1m19s 210ms 19 146 26s686ms 182ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 188251) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:41 Duration: 812ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 189315) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 12:15:00 Duration: 707ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 240474) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '37')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-07-12 17:05:42 Duration: 675ms
17 147ms 2s863ms 183ms 3,915 11m57s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 12 09 18 3s51ms 169ms 10 11 1s848ms 168ms 11 160 27s931ms 174ms 12 477 1m26s 182ms 13 604 1m52s 186ms 14 543 1m43s 190ms 15 457 1m23s 183ms 16 394 1m12s 183ms 17 563 1m41s 180ms 18 436 1m19s 182ms 19 142 25s252ms 177ms 20 110 19s56ms 173ms -
UPDATE product_warehouse_inventory SET qty_available = 10.0 WHERE product_id = 262214 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-07-12 16:19:15 Duration: 2s863ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 202515 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 15:03:12 Duration: 1s603ms
-
UPDATE product_warehouse_inventory SET qty_available = 16.0 WHERE product_id = 239794 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-07-12 14:51:17 Duration: 787ms
18 138ms 866ms 154ms 5,761 14m52s 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 #18
Day Hour Count Duration Avg duration Jul 12 00 240 35s54ms 146ms 01 240 34s519ms 143ms 02 240 34s258ms 142ms 03 240 34s388ms 143ms 04 240 34s694ms 144ms 05 240 34s381ms 143ms 06 240 34s276ms 142ms 07 240 34s447ms 143ms 08 240 34s346ms 143ms 09 240 34s818ms 145ms 10 240 34s490ms 143ms 11 240 37s206ms 155ms 12 241 41s436ms 171ms 13 240 44s170ms 184ms 14 240 43s549ms 181ms 15 240 46s139ms 192ms 16 240 40s983ms 170ms 17 240 42s319ms 176ms 18 240 41s376ms 172ms 19 240 37s424ms 155ms 20 240 35s449ms 147ms 21 240 34s244ms 142ms 22 240 34s364ms 143ms 23 240 34s427ms 143ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_collation', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_subscription', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_constraint', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_enum', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_namespace', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_amproc', 'pg_catalog.pg_database', 'pg_catalog.pg_publication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_description', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_transform', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_sequence', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amop', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_class', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_depend', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cursors', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_indexes', 'information_schema.constraint_table_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.user_mappings', 'information_schema.check_constraints', 'information_schema.columns', 'information_schema.triggered_update_columns', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.information_schema_catalog_name', 'information_schema.collation_character_set_applicability', 'information_schema.column_domain_usage', 'information_schema.column_privileges', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.views', 'information_schema.collations', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.column_options', 'information_schema.foreign_servers', 'information_schema.character_sets', 'information_schema.check_constraint_routine_usage', 'information_schema.referential_constraints', 'information_schema.table_constraints', 'information_schema.udt_privileges', 'information_schema.sql_sizing', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.domains', 'information_schema.routine_table_usage', 'information_schema.sql_features', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.data_type_privileges', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.sequences', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.role_udt_grants', 'information_schema.foreign_tables', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.role_table_grants', 'information_schema.usage_privileges');
Date: 2024-07-12 15:23:43 Duration: 866ms
-
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_statistic_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_description', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_database', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_group', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_trigger', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_policy', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_transform', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_language', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_constraint', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_amproc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_type', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_conversion', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_collation', 'pg_catalog.pg_range', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_subscription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_settings', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_am', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_cursors', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_ts_config_map', 'information_schema.administrable_role_authorizations', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.column_domain_usage', 'information_schema.parameters', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.column_options', 'information_schema.role_routine_grants', 'information_schema.table_privileges', 'information_schema.view_table_usage', 'information_schema.triggers', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.foreign_server_options', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.role_table_grants', 'information_schema.routines', 'information_schema.routine_privileges', 'information_schema.domains', 'information_schema.triggered_update_columns', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.routine_routine_usage', 'information_schema.check_constraints', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.foreign_servers', 'information_schema.foreign_tables', 'information_schema.attributes', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.user_mappings', 'information_schema.applicable_roles', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.tables', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-07-12 15:01:12 Duration: 638ms
-
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 ('information_schema.sql_implementation_info', 'information_schema.collations', 'information_schema.enabled_roles', 'information_schema.table_privileges', 'information_schema.view_column_usage', 'information_schema.foreign_server_options', 'information_schema.administrable_role_authorizations', 'information_schema.columns', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.applicable_roles', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.constraint_column_usage', 'information_schema.routine_routine_usage', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.role_routine_grants', 'information_schema.column_udt_usage', 'information_schema.sql_features', 'information_schema.check_constraints', 'information_schema.routine_table_usage', 'information_schema.triggers', 'information_schema.foreign_data_wrapper_options', 'information_schema.domains', 'information_schema.sequences', 'information_schema.tables', 'information_schema.data_type_privileges', 'information_schema.constraint_table_usage', 'information_schema.role_table_grants', 'information_schema.schemata', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.view_routine_usage', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.foreign_table_options', 'information_schema.user_mapping_options', 'information_schema.collation_character_set_applicability', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.sql_sizing', 'information_schema.domain_constraints', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.foreign_tables', 'information_schema.table_constraints', 'information_schema.foreign_data_wrappers', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_settings', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_roles', 'pg_catalog.pg_subscription', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_index', 'pg_catalog.pg_cast', 'pg_catalog.pg_constraint', 'pg_catalog.pg_rules', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_range', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_type', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_locks', 'pg_catalog.pg_attribute', 'pg_catalog.pg_operator', 'pg_catalog.pg_am', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_proc', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_group', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_description', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_enum', 'pg_catalog.pg_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_language', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_policies', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_all_sequences');
Date: 2024-07-12 13:31:12 Duration: 538ms
19 120ms 752ms 154ms 4,080 10m30s select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 12 09 1 145ms 145ms 11 93 13s634ms 146ms 12 400 1m1s 152ms 13 536 1m24s 156ms 14 763 1m58s 154ms 15 755 1m58s 156ms 16 462 1m11s 154ms 17 436 1m5s 149ms 18 455 1m10s 154ms 19 140 22s73ms 157ms 20 39 6s794ms 174ms -
select id from product_warehouse_inventory where product_id = 267806 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 13:23:30 Duration: 752ms
-
select id from product_warehouse_inventory where product_id = 221338 and warehouse_id = 45 and company_id = 1;
Date: 2024-07-12 14:10:32 Duration: 619ms
-
select id from product_warehouse_inventory where product_id = 213424 and warehouse_id = 46 and company_id = 1;
Date: 2024-07-12 15:45:57 Duration: 610ms
20 120ms 895ms 152ms 6,327 16m4s 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 #20
Day Hour Count Duration Avg duration Jul 12 09 22 2s894ms 131ms 10 11 1s513ms 137ms 11 248 36s861ms 148ms 12 731 1m48s 148ms 13 853 2m12s 155ms 14 1,076 2m50s 158ms 15 611 1m34s 154ms 16 917 2m16s 149ms 17 920 2m19s 152ms 18 592 1m32s 155ms 19 232 33s571ms 144ms 20 114 15s487ms 135ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 189566 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 16:34:47 Duration: 895ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 267915 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 18:36:25 Duration: 749ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 214037 and sol.warehouse_id = 35 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-07-12 13:50:18 Duration: 601ms
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
- 192,846 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 6192 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 4,930 Max number of times the same event was reported
- 6,192 Total events found
Rank Times reported Error 1 4,930 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 12 09 35 10 35 11 232 12 556 13 811 14 554 15 798 16 299 17 461 18 627 19 329 20 192 22 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 product_warehouse_inventory SET qty_available = 0 WHERE product_id = 207856 AND warehouse_id = 36 AND company_id = 1
Date: 2024-07-12 09:18:31
Statement: UPDATE product_warehouse_inventory SET qty_ytd_sold = 4.0 WHERE product_id = 207856 AND warehouse_id = 36
Date: 2024-07-12 09:18:32
Statement: UPDATE "product_warehouse_inventory" SET "qty_shipped_not_invoiced"=2.0,"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (46145)
Date: 2024-07-12 09:18:32
2 1,107 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 12 00 66 01 49 02 48 03 47 04 29 05 31 06 30 07 111 08 93 09 35 10 33 11 31 12 33 13 41 14 50 15 41 16 38 17 47 18 41 19 35 20 35 21 30 22 30 23 83 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-07-12 08:50:02
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-07-12 09:00:20
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-07-12 09:10:02
3 145 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 12 11 1 12 16 13 25 14 11 15 33 16 20 17 16 18 16 19 3 20 4 - ERROR: process 346502 still waiting for ShareLock on transaction 285196671 after 1000.042 ms
- ERROR: process 317497 still waiting for ShareLock on transaction 285208597 after 1000.043 ms
- ERROR: process 317498 still waiting for ShareLock on transaction 285210072 after 1000.045 ms
Detail: Process holding the lock: 346501. Wait queue: 346502.
Context: while updating tuple (502,12) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET qty_mtd_sold = 8.0 - 0 WHERE product_id = 238919 AND warehouse_id = 38Date: 2024-07-12 13:50:21
Detail: Process holding the lock: 346502. Wait queue: 317497.
Context: while updating tuple (177,17) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 205602 AND warehouse_id = 36Date: 2024-07-12 14:14:14
Detail: Process holding the lock: 346502. Wait queue: 317498.
Context: while updating tuple (186425,3) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 195667 AND warehouse_id = 38Date: 2024-07-12 14:17:16
4 6 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 12 11 2 15 1 16 1 17 1 18 1 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 316452 waits for ShareLock on transaction 285292473; blocked by process 317497. Process 317497 waits for ShareLock on transaction 285292480; blocked by process 316452. Process 316452: UPDATE "product_warehouse_inventory" SET "loc_check_qty"=0.0,"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (370072, 37383) Process 317497: UPDATE product_warehouse_inventory SET qty_mtd_sold = 1.0 - 0 WHERE product_id = 210037 AND warehouse_id = 36
Context: while updating tuple (275,16) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "loc_check_qty"=0.0,"write_uid"=1018,"write_date"=(now() at time zone 'UTC') WHERE id IN (370072, 37383)Date: 2024-07-12 16:43:20
Detail: Process 2123601 waits for ShareLock on transaction 285127190; blocked by process 317498. Process 317498 waits for ShareLock on transaction 285127165; blocked by process 2123601. Process 2123601: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-07-12',"write_uid"=992,"write_date"=(now() at time zone 'UTC') WHERE id IN (7370, 8699) Process 317498: UPDATE product_warehouse_inventory SET qty_ytd_sold = -1166.0 WHERE product_id = 237202 AND warehouse_id = 35
Context: while updating tuple (3401,3) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE "product_warehouse_inventory" SET "last_used_date"='2024-07-12',"write_uid"=992,"write_date"=(now() at time zone 'UTC') WHERE id IN (7370, 8699)Date: 2024-07-12 11:04:56
Detail: Process 2242072 waits for ShareLock on transaction 285127659; blocked by process 2054807. Process 2054807 waits for ShareLock on transaction 285127660; blocked by process 2242072. Process 2242072: UPDATE "sale_order" SET "partner_id"=33977,"partner_invoice_id"=33977,"partner_shipping_id"=33977,"write_uid"=1291,"write_date"=(now() at time zone 'UTC') WHERE id IN (151892) Process 2054807: UPDATE "sale_order_line" SET "cus_part_route"=32,"cus_user_id"=1009,"order_partner_id"=33977,"write_uid"=1291,"write_date"=(now() at time zone 'UTC') WHERE id IN (441806)
Context: while updating tuple (2551,58) in relation "sale_order"
Hint: See server log for query details.
Statement: UPDATE "sale_order" SET "partner_id"=33977,"partner_invoice_id"=33977,"partner_shipping_id"=33977,"write_uid"=1291,"write_date"=(now() at time zone 'UTC') WHERE id IN (151892)Date: 2024-07-12 11:08:13
5 3 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 12 12 1 16 1 17 1 - ERROR: process 2242072 still waiting for ExclusiveLock on tuple (20367,39) of relation 42418 of database 65946 after 1000.049 ms
- ERROR: process 319450 still waiting for ExclusiveLock on tuple (248,24) of relation 65213 of database 65946 after 1000.042 ms
- ERROR: process 3107364 still waiting for ExclusiveLock on tuple (21219,20) of relation 42418 of database 65946 after 1000.040 ms
Detail: Process holding the lock: 2310072. Wait queue: 2242072.
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 != 1531746 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 != 1531746 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-07-12 12:42:19
Detail: Process holding the lock: 346501. Wait queue: 319450.
Statement: UPDATE "product_warehouse_inventory" SET "loc_check_qty"=1.0,"write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (38615)Date: 2024-07-12 16:16:28
Detail: Process holding the lock: 2922251. Wait queue: 3107364.
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 != 1379554 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 != 1379554 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-07-12 17:04:38
6 1 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 12 13 1 - ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT value FROM ir_translation WHERE lang='en_US' AND type in ('code') AND src='%s' AND md5(src)=md5('%s')
Date: 2024-07-12 13:27:43