-
Global information
- Generated on Wed Sep 18 20:50:23 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 790,972 log entries in 21s
- Log start from 2024-09-18 00:00:00 to 2024-09-18 23:59:55
-
Overview
Global Stats
- 1,283 Number of unique normalized queries
- 271,696 Number of queries
- 20h13m19s Total query duration
- 2024-09-18 00:00:00 First query
- 2024-09-18 23:59:55 Last query
- 62 queries/s at 2024-09-18 14:58:57 Query peak
- 20h13m19s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 20h13m19s Execute total duration
- 1,554 Number of events
- 8 Number of unique normalized events
- 1,102 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
- 271,696 Average queries per session
- 20h13m19s 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
- 62 queries/s Query Peak
- 2024-09-18 14:58:57 Date
SELECT Traffic
Key values
- 62 queries/s Query Peak
- 2024-09-18 14:58:57 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 11 queries/s Query Peak
- 2024-09-18 13:53:41 Date
Queries duration
Key values
- 20h13m19s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 18 00 3,417 121ms 975ms 162ms 13s634ms 24s873ms 28s286ms 01 3,523 120ms 1s113ms 161ms 13s726ms 24s876ms 25s511ms 02 3,679 120ms 957ms 164ms 13s867ms 25s407ms 33s509ms 03 3,894 120ms 31s505ms 187ms 21s341ms 26s8ms 47s635ms 04 3,930 123ms 1s428ms 175ms 15s199ms 23s696ms 30s790ms 05 3,485 124ms 1s71ms 162ms 13s61ms 24s58ms 31s416ms 06 3,589 120ms 1s61ms 154ms 10s880ms 21s881ms 35s348ms 07 3,810 121ms 955ms 153ms 11s675ms 18s42ms 26s35ms 08 4,748 120ms 1s20ms 172ms 18s289ms 18s962ms 43s840ms 09 4,605 120ms 3m55s 372ms 1m11s 2m39s 4m22s 10 5,014 120ms 2s657ms 169ms 19s341ms 27s556ms 44s362ms 11 12,967 120ms 29s68ms 298ms 2m34s 3m18s 4m49s 12 21,957 120ms 22s299ms 301ms 3m2s 3m44s 4m14s 13 25,811 120ms 48s720ms 294ms 3m23s 4m17s 5m43s 14 25,782 120ms 54s467ms 306ms 3m28s 4m12s 7m23s 15 24,050 120ms 1m8s 311ms 3m49s 4m 4m52s 16 16,442 120ms 28s591ms 297ms 2m28s 3m42s 5m35s 17 26,440 120ms 43s908ms 288ms 3m9s 3m52s 4m31s 18 20,553 120ms 16s153ms 260ms 2m11s 2m45s 3m40s 19 21,588 120ms 19s745ms 268ms 2m54s 3m2s 3m47s 20 11,191 120ms 10s897ms 234ms 1m23s 1m58s 2m4s 21 10,383 120ms 6s982ms 191ms 1m12s 1m20s 1m25s 22 5,759 120ms 1s916ms 176ms 25s572ms 34s536ms 39s654ms 23 5,079 120ms 50s745ms 349ms 1m5s 1m11s 1m22s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 18 00 3,417 0 162ms 9s953ms 13s634ms 26s176ms 01 3,523 0 161ms 10s299ms 13s726ms 25s10ms 02 3,679 0 164ms 11s310ms 13s867ms 27s723ms 03 3,891 0 178ms 13s836ms 17s765ms 26s8ms 04 3,926 0 175ms 13s874ms 15s199ms 29s29ms 05 3,485 0 162ms 10s173ms 13s61ms 27s707ms 06 3,589 0 154ms 9s638ms 10s880ms 28s272ms 07 3,810 0 153ms 10s860ms 11s675ms 18s749ms 08 4,747 0 172ms 15s954ms 18s289ms 24s100ms 09 4,299 118 378ms 26s292ms 58s888ms 2m26s 10 4,883 0 169ms 16s34ms 17s49ms 36s84ms 11 11,196 0 310ms 1m34s 1m58s 3m29s 12 17,510 0 327ms 2m9s 2m53s 3m47s 13 19,410 0 318ms 2m15s 3m1s 4m 14 18,233 0 350ms 2m8s 3m8s 4m 15 18,847 0 341ms 2m42s 3m19s 3m54s 16 14,417 0 308ms 1m35s 2m11s 3m59s 17 20,330 0 309ms 2m19s 2m39s 3m49s 18 16,451 0 276ms 1m34s 1m57s 2m25s 19 16,181 0 287ms 1m55s 2m19s 2m48s 20 8,635 0 244ms 48s310ms 1m16s 1m36s 21 9,423 0 192ms 40s864ms 54s959ms 1m10s 22 5,409 0 176ms 19s684ms 23s234ms 29s757ms 23 4,888 0 165ms 16s150ms 22s555ms 30s568ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 18 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 3 0 12s787ms 0ms 0ms 0ms 04 0 4 0 0 383ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 1 0 0 951ms 0ms 0ms 0ms 09 0 180 2 0 220ms 0ms 0ms 8s330ms 10 0 130 1 0 173ms 0ms 0ms 3s367ms 11 0 1,756 14 0 220ms 6s636ms 11s948ms 18s29ms 12 0 4,415 24 0 198ms 16s787ms 21s637ms 28s437ms 13 0 6,331 56 0 221ms 24s846ms 30s136ms 39s816ms 14 0 7,503 42 0 200ms 29s294ms 33s302ms 42s369ms 15 0 5,153 43 0 201ms 17s192ms 26s623ms 35s649ms 16 0 1,998 26 0 215ms 8s206ms 11s855ms 19s634ms 17 0 6,051 52 0 219ms 23s52ms 28s752ms 37s51ms 18 0 4,066 31 0 196ms 13s859ms 21s992ms 31s157ms 19 0 5,342 59 0 212ms 19s340ms 29s431ms 39s549ms 20 0 2,528 28 0 197ms 6s406ms 14s104ms 35s16ms 21 0 958 2 0 177ms 350ms 3s606ms 14s817ms 22 0 350 0 0 174ms 514ms 2s87ms 5s993ms 23 0 43 148 0 5s76ms 16s892ms 39s12ms 51s947ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Sep 18 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Sep 18 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Sep 18 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Sep 18 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Sep 18 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Sep 18 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Sep 18 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Sep 18 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Sep 18 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 27 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 16 52s788ms 1s517ms 9s301ms 3s299ms 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 = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1663261 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1663261 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-09-18 12:52:54
2 1 25s254ms 25s254ms 25s254ms 25s254ms delete from stock_inventory_line where id in (...);-
DELETE FROM stock_inventory_line WHERE id IN (3082709, 3082797, 3082723, 3082741, 3082681, 3082801, 3082682, 3082775, 3082683, 3082720, 3082732, 3082786, 3082787, 3082684, 3082764, 3082745, 3082777, 3082744, 3082778, 3082779, 3082754, 3082714, 3082785, 3082736, 3082685, 3082686, 3082781, 3082746, 3082747, 3082748, 3082749, 3082793, 3082759, 3082710, 3082789, 3082730, 3082776, 3082794, 3082802, 3082763, 3082713, 3082739, 3082774, 3082687, 3082715, 3082688, 3082689, 3082772, 3082690, 3082691, 3082692, 3082708, 3082795, 3082784, 3082771, 3082792, 3082693, 3082765, 3082760, 3082768, 3082719, 3082782, 3082694, 3082770, 3082751, 3082756, 3082707, 3082752, 3082755, 3082753, 3082724, 3082695, 3082767, 3082743, 3082728, 3082791, 3082696, 3082750, 3082697, 3082799, 3082698, 3082766, 3082699, 3082704, 3082703, 3082800, 3082780, 3082773, 3082735, 3082761, 3082727, 3082733, 3082737, 3082740, 3082738, 3082722, 3082729, 3082796, 3082742, 3082758, 3082712, 3082769, 3082711, 3082705, 3082725, 3082716, 3082717, 3082798, 3082762, 3082757, 3082726, 3082700, 3082790, 3082706, 3082788, 3082702, 3082731, 3082718, 3082734, 3082783, 3082721, 3082701);
Date: 2024-09-18 17:22:41
-
DELETE FROM stock_inventory_line WHERE id IN (3082807, 3082875, 3082856, 3082817, 3082884, 3082834, 3082824, 3082859, 3082833, 3082812, 3082823, 3082837, 3082851, 3082850, 3082867, 3082849, 3082887, 3082863, 3082809, 3082825, 3082808, 3082898, 3082869, 3082840, 3082879, 3082862, 3082860, 3082803, 3082847, 3082874, 3082897, 3082882, 3082881, 3082883, 3082845, 3082819, 3082838, 3082853, 3082810, 3082839, 3082804, 3082842, 3082857, 3082876, 3082870, 3082846, 3082868, 3082855, 3082866, 3082828, 3082880, 3082818, 3082836, 3082877, 3082814, 3082830, 3082886, 3082831, 3082864, 3082885, 3082826, 3082872, 3082843, 3082899, 3082890, 3082832, 3082829, 3082873, 3082813, 3082820, 3082806, 3082878, 3082827, 3082822, 3082891, 3082861, 3082896, 3082895, 3082894, 3082893, 3082865, 3082889, 3082888, 3082892, 3082841, 3082848, 3082815, 3082821, 3082844, 3082816, 3082835, 3082852, 3082811, 3082858, 3082805, 3082871, 3082854);
Date: 2024-09-18 17:21:52
-
DELETE FROM stock_inventory_line WHERE id IN (3082912);
Date: 2024-09-18 17:22:54
3 6 10s595ms 1s643ms 2s588ms 1s765ms 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" = 5709316, "write_uid" = 1025, "write_date" = (now() at time zone 'UTC') WHERE id IN (1663497);
Date: 2024-09-18 13:24:50
4 1 8s177ms 8s177ms 8s177ms 8s177ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269963 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-18 16:31:33
-
UPDATE product_warehouse_inventory SET qty_available = 9.0 WHERE product_id = 265093 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-09-18 13:29:16
-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 180751 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-18 19:11:53
5 1 4s92ms 4s92ms 4s92ms 4s92ms insert into "purchase_order_wizard" ("id", "create_uid", "create_date", "write_uid", "write_date", "company_id", "date_planned", "order_selection", "partner_id", "purchase_type") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), ?, ?, ?, ?, ?) returning id;-
INSERT INTO "purchase_order_wizard" ("id", "create_uid", "create_date", "write_uid", "write_date", "company_id", "date_planned", "order_selection", "partner_id", "purchase_type") VALUES (nextval('purchase_order_wizard_id_seq'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), 1, '2024-09-18 09:25:56', 'order', 33110, 'internal') RETURNING id;
Date: 2024-09-18 12:12:46
6 1 3s918ms 3s918ms 3s918ms 3s918ms insert into "account_move_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "account_id", "amount_currency", "blocked", "branch_id", "company_currency_id", "company_id", "credit", "currency_id", "debit", "discount", "display_type", "is_carry_forward", "is_discount", "is_extra_line", "is_sale_tax", "is_visible_in_report", "is_writeoff", "move_id", "move_options", "name", "partner_id", "product_id", "product_uom_id", "quantity", "ref", "sequence", "sign_product_qty", "tax_exigible") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), ?, ?, false, ?, ?, ?, ?, ?, ?, ?, null, false, false, false, false, true, false, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?.?, true) returning id;-
INSERT INTO "account_move_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "account_id", "amount_currency", "blocked", "branch_id", "company_currency_id", "company_id", "credit", "currency_id", "debit", "discount", "display_type", "is_carry_forward", "is_discount", "is_extra_line", "is_sale_tax", "is_visible_in_report", "is_writeoff", "move_id", "move_options", "name", "partner_id", "product_id", "product_uom_id", "quantity", "ref", "sequence", "sign_product_qty", "tax_exigible") VALUES (nextval('account_move_line_id_seq'), 1297, (now() at time zone 'UTC'), 1297, (now() at time zone 'UTC'), 1337, '-143.72', false, 48, 2, 1, '143.72', 2, '0.00', '0.00', NULL, false, false, false, false, true, false, 1663652, 'new_product', '13-T/IN/16159 - [307-0723] GUARDIAN HP SEAL', 30496, 187680, 1, '4.00', '13-T/IN/16159 - [307-0723] GUARDIAN HP SEAL', 10, 1.0, true) RETURNING id;
Date: 2024-09-18 13:48:25
7 1 3s502ms 3s502ms 3s502ms 3s502ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '89fe3ea7-5433-4f8e-9df0-3766630c432f', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1664178);
Date: 2024-09-18 15:17:54
Queries that waited the most
Rank Wait time Query 1 25s254ms DELETE FROM stock_inventory_line WHERE id IN (3082709, 3082797, 3082723, 3082741, 3082681, 3082801, 3082682, 3082775, 3082683, 3082720, 3082732, 3082786, 3082787, 3082684, 3082764, 3082745, 3082777, 3082744, 3082778, 3082779, 3082754, 3082714, 3082785, 3082736, 3082685, 3082686, 3082781, 3082746, 3082747, 3082748, 3082749, 3082793, 3082759, 3082710, 3082789, 3082730, 3082776, 3082794, 3082802, 3082763, 3082713, 3082739, 3082774, 3082687, 3082715, 3082688, 3082689, 3082772, 3082690, 3082691, 3082692, 3082708, 3082795, 3082784, 3082771, 3082792, 3082693, 3082765, 3082760, 3082768, 3082719, 3082782, 3082694, 3082770, 3082751, 3082756, 3082707, 3082752, 3082755, 3082753, 3082724, 3082695, 3082767, 3082743, 3082728, 3082791, 3082696, 3082750, 3082697, 3082799, 3082698, 3082766, 3082699, 3082704, 3082703, 3082800, 3082780, 3082773, 3082735, 3082761, 3082727, 3082733, 3082737, 3082740, 3082738, 3082722, 3082729, 3082796, 3082742, 3082758, 3082712, 3082769, 3082711, 3082705, 3082725, 3082716, 3082717, 3082798, 3082762, 3082757, 3082726, 3082700, 3082790, 3082706, 3082788, 3082702, 3082731, 3082718, 3082734, 3082783, 3082721, 3082701);[ Date: 2024-09-18 17:22:41 ]
2 9s301ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1663261 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1663261 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 12:52:54 ]
3 8s177ms UPDATE product_warehouse_inventory SET qty_available = 5.0 WHERE product_id = 173695 AND warehouse_id = 42 AND company_id = 1;[ Date: 2024-09-18 16:30:19 ]
4 6s128ms 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 != 1663388 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 != 1663388 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:07:25 ]
5 5s262ms 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 != 1663428 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 != 1663428 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:17:45 ]
6 4s228ms 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 != 1663313 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 != 1663313 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 12:58:03 ]
7 4s92ms INSERT INTO "purchase_order_wizard" ("id", "create_uid", "create_date", "write_uid", "write_date", "company_id", "date_planned", "order_selection", "partner_id", "purchase_type") VALUES (nextval('purchase_order_wizard_id_seq'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), 1, '2024-09-18 09:25:56', 'order', 33110, 'internal') RETURNING id;[ Date: 2024-09-18 12:12:46 ]
8 4s27ms 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 != 1664148 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 != 1664148 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 15:11:58 ]
9 3s918ms INSERT INTO "account_move_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "account_id", "amount_currency", "blocked", "branch_id", "company_currency_id", "company_id", "credit", "currency_id", "debit", "discount", "display_type", "is_carry_forward", "is_discount", "is_extra_line", "is_sale_tax", "is_visible_in_report", "is_writeoff", "move_id", "move_options", "name", "partner_id", "product_id", "product_uom_id", "quantity", "ref", "sequence", "sign_product_qty", "tax_exigible") VALUES (nextval('account_move_line_id_seq'), 1297, (now() at time zone 'UTC'), 1297, (now() at time zone 'UTC'), 1337, '-143.72', false, 48, 2, 1, '143.72', 2, '0.00', '0.00', NULL, false, false, false, false, true, false, 1663652, 'new_product', '13-T/IN/16159 - [307-0723] GUARDIAN HP SEAL', 30496, 187680, 1, '4.00', '13-T/IN/16159 - [307-0723] GUARDIAN HP SEAL', 10, 1.0, true) RETURNING id;[ Date: 2024-09-18 13:48:25 ]
10 3s747ms 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 != 1502791 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 != 1502791 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:07:25 ]
11 3s502ms UPDATE "account_move" SET "access_token" = '89fe3ea7-5433-4f8e-9df0-3766630c432f', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (1664178);[ Date: 2024-09-18 15:17:54 ]
12 3s380ms 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 != 1663499 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 != 1663499 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:24:50 ]
13 3s335ms 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 != 1108381 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 != 1108381 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 12:29:00 ]
14 2s588ms UPDATE "account_move" SET "message_main_attachment_id" = 5709316, "write_uid" = 1025, "write_date" = (now() at time zone 'UTC') WHERE id IN (1663497);[ Date: 2024-09-18 13:24:50 ]
15 2s445ms 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 != 1663478 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 != 1663478 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:22:52 ]
16 2s274ms UPDATE "account_move" SET "message_main_attachment_id" = 5710109, "write_uid" = 1266, "write_date" = (now() at time zone 'UTC') WHERE id IN (1664346);[ Date: 2024-09-18 15:47:02 ]
17 2s78ms 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 != 1665061 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 != 1665061 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 19:09:03 ]
18 1s781ms 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 != 1663428 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 != 1663428 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:18:26 ]
19 1s643ms UPDATE "account_move" SET "message_main_attachment_id" = 5709333, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1663516);[ Date: 2024-09-18 13:25:36 ]
20 1s626ms 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 != 1502791 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 != 1502791 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-18 13:07:31 ]
-
Queries
Queries by type
Key values
- 224,179 Total read queries
- 47,513 Total write queries
Queries by database
Key values
- unknown Main database
- 271,696 Requests
- 20h13m19s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 272,243 Requests
User Request type Count Duration unknown Total 272,243 20h14m46s copy to 118 13m50s cte 53 19s689ms delete 531 34m16s others 4 1s243ms select 224,725 17h58s tcl 2 271ms update 46,810 2h25m19s Duration by user
Key values
- 20h14m46s (unknown) Main time consuming user
User Request type Count Duration unknown Total 272,243 20h14m46s copy to 118 13m50s cte 53 19s689ms delete 531 34m16s others 4 1s243ms select 224,725 17h58s tcl 2 271ms update 46,810 2h25m19s Queries by host
Key values
- unknown Main host
- 272,243 Requests
- 20h14m46s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 271,696 Requests
- 20h13m19s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-09-18 13:38:48 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 249,531 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m55s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-09-18 09:10:43 ]
2 2m10s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-09-18 09:04:19 ]
3 2m10s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-09-18 09:06:46 ]
4 1m8s SELECT min("mail_message".id) AS id, count("mail_message".id) AS "create_date_count", sum("mail_message"."res_id") AS "res_id", date_trunc('month', timezone('America/New_York', timezone('UTC', "mail_message"."create_date"))::timestamp) as "create_date:month" FROM "mail_message" GROUP BY date_trunc('month', timezone('America/New_York', timezone('UTC', "mail_message"."create_date"))::timestamp) ORDER BY "create_date:month" LIMIT 80;[ Date: 2024-09-18 15:46:24 ]
5 54s467ms DELETE FROM account_move_line WHERE id IN (5722843, 5722844, 5722845, 5722846, 5722847, 5722848, 5722849, 5722850, 5722851, 5722852, 5722853, 5722854, 5722855, 5722856, 5722857, 5722858, 5722859, 5722860, 5722861, 5856988, 5856989, 5856990);[ Date: 2024-09-18 14:56:30 ]
6 50s745ms DELETE FROM account_move_line WHERE id IN (5855134, 5855135, 5857677, 5857678, 5857679, 5857680, 5857681, 5857682, 5857683, 5857684, 5857685, 5857686, 5857687, 5857688, 5857689, 5857690, 5857691, 5857692, 5857693, 5857694, 5857695, 5857696, 5857697, 5857698);[ Date: 2024-09-18 23:03:33 ]
7 48s720ms DELETE FROM sale_order_line WHERE id IN (486435, 486436, 486437, 486438, 486439, 486440, 486441);[ Date: 2024-09-18 13:19:04 ]
8 46s333ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (269973)) ORDER BY "item_list_line"."id";[ Date: 2024-09-18 13:58:33 ]
9 44s799ms DELETE FROM account_move_line WHERE id IN (5675514, 5675515, 5675516, 5675517, 5675518, 5675519, 5675520, 5675521, 5675522, 5675523, 5675524, 5675525, 5675526, 5675527, 5858856, 5858857, 5858858, 5858859, 5858860, 5858861, 5858862);[ Date: 2024-09-18 23:13:42 ]
10 43s908ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-09-01') AND ("sale_history_line"."invoice_date" <= '2024-09-30')) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-09-18 17:24:01 ]
11 41s537ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (269979)) ORDER BY "item_list_line"."id";[ Date: 2024-09-18 15:12:33 ]
12 39s255ms DELETE FROM stock_inventory_line WHERE id IN (3082709, 3082797, 3082723, 3082741, 3082681, 3082801, 3082682, 3082775, 3082683, 3082720, 3082732, 3082786, 3082787, 3082684, 3082764, 3082745, 3082777, 3082744, 3082778, 3082779, 3082754, 3082714, 3082785, 3082736, 3082685, 3082686, 3082781, 3082746, 3082747, 3082748, 3082749, 3082793, 3082759, 3082710, 3082789, 3082730, 3082776, 3082794, 3082802, 3082763, 3082713, 3082739, 3082774, 3082687, 3082715, 3082688, 3082689, 3082772, 3082690, 3082691, 3082692, 3082708, 3082795, 3082784, 3082771, 3082792, 3082693, 3082765, 3082760, 3082768, 3082719, 3082782, 3082694, 3082770, 3082751, 3082756, 3082707, 3082752, 3082755, 3082753, 3082724, 3082695, 3082767, 3082743, 3082728, 3082791, 3082696, 3082750, 3082697, 3082799, 3082698, 3082766, 3082699, 3082704, 3082703, 3082800, 3082780, 3082773, 3082735, 3082761, 3082727, 3082733, 3082737, 3082740, 3082738, 3082722, 3082729, 3082796, 3082742, 3082758, 3082712, 3082769, 3082711, 3082705, 3082725, 3082716, 3082717, 3082798, 3082762, 3082757, 3082726, 3082700, 3082790, 3082706, 3082788, 3082702, 3082731, 3082718, 3082734, 3082783, 3082721, 3082701);[ Date: 2024-09-18 17:22:41 ]
13 39s80ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-09-18 09:01:03 ]
14 36s460ms DELETE FROM sale_order_line WHERE id IN (486442, 486443, 486444, 486445, 486446);[ Date: 2024-09-18 13:56:50 ]
15 36s366ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (269972)) ORDER BY "item_list_line"."id";[ Date: 2024-09-18 13:04:54 ]
16 36s248ms DELETE FROM account_move_line WHERE id IN (5668246, 5668247, 5668248, 5668249, 5668250, 5668251, 5668252, 5668253, 5668254, 5668255, 5668256, 5668257, 5668258, 5668259, 5668260, 5858834, 5858835);[ Date: 2024-09-18 23:12:39 ]
17 36s122ms DELETE FROM account_move_line WHERE id IN (5853991, 5853992, 5853993, 5853994, 5853995, 5853996, 5853997, 5853998, 5853999, 5854000, 5854001, 5854002, 5854003, 5854004, 5854005, 5854006, 5854007);[ Date: 2024-09-18 23:15:38 ]
18 33s931ms DELETE FROM account_move_line WHERE id IN (5858923, 5858924, 5858925, 5858926, 5858885, 5858886, 5858887, 5858888, 5858889, 5858890, 5858891, 5858892, 5858893, 5858894, 5858907, 5858908);[ Date: 2024-09-18 23:34:47 ]
19 32s240ms DELETE FROM stock_inventory_line WHERE id IN (3082807, 3082875, 3082856, 3082817, 3082884, 3082834, 3082824, 3082859, 3082833, 3082812, 3082823, 3082837, 3082851, 3082850, 3082867, 3082849, 3082887, 3082863, 3082809, 3082825, 3082808, 3082898, 3082869, 3082840, 3082879, 3082862, 3082860, 3082803, 3082847, 3082874, 3082897, 3082882, 3082881, 3082883, 3082845, 3082819, 3082838, 3082853, 3082810, 3082839, 3082804, 3082842, 3082857, 3082876, 3082870, 3082846, 3082868, 3082855, 3082866, 3082828, 3082880, 3082818, 3082836, 3082877, 3082814, 3082830, 3082886, 3082831, 3082864, 3082885, 3082826, 3082872, 3082843, 3082899, 3082890, 3082832, 3082829, 3082873, 3082813, 3082820, 3082806, 3082878, 3082827, 3082822, 3082891, 3082861, 3082896, 3082895, 3082894, 3082893, 3082865, 3082889, 3082888, 3082892, 3082841, 3082848, 3082815, 3082821, 3082844, 3082816, 3082835, 3082852, 3082811, 3082858, 3082805, 3082871, 3082854);[ Date: 2024-09-18 17:21:52 ]
20 31s991ms DELETE FROM account_move_line WHERE id IN (5851752, 5851753, 5854228, 5854229, 5854230, 5854231, 5854232, 5854233, 5854234, 5854235, 5854236, 5854237, 5854238, 5854239, 5854240);[ Date: 2024-09-18 23:01:58 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 7h20m51s 128,750 122ms 3s83ms 205ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 18 20 3,139 8m26s 161ms 21 3,228 8m36s 159ms 22 3,234 8m37s 160ms 23 3,064 8m15s 161ms 00 3,210 8m30s 159ms 01 3,186 8m32s 160ms 02 3,317 8m30s 153ms 03 3,434 8m31s 148ms 04 3,727 9m16s 149ms 05 3,638 10m 165ms 06 4,157 10m45s 155ms 07 5,517 19m6s 207ms 08 8,449 33m30s 237ms 09 8,650 39m47s 275ms 10 8,807 39m24s 268ms 11 9,282 36m46s 237ms 12 8,799 36m26s 248ms 13 8,822 35m31s 241ms 14 8,089 30m32s 226ms 15 7,347 25m25s 207ms 16 5,268 15m34s 177ms 17 4,252 10m41s 150ms 18 4,173 10m3s 144ms 19 3,961 9m57s 150ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s83ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_951"', '["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s74ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s48ms
2 54m15s 3,711 706ms 3s717ms 877ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 18 07 232 3m13s 833ms 08 553 8m10s 886ms 09 445 6m43s 906ms 10 409 6m17s 924ms 11 298 4m37s 932ms 12 255 3m30s 826ms 13 562 8m31s 910ms 14 208 2m57s 852ms 15 367 5m17s 865ms 16 370 4m45s 772ms 18 6 4s385ms 730ms 19 6 4s424ms 737ms -
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 ('%%78%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%7/8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%7/8%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:10:59 Duration: 3s717ms
-
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 ('%%70608%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%70608%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%70608%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 17:05:36 Duration: 3s640ms
-
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 ('%%k3%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k-3%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 14:50:04 Duration: 3s32ms
3 48m34s 7,019 376ms 1s858ms 415ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 18 05 21 8s183ms 389ms 06 12 4s609ms 384ms 07 420 2m55s 416ms 08 801 5m33s 415ms 09 787 5m27s 415ms 10 786 5m29s 419ms 11 930 6m35s 425ms 12 382 2m35s 408ms 13 891 6m16s 422ms 14 639 4m23s 412ms 15 688 4m43s 412ms 16 243 1m36s 397ms 17 314 2m3s 394ms 18 101 39s141ms 387ms 19 4 1s547ms 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 12:47:24 Duration: 1s858ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:58:48 Duration: 1s632ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:21:54 Duration: 1s501ms
4 43m47s 7,018 299ms 2s418ms 374ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 18 05 21 7s114ms 338ms 06 12 3s777ms 314ms 07 419 2m35s 372ms 08 802 4m54s 367ms 09 787 4m56s 376ms 10 786 4m58s 379ms 11 929 6m27s 417ms 12 383 2m15s 353ms 13 890 5m44s 387ms 14 640 3m51s 362ms 15 687 4m11s 365ms 16 243 1m20s 332ms 17 314 1m45s 335ms 18 101 33s35ms 327ms 19 4 1s208ms 302ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 17:05:36 Duration: 2s418ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 15:46:26 Duration: 2s216ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 14:50:56 Duration: 2s1ms
5 37m7s 12,113 166ms 1s368ms 183ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 18 05 35 6s46ms 172ms 06 66 11s496ms 174ms 07 206 38s57ms 184ms 08 987 3m1s 184ms 09 2,132 6m38s 186ms 10 3,435 10m30s 183ms 11 836 2m31s 181ms 12 377 1m8s 181ms 13 1,073 3m20s 187ms 14 981 3m 183ms 15 1,022 3m8s 184ms 16 947 2m48s 177ms 17 6 1s58ms 176ms 18 3 540ms 180ms 19 7 1s236ms 176ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 185567 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 13:35:40 Duration: 1s368ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((17.0 - 17.0) + (1.0 - 1.0), 0) ELSE GREATEST ((17.0 - 17.0), 0) END where product_id = 180539 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 14:09:15 Duration: 1s238ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 444.0 IS NOT NULL THEN GREATEST ((3.0 - 3.0) + (444.0 - 445.0), 0) ELSE GREATEST ((3.0 - 3.0), 0) END where product_id = 191096 and warehouse_id = 43 and company_id = 1;
Date: 2024-09-18 13:22:04 Duration: 793ms
6 30m29s 9,842 160ms 1s346ms 185ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 18 05 20 3s533ms 176ms 06 12 2s81ms 173ms 07 611 1m54s 186ms 08 1,125 3m29s 186ms 09 946 2m57s 187ms 10 950 2m56s 186ms 11 1,209 3m51s 191ms 12 488 1m29s 183ms 13 1,363 4m16s 188ms 14 1,088 3m21s 184ms 15 1,078 3m18s 184ms 16 407 1m12s 177ms 17 408 1m12s 177ms 18 132 23s33ms 174ms 19 5 865ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(1.0, 0) - COALESCE(0.0, 0) WHERE product_id = 218784 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 16:59:07 Duration: 1s346ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 183353 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-18 18:12:21 Duration: 744ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(352.0, 0) + COALESCE(0.0, 0) - COALESCE(12.0, 0) WHERE product_id = 213422 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 18:13:12 Duration: 703ms
7 24m58s 1,623 634ms 4s221ms 923ms 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 #7
Day Hour Count Duration Avg duration Sep 18 07 101 1m24s 834ms 08 143 2m3s 862ms 09 335 5m24s 969ms 10 245 4m1s 984ms 11 102 1m44s 1s25ms 12 79 1m15s 951ms 13 348 5m18s 916ms 14 134 1m55s 860ms 15 115 1m33s 814ms 16 21 16s883ms 803ms -
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 ('%%3613%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%361-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%361-3%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:59:09 Duration: 4s221ms
-
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 ('%%36139%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%361-39%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%361-39%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:59:09 Duration: 4s172ms
-
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 ('%%654%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%6.5-4-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%6.5-4-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 13:35:42 Duration: 4s69ms
8 20m59s 2,188 484ms 3s24ms 575ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 18 20 3 1s463ms 487ms 23 4 1s947ms 486ms 01 1 548ms 548ms 03 1 486ms 486ms 04 4 1s951ms 487ms 05 8 3s936ms 492ms 06 21 10s374ms 494ms 07 176 1m37s 554ms 08 292 2m48s 576ms 09 270 2m33s 568ms 10 214 2m5s 588ms 11 320 3m15s 609ms 12 103 57s35ms 553ms 13 246 2m23s 582ms 14 204 1m56s 571ms 15 215 2m6s 586ms 16 55 28s570ms 519ms 17 28 15s207ms 543ms 18 23 11s307ms 491ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 16:59:07 Duration: 3s24ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 18:08:21 Duration: 1s927ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 11:48:11 Duration: 1s770ms
9 19m22s 169 2s89ms 54s467ms 6s881ms delete from account_move_line where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 18 23 2 35s704ms 17s852ms 07 3 9s383ms 3s127ms 08 8 25s510ms 3s188ms 09 9 40s701ms 4s522ms 10 3 1m 20s307ms 11 1 4s868ms 4s868ms 12 4 21s970ms 5s492ms 13 3 15s490ms 5s163ms 14 5 13s276ms 2s655ms 15 15 1m10s 4s692ms 16 5 29s617ms 5s923ms 19 111 13m55s 7s523ms -
DELETE FROM account_move_line WHERE id IN (5722843, 5722844, 5722845, 5722846, 5722847, 5722848, 5722849, 5722850, 5722851, 5722852, 5722853, 5722854, 5722855, 5722856, 5722857, 5722858, 5722859, 5722860, 5722861, 5856988, 5856989, 5856990);
Date: 2024-09-18 14:56:30 Duration: 54s467ms
-
DELETE FROM account_move_line WHERE id IN (5855134, 5855135, 5857677, 5857678, 5857679, 5857680, 5857681, 5857682, 5857683, 5857684, 5857685, 5857686, 5857687, 5857688, 5857689, 5857690, 5857691, 5857692, 5857693, 5857694, 5857695, 5857696, 5857697, 5857698);
Date: 2024-09-18 23:03:33 Duration: 50s745ms
-
DELETE FROM account_move_line WHERE id IN (5675514, 5675515, 5675516, 5675517, 5675518, 5675519, 5675520, 5675521, 5675522, 5675523, 5675524, 5675525, 5675526, 5675527, 5858856, 5858857, 5858858, 5858859, 5858860, 5858861, 5858862);
Date: 2024-09-18 23:13:42 Duration: 44s799ms
10 15m38s 5,211 120ms 731ms 180ms 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 #10
Day Hour Count Duration Avg duration Sep 18 07 442 1m20s 181ms 08 304 49s915ms 164ms 09 801 2m12s 165ms 10 299 55s242ms 184ms 11 411 1m24s 205ms 12 280 52s76ms 185ms 13 725 2m12s 183ms 14 833 2m25s 174ms 15 986 3m1s 183ms 16 130 23s557ms 181ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 247896) 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" = '56')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 19:11:53 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 262281) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 13:26:27 Duration: 599ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206621) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 11:56:03 Duration: 539ms
11 15m30s 2,535 315ms 1s918ms 367ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") asc, "product_template"."id" desc;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 18 20 12 3s871ms 322ms 21 9 2s913ms 323ms 22 24 7s763ms 323ms 23 150 49s26ms 326ms 00 156 50s516ms 323ms 01 12 3s897ms 324ms 02 9 3s21ms 335ms 03 54 17s684ms 327ms 04 147 48s220ms 328ms 05 51 17s15ms 333ms 06 102 33s485ms 328ms 07 150 50s256ms 335ms 08 39 15s252ms 391ms 09 60 24s748ms 412ms 10 174 1m12s 418ms 11 255 1m46s 418ms 12 141 51s939ms 368ms 13 288 1m54s 398ms 14 315 2m 382ms 15 168 1m2s 372ms 16 63 21s758ms 345ms 17 90 30s269ms 336ms 18 48 15s834ms 329ms 19 18 5s917ms 328ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 16:48:53 Duration: 1s918ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 18:45:16 Duration: 1s483ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 15:02:42 Duration: 1s133ms
12 14m56s 5,763 137ms 856ms 155ms 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 #12
Day Hour Count Duration Avg duration Sep 18 20 240 35s229ms 146ms 21 240 34s695ms 144ms 22 240 34s883ms 145ms 23 240 35s144ms 146ms 00 240 34s914ms 145ms 01 240 34s825ms 145ms 02 240 34s707ms 144ms 03 240 34s873ms 145ms 04 240 34s710ms 144ms 05 240 35s12ms 145ms 06 240 34s933ms 145ms 07 240 37s956ms 158ms 08 241 41s372ms 171ms 09 240 42s680ms 177ms 10 240 42s733ms 178ms 11 240 43s431ms 180ms 12 241 37s660ms 156ms 13 240 42s478ms 176ms 14 241 40s787ms 169ms 15 240 40s99ms 167ms 16 240 37s42ms 154ms 17 240 36s162ms 150ms 18 240 35s104ms 146ms 19 240 35s30ms 145ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cursors', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_database', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_policy', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_conversion', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_attribute', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_amop', 'pg_catalog.pg_range', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_type', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_sequence', 'pg_catalog.pg_roles', 'pg_catalog.pg_collation', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_enum', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_views', 'pg_catalog.pg_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_shdepend', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.column_column_usage', 'information_schema.constraint_column_usage', 'information_schema.enabled_roles', 'information_schema.foreign_servers', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mapping_options', 'information_schema.triggered_update_columns', 'information_schema.table_constraints', 'information_schema.user_defined_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_udt_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.key_column_usage', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.routine_privileges', 'information_schema.triggers', 'information_schema.element_types', 'information_schema.udt_privileges', 'information_schema.view_routine_usage', 'information_schema.column_privileges', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.views', 'information_schema.routine_sequence_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_tables', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.tables', 'information_schema.character_sets', 'information_schema.referential_constraints', 'information_schema.table_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.role_table_grants', 'information_schema.view_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-18 11:49:53 Duration: 856ms
-
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.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.view_column_usage', 'information_schema.foreign_tables', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.column_column_usage', 'information_schema.sequences', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.user_mappings', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.role_udt_grants', 'information_schema.foreign_servers', 'information_schema.routines', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'information_schema.view_routine_usage', 'information_schema.applicable_roles', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.tables', 'information_schema.usage_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.foreign_table_options', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.data_type_privileges', 'information_schema.column_domain_usage', 'information_schema.column_privileges', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.triggers', 'information_schema.udt_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_policies', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_subscription', 'pg_catalog.pg_attribute', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_class', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_user', 'pg_catalog.pg_am', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_type', 'pg_catalog.pg_constraint', 'pg_catalog.pg_amop', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_inherits', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_views', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_range', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_database', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables');
Date: 2024-09-18 12:34:08 Duration: 789ms
-
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_subscription', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_conversion', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_inherits', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_depend', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amproc', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_cast', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats', 'pg_catalog.pg_attribute', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_language', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_database', 'pg_catalog.pg_transform', 'pg_catalog.pg_locks', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_namespace', 'pg_catalog.pg_collation', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.routine_privileges', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.column_privileges', 'information_schema.triggered_update_columns', 'information_schema.role_column_grants', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.routine_column_usage', 'information_schema.tables', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_features', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.domain_constraints', 'information_schema.foreign_table_options', 'information_schema.routines', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.attributes', 'information_schema.applicable_roles', 'information_schema.key_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.user_mappings', 'information_schema.view_table_usage', 'information_schema.foreign_server_options', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.sql_implementation_info', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.usage_privileges', 'information_schema.udt_privileges');
Date: 2024-09-18 03:27:21 Duration: 641ms
13 14m53s 4,612 163ms 1s294ms 193ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 18 05 41 7s885ms 192ms 06 12 2s67ms 172ms 07 223 41s776ms 187ms 08 527 1m40s 191ms 09 804 2m38s 197ms 10 711 2m19s 195ms 11 643 2m8s 199ms 12 221 42s486ms 192ms 13 610 1m56s 190ms 14 312 58s394ms 187ms 15 372 1m13s 196ms 16 93 17s168ms 184ms 17 34 6s8ms 176ms 18 5 864ms 172ms 19 4 686ms 171ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269963 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-18 16:31:33 Duration: 1s294ms
-
UPDATE product_warehouse_inventory SET qty_available = 9.0 WHERE product_id = 265093 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-09-18 13:29:16 Duration: 923ms
-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 180751 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-18 19:11:53 Duration: 881ms
14 14m45s 832 809ms 4s440ms 1s64ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 18 06 1 924ms 924ms 07 50 49s701ms 994ms 08 172 3m2s 1s63ms 09 99 1m51s 1s121ms 10 107 1m58s 1s109ms 11 91 1m38s 1s81ms 12 57 55s448ms 972ms 13 90 1m35s 1s66ms 14 83 1m28s 1s65ms 15 62 1m4s 1s44ms 16 20 19s390ms 969ms -
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 ('%690-72%')) 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 ('%690-72%'))) 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 ('%690-72%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%690-72%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 14:58:58 Duration: 4s440ms
-
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 ('%8010073%')) 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 ('%8010073%'))) 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 ('%8010073%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%8010073%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 13:35:41 Duration: 3s521ms
-
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 ('%466204%')) 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 ('%466204%'))) 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 ('%466204%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%466204%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 14:50:05 Duration: 2s986ms
15 14m 4,157 167ms 961ms 202ms 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 #15
Day Hour Count Duration Avg duration Sep 18 07 8 1s647ms 205ms 08 2 379ms 189ms 09 756 2m44s 217ms 10 532 1m53s 214ms 11 257 57s152ms 222ms 12 299 56s722ms 189ms 13 410 1m25s 209ms 14 390 1m17s 197ms 15 415 1m24s 203ms 16 395 1m13s 184ms 17 419 1m16s 182ms 18 228 41s12ms 179ms 19 46 8s361ms 181ms -
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 = 51379 and fd.product_id = 199224;
Date: 2024-09-18 13:47:32 Duration: 961ms
-
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 = 51379 and fd.product_id = 253737;
Date: 2024-09-18 13:47:32 Duration: 849ms
-
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 = 51338 and fd.product_id = 171977;
Date: 2024-09-18 21:11:26 Duration: 700ms
16 13m6s 2,142 314ms 915ms 366ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null))) order by coalesce("product_template"."is_published", false) desc, coalesce("product_template__name"."value", "product_template"."name") desc, "product_template"."id" desc;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 18 20 15 4s907ms 327ms 21 15 4s809ms 320ms 22 12 3s859ms 321ms 23 132 42s918ms 325ms 00 147 47s862ms 325ms 01 21 6s795ms 323ms 02 9 2s908ms 323ms 03 18 5s948ms 330ms 04 141 45s967ms 326ms 05 60 20s85ms 334ms 06 105 34s940ms 332ms 07 189 1m7s 355ms 08 42 16s290ms 387ms 09 48 17s472ms 364ms 10 165 1m7s 406ms 11 162 1m12s 446ms 12 153 54s690ms 357ms 13 171 1m9s 406ms 14 204 1m15s 368ms 15 219 1m26s 397ms 16 24 7s966ms 331ms 17 69 23s204ms 336ms 18 15 5s68ms 337ms 19 6 1s964ms 327ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 14:26:53 Duration: 915ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 11:58:14 Duration: 881ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 14:41:05 Duration: 865ms
17 9m51s 2,170 235ms 1s272ms 272ms 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 #17
Day Hour Count Duration Avg duration Sep 18 22 24 5s895ms 245ms 23 120 29s345ms 244ms 00 145 35s124ms 242ms 01 21 5s88ms 242ms 02 12 2s911ms 242ms 03 18 4s463ms 247ms 04 195 47s496ms 243ms 05 72 17s812ms 247ms 06 66 16s283ms 246ms 07 162 41s428ms 255ms 08 84 24s579ms 292ms 09 39 11s924ms 305ms 10 174 53s419ms 307ms 11 162 48s936ms 302ms 12 168 45s409ms 270ms 13 204 1m3s 309ms 14 174 48s621ms 279ms 15 150 43s743ms 291ms 16 45 11s720ms 260ms 17 87 22s198ms 255ms 18 39 9s577ms 245ms 19 9 2s230ms 247ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 12:47:19 Duration: 1s272ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 19:30:33 Duration: 1s100ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 17:58:48 Duration: 871ms
18 9m12s 2,007 235ms 1s296ms 275ms 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 #18
Day Hour Count Duration Avg duration Sep 18 20 6 1s453ms 242ms 21 18 4s307ms 239ms 22 129 31s438ms 243ms 23 69 16s661ms 241ms 00 24 5s894ms 245ms 01 3 723ms 241ms 04 111 27s1ms 243ms 05 33 8s143ms 246ms 06 78 19s318ms 247ms 07 186 47s825ms 257ms 08 54 15s88ms 279ms 09 66 18s757ms 284ms 10 147 47s354ms 322ms 11 297 1m32s 310ms 12 90 23s762ms 264ms 13 156 45s855ms 293ms 14 201 56s448ms 280ms 15 165 47s49ms 285ms 16 54 13s534ms 250ms 17 63 15s987ms 253ms 18 51 12s334ms 241ms 19 6 1s427ms 237ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:54:51 Duration: 1s296ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:17:21 Duration: 672ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:54:52 Duration: 621ms
19 9m3s 2,904 160ms 851ms 187ms 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 Sep 18 05 4 671ms 167ms 06 4 673ms 168ms 07 216 40s308ms 186ms 08 331 1m2s 189ms 09 273 50s613ms 185ms 10 316 58s998ms 186ms 11 402 1m20s 199ms 12 158 29s22ms 183ms 13 344 1m4s 188ms 14 279 51s200ms 183ms 15 275 50s622ms 184ms 16 148 25s964ms 175ms 17 114 20s23ms 175ms 18 38 6s690ms 176ms 19 2 346ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 197885 AND warehouse_id = 42;
Date: 2024-09-18 15:13:39 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217963 AND warehouse_id = 45;
Date: 2024-09-18 16:11:50 Duration: 773ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217505 AND warehouse_id = 43;
Date: 2024-09-18 12:12:48 Duration: 708ms
20 8m44s 3,393 120ms 1s709ms 154ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 18 05 4 594ms 148ms 06 2 268ms 134ms 07 137 19s953ms 145ms 08 379 54s224ms 143ms 09 492 1m19s 161ms 10 425 1m4s 152ms 11 407 1m4s 157ms 12 135 20s345ms 150ms 13 499 1m13s 147ms 14 246 36s406ms 147ms 15 296 47s464ms 160ms 16 170 25s612ms 150ms 17 166 32s992ms 198ms 18 26 3s312ms 127ms 19 9 1s155ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (206593, 194711, 180518, 187809, 190568, 214379, 214461, 187740, 194436)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 16:59:07 Duration: 1s709ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (238968, 237221, 190636, 219166, 259071)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 13:54:07 Duration: 955ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (215598)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 13:22:02 Duration: 929ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 128,750 7h20m51s 122ms 3s83ms 205ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 18 20 3,139 8m26s 161ms 21 3,228 8m36s 159ms 22 3,234 8m37s 160ms 23 3,064 8m15s 161ms 00 3,210 8m30s 159ms 01 3,186 8m32s 160ms 02 3,317 8m30s 153ms 03 3,434 8m31s 148ms 04 3,727 9m16s 149ms 05 3,638 10m 165ms 06 4,157 10m45s 155ms 07 5,517 19m6s 207ms 08 8,449 33m30s 237ms 09 8,650 39m47s 275ms 10 8,807 39m24s 268ms 11 9,282 36m46s 237ms 12 8,799 36m26s 248ms 13 8,822 35m31s 241ms 14 8,089 30m32s 226ms 15 7,347 25m25s 207ms 16 5,268 15m34s 177ms 17 4,252 10m41s 150ms 18 4,173 10m3s 144ms 19 3,961 9m57s 150ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s83ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_951"', '["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s74ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s48ms
2 12,113 37m7s 166ms 1s368ms 183ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 18 05 35 6s46ms 172ms 06 66 11s496ms 174ms 07 206 38s57ms 184ms 08 987 3m1s 184ms 09 2,132 6m38s 186ms 10 3,435 10m30s 183ms 11 836 2m31s 181ms 12 377 1m8s 181ms 13 1,073 3m20s 187ms 14 981 3m 183ms 15 1,022 3m8s 184ms 16 947 2m48s 177ms 17 6 1s58ms 176ms 18 3 540ms 180ms 19 7 1s236ms 176ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 185567 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 13:35:40 Duration: 1s368ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((17.0 - 17.0) + (1.0 - 1.0), 0) ELSE GREATEST ((17.0 - 17.0), 0) END where product_id = 180539 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 14:09:15 Duration: 1s238ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 444.0 IS NOT NULL THEN GREATEST ((3.0 - 3.0) + (444.0 - 445.0), 0) ELSE GREATEST ((3.0 - 3.0), 0) END where product_id = 191096 and warehouse_id = 43 and company_id = 1;
Date: 2024-09-18 13:22:04 Duration: 793ms
3 9,842 30m29s 160ms 1s346ms 185ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 18 05 20 3s533ms 176ms 06 12 2s81ms 173ms 07 611 1m54s 186ms 08 1,125 3m29s 186ms 09 946 2m57s 187ms 10 950 2m56s 186ms 11 1,209 3m51s 191ms 12 488 1m29s 183ms 13 1,363 4m16s 188ms 14 1,088 3m21s 184ms 15 1,078 3m18s 184ms 16 407 1m12s 177ms 17 408 1m12s 177ms 18 132 23s33ms 174ms 19 5 865ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(1.0, 0) - COALESCE(0.0, 0) WHERE product_id = 218784 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 16:59:07 Duration: 1s346ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 183353 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-18 18:12:21 Duration: 744ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(352.0, 0) + COALESCE(0.0, 0) - COALESCE(12.0, 0) WHERE product_id = 213422 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 18:13:12 Duration: 703ms
4 7,019 48m34s 376ms 1s858ms 415ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 18 05 21 8s183ms 389ms 06 12 4s609ms 384ms 07 420 2m55s 416ms 08 801 5m33s 415ms 09 787 5m27s 415ms 10 786 5m29s 419ms 11 930 6m35s 425ms 12 382 2m35s 408ms 13 891 6m16s 422ms 14 639 4m23s 412ms 15 688 4m43s 412ms 16 243 1m36s 397ms 17 314 2m3s 394ms 18 101 39s141ms 387ms 19 4 1s547ms 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 12:47:24 Duration: 1s858ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:58:48 Duration: 1s632ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:21:54 Duration: 1s501ms
5 7,018 43m47s 299ms 2s418ms 374ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 18 05 21 7s114ms 338ms 06 12 3s777ms 314ms 07 419 2m35s 372ms 08 802 4m54s 367ms 09 787 4m56s 376ms 10 786 4m58s 379ms 11 929 6m27s 417ms 12 383 2m15s 353ms 13 890 5m44s 387ms 14 640 3m51s 362ms 15 687 4m11s 365ms 16 243 1m20s 332ms 17 314 1m45s 335ms 18 101 33s35ms 327ms 19 4 1s208ms 302ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 17:05:36 Duration: 2s418ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 15:46:26 Duration: 2s216ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 14:50:56 Duration: 2s1ms
6 5,763 14m56s 137ms 856ms 155ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 18 20 240 35s229ms 146ms 21 240 34s695ms 144ms 22 240 34s883ms 145ms 23 240 35s144ms 146ms 00 240 34s914ms 145ms 01 240 34s825ms 145ms 02 240 34s707ms 144ms 03 240 34s873ms 145ms 04 240 34s710ms 144ms 05 240 35s12ms 145ms 06 240 34s933ms 145ms 07 240 37s956ms 158ms 08 241 41s372ms 171ms 09 240 42s680ms 177ms 10 240 42s733ms 178ms 11 240 43s431ms 180ms 12 241 37s660ms 156ms 13 240 42s478ms 176ms 14 241 40s787ms 169ms 15 240 40s99ms 167ms 16 240 37s42ms 154ms 17 240 36s162ms 150ms 18 240 35s104ms 146ms 19 240 35s30ms 145ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END +0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_depend', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_cursors', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_database', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_policy', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_conversion', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_attribute', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_amop', 'pg_catalog.pg_range', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_type', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_language', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_sequence', 'pg_catalog.pg_roles', 'pg_catalog.pg_collation', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_enum', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_am', 'pg_catalog.pg_views', 'pg_catalog.pg_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_shdepend', 'information_schema.view_table_usage', 'information_schema.user_mappings', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.column_column_usage', 'information_schema.constraint_column_usage', 'information_schema.enabled_roles', 'information_schema.foreign_servers', 'information_schema.column_options', 'information_schema.column_domain_usage', 'information_schema.role_column_grants', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.sequences', 'information_schema.sql_implementation_info', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mapping_options', 'information_schema.triggered_update_columns', 'information_schema.table_constraints', 'information_schema.user_defined_types', 'information_schema.check_constraint_routine_usage', 'information_schema.column_udt_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.key_column_usage', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.routine_privileges', 'information_schema.triggers', 'information_schema.element_types', 'information_schema.udt_privileges', 'information_schema.view_routine_usage', 'information_schema.column_privileges', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.views', 'information_schema.routine_sequence_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_tables', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.tables', 'information_schema.character_sets', 'information_schema.referential_constraints', 'information_schema.table_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.foreign_table_options', 'information_schema.foreign_server_options', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.role_table_grants', 'information_schema.view_column_usage', 'information_schema.foreign_data_wrappers', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.parameters', 'information_schema.routine_routine_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-18 11:49:53 Duration: 856ms
-
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.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.view_column_usage', 'information_schema.foreign_tables', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.element_types', 'information_schema.constraint_column_usage', 'information_schema.view_table_usage', 'information_schema.column_column_usage', 'information_schema.sequences', 'information_schema.views', 'information_schema.foreign_server_options', 'information_schema.check_constraint_routine_usage', 'information_schema.user_mappings', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.role_udt_grants', 'information_schema.foreign_servers', 'information_schema.routines', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.user_mapping_options', 'information_schema.collations', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.character_sets', 'information_schema.routine_privileges', 'information_schema.routine_sequence_usage', 'information_schema.triggered_update_columns', 'information_schema.user_defined_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.role_column_grants', 'information_schema.table_constraints', 'information_schema.view_routine_usage', 'information_schema.applicable_roles', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.tables', 'information_schema.usage_privileges', 'information_schema.collation_character_set_applicability', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.foreign_table_options', 'information_schema.constraint_table_usage', 'information_schema.routine_routine_usage', 'information_schema.data_type_privileges', 'information_schema.column_domain_usage', 'information_schema.column_privileges', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.triggers', 'information_schema.udt_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_policies', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_subscription', 'pg_catalog.pg_attribute', 'pg_catalog.pg_policy', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_class', 'pg_catalog.pg_trigger', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_settings', 'pg_catalog.pg_publication', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_locks', 'pg_catalog.pg_cursors', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_user', 'pg_catalog.pg_am', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_type', 'pg_catalog.pg_constraint', 'pg_catalog.pg_amop', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_extension', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_inherits', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_views', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_range', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_database', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_user_tables');
Date: 2024-09-18 12:34:08 Duration: 789ms
-
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_subscription', 'pg_catalog.pg_user', 'pg_catalog.pg_settings', 'pg_catalog.pg_conversion', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_rules', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_inherits', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_depend', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amproc', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_views', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_cast', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats', 'pg_catalog.pg_attribute', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_language', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_description', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_operator', 'pg_catalog.pg_amop', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_database', 'pg_catalog.pg_transform', 'pg_catalog.pg_locks', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_am', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_namespace', 'pg_catalog.pg_collation', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.routine_privileges', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.column_privileges', 'information_schema.triggered_update_columns', 'information_schema.role_column_grants', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.routine_column_usage', 'information_schema.tables', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.role_routine_grants', 'information_schema.routine_routine_usage', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_features', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.domain_constraints', 'information_schema.foreign_table_options', 'information_schema.routines', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.attributes', 'information_schema.applicable_roles', 'information_schema.key_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.user_mappings', 'information_schema.view_table_usage', 'information_schema.foreign_server_options', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.sql_implementation_info', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.foreign_servers', 'information_schema.usage_privileges', 'information_schema.udt_privileges');
Date: 2024-09-18 03:27:21 Duration: 641ms
7 5,211 15m38s 120ms 731ms 180ms 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 #7
Day Hour Count Duration Avg duration Sep 18 07 442 1m20s 181ms 08 304 49s915ms 164ms 09 801 2m12s 165ms 10 299 55s242ms 184ms 11 411 1m24s 205ms 12 280 52s76ms 185ms 13 725 2m12s 183ms 14 833 2m25s 174ms 15 986 3m1s 183ms 16 130 23s557ms 181ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 247896) 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" = '56')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 19:11:53 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 262281) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 13:26:27 Duration: 599ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206621) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 11:56:03 Duration: 539ms
8 4,612 14m53s 163ms 1s294ms 193ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 18 05 41 7s885ms 192ms 06 12 2s67ms 172ms 07 223 41s776ms 187ms 08 527 1m40s 191ms 09 804 2m38s 197ms 10 711 2m19s 195ms 11 643 2m8s 199ms 12 221 42s486ms 192ms 13 610 1m56s 190ms 14 312 58s394ms 187ms 15 372 1m13s 196ms 16 93 17s168ms 184ms 17 34 6s8ms 176ms 18 5 864ms 172ms 19 4 686ms 171ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269963 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-18 16:31:33 Duration: 1s294ms
-
UPDATE product_warehouse_inventory SET qty_available = 9.0 WHERE product_id = 265093 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-09-18 13:29:16 Duration: 923ms
-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 180751 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-18 19:11:53 Duration: 881ms
9 4,157 14m 167ms 961ms 202ms 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 #9
Day Hour Count Duration Avg duration Sep 18 07 8 1s647ms 205ms 08 2 379ms 189ms 09 756 2m44s 217ms 10 532 1m53s 214ms 11 257 57s152ms 222ms 12 299 56s722ms 189ms 13 410 1m25s 209ms 14 390 1m17s 197ms 15 415 1m24s 203ms 16 395 1m13s 184ms 17 419 1m16s 182ms 18 228 41s12ms 179ms 19 46 8s361ms 181ms -
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 = 51379 and fd.product_id = 199224;
Date: 2024-09-18 13:47:32 Duration: 961ms
-
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 = 51379 and fd.product_id = 253737;
Date: 2024-09-18 13:47:32 Duration: 849ms
-
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 = 51338 and fd.product_id = 171977;
Date: 2024-09-18 21:11:26 Duration: 700ms
10 3,711 54m15s 706ms 3s717ms 877ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 18 07 232 3m13s 833ms 08 553 8m10s 886ms 09 445 6m43s 906ms 10 409 6m17s 924ms 11 298 4m37s 932ms 12 255 3m30s 826ms 13 562 8m31s 910ms 14 208 2m57s 852ms 15 367 5m17s 865ms 16 370 4m45s 772ms 18 6 4s385ms 730ms 19 6 4s424ms 737ms -
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 ('%%78%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%7/8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%7/8%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:10:59 Duration: 3s717ms
-
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 ('%%70608%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%70608%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%70608%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 17:05:36 Duration: 3s640ms
-
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 ('%%k3%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k-3%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 14:50:04 Duration: 3s32ms
11 3,396 8m5s 120ms 888ms 142ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where (("product_warehouse_inventory"."warehouse_id" = ?) and ("product_warehouse_inventory"."product_id" = ?)) order by "product_warehouse_inventory"."warehouse_name" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 18 07 309 47s285ms 153ms 08 247 35s892ms 145ms 09 535 1m15s 141ms 10 198 27s238ms 137ms 11 316 45s278ms 143ms 12 102 14s901ms 146ms 13 478 1m8s 143ms 14 486 1m6s 137ms 15 639 1m32s 144ms 16 86 11s440ms 133ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 46) AND ("product_warehouse_inventory"."product_id" = 185489)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-18 11:57:06 Duration: 888ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 214040)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-18 12:58:49 Duration: 814ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 190931)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-18 16:59:59 Duration: 694ms
12 3,393 8m44s 120ms 1s709ms 154ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 18 05 4 594ms 148ms 06 2 268ms 134ms 07 137 19s953ms 145ms 08 379 54s224ms 143ms 09 492 1m19s 161ms 10 425 1m4s 152ms 11 407 1m4s 157ms 12 135 20s345ms 150ms 13 499 1m13s 147ms 14 246 36s406ms 147ms 15 296 47s464ms 160ms 16 170 25s612ms 150ms 17 166 32s992ms 198ms 18 26 3s312ms 127ms 19 9 1s155ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (206593, 194711, 180518, 187809, 190568, 214379, 214461, 187740, 194436)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 16:59:07 Duration: 1s709ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (238968, 237221, 190636, 219166, 259071)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 13:54:07 Duration: 955ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (215598)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-18 13:22:02 Duration: 929ms
13 3,127 8m4s 120ms 1s576ms 155ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 18 05 1 121ms 121ms 06 3 391ms 130ms 07 57 8s402ms 147ms 08 260 40s457ms 155ms 09 621 1m41s 163ms 10 943 2m23s 152ms 11 198 31s431ms 158ms 12 89 12s956ms 145ms 13 331 50s84ms 151ms 14 245 36s833ms 150ms 15 272 43s764ms 160ms 16 105 14s889ms 141ms 18 2 273ms 136ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 191096 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-18 13:22:03 Duration: 1s576ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 269979 and sol.warehouse_id = 36 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-18 15:26:47 Duration: 1s531ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 187358 and sol.warehouse_id = 36 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-09-18 12:11:57 Duration: 1s497ms
14 3,078 8m25s 146ms 754ms 164ms select "sale_history_line".id from "sale_history_line" where ("sale_history_line"."customer_id" in (...)) order by "sale_history_line"."id";Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 18 07 52 9s643ms 185ms 08 70 12s88ms 172ms 09 44 8s263ms 187ms 10 72 13s448ms 186ms 11 16 3s125ms 195ms 12 24 4s9ms 167ms 13 58 12s161ms 209ms 14 24 4s536ms 189ms 15 20 3s374ms 168ms 16 38 6s242ms 164ms 17 2,658 7m8s 161ms 18 2 299ms 149ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (37584)) ORDER BY "sale_history_line"."id";
Date: 2024-09-18 17:29:57 Duration: 754ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (36256)) ORDER BY "sale_history_line"."id";
Date: 2024-09-18 21:14:21 Duration: 703ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (37113)) ORDER BY "sale_history_line"."id";
Date: 2024-09-18 21:14:36 Duration: 695ms
15 2,904 9m3s 160ms 851ms 187ms 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 Sep 18 05 4 671ms 167ms 06 4 673ms 168ms 07 216 40s308ms 186ms 08 331 1m2s 189ms 09 273 50s613ms 185ms 10 316 58s998ms 186ms 11 402 1m20s 199ms 12 158 29s22ms 183ms 13 344 1m4s 188ms 14 279 51s200ms 183ms 15 275 50s622ms 184ms 16 148 25s964ms 175ms 17 114 20s23ms 175ms 18 38 6s690ms 176ms 19 2 346ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 197885 AND warehouse_id = 42;
Date: 2024-09-18 15:13:39 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217963 AND warehouse_id = 45;
Date: 2024-09-18 16:11:50 Duration: 773ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217505 AND warehouse_id = 43;
Date: 2024-09-18 12:12:48 Duration: 708ms
16 2,782 8m39s 160ms 1s332ms 186ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 18 05 14 2s315ms 165ms 06 7 1s165ms 166ms 07 91 17s133ms 188ms 08 234 43s439ms 185ms 09 370 1m8s 184ms 10 362 1m9s 192ms 11 298 57s630ms 193ms 12 113 21s637ms 191ms 13 441 1m22s 186ms 14 202 38s260ms 189ms 15 424 1m18s 184ms 16 136 24s177ms 177ms 17 65 11s283ms 173ms 18 24 4s194ms 174ms 19 1 169ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 199007 AND warehouse_id = 43;
Date: 2024-09-18 14:58:56 Duration: 1s332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 199007 AND warehouse_id = 43;
Date: 2024-09-18 14:58:58 Duration: 1s313ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 215534 AND warehouse_id = 45;
Date: 2024-09-18 16:11:49 Duration: 684ms
17 2,535 15m30s 315ms 1s918ms 367ms 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 #17
Day Hour Count Duration Avg duration Sep 18 20 12 3s871ms 322ms 21 9 2s913ms 323ms 22 24 7s763ms 323ms 23 150 49s26ms 326ms 00 156 50s516ms 323ms 01 12 3s897ms 324ms 02 9 3s21ms 335ms 03 54 17s684ms 327ms 04 147 48s220ms 328ms 05 51 17s15ms 333ms 06 102 33s485ms 328ms 07 150 50s256ms 335ms 08 39 15s252ms 391ms 09 60 24s748ms 412ms 10 174 1m12s 418ms 11 255 1m46s 418ms 12 141 51s939ms 368ms 13 288 1m54s 398ms 14 315 2m 382ms 15 168 1m2s 372ms 16 63 21s758ms 345ms 17 90 30s269ms 336ms 18 48 15s834ms 329ms 19 18 5s917ms 328ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 16:48:53 Duration: 1s918ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 18:45:16 Duration: 1s483ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 15:02:42 Duration: 1s133ms
18 2,203 6m3s 120ms 609ms 165ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 18 04 2 351ms 175ms 07 123 18s363ms 149ms 08 268 42s488ms 158ms 09 265 46s260ms 174ms 10 253 42s486ms 167ms 11 504 1m22s 163ms 12 111 26s641ms 240ms 13 251 39s210ms 156ms 14 184 29s432ms 159ms 15 188 27s912ms 148ms 16 45 6s794ms 150ms 17 8 1s73ms 134ms 18 1 140ms 140ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-aedec04/web.assets_common_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:10:57 Duration: 609ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:10:57 Duration: 577ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-cc80a45/web.assets_frontend_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:59:06 Duration: 569ms
19 2,188 20m59s 484ms 3s24ms 575ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 18 20 3 1s463ms 487ms 23 4 1s947ms 486ms 01 1 548ms 548ms 03 1 486ms 486ms 04 4 1s951ms 487ms 05 8 3s936ms 492ms 06 21 10s374ms 494ms 07 176 1m37s 554ms 08 292 2m48s 576ms 09 270 2m33s 568ms 10 214 2m5s 588ms 11 320 3m15s 609ms 12 103 57s35ms 553ms 13 246 2m23s 582ms 14 204 1m56s 571ms 15 215 2m6s 586ms 16 55 28s570ms 519ms 17 28 15s207ms 543ms 18 23 11s307ms 491ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 16:59:07 Duration: 3s24ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 18:08:21 Duration: 1s927ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 11:48:11 Duration: 1s770ms
20 2,170 9m51s 235ms 1s272ms 272ms 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 #20
Day Hour Count Duration Avg duration Sep 18 22 24 5s895ms 245ms 23 120 29s345ms 244ms 00 145 35s124ms 242ms 01 21 5s88ms 242ms 02 12 2s911ms 242ms 03 18 4s463ms 247ms 04 195 47s496ms 243ms 05 72 17s812ms 247ms 06 66 16s283ms 246ms 07 162 41s428ms 255ms 08 84 24s579ms 292ms 09 39 11s924ms 305ms 10 174 53s419ms 307ms 11 162 48s936ms 302ms 12 168 45s409ms 270ms 13 204 1m3s 309ms 14 174 48s621ms 279ms 15 150 43s743ms 291ms 16 45 11s720ms 260ms 17 87 22s198ms 255ms 18 39 9s577ms 245ms 19 9 2s230ms 247ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 12:47:19 Duration: 1s272ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 19:30:33 Duration: 1s100ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 17:58:48 Duration: 871ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s89ms 54s467ms 6s881ms 169 19m22s delete from account_move_line where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 18 23 2 35s704ms 17s852ms 07 3 9s383ms 3s127ms 08 8 25s510ms 3s188ms 09 9 40s701ms 4s522ms 10 3 1m 20s307ms 11 1 4s868ms 4s868ms 12 4 21s970ms 5s492ms 13 3 15s490ms 5s163ms 14 5 13s276ms 2s655ms 15 15 1m10s 4s692ms 16 5 29s617ms 5s923ms 19 111 13m55s 7s523ms -
DELETE FROM account_move_line WHERE id IN (5722843, 5722844, 5722845, 5722846, 5722847, 5722848, 5722849, 5722850, 5722851, 5722852, 5722853, 5722854, 5722855, 5722856, 5722857, 5722858, 5722859, 5722860, 5722861, 5856988, 5856989, 5856990);
Date: 2024-09-18 14:56:30 Duration: 54s467ms
-
DELETE FROM account_move_line WHERE id IN (5855134, 5855135, 5857677, 5857678, 5857679, 5857680, 5857681, 5857682, 5857683, 5857684, 5857685, 5857686, 5857687, 5857688, 5857689, 5857690, 5857691, 5857692, 5857693, 5857694, 5857695, 5857696, 5857697, 5857698);
Date: 2024-09-18 23:03:33 Duration: 50s745ms
-
DELETE FROM account_move_line WHERE id IN (5675514, 5675515, 5675516, 5675517, 5675518, 5675519, 5675520, 5675521, 5675522, 5675523, 5675524, 5675525, 5675526, 5675527, 5858856, 5858857, 5858858, 5858859, 5858860, 5858861, 5858862);
Date: 2024-09-18 23:13:42 Duration: 44s799ms
2 809ms 4s440ms 1s64ms 832 14m45s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 18 06 1 924ms 924ms 07 50 49s701ms 994ms 08 172 3m2s 1s63ms 09 99 1m51s 1s121ms 10 107 1m58s 1s109ms 11 91 1m38s 1s81ms 12 57 55s448ms 972ms 13 90 1m35s 1s66ms 14 83 1m28s 1s65ms 15 62 1m4s 1s44ms 16 20 19s390ms 969ms -
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 ('%690-72%')) 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 ('%690-72%'))) 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 ('%690-72%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%690-72%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 14:58:58 Duration: 4s440ms
-
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 ('%8010073%')) 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 ('%8010073%'))) 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 ('%8010073%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%8010073%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 13:35:41 Duration: 3s521ms
-
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 ('%466204%')) 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 ('%466204%'))) 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 ('%466204%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%466204%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-18 14:50:05 Duration: 2s986ms
3 634ms 4s221ms 923ms 1,623 24m58s 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 Sep 18 07 101 1m24s 834ms 08 143 2m3s 862ms 09 335 5m24s 969ms 10 245 4m1s 984ms 11 102 1m44s 1s25ms 12 79 1m15s 951ms 13 348 5m18s 916ms 14 134 1m55s 860ms 15 115 1m33s 814ms 16 21 16s883ms 803ms -
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 ('%%3613%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%361-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%361-3%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:59:09 Duration: 4s221ms
-
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 ('%%36139%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%361-39%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%361-39%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:59:09 Duration: 4s172ms
-
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 ('%%654%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%6.5-4-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%6.5-4-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 13:35:42 Duration: 4s69ms
4 706ms 3s717ms 877ms 3,711 54m15s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 18 07 232 3m13s 833ms 08 553 8m10s 886ms 09 445 6m43s 906ms 10 409 6m17s 924ms 11 298 4m37s 932ms 12 255 3m30s 826ms 13 562 8m31s 910ms 14 208 2m57s 852ms 15 367 5m17s 865ms 16 370 4m45s 772ms 18 6 4s385ms 730ms 19 6 4s424ms 737ms -
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 ('%%78%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%7/8%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%7/8%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 16:10:59 Duration: 3s717ms
-
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 ('%%70608%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%70608%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%70608%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 17:05:36 Duration: 3s640ms
-
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 ('%%k3%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%k-3%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%k-3%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-18 14:50:04 Duration: 3s32ms
5 484ms 3s24ms 575ms 2,188 20m59s 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 Sep 18 20 3 1s463ms 487ms 23 4 1s947ms 486ms 01 1 548ms 548ms 03 1 486ms 486ms 04 4 1s951ms 487ms 05 8 3s936ms 492ms 06 21 10s374ms 494ms 07 176 1m37s 554ms 08 292 2m48s 576ms 09 270 2m33s 568ms 10 214 2m5s 588ms 11 320 3m15s 609ms 12 103 57s35ms 553ms 13 246 2m23s 582ms 14 204 1m56s 571ms 15 215 2m6s 586ms 16 55 28s570ms 519ms 17 28 15s207ms 543ms 18 23 11s307ms 491ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 16:59:07 Duration: 3s24ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 18:08:21 Duration: 1s927ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-76a3482/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-18 11:48:11 Duration: 1s770ms
6 376ms 1s858ms 415ms 7,019 48m34s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 18 05 21 8s183ms 389ms 06 12 4s609ms 384ms 07 420 2m55s 416ms 08 801 5m33s 415ms 09 787 5m27s 415ms 10 786 5m29s 419ms 11 930 6m35s 425ms 12 382 2m35s 408ms 13 891 6m16s 422ms 14 639 4m23s 412ms 15 688 4m43s 412ms 16 243 1m36s 397ms 17 314 2m3s 394ms 18 101 39s141ms 387ms 19 4 1s547ms 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 12:47:24 Duration: 1s858ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:58:48 Duration: 1s632ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-18 17:21:54 Duration: 1s501ms
7 299ms 2s418ms 374ms 7,018 43m47s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 18 05 21 7s114ms 338ms 06 12 3s777ms 314ms 07 419 2m35s 372ms 08 802 4m54s 367ms 09 787 4m56s 376ms 10 786 4m58s 379ms 11 929 6m27s 417ms 12 383 2m15s 353ms 13 890 5m44s 387ms 14 640 3m51s 362ms 15 687 4m11s 365ms 16 243 1m20s 332ms 17 314 1m45s 335ms 18 101 33s35ms 327ms 19 4 1s208ms 302ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 17:05:36 Duration: 2s418ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 15:46:26 Duration: 2s216ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-18 14:50:56 Duration: 2s1ms
8 315ms 1s918ms 367ms 2,535 15m30s 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 Sep 18 20 12 3s871ms 322ms 21 9 2s913ms 323ms 22 24 7s763ms 323ms 23 150 49s26ms 326ms 00 156 50s516ms 323ms 01 12 3s897ms 324ms 02 9 3s21ms 335ms 03 54 17s684ms 327ms 04 147 48s220ms 328ms 05 51 17s15ms 333ms 06 102 33s485ms 328ms 07 150 50s256ms 335ms 08 39 15s252ms 391ms 09 60 24s748ms 412ms 10 174 1m12s 418ms 11 255 1m46s 418ms 12 141 51s939ms 368ms 13 288 1m54s 398ms 14 315 2m 382ms 15 168 1m2s 372ms 16 63 21s758ms 345ms 17 90 30s269ms 336ms 18 48 15s834ms 329ms 19 18 5s917ms 328ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 16:48:53 Duration: 1s918ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 18:45:16 Duration: 1s483ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") ASC, "product_template"."id" DESC;
Date: 2024-09-18 15:02:42 Duration: 1s133ms
9 314ms 915ms 366ms 2,142 13m6s 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 #9
Day Hour Count Duration Avg duration Sep 18 20 15 4s907ms 327ms 21 15 4s809ms 320ms 22 12 3s859ms 321ms 23 132 42s918ms 325ms 00 147 47s862ms 325ms 01 21 6s795ms 323ms 02 9 2s908ms 323ms 03 18 5s948ms 330ms 04 141 45s967ms 326ms 05 60 20s85ms 334ms 06 105 34s940ms 332ms 07 189 1m7s 355ms 08 42 16s290ms 387ms 09 48 17s472ms 364ms 10 165 1m7s 406ms 11 162 1m12s 446ms 12 153 54s690ms 357ms 13 171 1m9s 406ms 14 204 1m15s 368ms 15 219 1m26s 397ms 16 24 7s966ms 331ms 17 69 23s204ms 336ms 18 15 5s68ms 337ms 19 6 1s964ms 327ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 14:26:53 Duration: 915ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 11:58:14 Duration: 881ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, COALESCE("product_template__name"."value", "product_template"."name") DESC, "product_template"."id" DESC;
Date: 2024-09-18 14:41:05 Duration: 865ms
10 235ms 1s296ms 275ms 2,007 9m12s 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 Sep 18 20 6 1s453ms 242ms 21 18 4s307ms 239ms 22 129 31s438ms 243ms 23 69 16s661ms 241ms 00 24 5s894ms 245ms 01 3 723ms 241ms 04 111 27s1ms 243ms 05 33 8s143ms 246ms 06 78 19s318ms 247ms 07 186 47s825ms 257ms 08 54 15s88ms 279ms 09 66 18s757ms 284ms 10 147 47s354ms 322ms 11 297 1m32s 310ms 12 90 23s762ms 264ms 13 156 45s855ms 293ms 14 201 56s448ms 280ms 15 165 47s49ms 285ms 16 54 13s534ms 250ms 17 63 15s987ms 253ms 18 51 12s334ms 241ms 19 6 1s427ms 237ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:54:51 Duration: 1s296ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:17:21 Duration: 672ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" DESC, "product_template"."id" DESC;
Date: 2024-09-18 15:54:52 Duration: 621ms
11 235ms 1s272ms 272ms 2,170 9m51s 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 #11
Day Hour Count Duration Avg duration Sep 18 22 24 5s895ms 245ms 23 120 29s345ms 244ms 00 145 35s124ms 242ms 01 21 5s88ms 242ms 02 12 2s911ms 242ms 03 18 4s463ms 247ms 04 195 47s496ms 243ms 05 72 17s812ms 247ms 06 66 16s283ms 246ms 07 162 41s428ms 255ms 08 84 24s579ms 292ms 09 39 11s924ms 305ms 10 174 53s419ms 307ms 11 162 48s936ms 302ms 12 168 45s409ms 270ms 13 204 1m3s 309ms 14 174 48s621ms 279ms 15 150 43s743ms 291ms 16 45 11s720ms 260ms 17 87 22s198ms 255ms 18 39 9s577ms 245ms 19 9 2s230ms 247ms -
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 12:47:19 Duration: 1s272ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 19:30:33 Duration: 1s100ms
-
SELECT "product_template".id FROM "product_template" WHERE (("product_template"."active" = true) AND (("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."list_price" ASC, "product_template"."id" DESC;
Date: 2024-09-18 17:58:48 Duration: 871ms
12 122ms 3s83ms 205ms 128,750 7h20m51s select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 18 20 3,139 8m26s 161ms 21 3,228 8m36s 159ms 22 3,234 8m37s 160ms 23 3,064 8m15s 161ms 00 3,210 8m30s 159ms 01 3,186 8m32s 160ms 02 3,317 8m30s 153ms 03 3,434 8m31s 148ms 04 3,727 9m16s 149ms 05 3,638 10m 165ms 06 4,157 10m45s 155ms 07 5,517 19m6s 207ms 08 8,449 33m30s 237ms 09 8,650 39m47s 275ms 10 8,807 39m24s 268ms 11 9,282 36m46s 237ms 12 8,799 36m26s 248ms 13 8,822 35m31s 241ms 14 8,089 30m32s 226ms 15 7,347 25m25s 207ms 16 5,268 15m34s 177ms 17 4,252 10m41s 150ms 18 4,173 10m3s 144ms 19 3,961 9m57s 150ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s83ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:05') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_951"', '["pointspring_master","calendar.alarm",19489]', '["pointspring_master","mail.channel",20]', '["pointspring_master","mail.channel",285]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",479]', '["pointspring_master","mail.channel",531]', '["pointspring_master","mail.channel",548]', '["pointspring_master","res.partner",19489]', '["pointspring_master","ir.needaction",19489]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s74ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-18 14:58:04') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_960"', '["pointspring_master","calendar.alarm",19498]', '["pointspring_master","mail.channel",54]', '["pointspring_master","mail.channel",55]', '["pointspring_master","mail.channel",469]', '["pointspring_master","res.partner",19498]', '["pointspring_master","ir.needaction",19498]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-18 14:58:58 Duration: 3s48ms
13 167ms 961ms 202ms 4,157 14m select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 18 07 8 1s647ms 205ms 08 2 379ms 189ms 09 756 2m44s 217ms 10 532 1m53s 214ms 11 257 57s152ms 222ms 12 299 56s722ms 189ms 13 410 1m25s 209ms 14 390 1m17s 197ms 15 415 1m24s 203ms 16 395 1m13s 184ms 17 419 1m16s 182ms 18 228 41s12ms 179ms 19 46 8s361ms 181ms -
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 = 51379 and fd.product_id = 199224;
Date: 2024-09-18 13:47:32 Duration: 961ms
-
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 = 51379 and fd.product_id = 253737;
Date: 2024-09-18 13:47:32 Duration: 849ms
-
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 = 51338 and fd.product_id = 171977;
Date: 2024-09-18 21:11:26 Duration: 700ms
14 163ms 1s294ms 193ms 4,612 14m53s 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 Sep 18 05 41 7s885ms 192ms 06 12 2s67ms 172ms 07 223 41s776ms 187ms 08 527 1m40s 191ms 09 804 2m38s 197ms 10 711 2m19s 195ms 11 643 2m8s 199ms 12 221 42s486ms 192ms 13 610 1m56s 190ms 14 312 58s394ms 187ms 15 372 1m13s 196ms 16 93 17s168ms 184ms 17 34 6s8ms 176ms 18 5 864ms 172ms 19 4 686ms 171ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269963 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-18 16:31:33 Duration: 1s294ms
-
UPDATE product_warehouse_inventory SET qty_available = 9.0 WHERE product_id = 265093 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-09-18 13:29:16 Duration: 923ms
-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 180751 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-09-18 19:11:53 Duration: 881ms
15 160ms 851ms 187ms 2,904 9m3s 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 Sep 18 05 4 671ms 167ms 06 4 673ms 168ms 07 216 40s308ms 186ms 08 331 1m2s 189ms 09 273 50s613ms 185ms 10 316 58s998ms 186ms 11 402 1m20s 199ms 12 158 29s22ms 183ms 13 344 1m4s 188ms 14 279 51s200ms 183ms 15 275 50s622ms 184ms 16 148 25s964ms 175ms 17 114 20s23ms 175ms 18 38 6s690ms 176ms 19 2 346ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 197885 AND warehouse_id = 42;
Date: 2024-09-18 15:13:39 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217963 AND warehouse_id = 45;
Date: 2024-09-18 16:11:50 Duration: 773ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 217505 AND warehouse_id = 43;
Date: 2024-09-18 12:12:48 Duration: 708ms
16 160ms 1s332ms 186ms 2,782 8m39s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 18 05 14 2s315ms 165ms 06 7 1s165ms 166ms 07 91 17s133ms 188ms 08 234 43s439ms 185ms 09 370 1m8s 184ms 10 362 1m9s 192ms 11 298 57s630ms 193ms 12 113 21s637ms 191ms 13 441 1m22s 186ms 14 202 38s260ms 189ms 15 424 1m18s 184ms 16 136 24s177ms 177ms 17 65 11s283ms 173ms 18 24 4s194ms 174ms 19 1 169ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 199007 AND warehouse_id = 43;
Date: 2024-09-18 14:58:56 Duration: 1s332ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 199007 AND warehouse_id = 43;
Date: 2024-09-18 14:58:58 Duration: 1s313ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 215534 AND warehouse_id = 45;
Date: 2024-09-18 16:11:49 Duration: 684ms
17 160ms 1s346ms 185ms 9,842 30m29s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 18 05 20 3s533ms 176ms 06 12 2s81ms 173ms 07 611 1m54s 186ms 08 1,125 3m29s 186ms 09 946 2m57s 187ms 10 950 2m56s 186ms 11 1,209 3m51s 191ms 12 488 1m29s 183ms 13 1,363 4m16s 188ms 14 1,088 3m21s 184ms 15 1,078 3m18s 184ms 16 407 1m12s 177ms 17 408 1m12s 177ms 18 132 23s33ms 174ms 19 5 865ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(1.0, 0) - COALESCE(0.0, 0) WHERE product_id = 218784 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 16:59:07 Duration: 1s346ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(26.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 183353 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-18 18:12:21 Duration: 744ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(352.0, 0) + COALESCE(0.0, 0) - COALESCE(12.0, 0) WHERE product_id = 213422 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-18 18:13:12 Duration: 703ms
18 166ms 1s368ms 183ms 12,113 37m7s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 18 05 35 6s46ms 172ms 06 66 11s496ms 174ms 07 206 38s57ms 184ms 08 987 3m1s 184ms 09 2,132 6m38s 186ms 10 3,435 10m30s 183ms 11 836 2m31s 181ms 12 377 1m8s 181ms 13 1,073 3m20s 187ms 14 981 3m 183ms 15 1,022 3m8s 184ms 16 947 2m48s 177ms 17 6 1s58ms 176ms 18 3 540ms 180ms 19 7 1s236ms 176ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 185567 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 13:35:40 Duration: 1s368ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((17.0 - 17.0) + (1.0 - 1.0), 0) ELSE GREATEST ((17.0 - 17.0), 0) END where product_id = 180539 and warehouse_id = 37 and company_id = 1;
Date: 2024-09-18 14:09:15 Duration: 1s238ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 444.0 IS NOT NULL THEN GREATEST ((3.0 - 3.0) + (444.0 - 445.0), 0) ELSE GREATEST ((3.0 - 3.0), 0) END where product_id = 191096 and warehouse_id = 43 and company_id = 1;
Date: 2024-09-18 13:22:04 Duration: 793ms
19 120ms 731ms 180ms 5,211 15m38s 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 #19
Day Hour Count Duration Avg duration Sep 18 07 442 1m20s 181ms 08 304 49s915ms 164ms 09 801 2m12s 165ms 10 299 55s242ms 184ms 11 411 1m24s 205ms 12 280 52s76ms 185ms 13 725 2m12s 183ms 14 833 2m25s 174ms 15 986 3m1s 183ms 16 130 23s557ms 181ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 247896) 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" = '56')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 19:11:53 Duration: 731ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 262281) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 13:26:27 Duration: 599ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206621) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-09-18 11:56:03 Duration: 539ms
20 120ms 609ms 165ms 2,203 6m3s select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 18 04 2 351ms 175ms 07 123 18s363ms 149ms 08 268 42s488ms 158ms 09 265 46s260ms 174ms 10 253 42s486ms 167ms 11 504 1m22s 163ms 12 111 26s641ms 240ms 13 251 39s210ms 156ms 14 184 29s432ms 159ms 15 188 27s912ms 148ms 16 45 6s794ms 150ms 17 8 1s73ms 134ms 18 1 140ms 140ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-aedec04/web.assets_common_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:10:57 Duration: 609ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:10:57 Duration: 577ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-cc80a45/web.assets_frontend_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-09-18 16:59:06 Duration: 569ms
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
- 274,942 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1554 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1,102 Max number of times the same event was reported
- 1,554 Total events found
Rank Times reported Error 1 1,102 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 18 20 31 21 27 22 27 23 38 00 30 01 29 02 30 03 99 04 100 05 37 06 31 07 37 08 39 09 43 10 41 11 35 12 36 13 46 14 37 15 43 16 35 17 32 18 33 19 166 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-09-18 05:50:16
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=89 FOR UPDATE NOWAIT
Date: 2024-09-18 06:09:04
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=66 FOR UPDATE NOWAIT
Date: 2024-09-18 06:40:07
2 415 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 18 00 1 04 1 05 3 06 3 07 32 08 55 09 66 10 54 11 61 12 16 13 39 14 25 15 37 16 9 17 7 18 6 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-18 13:50:30',"last_presence"='2024-09-18 13:50:30.697371' WHERE id IN (21)
Date: 2024-09-18 13:50:30
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-18 13:52:59',"last_presence"='2024-09-18 13:52:59.675122' WHERE id IN (76)
Date: 2024-09-18 13:52:59
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-18 13:56:19',"last_presence"='2024-09-18 13:56:19.754982' WHERE id IN (15)
Date: 2024-09-18 13:56:19
3 24 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 18 08 5 09 9 10 2 11 4 12 1 13 1 14 1 15 1 - ERROR: process 2545210 still waiting for ShareLock on transaction 307875566 after 1000.069 ms
- ERROR: process 2560900 still waiting for ShareLock on transaction 307892764 after 1000.047 ms
- ERROR: process 2948066 still waiting for ShareLock on transaction 308017314 after 1000.078 ms
Detail: Process holding the lock: 2545524. Wait queue: 2545210.
Context: while updating tuple (17462,18) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5709527,"write_uid"=1295,"write_date"=(now() at time zone 'UTC') WHERE id IN (1663772)Date: 2024-09-18 14:06:17
Detail: Process holding the lock: 2540420. Wait queue: 2560900.
Context: while updating tuple (17744,7) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1664010 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 != 1664010 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-18 14:36:53
Detail: Process holding the lock: 2939297. Wait queue: 2948066.
Context: while updating tuple (19240,18) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1665061 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 != 1665061 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-18 19:09:02
4 4 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 18 08 1 09 2 13 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (271838, null, 609896, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1004, 2024-09-18 12:25:04.770853, 1004, 2024-09-18 12:25:04.770853, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 494475, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-18, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 1004, (now() at time zone 'UTC'), 1004, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-09-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '609896', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494475, 1, 1) RETURNING idDate: 2024-09-18 12:25:04
Detail: Failing row contains (271878, null, esii4709k, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1040, 2024-09-18 17:59:25.032122, 1040, 2024-09-18 17:59:25.032122, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 494620, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-18, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 1040, (now() at time zone 'UTC'), 1040, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-09-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'esii4709k', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494620, 1, 1) RETURNING idDate: 2024-09-18 17:59:25
Detail: Failing row contains (271843, null, gm-a-ex2086d, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 982, 2024-09-18 13:43:21.922356, 982, 2024-09-18 13:43:21.922356, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 494490, never, 0, , 42, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-18, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 982, (now() at time zone 'UTC'), 982, (now() at time zone 'UTC'), true, false, 0.0, 42, NULL, 1, '', 'no', '2024-09-18', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'gm-a-ex2086d', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 494490, 1, 1) RETURNING idDate: 2024-09-18 13:43:22
5 3 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 18 13 2 14 1 - ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM monthly_statement_line WHERE id IN (1152136, 1152137, 1152138)
Date: 2024-09-18 18:18:29
Statement: DELETE FROM stock_inventory_line WHERE id IN (3082709, 3082797, 3082723, 3082741, 3082681, 3082801, 3082682, 3082775, 3082683, 3082720, 3082732, 3082786, 3082787, 3082684, 3082764, 3082745, 3082777, 3082744, 3082778, 3082779, 3082754, 3082714, 3082785, 3082736, 3082685, 3082686, 3082781, 3082746, 3082747, 3082748, 3082749, 3082793, 3082759, 3082710, 3082789, 3082730, 3082776, 3082794, 3082802, 3082763, 3082713, 3082739, 3082774, 3082687, 3082715, 3082688, 3082689, 3082772, 3082690, 3082691, 3082692, 3082708, 3082795, 3082784, 3082771, 3082792, 3082693, 3082765, 3082760, 3082768, 3082719, 3082782, 3082694, 3082770, 3082751, 3082756, 3082707, 3082752, 3082755, 3082753, 3082724, 3082695, 3082767, 3082743, 3082728, 3082791, 3082696, 3082750, 3082697, 3082799, 3082698, 3082766, 3082699, 3082704, 3082703, 3082800, 3082780, 3082773, 3082735, 3082761, 3082727, 3082733, 3082737, 3082740, 3082738, 3082722, 3082729, 3082796, 3082742, 3082758, 3082712, 3082769, 3082711, 3082705, 3082725, 3082716, 3082717, 3082798, 3082762, 3082757, 3082726, 3082700, 3082790, 3082706, 3082788, 3082702, 3082731, 3082718, 3082734, 3082783, 3082721, 3082701)
Date: 2024-09-18 17:22:41
Statement: DELETE FROM monthly_statement_line WHERE id IN (1256683)
Date: 2024-09-18 17:25:54
6 3 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 18 09 3 - ERROR: process 2167348 still waiting for ExclusiveLock on tuple (16705,17) of relation 42418 of database 65946 after 1000.056 ms
- ERROR: process 2166985 still waiting for ExclusiveLock on tuple (16947,9) of relation 42418 of database 65946 after 1000.039 ms
Detail: Process holding the lock: 2166984. Wait queue: 2167348.
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 != 1502791 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 != 1502791 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-18 13:07:22
Detail: Process holding the lock: 2167201. Wait queue: 2166985.
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5709316,"write_uid"=1025,"write_date"=(now() at time zone 'UTC') WHERE id IN (1663497)Date: 2024-09-18 13:24:49
7 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Sep 18 08 1 11 1 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
Detail: Key (partner_id)=(52509) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1266, (now() at time zone 'UTC'), 1266, (now() at time zone 'UTC'), 'db7cc7479a574b07ae8526c117505192', true, NULL, 1, '2024-09-18 15:26:43', 'Carter Beck', 52509, 'America/New_York', 1, 1) RETURNING idDate: 2024-09-18 15:26:43
Detail: Key (partner_id)=(35128) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1255, (now() at time zone 'UTC'), 1255, (now() at time zone 'UTC'), 'e37c07f8fe7047068212e34ce89dc089', true, NULL, 1, '2024-09-18 12:27:34', 'Shank Waste', 35128, 'America/New_York', 1, 1) RETURNING idDate: 2024-09-18 12:27:34
8 1 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #8
Day Hour Count Sep 18 10 1 - ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT "account_move"."id" as "id", "account_move"."name" as "name", "account_move"."date" as "date", "account_move"."ref" as "ref", "account_move"."narration" as "narration", "account_move"."posted_before" as "posted_before", "account_move"."move_type" as "move_type", "account_move"."to_check" as "to_check", "account_move"."journal_id" as "journal_id", "account_move"."company_id" as "company_id", "account_move"."currency_id" as "currency_id", "account_move"."partner_id" as "partner_id", "account_move"."is_move_sent" as "is_move_sent", "account_move"."partner_bank_id" as "partner_bank_id", "account_move"."payment_reference" as "payment_reference", "account_move"."payment_id" as "payment_id", "account_move"."statement_line_id" as "statement_line_id", "account_move"."amount_untaxed" as "amount_untaxed", "account_move"."amount_tax" as "amount_tax", "account_move"."amount_total" as "amount_total", "account_move"."amount_residual" as "amount_residual", "account_move"."amount_untaxed_signed" as "amount_untaxed_signed", "account_move"."amount_tax_signed" as "amount_tax_signed", "account_move"."amount_total_signed" as "amount_total_signed", "account_move"."amount_residual_signed" as "amount_residual_signed", "account_move"."payment_state" as "payment_state", "account_move"."tax_cash_basis_rec_id" as "tax_cash_basis_rec_id", "account_move"."tax_cash_basis_move_id" as "tax_cash_basis_move_id", "account_move"."auto_post" as "auto_post", "account_move"."reversed_entry_id" as "reversed_entry_id", "account_move"."fiscal_position_id" as "fiscal_position_id", "account_move"."invoice_user_id" as "invoice_user_id", "account_move"."invoice_date" as "invoice_date", "account_move"."invoice_date_due" as "invoice_date_due", "account_move"."invoice_origin" as "invoice_origin", "account_move"."invoice_incoterm_id" as "invoice_incoterm_id", "account_move"."qr_code_method" as "qr_code_method", "account_move"."invoice_source_email" as "invoice_source_email", "account_move"."invoice_partner_display_name" as "invoice_partner_display_name", "account_move"."invoice_cash_rounding_id" as "invoice_cash_rounding_id", "account_move"."secure_sequence_number" as "secure_sequence_number", "account_move"."inalterable_hash" as "inalterable_hash", "account_move"."payment_state_before_switch" as "payment_state_before_switch", "account_move"."preferred_payment_method_id" as "preferred_payment_method_id", "account_move"."debit_origin_id" as "debit_origin_id", "account_move"."duplicated_vendor_ref" as "duplicated_vendor_ref", "account_move"."extract_state" as "extract_state", "account_move"."extract_status_code" as "extract_status_code", "account_move"."extract_remote_id" as "extract_remote_id", "account_move"."sequence_generated" as "sequence_generated", "account_move"."stock_move_id" as "stock_move_id", "account_move"."release_to_pay" as "release_to_pay", "account_move"."release_to_pay_manual" as "release_to_pay_manual", "account_move"."force_release_to_pay" as "force_release_to_pay", "account_move"."transfer_model_id" as "transfer_model_id", "account_move"."tax_closing_end_date" as "tax_closing_end_date", "account_move"."tax_report_control_error" as "tax_report_control_error", "account_move"."team_id" as "team_id", "account_move"."partner_shipping_id" as "partner_shipping_id", "account_move"."asset_id" as "asset_id", "account_move"."asset_remaining_value" as "asset_remaining_value", "account_move"."asset_depreciated_value" as "asset_depreciated_value", "account_move"."asset_manually_modified" as "asset_manually_modified", "account_move"."asset_value_change" as "asset_value_change", "account_move"."website_id" as "website_id", "account_move"."state" as "state", "account_move"."branch_id" as "branch_id", "account_move"."auto_reconcile" as "auto_reconcile", "account_move"."branch_name" as "branch_name", "account_move"."invoice_action" as "invoice_action", "account_move"."sign_amount_total" as "sign_amount_total", "account_move"."sign_amount_residual" as "sign_amount_residual", "account_move"."sign_amount_untaxed" as "sign_amount_untaxed", "account_move"."invoice_part_id" as "invoice_part_id", "account_move"."invoice_product_qty" as "invoice_product_qty", "account_move"."balance_entry" as "balance_entry", "account_move"."to_check_negative" as "to_check_negative", "account_move"."non_inventory_entry" as "non_inventory_entry", "account_move"."direct_order" as "direct_order", "account_move"."warranty_invoice" as "warranty_invoice", "account_move"."email_send_eod" as "email_send_eod", "account_move"."email_sent" as "email_sent", "account_move"."payment_details" as "payment_details", "account_move"."payment_details_compute" as "payment_details_compute", "account_move"."carrier_id" as "carrier_id", "account_move"."order_type" as "order_type", "account_move"."paid_by_vc" as "paid_by_vc", "account_move"."expense_choice" as "expense_choice", "account_move"."cash_tendered" as "cash_tendered", "account_move"."change_amount" as "change_amount", "account_move"."open_invoice" as "open_invoice", "account_move"."commercial_partner_id" as "commercial_partner_id", "account_move"."partner_address_type" as "partner_address_type", "account_move"."from_ar" as "from_ar", "account_move"."reconcile_date_from_add" as "reconcile_date_from_add", "account_move"."invoice_payment_term_id" as "invoice_payment_term_id", "account_move"."related_payment_id" as "related_payment_id", "account_move"."discount_amount_applied" as "discount_amount_applied", "account_move"."invoice_origin_new" as "invoice_origin_new", "account_move"."edi_split_lock" as "edi_split_lock", "account_move"."is_edi_bill" as "is_edi_bill", "account_move"."edi_done_date" as "edi_done_date", "account_move"."edi_billed" as "edi_billed", "account_move"."edi_810_id" as "edi_810_id", "account_move"."campaign_id" as "campaign_id", "account_move"."source_id" as "source_id", "account_move"."medium_id" as "medium_id", "account_move"."message_main_attachment_id" as "message_main_attachment_id", "account_move"."access_token" as "access_token", "account_move"."sequence_prefix" as "sequence_prefix", "account_move"."sequence_number" as "sequence_number", "account_move"."create_uid" as "create_uid", "account_move"."create_date" as "create_date", "account_move"."write_uid" as "write_uid", "account_move"."write_date" as "write_date" FROM "account_move" WHERE "account_move".id IN (1663879)
Date: 2024-09-18 14:31:16