-
Global information
- Generated on Wed Mar 8 23:50:39 2023
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 282,610 log entries in 38s
- Log start from 2023-03-07 00:00:05 to 2023-03-07 23:59:31
-
Overview
Global Stats
- 953 Number of unique normalized queries
- 101,307 Number of queries
- 12h6m35s Total query duration
- 2023-03-07 00:00:05 First query
- 2023-03-07 23:56:47 Last query
- 31 queries/s at 2023-03-07 14:43:00 Query peak
- 12h6m35s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 12h6m35s Execute total duration
- 6,005 Number of events
- 17 Number of unique normalized events
- 3,300 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
- 101,307 Average queries per session
- 12h6m35s 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
- 31 queries/s Query Peak
- 2023-03-07 14:43:00 Date
SELECT Traffic
Key values
- 29 queries/s Query Peak
- 2023-03-07 15:58:01 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2023-03-07 13:28:34 Date
Queries duration
Key values
- 12h6m35s 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) Mar 07 00 3,796 0ms 18s520ms 617ms 3m2s 3m12s 3m18s 01 6,051 0ms 12s682ms 487ms 1m52s 2m12s 3m12s 02 3,586 0ms 7s501ms 457ms 1m48s 1m57s 1m58s 03 17 0ms 137ms 130ms 134ms 252ms 274ms 04 20 0ms 166ms 132ms 134ms 263ms 428ms 05 411 0ms 1s234ms 719ms 23s77ms 23s327ms 23s784ms 06 26 0ms 164ms 134ms 160ms 271ms 289ms 07 32 0ms 158ms 128ms 244ms 271ms 530ms 08 1,075 0ms 5s7ms 282ms 10s254ms 11s279ms 16s148ms 09 2,133 120ms 38s417ms 368ms 15s616ms 1m1s 1m8s 10 9,908 120ms 2s867ms 193ms 1m4s 1m13s 1m21s 11 5,762 120ms 1m13s 451ms 1m24s 1m51s 2m7s 12 6,310 120ms 8s575ms 405ms 1m16s 1m24s 1m49s 13 9,607 120ms 1m28s 433ms 2m2s 2m28s 3m9s 14 7,664 120ms 1m17s 454ms 1m30s 1m42s 2m4s 15 8,072 120ms 31s322ms 480ms 1m42s 2m7s 3m19s 16 7,821 120ms 39s954ms 443ms 1m53s 2m30s 2m46s 17 5,116 120ms 17s673ms 453ms 1m17s 1m23s 2m9s 18 7,596 120ms 38s413ms 525ms 1m59s 2m9s 2m41s 19 6,865 120ms 32s168ms 427ms 1m19s 1m46s 2m10s 20 5,879 120ms 27s757ms 403ms 1m12s 1m31s 2m14s 21 2,499 0ms 16s141ms 408ms 39s633ms 52s722ms 1m4s 22 773 0ms 29s668ms 579ms 15s518ms 49s276ms 1m 23 288 0ms 1s560ms 343ms 4s695ms 10s223ms 31s969ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 07 00 3,651 0 557ms 26s381ms 3m1s 3m12s 01 5,935 0 437ms 1m11s 1m44s 2m13s 02 3,568 0 442ms 53s927ms 1m45s 1m57s 03 17 0 130ms 127ms 134ms 255ms 04 20 0 132ms 123ms 134ms 304ms 05 222 0 347ms 5s319ms 5s817ms 6s309ms 06 26 0 134ms 130ms 160ms 282ms 07 32 0 128ms 125ms 244ms 513ms 08 1,067 0 272ms 9s785ms 10s57ms 10s664ms 09 2,066 60 364ms 10s211ms 11s332ms 52s625ms 10 9,849 0 191ms 1m1s 1m3s 1m13s 11 5,615 0 325ms 56s709ms 1m7s 1m43s 12 5,425 0 344ms 45s826ms 1m 1m11s 13 7,221 0 282ms 43s924ms 55s113ms 1m17s 14 5,451 0 331ms 45s189ms 52s49ms 1m10s 15 5,665 0 315ms 40s467ms 51s422ms 1m8s 16 5,405 0 290ms 36s148ms 48s247ms 1m9s 17 3,376 0 273ms 20s526ms 23s323ms 28s287ms 18 4,659 85 325ms 30s601ms 41s569ms 1m43s 19 4,794 0 258ms 28s511ms 37s284ms 42s559ms 20 4,058 0 243ms 23s271ms 30s414ms 36s888ms 21 1,657 0 257ms 11s470ms 16s975ms 24s441ms 22 451 0 260ms 3s524ms 4s399ms 12s876ms 23 229 0 260ms 1s325ms 2s699ms 10s223ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Mar 07 00 1 109 6 0 1s470ms 0ms 0ms 24s731ms 01 0 24 49 0 2s398ms 0ms 2s314ms 23s454ms 02 0 2 0 0 1s168ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 189 0 0 1s157ms 0ms 16s110ms 17s359ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 1 3 0 1s615ms 0ms 0ms 0ms 09 0 0 4 0 1s916ms 0ms 0ms 876ms 10 3 51 0 0 657ms 0ms 0ms 5s10ms 11 2 108 1 0 5s754ms 0ms 4s751ms 1m13s 12 96 732 6 0 620ms 7s732ms 12s129ms 28s685ms 13 307 2,008 11 0 909ms 30s33ms 46s63ms 1m57s 14 224 1,909 12 0 775ms 24s502ms 40s674ms 54s292ms 15 289 2,031 10 0 892ms 30s453ms 51s292ms 1m20s 16 236 2,082 20 0 806ms 26s904ms 45s13ms 1m33s 17 258 1,401 37 0 819ms 17s914ms 29s16ms 59s864ms 18 269 2,451 21 0 887ms 40s212ms 54s990ms 1m23s 19 236 1,759 25 0 836ms 20s530ms 38s716ms 1m27s 20 194 1,565 10 0 774ms 19s475ms 28s711ms 59s8ms 21 158 676 2 0 708ms 7s404ms 16s335ms 28s637ms 22 103 219 0 0 1s25ms 3s628ms 5s466ms 29s921ms 23 18 41 0 0 667ms 0ms 197ms 4s574ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Mar 07 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 Mar 07 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 Mar 07 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 Mar 07 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 Mar 07 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) Mar 07 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 Mar 07 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 Mar 07 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Mar 07 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
- 1,535 locks Total
Type Object Count Total Duration Average Duration (s) AccessExclusiveLock 101 2m32s 1s508ms tuple 101 2m32s 1s508ms AccessShareLock 1 3s188ms 3s188ms relation 1 3s188ms 3s188ms ExclusiveLock 3 48s404ms 16s134ms tuple 3 48s404ms 16s134ms RowExclusiveLock 1 5s260ms 5s260ms relation 1 5s260ms 5s260ms ShareLock 1,429 45m40s 1s917ms relation 5 8s549ms 1s709ms transaction 1,424 45m31s 1s918ms Total 1,535 49m9s 1s921ms Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1,483 42m35s 1s3ms 53s719ms 1s723ms delete from ir_attachment where id in (...);-
DELETE FROM ir_attachment WHERE id IN (1001586);
Date: 2023-03-07 09:04:52
-
DELETE FROM ir_attachment WHERE id IN (1013272);
Date: 2023-03-07 15:24:31
-
DELETE FROM ir_attachment WHERE id IN (1009688);
Date: 2023-03-07 13:38:30
2 27 3m46s 1s103ms 1m28s 8s407ms update account_move set write_date = write_date where id = ( select id from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) and id != ? and sequence_prefix = ( select sequence_prefix from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) and id != ? order by id desc limit ?) order by sequence_number desc limit ?) returning name;-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 462405 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 != 462405 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2023-03-07 13:42:29
3 1 1m15s 1m15s 1m15s 1m15s update product_warehouse_inventory set min_product_uom_qty = ?.?, max_product_uom_qty = ?.? where id = ?;-
update product_warehouse_inventory set min_product_uom_qty = 8.0, max_product_uom_qty = 25.0 where id = 46624;
Date: 2023-03-07 13:28:56
-
update product_warehouse_inventory set min_product_uom_qty = 8.0, max_product_uom_qty = 25.0 where id = 46624;
Date: 2023-03-07 13:28:56
4 9 25s593ms 1s42ms 5s34ms 2s843ms 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" = 1009949, "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (462412);
Date: 2023-03-07 13:44:29
5 1 13s684ms 13s684ms 13s684ms 13s684ms update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_move" SET "date" = '2023-03-07 16:15:31', "state" = 'done', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (284420, 258086, 258087, 258088, 258089, 258090, 258091, 258092, 296640, 296643, 296644, 296646, 296647, 300745, 300746, 300748, 296653, 300749, 300750, 300751, 300752, 300755, 296660, 296663, 299608, 296664, 296665, 300759, 300760, 300761, 300764, 300765, 304727, 304728, 299619, 299620, 300771, 300772, 299623, 300775);
Date: 2023-03-07 16:16:15
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:57:11', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:57:43
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:55:30', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:55:59
6 1 10s758ms 10s758ms 10s758ms 10s758ms update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order_line" SET "write_uid" = 1140, "write_date" = (now() at time zone 'UTC') WHERE id IN (100676, 100677, 100678, 100679, 100680, 100681, 100682, 100684, 100685, 100687);
Date: 2023-03-07 12:52:34
-
UPDATE "sale_order_line" SET "write_uid" = 1192, "write_date" = (now() at time zone 'UTC') WHERE id IN (101073, 101091);
Date: 2023-03-07 16:16:14
-
UPDATE "sale_order_line" SET "write_uid" = 1142, "write_date" = (now() at time zone 'UTC') WHERE id IN (100832, 100863);
Date: 2023-03-07 14:02:54
7 2 10s134ms 4s564ms 5s569ms 5s67ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434);
Date: 2023-03-07 18:43:54
-
UPDATE "stock_quant" SET "reserved_quantity" = 2.0, "write_uid" = 989, "write_date" = (now() at time zone 'UTC') WHERE id IN (215083);
Date: 2023-03-07 16:18:53
-
UPDATE "stock_quant" SET "reserved_quantity" = 2.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (139199);
Date: 2023-03-07 18:15:00
8 1 9s444ms 9s444ms 9s444ms 9s444ms update "sale_order_line" set "invoice_status" = ?, "qty_invoiced" = ?, "qty_to_invoice" = ?, "untaxed_amount_invoiced" = ?, "untaxed_amount_to_invoice" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '1.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '22.99', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 983, "write_date" = (now() at time zone 'UTC') WHERE id IN (100716, 100717);
Date: 2023-03-07 13:40:39
-
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '1.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '540.62', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (101354, 101343);
Date: 2023-03-07 18:47:58
-
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '6.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '44.52', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (100662, 100663);
Date: 2023-03-07 12:48:06
9 2 5s368ms 2s569ms 2s798ms 2s684ms update "account_move" set "is_move_sent" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "is_move_sent" = true, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (462771);
Date: 2023-03-07 14:53:11
10 2 5s271ms 2s113ms 3s157ms 2s635ms update account_move set write_date = write_date where id = ( select id from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) and sequence_prefix = ( select sequence_prefix from account_move where journal_id = ? and name != ? and sequence_prefix !~ ? and move_type not in (...) order by id desc limit ?) order by sequence_number desc limit ?) returning name;-
UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2023-03-07 13:39:28
11 3 5s14ms 1s521ms 1s968ms 1s671ms create index if not exists account_move_to_check_idx on account_move (journal_id) where to_check = true; create index if not exists account_move_payment_idx on account_move (journal_id, state, payment_state, move_type, date);-
CREATE INDEX IF NOT EXISTS account_move_to_check_idx ON account_move (journal_id) WHERE to_check = true; CREATE INDEX IF NOT EXISTS account_move_payment_idx ON account_move (journal_id, state, payment_state, move_type, date);
Date: 2023-03-07 09:04:54
-
CREATE INDEX IF NOT EXISTS account_move_to_check_idx ON account_move (journal_id) WHERE to_check = true; CREATE INDEX IF NOT EXISTS account_move_payment_idx ON account_move (journal_id, state, payment_state, move_type, date);
Date: 2023-03-07 09:05:19
-
CREATE INDEX IF NOT EXISTS account_move_to_check_idx ON account_move (journal_id) WHERE to_check = true; CREATE INDEX IF NOT EXISTS account_move_payment_idx ON account_move (journal_id, state, payment_state, move_type, date);
Date: 2023-03-07 08:48:25
12 2 3s534ms 1s551ms 1s983ms 1s767ms create unique index if not exists product_product_combination_unique on product_product (product_tmpl_id, combination_indices) where active is true;-
CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is true;
Date: 2023-03-07 08:48:18
-
CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is true;
Date: 2023-03-07 08:48:15
-
CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is true;
Date: 2023-03-07 08:47:48
13 1 3s188ms 3s188ms 3s188ms 3s188ms select "ir_model_fields".id from "ir_model_fields" where ("ir_model_fields"."model" = ?) order by "ir_model_fields"."name";-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'res.partner') ORDER BY "ir_model_fields"."name";
Date: 2023-03-07 09:05:07
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'res.partner') ORDER BY "ir_model_fields"."name";
Date: 2023-03-07 09:05:07
Queries that waited the most
Rank Wait time Query 1 1m28s 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 != 462968 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 != 462968 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 18:11:13 ]
2 1m15s update product_warehouse_inventory set min_product_uom_qty = 8.0, max_product_uom_qty = 25.0 where id = 46624;[ Date: 2023-03-07 13:28:56 ]
3 53s719ms DELETE FROM ir_attachment WHERE id IN (989434, 989214);[ Date: 2023-03-07 02:11:46 ]
4 39s58ms 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 != 463984 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 != 463984 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 18:11:13 ]
5 15s717ms 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 != 463664 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 != 463664 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 17:17:38 ]
6 13s684ms UPDATE "stock_move" SET "date" = '2023-03-07 13:37:43', "state" = 'done', "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (303437, 303438, 303441, 303443, 303447);[ Date: 2023-03-07 13:38:00 ]
7 12s402ms 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 != 463695 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 != 463695 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 17:29:21 ]
8 10s758ms UPDATE "sale_order_line" SET "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (101341);[ Date: 2023-03-07 18:44:05 ]
9 9s444ms UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '3.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '39.90', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (100475);[ Date: 2023-03-07 13:38:23 ]
10 7s567ms 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 != 464212 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 != 464212 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 18:48:02 ]
11 5s577ms 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 != 464014 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 != 464014 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 18:15:43 ]
12 5s569ms UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434);[ Date: 2023-03-07 18:43:42 ]
13 5s487ms 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 != 463988 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 != 463988 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 18:11:13 ]
14 5s260ms DELETE FROM ir_attachment WHERE id IN (1001586);[ Date: 2023-03-07 09:04:52 ]
15 5s34ms UPDATE "account_move" SET "message_main_attachment_id" = 1014491, "write_uid" = 983, "write_date" = (now() at time zone 'UTC') WHERE id IN (463182);[ Date: 2023-03-07 15:59:27 ]
16 4s952ms 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 != 462504 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 != 462504 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 13:52:33 ]
17 4s649ms 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 != 292181 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 != 292181 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 17:35:29 ]
18 4s644ms UPDATE "account_move" SET "message_main_attachment_id" = 1011926, "write_uid" = 961, "write_date" = (now() at time zone 'UTC') WHERE id IN (462723);[ Date: 2023-03-07 14:43:22 ]
19 4s597ms 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 != 463029 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 != 463029 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-03-07 15:51:34 ]
20 4s564ms UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434);[ Date: 2023-03-07 18:43:53 ]
-
Queries
Queries by type
Key values
- 80,459 Total read queries
- 20,848 Total write queries
Queries by database
Key values
- unknown Main database
- 101,307 Requests
- 12h6m35s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 101,434 Requests
User Request type Count Duration unknown Total 101,434 12h8m11s copy to 145 9m10s cte 727 13m2s ddl 7 9s986ms delete 219 6m50s insert 2,394 34m23s select 80,517 6h54m56s update 17,425 4h9m38s Duration by user
Key values
- 12h8m11s (unknown) Main time consuming user
User Request type Count Duration unknown Total 101,434 12h8m11s copy to 145 9m10s cte 727 13m2s ddl 7 9s986ms delete 219 6m50s insert 2,394 34m23s select 80,517 6h54m56s update 17,425 4h9m38s Queries by host
Key values
- unknown Main host
- 101,434 Requests
- 12h8m11s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 101,307 Requests
- 12h6m35s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2023-03-07 11:55:41 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 72,421 100-500ms duration
Slowest individual queries
Rank Duration Query 1 1m28s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116480, 270465, 270466, 273667, 270467, 116481, 270468, 116482, 273672, 261513, 261514, 116747, 116748, 261645, 273680, 273682, 261652, 261653, 116503, 116504, 116550, 116806, 116646, 116647, 116648, 116649, 116650, 116523, 116524, 116525, 116807, 208052, 208053, 116536, 116537, 297274, 117053, 249410, 116803, 116547, 116804, 208068, 249411, 297282, 116548, 116805, 208073, 249412, 116549, 117070, 117071, 185168, 117072, 117073, 185171, 249413, 116437, 185173, 243159, 185178, 280412, 243164, 243166, 243168, 259808, 259815, 244586, 259819, 116588, 259820, 116589, 273900, 116590, 273919, 116591, 261497, 261499, 273917, 273918, 116479);[ Date: 2023-03-07 13:29:01 ]
2 1m22s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (270464, 116993, 261505, 116994, 116745, 116746, 116619, 116620, 260234, 261515, 273679, 261644, 260241, 273681, 261651, 116500, 116501, 116502, 116636, 116637, 116511, 116512, 274081, 116513, 123683, 116644, 274083, 116645, 208039, 116520, 116521, 274085, 116522, 116787, 116533, 116534, 116535, 208056, 297273, 117051, 117052, 297279, 116544, 116672, 116801, 249408, 297281, 116545, 116802, 249409, 116546, 116425, 116426, 117068, 117069, 185167, 116434, 116435, 116436, 243158, 185175, 243162, 116571, 116701, 259805, 116702, 116578, 244584, 116585, 116586, 273899, 244585, 259818, 116587, 273906, 273914, 116476, 116477, 116478, 270463);[ Date: 2023-03-07 13:25:20 ]
3 1m17s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (273922, 273924, 273925, 116831, 208033, 208034, 208035, 208036, 116832, 116833, 208044, 208045, 208046, 208047, 208048, 116834, 270456, 116835, 208057, 249402, 208058, 208059, 208060, 270455, 208061, 208062, 208063, 208070, 208071, 185163, 249420, 249421, 116558, 116815, 116559, 116816, 116560, 116817, 208076, 249422, 116818, 116819, 116820, 116821, 117082, 117083, 117084, 117085, 116822, 116823, 116824, 116825, 116826, 116827, 116828, 116829, 116830, 270457, 208077, 270441, 270442, 270443, 270444, 270445, 270446, 270447, 270448, 270449, 270450, 273907, 273908, 273909, 273910, 208079, 270451, 270452, 270453, 273915, 273916, 270454);[ Date: 2023-03-07 14:22:35 ]
4 1m17s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (273920, 273921, 116483, 116484, 270469, 270470, 273668, 273923, 116485, 273669, 273675, 273676, 116486, 273670, 116487, 273671, 116488, 185162, 117081, 208040, 208042, 116554, 208050, 116555, 208054, 116556, 249401, 116811, 116557, 116812, 116813, 208069, 249414, 116551, 116808, 185161, 249415, 116552, 116809, 249416, 116553, 116810, 249417, 185169, 117074, 117075, 117076, 117077, 117078, 117079, 223320, 185176, 185177, 185179, 185180, 208074, 117080, 259807, 208075, 259809, 259810, 116814, 270436, 259812, 270437, 249418, 270438, 270439, 249419, 270440, 116489, 273901, 273902, 273903, 116592, 116593, 116594, 116595, 273904, 261501);[ Date: 2023-03-07 13:50:11 ]
5 1m16s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116992, 261510, 116743, 116744, 116618, 273674, 273678, 260239, 260240, 261649, 261650, 116499, 123672, 116634, 116635, 116510, 208031, 274079, 116769, 116642, 116643, 117028, 116519, 116904, 116905, 116910, 116911, 116785, 116786, 275379, 116532, 208051, 116792, 117049, 116793, 117050, 249400, 116670, 116799, 249407, 297278, 116543, 116671, 116800, 116424, 116681, 117066, 117067, 273100, 273913, 177227, 116433, 185172, 185174, 116570, 116699, 116700, 259804, 243167, 116577, 243169, 116710, 244582, 116584, 259817, 116711, 244583, 261503, 117102, 117103, 116976, 116721, 116977, 270461, 116729, 270462, 116475, 232061, 116734, 116991);[ Date: 2023-03-07 13:07:48 ]
6 1m15s update product_warehouse_inventory set min_product_uom_qty = 8.0, max_product_uom_qty = 25.0 where id = 46624;[ Date: 2023-03-07 13:28:56 ]
7 1m13s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116742, 116998, 116616, 117128, 117002, 261512, 116617, 116493, 260238, 273677, 261648, 116497, 116498, 116755, 116629, 117014, 116633, 116508, 274077, 116509, 116768, 116641, 117027, 116517, 116518, 116903, 116909, 117038, 116784, 208049, 116530, 116531, 134324, 116791, 117048, 116669, 116541, 116798, 116925, 116929, 116990, 232060, 249406, 297277, 116542, 116423, 116680, 116937, 117065, 273099, 273912, 293580, 116688, 116432, 185170, 116947, 116568, 116569, 116698, 116444, 243165, 116575, 116576, 261217, 259811, 116709, 116582, 244581, 116583, 117101, 116975, 116720, 270460, 170739, 116728, 116473, 116474, 117116, 116733, 116606);[ Date: 2023-03-07 11:41:11 ]
8 1m13s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116490, 116494, 116599, 116369, 116370, 116371, 116372, 116373, 116374, 116375, 116505, 116378, 116379, 116381, 116382, 116383, 116384, 116385, 116386, 116387, 116388, 116389, 116514, 116391, 116392, 116393, 116396, 116398, 116526, 116400, 116527, 116402, 116404, 116405, 116406, 116407, 116409, 116410, 116411, 116538, 116414, 116415, 116416, 116417, 116418, 116419, 116427, 116428, 116561, 116562, 116565, 116438, 116439, 116441, 116572, 116445, 116446, 116447, 116448, 116449, 116450, 116451, 116452, 116579, 116454, 116455, 116456, 116458, 116459, 116460, 116462, 116463, 116464, 116465, 116466, 116596, 116469, 116470, 116597, 116602);[ Date: 2023-03-07 11:25:31 ]
9 1m13s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (117120, 117123, 116996, 117126, 261511, 117000, 273673, 261643, 117132, 260236, 116492, 117135, 116472, 117009, 117138, 276755, 117012, 302993, 116496, 117144, 274073, 117018, 117147, 116377, 117021, 117150, 116507, 117152, 117025, 117154, 116516, 208037, 294693, 117033, 117163, 117036, 116395, 288560, 116529, 117042, 117046, 297275, 249404, 116413, 116540, 117055, 117060, 116421, 269766, 117063, 293578, 185165, 242381, 273101, 116430, 177364, 116564, 116567, 243161, 116443, 116574, 117087, 261215, 117091, 244579, 117093, 270458, 117095, 259816, 116971, 117099, 116973, 273905, 117106, 116468, 116982, 116984, 117114, 116988, 232063);[ Date: 2023-03-07 11:37:47 ]
10 1m12s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116609, 116737, 116611, 116739, 116613, 116621, 116749, 116623, 116624, 116750, 116626, 116752, 116756, 116757, 116630, 116882, 116760, 116883, 116762, 116885, 116764, 116765, 116638, 116886, 116887, 116888, 116770, 116890, 116893, 116773, 116894, 116895, 116776, 116777, 116898, 116651, 116779, 116653, 116780, 116781, 116656, 116906, 116658, 116912, 116660, 116661, 116788, 116913, 116664, 116914, 116666, 116735, 116794, 116795, 116673, 116675, 116676, 116677, 116682, 116916, 116685, 116689, 116690, 116693, 116900, 116695, 116703, 116706, 116896, 116712, 116713, 116714, 116717, 116722, 116723, 116725, 116899, 116730, 116603, 116607);[ Date: 2023-03-07 11:27:19 ]
11 1m12s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (117121, 117122, 261507, 117124, 117125, 273665, 117129, 117130, 117131, 260235, 117134, 261646, 117136, 117137, 276754, 117139, 117140, 117141, 117142, 117143, 264211, 274071, 117146, 116376, 117148, 117149, 208030, 117151, 116380, 117153, 117155, 117156, 117157, 117158, 117159, 117160, 117161, 117162, 294692, 117164, 117165, 117166, 117167, 288559, 116394, 116397, 116399, 116401, 116403, 116408, 249403, 116412, 297280, 116420, 269765, 180041, 232062, 273098, 185164, 242380, 293577, 116429, 243160, 116440, 116442, 198751, 244578, 261218, 270435, 259813, 116453, 116457, 273898, 116461, 116390, 117112, 117113, 117117, 117118, 117119);[ Date: 2023-03-07 11:31:23 ]
12 1m12s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (232064, 273666, 116741, 116997, 116615, 117127, 117001, 261509, 117133, 260237, 261647, 116754, 116628, 117013, 116759, 116632, 117145, 274075, 117022, 116767, 116640, 117026, 116772, 116985, 116902, 116775, 208038, 294694, 116908, 117037, 116655, 116783, 288561, 116790, 116663, 117047, 116921, 116989, 116668, 116797, 116924, 249405, 116928, 117056, 297276, 273911, 117061, 116422, 116679, 116936, 117064, 293579, 116684, 185166, 116687, 273102, 116431, 116946, 116692, 116697, 243163, 116959, 117088, 116705, 261216, 116708, 116581, 244580, 259814, 117096, 270459, 116716, 117100, 116974, 116719, 116727, 116601, 117115, 116732, 116605);[ Date: 2023-03-07 11:39:24 ]
13 1m12s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116608, 116736, 116610, 116738, 116612, 116740, 116614, 116491, 116622, 116495, 116751, 116625, 116753, 116627, 116884, 116758, 116631, 116761, 116506, 116763, 116889, 116891, 116766, 116639, 116897, 116515, 116771, 116901, 116774, 116778, 116907, 116652, 116654, 116782, 116528, 116657, 116659, 116915, 116789, 116662, 116918, 116920, 116665, 116539, 116667, 116796, 116923, 116927, 116674, 116678, 116935, 116683, 116686, 116942, 116945, 116563, 116691, 116949, 116566, 116694, 116696, 116951, 116956, 116573, 116958, 116704, 116707, 116580, 116963, 116965, 116715, 116718, 116467, 116724, 116598, 116471, 116600, 116726, 116731, 116604);[ Date: 2023-03-07 11:35:38 ]
14 1m12s UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116995, 116999, 117006, 117007, 117008, 117011, 117017, 117019, 117020, 117023, 117024, 117111, 117029, 117030, 117031, 117032, 117034, 117035, 117039, 117040, 117041, 117043, 117044, 116917, 117045, 116919, 116922, 116926, 117054, 117057, 116930, 117058, 116932, 116933, 116934, 117059, 117062, 116938, 116939, 116940, 116941, 116943, 116944, 116948, 116950, 116952, 116953, 116954, 116955, 116957, 117086, 116960, 116961, 116962, 117089, 116964, 117090, 116966, 116967, 116968, 116969, 116970, 117092, 116972, 117094, 117097, 117098, 117104, 117105, 116978, 116979, 116980, 116981, 117107, 116983, 117108, 117109, 116986, 116987, 117110);[ Date: 2023-03-07 11:29:46 ]
15 51s126ms UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116864, 116865, 116866, 116867, 116868, 116869, 116870, 116871, 116872, 116873, 116874, 116875, 116876, 116877, 116878, 116879, 116880, 116881, 208055, 208064, 208065, 208066, 208067, 208072, 171608, 116836, 116837, 116838, 116839, 116840, 116841, 116842, 116843, 116844, 116845, 116846, 116847, 116848, 116849, 116850, 116851, 116852, 116853, 116854, 116855, 116856, 116857, 116858, 116859, 116860, 116861, 116862, 116863);[ Date: 2023-03-07 14:34:12 ]
16 39s954ms UPDATE "stock_move" SET "date" = '2023-03-07 16:15:31', "state" = 'done', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (284420, 258086, 258087, 258088, 258089, 258090, 258091, 258092, 296640, 296643, 296644, 296646, 296647, 300745, 300746, 300748, 296653, 300749, 300750, 300751, 300752, 300755, 296660, 296663, 299608, 296664, 296665, 300759, 300760, 300761, 300764, 300765, 304727, 304728, 299619, 299620, 300771, 300772, 299623, 300775);[ Date: 2023-03-07 16:16:15 ]
17 38s417ms 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: 2023-03-07 09:01:36 ]
18 38s413ms 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: 2023-03-07 18:17:30 ]
19 36s846ms 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: 2023-03-07 18:16:40 ]
20 32s168ms UPDATE "stock_move" SET "date" = '2023-03-07 19:57:11', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);[ Date: 2023-03-07 19:57:43 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1h18m3s 11,217 361ms 2s465ms 417ms select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 07 00 844 7m40s 546ms 01 1,500 10m59s 439ms 02 948 7m8s 451ms 05 189 1m12s 380ms 08 600 3m46s 377ms 09 1,199 7m32s 377ms 10 1,192 7m58s 401ms 11 1,581 10m47s 409ms 12 1,418 9m27s 399ms 13 1,162 7m40s 396ms 14 401 2m38s 396ms 15 183 1m11s 389ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 188925 and item_demand_plan_id = 2760 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:20 Duration: 2s465ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189455 and item_demand_plan_id = 2755 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:54:08 Duration: 2s151ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189203 and item_demand_plan_id = 2756 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:31 Duration: 2s132ms
2 59m21s 4,015 602ms 6s714ms 887ms select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 07 00 841 16m32s 1s179ms 01 1,462 20m19s 834ms 02 941 12m40s 808ms 11 368 5m8s 837ms 12 220 2m39s 722ms 15 183 2m2s 668ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 188574)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:54:26 Duration: 6s714ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189486)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2758)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 01:00:31 Duration: 6s358ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189019)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:59:19 Duration: 5s397ms
3 38m13s 17,134 120ms 358ms 133ms 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 #3
Day Hour Count Duration Avg duration Mar 07 00 869 2m26s 168ms 01 1,584 3m46s 142ms 02 958 2m19s 145ms 06 1 137ms 137ms 10 6,751 14m22s 127ms 11 1,648 3m37s 132ms 12 341 46s945ms 137ms 13 443 1m 135ms 14 345 45s927ms 133ms 15 968 2m8s 132ms 16 554 1m12s 131ms 17 269 34s684ms 128ms 18 651 1m25s 130ms 19 701 1m31s 131ms 20 536 1m8s 128ms 21 312 39s708ms 127ms 22 101 12s677ms 125ms 23 102 12s886ms 126ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189018, 188475, 188476, 188496, 188504, 188515, 188516, 188517, 188518, 188522, 188534, 188535, 188551, 188553, 188554, 188558, 188565, 188567, 188571, 188573, 188574, 188596, 188603, 188624, 188640, 188643, 188644, 188675, 188683, 188700, 188716, 188717, 188719, 188720, 188722, 188723, 188727, 188728, 188735, 188736, 188737, 188751, 188752, 188760, 188762, 188780, 188789, 188793, 188802, 188803, 188804, 188805, 188806, 188810, 188822, 188824, 188828, 188850, 188851, 188852, 188854, 188856, 188861, 188862, 188877, 188892, 188899, 188905, 188924, 188925, 188942, 188943, 188953, 188954, 188955, 188956, 188987, 189004, 189005, 189009, 189015, 189016, 189019, 189020, 189027, 189028, 189034, 189041, 189042, 189045, 189058, 189061, 189065, 189067, 189068, 189079, 189083, 189084, 189098, 189101, 189106, 189111, 189114, 189119, 189141, 189158, 189168, 189181, 189183, 189189, 189190, 189203, 189290, 189291, 189292, 189295, 189296, 189298, 189309, 189318, 189331, 189335, 189345, 189371, 189424, 189427, 189436, 189445, 189446, 189455, 189464, 189469, 189476, 189485, 189486, 189565, 189567, 189568, 189572, 189589, 189592, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:55:35 Duration: 358ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (188616, 188487, 188517, 188518, 188525, 188537, 188558, 188565, 188569, 188570, 188571, 188572, 188573, 188574, 188578, 188579, 188593, 188596, 188597, 188598, 188599, 188601, 188602, 188603, 188610, 188639, 188640, 188643, 188644, 188650, 188716, 188717, 188719, 188722, 188723, 188727, 188728, 188733, 188734, 188735, 188736, 188760, 188761, 188789, 188793, 188802, 188803, 188805, 188806, 188824, 188851, 188852, 188854, 188858, 188862, 188876, 188893, 188903, 188906, 188924, 188940, 188942, 188943, 188954, 188955, 188963, 188984, 189004, 189018, 189019, 189020, 189021, 189027, 189045, 189065, 189069, 189080, 189098, 189101, 189114, 189117, 189163, 189181, 189183, 189189, 189195, 189217, 189218, 189290, 189292, 189295, 189296, 189303, 189313, 189319, 189331, 189335, 189344, 189357, 189434, 189436, 189445, 189446, 189469, 189474, 189476, 189485, 189486, 189565, 189567, 189578, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:59:28 Duration: 330ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189028, 188850, 188851, 188852, 188854, 188856, 188861, 188862, 188877, 188892, 188899, 188905, 188924, 188925, 188942, 188943, 188953, 188954, 188955, 188956, 188987, 189004, 189005, 189009, 189015, 189016, 189018, 189019, 189020, 189027, 189034, 189041, 189042, 189045, 189058, 189061, 189065, 189067, 189068, 189079, 189083, 189084, 189098, 189101, 189106, 189111, 189114, 189119, 189141, 189158, 189168, 189181, 189183, 189189, 189190, 189203, 189290, 189291, 189292, 189295, 189296, 189298, 189309, 189318, 189331, 189335, 189345, 189371, 189424, 189427, 189436, 189445, 189446, 189455, 189464, 189469, 189476, 189485, 189486, 189565, 189567, 189568, 189572, 189589, 189592, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:56:01 Duration: 327ms
4 36m29s 3,898 515ms 1s133ms 561ms 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 Mar 07 10 14 8s498ms 607ms 11 6 3s251ms 541ms 12 218 2m1s 557ms 13 570 5m29s 578ms 14 360 3m23s 563ms 15 378 3m35s 568ms 16 464 4m21s 563ms 17 351 3m13s 550ms 18 346 3m13s 558ms 19 629 5m50s 556ms 20 378 3m30s 557ms 21 114 1m1s 543ms 22 55 29s649ms 539ms 23 15 8s56ms 537ms -
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 ('%%pl1315%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1315%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1315%'))) 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: 2023-03-07 13:42:45 Duration: 1s133ms
-
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 ('%%a470%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a470%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a470%'))) 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: 2023-03-07 13:42:45 Duration: 1s116ms
-
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 ('%%a4707%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4707%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4707%'))) 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: 2023-03-07 13:42:45 Duration: 1s82ms
5 27m9s 610 880ms 39s954ms 2s671ms update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 07 10 4 5s859ms 1s464ms 11 4 12s498ms 3s124ms 12 19 35s541ms 1s870ms 13 88 2m56s 2s2ms 14 70 2m37s 2s252ms 15 76 4m53s 3s866ms 16 67 3m47s 3s392ms 17 39 1m23s 2s151ms 18 127 5m8s 2s426ms 19 43 2m45s 3s845ms 20 57 2m17s 2s420ms 21 16 25s289ms 1s580ms -
UPDATE "stock_move" SET "date" = '2023-03-07 16:15:31', "state" = 'done', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (284420, 258086, 258087, 258088, 258089, 258090, 258091, 258092, 296640, 296643, 296644, 296646, 296647, 300745, 300746, 300748, 296653, 300749, 300750, 300751, 300752, 300755, 296660, 296663, 299608, 296664, 296665, 300759, 300760, 300761, 300764, 300765, 304727, 304728, 299619, 299620, 300771, 300772, 299623, 300775);
Date: 2023-03-07 16:16:15 Duration: 39s954ms
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:57:11', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:57:43 Duration: 32s168ms
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:55:30', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:55:59 Duration: 28s280ms
6 25m43s 947 875ms 31s322ms 1s629ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 07 10 1 2s844ms 2s844ms 11 2 1s784ms 892ms 12 30 58s35ms 1s934ms 13 103 3m2s 1s769ms 14 80 1m55s 1s443ms 15 110 3m42s 2s25ms 16 128 3m4s 1s439ms 17 90 1m57s 1s304ms 18 167 4m20s 1s557ms 19 101 2m37s 1s563ms 20 82 2m7s 1s557ms 21 25 58s690ms 2s347ms 22 28 54s139ms 1s933ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (304523, 304529, 304530, 304531, 304532, 304533, 304534, 304535, 304536, 304537, 304538, 304539, 304540, 304548, 304549, 304550, 304553, 304555, 304558, 304561, 304562, 304565, 304566, 304567, 304568, 304569, 304570, 304571, 304575, 304577, 304578, 304582, 304584, 304585);
Date: 2023-03-07 15:33:59 Duration: 31s322ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (306048, 306049, 306050, 306051, 306052, 306053, 306054, 306055, 306056, 306057, 306058, 306059, 306060, 306061, 306062, 306063, 306064, 306065, 306066, 306067, 306068, 306069, 306070, 306071, 306072, 306073, 306074, 306075, 306076, 306077, 306078, 306079, 306080);
Date: 2023-03-07 22:34:19 Duration: 29s668ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 1020, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304130, 304133, 304134, 304135, 304136, 304137, 304138, 304118, 304119, 304120, 304121, 304124, 304126);
Date: 2023-03-07 13:28:56 Duration: 16s335ms
7 23m18s 1,121 873ms 11s738ms 1s247ms update "stock_move" set "current_warehouse_qty" = ?.?, "is_done" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 07 00 1 915ms 915ms 10 6 5s571ms 928ms 11 13 11s934ms 918ms 12 17 17s320ms 1s18ms 13 132 2m34s 1s170ms 14 129 2m27s 1s144ms 15 168 3m45s 1s342ms 16 156 3m38s 1s398ms 17 63 1m16s 1s221ms 18 209 4m22s 1s255ms 19 117 2m26s 1s255ms 20 86 1m45s 1s231ms 21 24 24s494ms 1s20ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "is_done" = true, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (294049, 294050, 294051, 294052, 294055, 294056, 294057, 294058, 294059, 294060, 294045, 294046);
Date: 2023-03-07 18:29:10 Duration: 11s738ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (299619, 284420, 299620, 300771, 299623, 300745, 299608, 304728, 296664, 296665);
Date: 2023-03-07 16:17:05 Duration: 9s539ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (293381, 299559, 299562, 303690, 299153, 299154, 299571, 299576, 299577, 303676);
Date: 2023-03-07 20:11:38 Duration: 9s346ms
8 17m17s 14 51s126ms 1m28s 1m14s update "stock_move" set "branch_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 07 11 8 9m44s 1m13s 13 4 5m24s 1m21s 14 2 2m8s 1m4s -
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116480, 270465, 270466, 273667, 270467, 116481, 270468, 116482, 273672, 261513, 261514, 116747, 116748, 261645, 273680, 273682, 261652, 261653, 116503, 116504, 116550, 116806, 116646, 116647, 116648, 116649, 116650, 116523, 116524, 116525, 116807, 208052, 208053, 116536, 116537, 297274, 117053, 249410, 116803, 116547, 116804, 208068, 249411, 297282, 116548, 116805, 208073, 249412, 116549, 117070, 117071, 185168, 117072, 117073, 185171, 249413, 116437, 185173, 243159, 185178, 280412, 243164, 243166, 243168, 259808, 259815, 244586, 259819, 116588, 259820, 116589, 273900, 116590, 273919, 116591, 261497, 261499, 273917, 273918, 116479);
Date: 2023-03-07 13:29:01 Duration: 1m28s
-
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (270464, 116993, 261505, 116994, 116745, 116746, 116619, 116620, 260234, 261515, 273679, 261644, 260241, 273681, 261651, 116500, 116501, 116502, 116636, 116637, 116511, 116512, 274081, 116513, 123683, 116644, 274083, 116645, 208039, 116520, 116521, 274085, 116522, 116787, 116533, 116534, 116535, 208056, 297273, 117051, 117052, 297279, 116544, 116672, 116801, 249408, 297281, 116545, 116802, 249409, 116546, 116425, 116426, 117068, 117069, 185167, 116434, 116435, 116436, 243158, 185175, 243162, 116571, 116701, 259805, 116702, 116578, 244584, 116585, 116586, 273899, 244585, 259818, 116587, 273906, 273914, 116476, 116477, 116478, 270463);
Date: 2023-03-07 13:25:20 Duration: 1m22s
-
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (273922, 273924, 273925, 116831, 208033, 208034, 208035, 208036, 116832, 116833, 208044, 208045, 208046, 208047, 208048, 116834, 270456, 116835, 208057, 249402, 208058, 208059, 208060, 270455, 208061, 208062, 208063, 208070, 208071, 185163, 249420, 249421, 116558, 116815, 116559, 116816, 116560, 116817, 208076, 249422, 116818, 116819, 116820, 116821, 117082, 117083, 117084, 117085, 116822, 116823, 116824, 116825, 116826, 116827, 116828, 116829, 116830, 270457, 208077, 270441, 270442, 270443, 270444, 270445, 270446, 270447, 270448, 270449, 270450, 273907, 273908, 273909, 273910, 208079, 270451, 270452, 270453, 273915, 273916, 270454);
Date: 2023-03-07 14:22:35 Duration: 1m17s
9 16m42s 7,407 120ms 315ms 135ms 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 #9
Day Hour Count Duration Avg duration Mar 07 11 6 917ms 152ms 12 274 37s550ms 137ms 13 1,074 2m28s 138ms 14 1,258 2m50s 135ms 15 992 2m14s 135ms 16 1,255 2m51s 136ms 17 419 55s335ms 132ms 18 277 36s944ms 133ms 19 915 2m2s 134ms 20 819 1m48s 132ms 21 118 15s353ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 178688)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 13:42:45 Duration: 315ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 181407)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 14:43:00 Duration: 280ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 37) AND ("product_warehouse_inventory"."product_id" = 181132)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 16:16:07 Duration: 258ms
10 14m31s 1,553 518ms 939ms 561ms 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 #10
Day Hour Count Duration Avg duration Mar 07 11 5 2s751ms 550ms 12 119 1m6s 561ms 13 179 1m41s 568ms 14 132 1m14s 561ms 15 260 2m26s 565ms 16 255 2m23s 564ms 17 185 1m42s 553ms 18 212 1m58s 559ms 19 103 57s57ms 553ms 20 39 21s668ms 555ms 21 62 34s4ms 548ms 23 2 1s129ms 564ms -
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 ('%%n28302272%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-72%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-72%'))) 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: 2023-03-07 16:10:27 Duration: 939ms
-
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 ('%%n283022%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-%'))) 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: 2023-03-07 16:10:27 Duration: 919ms
-
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 ('%%4302666%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%4302666%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%4302666%'))) 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: 2023-03-07 15:28:59 Duration: 899ms
11 14m11s 1,217 662ms 1s139ms 699ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 07 11 6 4s247ms 707ms 12 46 32s648ms 709ms 13 226 2m39s 706ms 14 149 1m44s 699ms 15 166 1m55s 697ms 16 141 1m39s 702ms 17 107 1m14s 692ms 18 111 1m17s 700ms 19 116 1m20s 696ms 20 88 1m1s 694ms 21 40 27s539ms 688ms 22 21 14s277ms 679ms -
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 ('%90-70-28x%')) 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 ('%90-70-28x%'))) 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 ('%90-70-28x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%90-70-28x%')))))) 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: 2023-03-07 16:25:21 Duration: 1s139ms
-
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 ('%sp04-020%')) 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 ('%sp04-020%'))) 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 ('%sp04-020%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sp04-020%')))))) 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: 2023-03-07 13:23:08 Duration: 1s18ms
-
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 ('%sfp3030c%')) 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 ('%sfp3030c%'))) 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 ('%sfp3030c%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sfp3030c%')))))) 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: 2023-03-07 12:25:28 Duration: 969ms
12 14m7s 799 876ms 4s600ms 1s60ms update "stock_move" set "delay_alert_date" = ?, "is_done" = false, "picking_code" = ?, "product_qty" = ?.?, "reference" = ?, "unit_factor" = ?.?, "weight" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Mar 07 10 3 2s942ms 980ms 11 2 1s789ms 894ms 12 43 42s515ms 988ms 13 103 1m53s 1s98ms 14 67 1m9s 1s32ms 15 70 1m13s 1s52ms 16 73 1m15s 1s34ms 17 96 1m57s 1s221ms 18 70 1m19s 1s136ms 19 139 2m21s 1s16ms 20 60 1m2s 1s47ms 21 61 56s565ms 927ms 23 12 10s920ms 910ms -
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '13-T/OUT/07019', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (304749, 304750, 304751, 304753, 304755);
Date: 2023-03-07 16:20:36 Duration: 4s600ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'incoming', "product_qty" = 125.0, "reference" = '13-T/IN/04033', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (305106, 305100, 305102, 305103);
Date: 2023-03-07 17:55:49 Duration: 4s552ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '10-I/OUT/05306', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 972, "write_date" = (now() at time zone 'UTC') WHERE id IN (304975, 304976, 304977, 304978, 304979);
Date: 2023-03-07 17:29:04 Duration: 4s544ms
13 12m59s 5,253 120ms 452ms 148ms 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 #13
Day Hour Count Duration Avg duration Mar 07 00 289 56s456ms 195ms 01 404 1m11s 177ms 02 281 49s912ms 177ms 03 17 2s222ms 130ms 04 20 2s647ms 132ms 05 30 3s826ms 127ms 06 25 3s350ms 134ms 07 32 4s120ms 128ms 08 73 9s683ms 132ms 09 104 13s794ms 132ms 10 287 42s304ms 147ms 11 278 44s330ms 159ms 12 390 58s445ms 149ms 13 498 1m10s 142ms 14 363 50s880ms 140ms 15 366 50s957ms 139ms 16 348 48s449ms 139ms 17 209 27s857ms 133ms 18 393 53s714ms 136ms 19 420 57s143ms 136ms 20 267 35s928ms 134ms 21 99 12s956ms 130ms 22 40 5s176ms 129ms 23 20 2s536ms 126ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_common_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5ea4658/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 12:22:57 Duration: 452ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_frontend_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-daca8bb/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 02:01:10 Duration: 430ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_common_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5ea4658/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 00:55:13 Duration: 400ms
14 11m22s 715 877ms 1s386ms 955ms insert into "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), false, null, null, ?, ?, ?, ?, ?, ?, ?, ?, ?, null, ?, ?, ?, ?, ?, ?, ?, ?, false, ?, ?, ?, ?, ?) returning id;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 07 10 3 2s848ms 949ms 11 2 1s797ms 898ms 12 45 43s928ms 976ms 13 114 1m50s 972ms 14 70 1m7s 959ms 15 55 52s868ms 961ms 16 70 1m8s 974ms 17 72 1m7s 940ms 18 85 1m20s 951ms 19 110 1m42s 934ms 20 63 59s389ms 942ms 21 26 24s513ms 942ms -
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 14:19:23', '2023-03-07 14:19:23', 'Bolt', 63355, 5, 437, 'new_product', '[327-115] Bolt', NULL, 'I-04981', 37992, 330, '0', 'make_to_stock', 216506, 1, '1.00', false, 371, 100893, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 14:20:36 Duration: 1s386ms
-
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 12:40:53', '2023-03-07 12:40:53', '3/4" U-Bolt Nut', 63388, 5, 437, 'new_product', '[3/4] 3/4" U-Bolt Nut', NULL, 'I-04974', 34093, 330, '0', 'make_to_stock', 213564, 1, '8.00', false, 371, 100914, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 14:47:30 Duration: 1s285ms
-
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 18:30:54', '2023-03-07 18:30:54', 'CLAMP,5in. SS PRE-FORM', 63702, 5, 437, 'new_product', '[PF-5SS] CLAMP,5in. SS PRE-FORM', NULL, 'I-05014', 51178, 330, '0', 'make_to_stock', 206046, 1, '2.00', false, 371, 101348, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 18:44:19 Duration: 1s259ms
15 11m8s 103 5s619ms 10s52ms 6s490ms with data as ( select distinct shl.id as record, ?, shl.id as ref, ? as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_history_line as shl left join stock_warehouse as st on st.branch_id = shl.selling_branch left join product_product as pp on pp.id = shl.product_id left join product_template as pt on pt.id = pp.product_tmpl_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id where shl.selling_branch = ? and shl.sales_obtain != ? and shl.product_id is not null and shl.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and shl.invoice_date >= ? and shl.invoice_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...) union all ( select distinct sol.id as record, ?, so.id as ref, ? as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_order_line sol left join product_product as pp on sol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join sale_order as so on sol.order_id = so.id left join sale_order_line_invoice_rel as solrel on solrel.order_line_id = sol.id left join account_move_line as aml on aml.id = solrel.invoice_line_id left join account_move as am on am.id = aml.move_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where sol.branch_id = ? and sol.product_id is not null and sol.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and am.invoice_date >= ? and am.invoice_date <= ? and so.state in (...) and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct sol.id as record, ?, so.id as ref, ? as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_order_line sol left join product_product as pp on sol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join sale_order as so on sol.order_id = so.id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where sol.branch_id = ? and sol.product_id is not null and sol.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and so.date_order >= ? and so.date_order <= ? and so.state in (...) and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct rol.id as record, ?, ro.id as ref, ? as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from repair_order ro left join repair_line as rol on ro.id = rol.repair_id left join product_product as pp on rol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where ro.state = ? and ro.branch_id = ? and rol.product_id is not null and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and ro.create_date >= ? and ro.create_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct sm.id as record, ?, mrp.id as ref, ? as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from mrp_production mrp left join stock_move as sm on sm.raw_material_production_id = mrp.id left join product_product as pp on sm.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where mrp.state = ? and mrp.branch_id = ? and sm.product_id is not null and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and mrp.create_date >= ? and mrp.create_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select ?, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone ?, true from data left join branch_product_method as brpm on brpm.product_id = data.product_id and brpm.branch_id = ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 07 00 17 1m57s 6s931ms 01 27 2m58s 6s618ms 02 9 1m 6s666ms 11 21 2m14s 6s404ms 12 28 2m50s 6s92ms 15 1 6s953ms 6s953ms -
with data as ( select distinct shl.id as record, 2761, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 46 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 05:54:46' and shl.invoice_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542) UNION ALL ( select distinct sol.id as record, 2761, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 46 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 05:54:46' and am.invoice_date <= '2023-03-07 05:54:46' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct sol.id as record, 2761, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 46 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 05:54:46' and so.date_order <= '2023-03-07 05:54:46' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct rol.id as record, 2761, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 46 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 05:54:46' and ro.create_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct sm.id as record, 2761, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 46 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 05:54:46' and mrp.create_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2761, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 46);
Date: 2023-03-07 00:55:37 Duration: 10s52ms
-
with data as ( select distinct shl.id as record, 2762, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 48 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 05:55:26' and shl.invoice_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017) UNION ALL ( select distinct sol.id as record, 2762, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 48 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 05:55:26' and am.invoice_date <= '2023-03-07 05:55:26' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct sol.id as record, 2762, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 48 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 05:55:26' and so.date_order <= '2023-03-07 05:55:26' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct rol.id as record, 2762, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 48 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 05:55:26' and ro.create_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct sm.id as record, 2762, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 48 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 05:55:26' and mrp.create_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2762, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 48);
Date: 2023-03-07 00:56:07 Duration: 9s473ms
-
with data as ( select distinct shl.id as record, 2775, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 45 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 06:23:07' and shl.invoice_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051) UNION ALL ( select distinct sol.id as record, 2775, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 45 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 06:23:07' and am.invoice_date <= '2023-03-07 06:23:07' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct sol.id as record, 2775, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 45 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 06:23:07' and so.date_order <= '2023-03-07 06:23:07' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct rol.id as record, 2775, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 45 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 06:23:07' and ro.create_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct sm.id as record, 2775, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 45 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 06:23:07' and mrp.create_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2775, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 45);
Date: 2023-03-07 01:24:01 Duration: 8s500ms
16 10m39s 4,920 120ms 277ms 129ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 07 08 388 48s958ms 126ms 09 758 1m35s 126ms 10 853 1m51s 130ms 11 864 1m54s 132ms 12 885 1m56s 131ms 13 868 1m53s 130ms 14 304 39s648ms 130ms -
select id from product_warehouse_inventory where product_id = 178381 and warehouse_id = 35;
Date: 2023-03-07 11:49:01 Duration: 277ms
-
select id from product_warehouse_inventory where product_id = 188209 and warehouse_id = 35;
Date: 2023-03-07 12:18:59 Duration: 266ms
-
select id from product_warehouse_inventory where product_id = 177186 and warehouse_id = 35;
Date: 2023-03-07 11:45:09 Duration: 266ms
17 10m22s 4,656 120ms 329ms 133ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_tmpl_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 07 00 36 5s863ms 162ms 01 125 16s647ms 133ms 02 18 2s581ms 143ms 10 16 2s299ms 143ms 11 34 5s405ms 158ms 12 142 19s137ms 134ms 13 598 1m21s 136ms 14 599 1m19s 133ms 15 580 1m17s 134ms 16 534 1m11s 133ms 17 421 54s923ms 130ms 18 612 1m21s 133ms 19 366 48s650ms 132ms 20 364 48s150ms 132ms 21 157 20s336ms 129ms 22 44 5s720ms 130ms 23 10 1s287ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (194947)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:50:30 Duration: 329ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (188261)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 11:48:34 Duration: 269ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (188869)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:52:44 Duration: 258ms
18 9m45s 266 875ms 24s254ms 2s202ms update "stock_move" set "branch_id" = ?, "picking_id" = ?, "related_core_purchase_line_id" = ?, "related_core_repair_line_id" = ?, "related_core_sale_line_id" = ?, "scrapped" = false, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 07 10 1 2s807ms 2s807ms 11 2 1s794ms 897ms 12 13 35s253ms 2s711ms 13 30 1m37s 3s239ms 14 28 1m1s 2s189ms 15 23 43s481ms 1s890ms 16 36 59s956ms 1s665ms 17 26 55s755ms 2s144ms 18 34 1m10s 2s62ms 19 35 1m23s 2s395ms 20 25 52s449ms 2s97ms 21 13 21s935ms 1s687ms -
UPDATE "stock_move" SET "branch_id" = 37, "picking_id" = 86911, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304129, 304130, 304131, 304132, 304133, 304134, 304135, 304136, 304137, 304138, 304139, 304118, 304119, 304120, 304121, 304122, 304123, 304124, 304125, 304126, 304127);
Date: 2023-03-07 13:28:03 Duration: 24s254ms
-
UPDATE "stock_move" SET "branch_id" = 48, "picking_id" = 87688, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (305632, 305633, 305634, 305635, 305636, 305637, 305638, 305639, 305641, 305642, 305643, 305644, 305645, 305646, 305628, 305629, 305630, 305631);
Date: 2023-03-07 19:55:24 Duration: 16s946ms
-
UPDATE "stock_move" SET "branch_id" = 40, "picking_id" = 87347, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (304928, 304929, 304930, 304931, 304933, 304934, 304922, 304923, 304924, 304926, 304927);
Date: 2023-03-07 17:07:03 Duration: 10s266ms
19 9m23s 63 8s756ms 9s566ms 8s950ms select partner.id as partner_id, ful.id as followup_level, case when partner.balance <= ? then ? when in_need_of_action_aml.id is not null and (prop_date.value_datetime is null or prop_date.value_datetime::date <= ?::date) then ? when exceeded_unreconciled_aml.id is not null then ? else ? end as followup_status from ( select partner.id, max(current_followup_level.delay) as followup_delay, sum(aml.balance) as balance from res_partner partner join account_move_line aml on aml.partner_id = partner.id join account_account account on account.id = aml.account_id join account_move move on move.id = aml.move_id left join lateral ( select coalesce(next_ful.id, ful.id) as id, coalesce(next_ful.delay, ful.delay) as delay from account_move_line line left outer join account_followup_followup_line ful on ful.id = aml.followup_line_id left outer join account_followup_followup_line next_ful on next_ful.id = ( select next_ful.id from account_followup_followup_line next_ful where next_ful.delay > coalesce(ful.delay, ?) and coalesce(aml.date_maturity, aml.date) + next_ful.delay <= ?::date and next_ful.company_id = ? order by next_ful.delay asc limit ?) where line.id = aml.id and aml.partner_id = partner.id and aml.balance > ?) current_followup_level on true where account.deprecated is not true and account.internal_type = ? and move.state = ? and aml.reconciled is not true and aml.blocked is false and aml.company_id = ? group by partner.id) partner left join account_followup_followup_line ful on ful.delay = partner.followup_delay and ful.company_id = ? left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id left join account_followup_followup_line ful on ful.id = line.followup_line_id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(ful.delay, ?) < partner.followup_delay and coalesce(line.date_maturity, line.date) + coalesce(ful.delay, ?) <= ?::date limit ?) in_need_of_action_aml on true left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(line.date_maturity, line.date) <= ?::date limit ?) exceeded_unreconciled_aml on true left outer join ir_property prop_date on prop_date.res_id = concat(?, partner.id) and prop_date.name = ? and prop_date.company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 07 14 44 6m33s 8s943ms 15 19 2m50s 8s966ms -
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 14:03:23 Duration: 9s566ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 15:35:25 Duration: 9s280ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 14:05:06 Duration: 9s268ms
20 9m6s 165 902ms 25s767ms 3s312ms update "stock_move" set "picking_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 07 00 2 19s757ms 9s878ms 10 2 1s854ms 927ms 11 2 1s832ms 916ms 13 16 31s635ms 1s977ms 14 30 1m1s 2s55ms 15 32 1m49s 3s418ms 16 14 1m 4s310ms 17 16 46s973ms 2s935ms 18 27 1m35s 3s539ms 19 15 1m30s 6s34ms 20 7 24s815ms 3s545ms 21 2 2s147ms 1s73ms -
UPDATE "stock_move" SET "picking_id" = 87183, "write_uid" = 981, "write_date" = (now() at time zone 'UTC') WHERE id IN (292992, 292993, 292995, 293004, 293007, 293009, 293010, 293012, 293013, 293014, 293017, 293018, 292964, 292965, 292969, 292970, 292971, 292972, 292973, 292976, 292978, 292981, 292984, 292987);
Date: 2023-03-07 15:51:00 Duration: 25s767ms
-
UPDATE "stock_move" SET "picking_id" = 87215, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304129, 304130, 304131, 304132, 304133, 304134, 304135, 304136, 304137, 304138, 304139, 304118, 304119, 304120, 304122, 304123, 304125, 304126, 304127);
Date: 2023-03-07 16:02:57 Duration: 23s748ms
-
UPDATE "stock_move" SET "picking_id" = 87690, "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301505, 301507, 301478, 301486, 301488, 301489, 301491, 301492, 301493, 301468, 301498, 301500);
Date: 2023-03-07 19:56:12 Duration: 13s133ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 17,134 38m13s 120ms 358ms 133ms 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 #1
Day Hour Count Duration Avg duration Mar 07 00 869 2m26s 168ms 01 1,584 3m46s 142ms 02 958 2m19s 145ms 06 1 137ms 137ms 10 6,751 14m22s 127ms 11 1,648 3m37s 132ms 12 341 46s945ms 137ms 13 443 1m 135ms 14 345 45s927ms 133ms 15 968 2m8s 132ms 16 554 1m12s 131ms 17 269 34s684ms 128ms 18 651 1m25s 130ms 19 701 1m31s 131ms 20 536 1m8s 128ms 21 312 39s708ms 127ms 22 101 12s677ms 125ms 23 102 12s886ms 126ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189018, 188475, 188476, 188496, 188504, 188515, 188516, 188517, 188518, 188522, 188534, 188535, 188551, 188553, 188554, 188558, 188565, 188567, 188571, 188573, 188574, 188596, 188603, 188624, 188640, 188643, 188644, 188675, 188683, 188700, 188716, 188717, 188719, 188720, 188722, 188723, 188727, 188728, 188735, 188736, 188737, 188751, 188752, 188760, 188762, 188780, 188789, 188793, 188802, 188803, 188804, 188805, 188806, 188810, 188822, 188824, 188828, 188850, 188851, 188852, 188854, 188856, 188861, 188862, 188877, 188892, 188899, 188905, 188924, 188925, 188942, 188943, 188953, 188954, 188955, 188956, 188987, 189004, 189005, 189009, 189015, 189016, 189019, 189020, 189027, 189028, 189034, 189041, 189042, 189045, 189058, 189061, 189065, 189067, 189068, 189079, 189083, 189084, 189098, 189101, 189106, 189111, 189114, 189119, 189141, 189158, 189168, 189181, 189183, 189189, 189190, 189203, 189290, 189291, 189292, 189295, 189296, 189298, 189309, 189318, 189331, 189335, 189345, 189371, 189424, 189427, 189436, 189445, 189446, 189455, 189464, 189469, 189476, 189485, 189486, 189565, 189567, 189568, 189572, 189589, 189592, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:55:35 Duration: 358ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (188616, 188487, 188517, 188518, 188525, 188537, 188558, 188565, 188569, 188570, 188571, 188572, 188573, 188574, 188578, 188579, 188593, 188596, 188597, 188598, 188599, 188601, 188602, 188603, 188610, 188639, 188640, 188643, 188644, 188650, 188716, 188717, 188719, 188722, 188723, 188727, 188728, 188733, 188734, 188735, 188736, 188760, 188761, 188789, 188793, 188802, 188803, 188805, 188806, 188824, 188851, 188852, 188854, 188858, 188862, 188876, 188893, 188903, 188906, 188924, 188940, 188942, 188943, 188954, 188955, 188963, 188984, 189004, 189018, 189019, 189020, 189021, 189027, 189045, 189065, 189069, 189080, 189098, 189101, 189114, 189117, 189163, 189181, 189183, 189189, 189195, 189217, 189218, 189290, 189292, 189295, 189296, 189303, 189313, 189319, 189331, 189335, 189344, 189357, 189434, 189436, 189445, 189446, 189469, 189474, 189476, 189485, 189486, 189565, 189567, 189578, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:59:28 Duration: 330ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189028, 188850, 188851, 188852, 188854, 188856, 188861, 188862, 188877, 188892, 188899, 188905, 188924, 188925, 188942, 188943, 188953, 188954, 188955, 188956, 188987, 189004, 189005, 189009, 189015, 189016, 189018, 189019, 189020, 189027, 189034, 189041, 189042, 189045, 189058, 189061, 189065, 189067, 189068, 189079, 189083, 189084, 189098, 189101, 189106, 189111, 189114, 189119, 189141, 189158, 189168, 189181, 189183, 189189, 189190, 189203, 189290, 189291, 189292, 189295, 189296, 189298, 189309, 189318, 189331, 189335, 189345, 189371, 189424, 189427, 189436, 189445, 189446, 189455, 189464, 189469, 189476, 189485, 189486, 189565, 189567, 189568, 189572, 189589, 189592, 189593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:56:01 Duration: 327ms
2 11,217 1h18m3s 361ms 2s465ms 417ms select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 07 00 844 7m40s 546ms 01 1,500 10m59s 439ms 02 948 7m8s 451ms 05 189 1m12s 380ms 08 600 3m46s 377ms 09 1,199 7m32s 377ms 10 1,192 7m58s 401ms 11 1,581 10m47s 409ms 12 1,418 9m27s 399ms 13 1,162 7m40s 396ms 14 401 2m38s 396ms 15 183 1m11s 389ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 188925 and item_demand_plan_id = 2760 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:20 Duration: 2s465ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189455 and item_demand_plan_id = 2755 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:54:08 Duration: 2s151ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189203 and item_demand_plan_id = 2756 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:31 Duration: 2s132ms
3 7,407 16m42s 120ms 315ms 135ms 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 #3
Day Hour Count Duration Avg duration Mar 07 11 6 917ms 152ms 12 274 37s550ms 137ms 13 1,074 2m28s 138ms 14 1,258 2m50s 135ms 15 992 2m14s 135ms 16 1,255 2m51s 136ms 17 419 55s335ms 132ms 18 277 36s944ms 133ms 19 915 2m2s 134ms 20 819 1m48s 132ms 21 118 15s353ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 178688)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 13:42:45 Duration: 315ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 181407)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 14:43:00 Duration: 280ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 37) AND ("product_warehouse_inventory"."product_id" = 181132)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2023-03-07 16:16:07 Duration: 258ms
4 5,253 12m59s 120ms 452ms 148ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 07 00 289 56s456ms 195ms 01 404 1m11s 177ms 02 281 49s912ms 177ms 03 17 2s222ms 130ms 04 20 2s647ms 132ms 05 30 3s826ms 127ms 06 25 3s350ms 134ms 07 32 4s120ms 128ms 08 73 9s683ms 132ms 09 104 13s794ms 132ms 10 287 42s304ms 147ms 11 278 44s330ms 159ms 12 390 58s445ms 149ms 13 498 1m10s 142ms 14 363 50s880ms 140ms 15 366 50s957ms 139ms 16 348 48s449ms 139ms 17 209 27s857ms 133ms 18 393 53s714ms 136ms 19 420 57s143ms 136ms 20 267 35s928ms 134ms 21 99 12s956ms 130ms 22 40 5s176ms 129ms 23 20 2s536ms 126ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_common_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5ea4658/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 12:22:57 Duration: 452ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_frontend_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-daca8bb/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 02:01:10 Duration: 430ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/1/web.assets_common_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5ea4658/1/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-03-07 00:55:13 Duration: 400ms
5 4,920 10m39s 120ms 277ms 129ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 07 08 388 48s958ms 126ms 09 758 1m35s 126ms 10 853 1m51s 130ms 11 864 1m54s 132ms 12 885 1m56s 131ms 13 868 1m53s 130ms 14 304 39s648ms 130ms -
select id from product_warehouse_inventory where product_id = 178381 and warehouse_id = 35;
Date: 2023-03-07 11:49:01 Duration: 277ms
-
select id from product_warehouse_inventory where product_id = 188209 and warehouse_id = 35;
Date: 2023-03-07 12:18:59 Duration: 266ms
-
select id from product_warehouse_inventory where product_id = 177186 and warehouse_id = 35;
Date: 2023-03-07 11:45:09 Duration: 266ms
6 4,656 10m22s 120ms 329ms 133ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_tmpl_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 07 00 36 5s863ms 162ms 01 125 16s647ms 133ms 02 18 2s581ms 143ms 10 16 2s299ms 143ms 11 34 5s405ms 158ms 12 142 19s137ms 134ms 13 598 1m21s 136ms 14 599 1m19s 133ms 15 580 1m17s 134ms 16 534 1m11s 133ms 17 421 54s923ms 130ms 18 612 1m21s 133ms 19 366 48s650ms 132ms 20 364 48s150ms 132ms 21 157 20s336ms 129ms 22 44 5s720ms 130ms 23 10 1s287ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (194947)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:50:30 Duration: 329ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (188261)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 11:48:34 Duration: 269ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (188869)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-03-07 00:52:44 Duration: 258ms
7 4,015 59m21s 602ms 6s714ms 887ms select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 07 00 841 16m32s 1s179ms 01 1,462 20m19s 834ms 02 941 12m40s 808ms 11 368 5m8s 837ms 12 220 2m39s 722ms 15 183 2m2s 668ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 188574)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:54:26 Duration: 6s714ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189486)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2758)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 01:00:31 Duration: 6s358ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189019)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:59:19 Duration: 5s397ms
8 3,898 36m29s 515ms 1s133ms 561ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 07 10 14 8s498ms 607ms 11 6 3s251ms 541ms 12 218 2m1s 557ms 13 570 5m29s 578ms 14 360 3m23s 563ms 15 378 3m35s 568ms 16 464 4m21s 563ms 17 351 3m13s 550ms 18 346 3m13s 558ms 19 629 5m50s 556ms 20 378 3m30s 557ms 21 114 1m1s 543ms 22 55 29s649ms 539ms 23 15 8s56ms 537ms -
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 ('%%pl1315%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1315%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1315%'))) 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: 2023-03-07 13:42:45 Duration: 1s133ms
-
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 ('%%a470%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a470%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a470%'))) 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: 2023-03-07 13:42:45 Duration: 1s116ms
-
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 ('%%a4707%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4707%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4707%'))) 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: 2023-03-07 13:42:45 Duration: 1s82ms
9 2,569 5m33s 120ms 246ms 129ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 07 10 6 776ms 129ms 11 2 248ms 124ms 12 95 12s554ms 132ms 13 320 42s425ms 132ms 14 189 24s640ms 130ms 15 320 41s663ms 130ms 16 252 32s665ms 129ms 17 248 31s844ms 128ms 18 419 54s667ms 130ms 19 302 38s998ms 129ms 20 238 30s423ms 127ms 21 105 13s227ms 125ms 22 67 8s453ms 126ms 23 6 743ms 123ms -
select id from product_warehouse_inventory where product_id = 194147 and warehouse_id = 44 and company_id = 1;
Date: 2023-03-07 15:51:36 Duration: 246ms
-
select id from product_warehouse_inventory where product_id = 204899 and warehouse_id = 42 and company_id = 1;
Date: 2023-03-07 16:10:20 Duration: 243ms
-
select id from product_warehouse_inventory where product_id = 237127 and warehouse_id = 40 and company_id = 1;
Date: 2023-03-07 18:43:52 Duration: 228ms
10 2,528 7m18s 163ms 499ms 173ms select res_partner.id from "res_partner" where ("res_partner"."active" = true) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 07 00 2 332ms 166ms 10 4 703ms 175ms 11 4 689ms 172ms 12 62 11s861ms 191ms 13 124 22s473ms 181ms 14 172 29s916ms 173ms 15 146 25s825ms 176ms 16 209 36s432ms 174ms 17 397 1m7s 170ms 18 455 1m19s 173ms 19 273 47s157ms 172ms 20 410 1m10s 171ms 21 270 45s629ms 168ms -
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%N-00326%') OR unaccent (res_partner.display_name) ilike unaccent ('%N-00326%') OR unaccent (res_partner.ref) ilike unaccent ('%N-00326%') OR unaccent (res_partner.vat) ilike unaccent ('N-00326')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%N-00326%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 13:59:44 Duration: 499ms
-
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%gnh%') OR unaccent (res_partner.display_name) ilike unaccent ('%gnh%') OR unaccent (res_partner.ref) ilike unaccent ('%gnh%') OR unaccent (res_partner.vat) ilike unaccent ('gnh')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%gnh%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 12:59:07 Duration: 310ms
-
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%t-01632%') OR unaccent (res_partner.display_name) ilike unaccent ('%t-01632%') OR unaccent (res_partner.ref) ilike unaccent ('%t-01632%') OR unaccent (res_partner.vat) ilike unaccent ('t-01632')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%t-01632%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 16:09:36 Duration: 306ms
11 1,553 14m31s 518ms 939ms 561ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 07 11 5 2s751ms 550ms 12 119 1m6s 561ms 13 179 1m41s 568ms 14 132 1m14s 561ms 15 260 2m26s 565ms 16 255 2m23s 564ms 17 185 1m42s 553ms 18 212 1m58s 559ms 19 103 57s57ms 553ms 20 39 21s668ms 555ms 21 62 34s4ms 548ms 23 2 1s129ms 564ms -
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 ('%%n28302272%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-72%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-72%'))) 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: 2023-03-07 16:10:27 Duration: 939ms
-
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 ('%%n283022%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-%'))) 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: 2023-03-07 16:10:27 Duration: 919ms
-
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 ('%%4302666%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%4302666%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%4302666%'))) 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: 2023-03-07 15:28:59 Duration: 899ms
12 1,217 14m11s 662ms 1s139ms 699ms 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 #12
Day Hour Count Duration Avg duration Mar 07 11 6 4s247ms 707ms 12 46 32s648ms 709ms 13 226 2m39s 706ms 14 149 1m44s 699ms 15 166 1m55s 697ms 16 141 1m39s 702ms 17 107 1m14s 692ms 18 111 1m17s 700ms 19 116 1m20s 696ms 20 88 1m1s 694ms 21 40 27s539ms 688ms 22 21 14s277ms 679ms -
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 ('%90-70-28x%')) 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 ('%90-70-28x%'))) 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 ('%90-70-28x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%90-70-28x%')))))) 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: 2023-03-07 16:25:21 Duration: 1s139ms
-
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 ('%sp04-020%')) 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 ('%sp04-020%'))) 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 ('%sp04-020%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sp04-020%')))))) 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: 2023-03-07 13:23:08 Duration: 1s18ms
-
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 ('%sfp3030c%')) 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 ('%sfp3030c%'))) 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 ('%sfp3030c%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sfp3030c%')))))) 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: 2023-03-07 12:25:28 Duration: 969ms
13 1,121 23m18s 873ms 11s738ms 1s247ms update "stock_move" set "current_warehouse_qty" = ?.?, "is_done" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 07 00 1 915ms 915ms 10 6 5s571ms 928ms 11 13 11s934ms 918ms 12 17 17s320ms 1s18ms 13 132 2m34s 1s170ms 14 129 2m27s 1s144ms 15 168 3m45s 1s342ms 16 156 3m38s 1s398ms 17 63 1m16s 1s221ms 18 209 4m22s 1s255ms 19 117 2m26s 1s255ms 20 86 1m45s 1s231ms 21 24 24s494ms 1s20ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "is_done" = true, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (294049, 294050, 294051, 294052, 294055, 294056, 294057, 294058, 294059, 294060, 294045, 294046);
Date: 2023-03-07 18:29:10 Duration: 11s738ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (299619, 284420, 299620, 300771, 299623, 300745, 299608, 304728, 296664, 296665);
Date: 2023-03-07 16:17:05 Duration: 9s539ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (293381, 299559, 299562, 303690, 299153, 299154, 299571, 299576, 299577, 303676);
Date: 2023-03-07 20:11:38 Duration: 9s346ms
14 1,004 2m19s 122ms 5s675ms 138ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 07 10 3 419ms 139ms 11 2 257ms 128ms 12 40 5s230ms 130ms 13 144 19s342ms 134ms 14 86 11s516ms 133ms 15 106 14s219ms 134ms 16 114 15s122ms 132ms 17 73 9s696ms 132ms 18 177 29s485ms 166ms 19 114 15s152ms 132ms 20 82 10s837ms 132ms 21 36 4s642ms 128ms 22 27 3s450ms 127ms -
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434);
Date: 2023-03-07 18:43:54 Duration: 5s675ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 2.0, "write_uid" = 989, "write_date" = (now() at time zone 'UTC') WHERE id IN (215083);
Date: 2023-03-07 16:18:53 Duration: 248ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 2.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (139199);
Date: 2023-03-07 18:15:00 Duration: 195ms
15 960 3m43s 206ms 421ms 232ms select "sale_history_line".id from "sale_history_line" where ("sale_history_line"."so_line_id" in (...)) order by "sale_history_line"."id";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Mar 07 10 3 802ms 267ms 11 2 472ms 236ms 12 48 11s182ms 232ms 13 141 33s323ms 236ms 14 81 19s161ms 236ms 15 72 17s648ms 245ms 16 97 22s481ms 231ms 17 104 23s875ms 229ms 18 120 28s143ms 234ms 19 135 30s704ms 227ms 20 116 26s696ms 230ms 21 41 9s113ms 222ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (101119)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 16:40:39 Duration: 421ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (100739)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 13:15:54 Duration: 380ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (101013)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 15:35:19 Duration: 360ms
16 947 25m43s 875ms 31s322ms 1s629ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 07 10 1 2s844ms 2s844ms 11 2 1s784ms 892ms 12 30 58s35ms 1s934ms 13 103 3m2s 1s769ms 14 80 1m55s 1s443ms 15 110 3m42s 2s25ms 16 128 3m4s 1s439ms 17 90 1m57s 1s304ms 18 167 4m20s 1s557ms 19 101 2m37s 1s563ms 20 82 2m7s 1s557ms 21 25 58s690ms 2s347ms 22 28 54s139ms 1s933ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (304523, 304529, 304530, 304531, 304532, 304533, 304534, 304535, 304536, 304537, 304538, 304539, 304540, 304548, 304549, 304550, 304553, 304555, 304558, 304561, 304562, 304565, 304566, 304567, 304568, 304569, 304570, 304571, 304575, 304577, 304578, 304582, 304584, 304585);
Date: 2023-03-07 15:33:59 Duration: 31s322ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (306048, 306049, 306050, 306051, 306052, 306053, 306054, 306055, 306056, 306057, 306058, 306059, 306060, 306061, 306062, 306063, 306064, 306065, 306066, 306067, 306068, 306069, 306070, 306071, 306072, 306073, 306074, 306075, 306076, 306077, 306078, 306079, 306080);
Date: 2023-03-07 22:34:19 Duration: 29s668ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 1020, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304130, 304133, 304134, 304135, 304136, 304137, 304138, 304118, 304119, 304120, 304121, 304124, 304126);
Date: 2023-03-07 13:28:56 Duration: 16s335ms
17 938 3m15s 185ms 1s792ms 208ms update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 07 00 3 586ms 195ms 10 3 624ms 208ms 11 10 2s366ms 236ms 12 101 21s839ms 216ms 13 127 26s311ms 207ms 14 85 17s710ms 208ms 15 71 14s680ms 206ms 16 99 21s100ms 213ms 17 84 17s162ms 204ms 18 104 21s689ms 208ms 19 112 23s231ms 207ms 20 100 20s350ms 203ms 21 36 7s232ms 200ms 22 3 585ms 195ms -
UPDATE "sale_order_line" SET "write_uid" = 1140, "write_date" = (now() at time zone 'UTC') WHERE id IN (100676, 100677, 100678, 100679, 100680, 100681, 100682, 100684, 100685, 100687);
Date: 2023-03-07 12:52:34 Duration: 1s792ms
-
UPDATE "sale_order_line" SET "write_uid" = 1192, "write_date" = (now() at time zone 'UTC') WHERE id IN (101073, 101091);
Date: 2023-03-07 16:16:14 Duration: 452ms
-
UPDATE "sale_order_line" SET "write_uid" = 1142, "write_date" = (now() at time zone 'UTC') WHERE id IN (100832, 100863);
Date: 2023-03-07 14:02:54 Duration: 397ms
18 859 8m8s 493ms 2s433ms 568ms select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 07 00 88 1m 693ms 01 130 1m16s 591ms 02 74 42s37ms 568ms 10 323 2m50s 528ms 11 74 43s844ms 592ms 12 107 59s62ms 551ms 13 3 1s617ms 539ms 15 22 12s292ms 558ms 16 6 3s877ms 646ms 18 3 1s643ms 547ms 19 6 3s218ms 536ms 20 8 4s509ms 563ms 21 5 2s607ms 521ms 22 5 2s682ms 536ms 23 5 2s651ms 530ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2758 and ill.method not in (8, 7);
Date: 2023-03-07 00:58:20 Duration: 2s433ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2762 and ill.method not in (8, 7);
Date: 2023-03-07 00:56:44 Duration: 1s755ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2760 and ill.method not in (8, 7);
Date: 2023-03-07 00:53:27 Duration: 1s183ms
19 799 14m7s 876ms 4s600ms 1s60ms update "stock_move" set "delay_alert_date" = ?, "is_done" = false, "picking_code" = ?, "product_qty" = ?.?, "reference" = ?, "unit_factor" = ?.?, "weight" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 07 10 3 2s942ms 980ms 11 2 1s789ms 894ms 12 43 42s515ms 988ms 13 103 1m53s 1s98ms 14 67 1m9s 1s32ms 15 70 1m13s 1s52ms 16 73 1m15s 1s34ms 17 96 1m57s 1s221ms 18 70 1m19s 1s136ms 19 139 2m21s 1s16ms 20 60 1m2s 1s47ms 21 61 56s565ms 927ms 23 12 10s920ms 910ms -
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '13-T/OUT/07019', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (304749, 304750, 304751, 304753, 304755);
Date: 2023-03-07 16:20:36 Duration: 4s600ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'incoming', "product_qty" = 125.0, "reference" = '13-T/IN/04033', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (305106, 305100, 305102, 305103);
Date: 2023-03-07 17:55:49 Duration: 4s552ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '10-I/OUT/05306', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 972, "write_date" = (now() at time zone 'UTC') WHERE id IN (304975, 304976, 304977, 304978, 304979);
Date: 2023-03-07 17:29:04 Duration: 4s544ms
20 752 1m52s 122ms 931ms 149ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 07 00 2 252ms 126ms 10 6 833ms 138ms 11 12 1s590ms 132ms 12 14 2s67ms 147ms 13 94 14s56ms 149ms 14 122 18s222ms 149ms 15 90 12s495ms 138ms 16 116 18s504ms 159ms 17 56 7s620ms 136ms 18 79 12s253ms 155ms 19 69 10s483ms 151ms 20 67 10s551ms 157ms 21 25 3s641ms 145ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (48574, 234378, 234380, 234382, 234384, 234386, 225950);
Date: 2023-03-07 16:16:17 Duration: 931ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (233076, 233077, 233078, 233079, 233080);
Date: 2023-03-07 18:45:28 Duration: 645ms
-
UPDATE "stock_quant" SET "quantity" = 3.0, "reserved_quantity" = 0.0, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (223024, 188601, 214852, 224448);
Date: 2023-03-07 13:37:44 Duration: 636ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 51s126ms 1m28s 1m14s 14 17m17s update "stock_move" set "branch_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Mar 07 11 8 9m44s 1m13s 13 4 5m24s 1m21s 14 2 2m8s 1m4s -
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (116480, 270465, 270466, 273667, 270467, 116481, 270468, 116482, 273672, 261513, 261514, 116747, 116748, 261645, 273680, 273682, 261652, 261653, 116503, 116504, 116550, 116806, 116646, 116647, 116648, 116649, 116650, 116523, 116524, 116525, 116807, 208052, 208053, 116536, 116537, 297274, 117053, 249410, 116803, 116547, 116804, 208068, 249411, 297282, 116548, 116805, 208073, 249412, 116549, 117070, 117071, 185168, 117072, 117073, 185171, 249413, 116437, 185173, 243159, 185178, 280412, 243164, 243166, 243168, 259808, 259815, 244586, 259819, 116588, 259820, 116589, 273900, 116590, 273919, 116591, 261497, 261499, 273917, 273918, 116479);
Date: 2023-03-07 13:29:01 Duration: 1m28s
-
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (270464, 116993, 261505, 116994, 116745, 116746, 116619, 116620, 260234, 261515, 273679, 261644, 260241, 273681, 261651, 116500, 116501, 116502, 116636, 116637, 116511, 116512, 274081, 116513, 123683, 116644, 274083, 116645, 208039, 116520, 116521, 274085, 116522, 116787, 116533, 116534, 116535, 208056, 297273, 117051, 117052, 297279, 116544, 116672, 116801, 249408, 297281, 116545, 116802, 249409, 116546, 116425, 116426, 117068, 117069, 185167, 116434, 116435, 116436, 243158, 185175, 243162, 116571, 116701, 259805, 116702, 116578, 244584, 116585, 116586, 273899, 244585, 259818, 116587, 273906, 273914, 116476, 116477, 116478, 270463);
Date: 2023-03-07 13:25:20 Duration: 1m22s
-
UPDATE "stock_move" SET "branch_id" = 48, "write_uid" = 2, "write_date" = (now() at time zone 'UTC') WHERE id IN (273922, 273924, 273925, 116831, 208033, 208034, 208035, 208036, 116832, 116833, 208044, 208045, 208046, 208047, 208048, 116834, 270456, 116835, 208057, 249402, 208058, 208059, 208060, 270455, 208061, 208062, 208063, 208070, 208071, 185163, 249420, 249421, 116558, 116815, 116559, 116816, 116560, 116817, 208076, 249422, 116818, 116819, 116820, 116821, 117082, 117083, 117084, 117085, 116822, 116823, 116824, 116825, 116826, 116827, 116828, 116829, 116830, 270457, 208077, 270441, 270442, 270443, 270444, 270445, 270446, 270447, 270448, 270449, 270450, 273907, 273908, 273909, 273910, 208079, 270451, 270452, 270453, 273915, 273916, 270454);
Date: 2023-03-07 14:22:35 Duration: 1m17s
2 8s756ms 9s566ms 8s950ms 63 9m23s select partner.id as partner_id, ful.id as followup_level, case when partner.balance <= ? then ? when in_need_of_action_aml.id is not null and (prop_date.value_datetime is null or prop_date.value_datetime::date <= ?::date) then ? when exceeded_unreconciled_aml.id is not null then ? else ? end as followup_status from ( select partner.id, max(current_followup_level.delay) as followup_delay, sum(aml.balance) as balance from res_partner partner join account_move_line aml on aml.partner_id = partner.id join account_account account on account.id = aml.account_id join account_move move on move.id = aml.move_id left join lateral ( select coalesce(next_ful.id, ful.id) as id, coalesce(next_ful.delay, ful.delay) as delay from account_move_line line left outer join account_followup_followup_line ful on ful.id = aml.followup_line_id left outer join account_followup_followup_line next_ful on next_ful.id = ( select next_ful.id from account_followup_followup_line next_ful where next_ful.delay > coalesce(ful.delay, ?) and coalesce(aml.date_maturity, aml.date) + next_ful.delay <= ?::date and next_ful.company_id = ? order by next_ful.delay asc limit ?) where line.id = aml.id and aml.partner_id = partner.id and aml.balance > ?) current_followup_level on true where account.deprecated is not true and account.internal_type = ? and move.state = ? and aml.reconciled is not true and aml.blocked is false and aml.company_id = ? group by partner.id) partner left join account_followup_followup_line ful on ful.delay = partner.followup_delay and ful.company_id = ? left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id left join account_followup_followup_line ful on ful.id = line.followup_line_id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(ful.delay, ?) < partner.followup_delay and coalesce(line.date_maturity, line.date) + coalesce(ful.delay, ?) <= ?::date limit ?) in_need_of_action_aml on true left outer join lateral ( select line.id from account_move_line line join account_account account on line.account_id = account.id join account_move move on line.move_id = move.id where line.partner_id = partner.id and account.internal_type = ? and account.deprecated is not true and move.state = ? and line.reconciled is not true and line.balance > ? and line.blocked is false and line.company_id = ? and coalesce(line.date_maturity, line.date) <= ?::date limit ?) exceeded_unreconciled_aml on true left outer join ir_property prop_date on prop_date.res_id = concat(?, partner.id) and prop_date.name = ? and prop_date.company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Mar 07 14 44 6m33s 8s943ms 15 19 2m50s 8s966ms -
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 14:03:23 Duration: 9s566ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 15:35:25 Duration: 9s280ms
-
SELECT partner.id as partner_id, ful.id as followup_level, CASE WHEN partner.balance <= 0 THEN 'no_action_needed' WHEN in_need_of_action_aml.id IS NOT NULL AND (prop_date.value_datetime IS NULL OR prop_date.value_datetime::date <= '2023-03-07'::date) THEN 'in_need_of_action' WHEN exceeded_unreconciled_aml.id IS NOT NULL THEN 'with_overdue_invoices' ELSE 'no_action_needed' END as followup_status FROM ( SELECT partner.id, max(current_followup_level.delay) as followup_delay, SUM(aml.balance) as balance FROM res_partner partner JOIN account_move_line aml ON aml.partner_id = partner.id JOIN account_account account ON account.id = aml.account_id JOIN account_move move ON move.id = aml.move_id -- Get the followup level LEFT JOIN LATERAL ( SELECT COALESCE(next_ful.id, ful.id) as id, COALESCE(next_ful.delay, ful.delay) as delay FROM account_move_line line LEFT OUTER JOIN account_followup_followup_line ful ON ful.id = aml.followup_line_id LEFT OUTER JOIN account_followup_followup_line next_ful ON next_ful.id = ( SELECT next_ful.id FROM account_followup_followup_line next_ful WHERE next_ful.delay > COALESCE(ful.delay, - 999) AND COALESCE(aml.date_maturity, aml.date) + next_ful.delay <= '2023-03-07'::date AND next_ful.company_id = 1 ORDER BY next_ful.delay ASC LIMIT 1) WHERE line.id = aml.id AND aml.partner_id = partner.id AND aml.balance > 0) current_followup_level ON true WHERE account.deprecated IS NOT TRUE AND account.internal_type = 'receivable' AND move.state = 'posted' AND aml.reconciled IS NOT TRUE AND aml.blocked IS FALSE AND aml.company_id = 1 GROUP BY partner.id) partner LEFT JOIN account_followup_followup_line ful ON ful.delay = partner.followup_delay AND ful.company_id = 1 -- Get the followup status data LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id LEFT JOIN account_followup_followup_line ful ON ful.id = line.followup_line_id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(ful.delay, - 999) < partner.followup_delay AND COALESCE(line.date_maturity, line.date) + COALESCE(ful.delay, - 999) <= '2023-03-07'::date LIMIT 1) in_need_of_action_aml ON true LEFT OUTER JOIN LATERAL ( SELECT line.id FROM account_move_line line JOIN account_account account ON line.account_id = account.id JOIN account_move move ON line.move_id = move.id WHERE line.partner_id = partner.id AND account.internal_type = 'receivable' AND account.deprecated IS NOT TRUE AND move.state = 'posted' AND line.reconciled IS NOT TRUE AND line.balance > 0 AND line.blocked IS FALSE AND line.company_id = 1 AND COALESCE(line.date_maturity, line.date) <= '2023-03-07'::date LIMIT 1) exceeded_unreconciled_aml ON true LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('res.partner,', partner.id) AND prop_date.name = 'payment_next_action_date' AND prop_date.company_id = 1;
Date: 2023-03-07 14:05:06 Duration: 9s268ms
3 5s619ms 10s52ms 6s490ms 103 11m8s with data as ( select distinct shl.id as record, ?, shl.id as ref, ? as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_history_line as shl left join stock_warehouse as st on st.branch_id = shl.selling_branch left join product_product as pp on pp.id = shl.product_id left join product_template as pt on pt.id = pp.product_tmpl_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id where shl.selling_branch = ? and shl.sales_obtain != ? and shl.product_id is not null and shl.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and shl.invoice_date >= ? and shl.invoice_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...) union all ( select distinct sol.id as record, ?, so.id as ref, ? as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_order_line sol left join product_product as pp on sol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join sale_order as so on sol.order_id = so.id left join sale_order_line_invoice_rel as solrel on solrel.order_line_id = sol.id left join account_move_line as aml on aml.id = solrel.invoice_line_id left join account_move as am on am.id = aml.move_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where sol.branch_id = ? and sol.product_id is not null and sol.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and am.invoice_date >= ? and am.invoice_date <= ? and so.state in (...) and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct sol.id as record, ?, so.id as ref, ? as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from sale_order_line sol left join product_product as pp on sol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join sale_order as so on sol.order_id = so.id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where sol.branch_id = ? and sol.product_id is not null and sol.exception_sale is not true and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and so.date_order >= ? and so.date_order <= ? and so.state in (...) and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct rol.id as record, ?, ro.id as ref, ? as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from repair_order ro left join repair_line as rol on ro.id = rol.repair_id left join product_product as pp on rol.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where ro.state = ? and ro.branch_id = ? and rol.product_id is not null and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and ro.create_date >= ? and ro.create_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...)) union all ( select distinct sm.id as record, ?, mrp.id as ref, ? as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone ?, true from mrp_production mrp left join stock_move as sm on sm.raw_material_production_id = mrp.id left join product_product as pp on sm.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id left join psd_custom_inventory_vendor as inv on inv.id = pt.inventory_vendor_id left join product_warehouse_inventory as pwi on pwi.product_id = pp.id where mrp.state = ? and mrp.branch_id = ? and sm.product_id is not null and pt.never_stock = false and pt.discontinued = false and pt.is_core = false and mrp.create_date >= ? and mrp.create_date <= ? and pt.inventory_vendor_id not in (...) and pt.inventory_vendor_id in (...) and pp.id not in (...))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select ?, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone ?, true from data left join branch_product_method as brpm on brpm.product_id = data.product_id and brpm.branch_id = ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Mar 07 00 17 1m57s 6s931ms 01 27 2m58s 6s618ms 02 9 1m 6s666ms 11 21 2m14s 6s404ms 12 28 2m50s 6s92ms 15 1 6s953ms 6s953ms -
with data as ( select distinct shl.id as record, 2761, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 46 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 05:54:46' and shl.invoice_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542) UNION ALL ( select distinct sol.id as record, 2761, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 46 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 05:54:46' and am.invoice_date <= '2023-03-07 05:54:46' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct sol.id as record, 2761, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 46 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 05:54:46' and so.date_order <= '2023-03-07 05:54:46' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct rol.id as record, 2761, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 46 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 05:54:46' and ro.create_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542)) UNION ALL ( select distinct sm.id as record, 2761, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 46 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 05:54:46' and mrp.create_date <= '2023-03-07 05:54:46' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (173641, 173380, 177439, 173765, 190660, 173573, 173810, 173277, 190593, 197276, 173638, 173975, 173533, 197258, 173341, 205248, 197227, 183366, 202640, 178619, 239420, 179337, 197273, 172835, 173656, 227968, 193768, 222384, 176897, 180730, 190863, 180822, 177892, 173850, 190039, 206542))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2761, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 46);
Date: 2023-03-07 00:55:37 Duration: 10s52ms
-
with data as ( select distinct shl.id as record, 2762, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 48 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 05:55:26' and shl.invoice_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017) UNION ALL ( select distinct sol.id as record, 2762, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 48 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 05:55:26' and am.invoice_date <= '2023-03-07 05:55:26' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct sol.id as record, 2762, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 48 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 05:55:26' and so.date_order <= '2023-03-07 05:55:26' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct rol.id as record, 2762, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 48 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 05:55:26' and ro.create_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017)) UNION ALL ( select distinct sm.id as record, 2762, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 48 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 05:55:26' and mrp.create_date <= '2023-03-07 05:55:26' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (3098) and pp.id not in (239475, 207578, 207571, 173724, 181339, 246016, 239345, 197276, 239420, 173241, 173394, 174027, 173372, 173229, 180730, 239480, 174246, 176928, 179405, 178720, 206620, 178622, 181311, 178753, 184561, 190593, 190636, 173313, 246568, 205010, 181068, 173231, 193387, 173638, 190525, 176960, 205001, 181324, 173304, 180855, 178772, 199604, 190950, 206536, 197240, 207387, 179983, 177415, 239394, 178829, 179984, 227034, 206526, 179363, 179583, 207297, 239470, 206696, 176920, 181383, 173711, 184515, 181351, 177857, 181404, 181323, 173216, 207384, 181388, 197248, 193195, 173726, 181348, 197261, 180262, 203327, 177545, 246017))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2762, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 48);
Date: 2023-03-07 00:56:07 Duration: 9s473ms
-
with data as ( select distinct shl.id as record, 2775, shl.id as ref, 'Sales History' as ref_code, shl.product_id as product_id, shl.invoice_date as invoice_date, shl.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, shl.selling_branch as selling_branch, st.id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_history_line as shl LEFT JOIN stock_warehouse as st ON st.branch_id = shl.selling_branch LEFT JOIN product_product as pp ON pp.id = shl.product_id LEFT JOIN product_template as pt ON pt.id = pp.product_tmpl_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id where shl.selling_branch = 45 and shl.sales_obtain != 'direct' and shl.product_id is not null and shl.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and shl.invoice_date >= '2017-03-07 06:23:07' and shl.invoice_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051) UNION ALL ( select distinct sol.id as record, 2775, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, am.invoice_date as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN sale_order_line_invoice_rel as solrel ON solrel.order_line_id = sol.id LEFT JOIN account_move_line as aml ON aml.id = solrel.invoice_line_id LEFT JOIN account_move as am ON am.id = aml.move_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 45 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and am.invoice_date >= '2017-03-07 06:23:07' and am.invoice_date <= '2023-03-07 06:23:07' and so.state in ('done', 'sale') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct sol.id as record, 2775, so.id as ref, 'Sale Order' as ref_code, sol.product_id as product_id, so.date_order as invoice_date, sol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, so.branch_id as selling_branch, so.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from sale_order_line sol LEFT JOIN product_product as pp ON sol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN sale_order as so ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where sol.branch_id = 45 and sol.product_id is not null and sol.exception_sale IS NOT TRUE and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and so.date_order >= '2017-03-07 06:23:07' and so.date_order <= '2023-03-07 06:23:07' and so.state in ('permanent_order') and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct rol.id as record, 2775, ro.id as ref, 'Repair Orders' as ref_code, rol.product_id as product_id, ro.create_date as invoice_date, rol.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, ro.branch_id as selling_branch, ro.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from repair_order ro LEFT JOIN repair_line as rol ON ro.id = rol.repair_id LEFT JOIN product_product as pp ON rol.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where ro.state = 'done' and ro.branch_id = 45 and rol.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and ro.create_date >= '2017-03-07 06:23:07' and ro.create_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051)) UNION ALL ( select distinct sm.id as record, 2775, mrp.id as ref, 'Manufacturing Orders' as ref_code, sm.product_id as product_id, mrp.create_date as invoice_date, sm.product_uom_qty as product_uom_qty, inv.id as inventory_vendor_id, mrp.branch_id as selling_branch, sm.warehouse_id as warehouse_id, pt.method as method, now() at time zone 'UTC', True from mrp_production mrp LEFT JOIN stock_move as sm ON sm.raw_material_production_id = mrp.id LEFT JOIN product_product as pp ON sm.product_id = pp.id LEFT JOIN product_template as pt ON pp.product_tmpl_id = pt.id LEFT JOIN psd_custom_inventory_vendor as inv ON inv.id = pt.inventory_vendor_id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = pp.id where mrp.state = 'done' and mrp.branch_id = 45 and sm.product_id is not null and pt.never_stock = False and pt.discontinued = False and pt.is_core = False and mrp.create_date >= '2017-03-07 06:23:07' and mrp.create_date <= '2023-03-07 06:23:07' and pt.inventory_vendor_id not in (2911, 2931, 2932, 2993, 3000, 3007, 3008, 3010, 3011, 3012, 3013, 3014, 3015, 3049, 3063, 3064, 3065, 3079, 3087, 3097, 3099, 3114, 3124, 3127, 3150) and pt.inventory_vendor_id in (2949) and pp.id not in (206627, 239405, 218905, 177378, 239522, 211206, 211233, 197276, 174022, 173230, 173641, 203231, 190593, 190531, 179986, 177923, 180400, 226991, 180397, 206638, 228263, 190908, 179147, 208957, 174233, 184510, 173229, 184439, 213290, 180730, 211219, 173212, 177743, 246006, 179148, 211212, 190525, 199642, 185902, 211229, 219122, 211202, 197227, 177068, 180735, 180879, 239420, 184001, 197240, 172835, 172796, 197267, 208960, 173262, 211207, 211201, 181017, 174246, 208958, 172767, 205525, 228248, 197274, 211220, 180822, 172689, 174026, 184051))) insert into item_list_line (item_demand_plan_id, product_id, invoice_date, product_uom_qty, inventory_vendor_id, selling_branch, warehouse_id, method, ref_id, ref, create_date, active) ( select 2775, data.product_id as product_id, data.invoice_date as invoice_date, data.product_uom_qty as product_uom_qty, data.inventory_vendor_id as inventory_vendor_id, data.selling_branch as selling_branch, data.warehouse_id as warehouse_id, brpm.method as method, data.ref as ref_id, data.ref_code as ref, now() at time zone 'UTC', True from data LEFT JOIN branch_product_method as brpm ON brpm.product_id = data.product_id and brpm.branch_id = 45);
Date: 2023-03-07 01:24:01 Duration: 8s500ms
4 902ms 25s767ms 3s312ms 165 9m6s update "stock_move" set "picking_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Mar 07 00 2 19s757ms 9s878ms 10 2 1s854ms 927ms 11 2 1s832ms 916ms 13 16 31s635ms 1s977ms 14 30 1m1s 2s55ms 15 32 1m49s 3s418ms 16 14 1m 4s310ms 17 16 46s973ms 2s935ms 18 27 1m35s 3s539ms 19 15 1m30s 6s34ms 20 7 24s815ms 3s545ms 21 2 2s147ms 1s73ms -
UPDATE "stock_move" SET "picking_id" = 87183, "write_uid" = 981, "write_date" = (now() at time zone 'UTC') WHERE id IN (292992, 292993, 292995, 293004, 293007, 293009, 293010, 293012, 293013, 293014, 293017, 293018, 292964, 292965, 292969, 292970, 292971, 292972, 292973, 292976, 292978, 292981, 292984, 292987);
Date: 2023-03-07 15:51:00 Duration: 25s767ms
-
UPDATE "stock_move" SET "picking_id" = 87215, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304129, 304130, 304131, 304132, 304133, 304134, 304135, 304136, 304137, 304138, 304139, 304118, 304119, 304120, 304122, 304123, 304125, 304126, 304127);
Date: 2023-03-07 16:02:57 Duration: 23s748ms
-
UPDATE "stock_move" SET "picking_id" = 87690, "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301505, 301507, 301478, 301486, 301488, 301489, 301491, 301492, 301493, 301468, 301498, 301500);
Date: 2023-03-07 19:56:12 Duration: 13s133ms
5 880ms 39s954ms 2s671ms 610 27m9s update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Mar 07 10 4 5s859ms 1s464ms 11 4 12s498ms 3s124ms 12 19 35s541ms 1s870ms 13 88 2m56s 2s2ms 14 70 2m37s 2s252ms 15 76 4m53s 3s866ms 16 67 3m47s 3s392ms 17 39 1m23s 2s151ms 18 127 5m8s 2s426ms 19 43 2m45s 3s845ms 20 57 2m17s 2s420ms 21 16 25s289ms 1s580ms -
UPDATE "stock_move" SET "date" = '2023-03-07 16:15:31', "state" = 'done', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (284420, 258086, 258087, 258088, 258089, 258090, 258091, 258092, 296640, 296643, 296644, 296646, 296647, 300745, 300746, 300748, 296653, 300749, 300750, 300751, 300752, 300755, 296660, 296663, 299608, 296664, 296665, 300759, 300760, 300761, 300764, 300765, 304727, 304728, 299619, 299620, 300771, 300772, 299623, 300775);
Date: 2023-03-07 16:16:15 Duration: 39s954ms
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:57:11', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:57:43 Duration: 32s168ms
-
UPDATE "stock_move" SET "date" = '2023-03-07 19:55:30', "state" = 'done', "write_uid" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (301467, 301469, 301470, 301471, 301472, 301473, 301474, 301475, 301476, 301477, 301479, 301480, 301481, 301482, 301483, 301484, 301485, 301487, 301490, 301494, 301495, 301496, 301497, 301499, 301501, 301502, 301503, 301504, 301506);
Date: 2023-03-07 19:55:59 Duration: 28s280ms
6 875ms 24s254ms 2s202ms 266 9m45s update "stock_move" set "branch_id" = ?, "picking_id" = ?, "related_core_purchase_line_id" = ?, "related_core_repair_line_id" = ?, "related_core_sale_line_id" = ?, "scrapped" = false, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Mar 07 10 1 2s807ms 2s807ms 11 2 1s794ms 897ms 12 13 35s253ms 2s711ms 13 30 1m37s 3s239ms 14 28 1m1s 2s189ms 15 23 43s481ms 1s890ms 16 36 59s956ms 1s665ms 17 26 55s755ms 2s144ms 18 34 1m10s 2s62ms 19 35 1m23s 2s395ms 20 25 52s449ms 2s97ms 21 13 21s935ms 1s687ms -
UPDATE "stock_move" SET "branch_id" = 37, "picking_id" = 86911, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304129, 304130, 304131, 304132, 304133, 304134, 304135, 304136, 304137, 304138, 304139, 304118, 304119, 304120, 304121, 304122, 304123, 304124, 304125, 304126, 304127);
Date: 2023-03-07 13:28:03 Duration: 24s254ms
-
UPDATE "stock_move" SET "branch_id" = 48, "picking_id" = 87688, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (305632, 305633, 305634, 305635, 305636, 305637, 305638, 305639, 305641, 305642, 305643, 305644, 305645, 305646, 305628, 305629, 305630, 305631);
Date: 2023-03-07 19:55:24 Duration: 16s946ms
-
UPDATE "stock_move" SET "branch_id" = 40, "picking_id" = 87347, "related_core_purchase_line_id" = NULL, "related_core_repair_line_id" = NULL, "related_core_sale_line_id" = NULL, "scrapped" = false, "state" = 'confirmed', "write_uid" = 1, "write_date" = (now() at time zone 'UTC') WHERE id IN (304928, 304929, 304930, 304931, 304933, 304934, 304922, 304923, 304924, 304926, 304927);
Date: 2023-03-07 17:07:03 Duration: 10s266ms
7 875ms 31s322ms 1s629ms 947 25m43s update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Mar 07 10 1 2s844ms 2s844ms 11 2 1s784ms 892ms 12 30 58s35ms 1s934ms 13 103 3m2s 1s769ms 14 80 1m55s 1s443ms 15 110 3m42s 2s25ms 16 128 3m4s 1s439ms 17 90 1m57s 1s304ms 18 167 4m20s 1s557ms 19 101 2m37s 1s563ms 20 82 2m7s 1s557ms 21 25 58s690ms 2s347ms 22 28 54s139ms 1s933ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (304523, 304529, 304530, 304531, 304532, 304533, 304534, 304535, 304536, 304537, 304538, 304539, 304540, 304548, 304549, 304550, 304553, 304555, 304558, 304561, 304562, 304565, 304566, 304567, 304568, 304569, 304570, 304571, 304575, 304577, 304578, 304582, 304584, 304585);
Date: 2023-03-07 15:33:59 Duration: 31s322ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 996, "write_date" = (now() at time zone 'UTC') WHERE id IN (306048, 306049, 306050, 306051, 306052, 306053, 306054, 306055, 306056, 306057, 306058, 306059, 306060, 306061, 306062, 306063, 306064, 306065, 306066, 306067, 306068, 306069, 306070, 306071, 306072, 306073, 306074, 306075, 306076, 306077, 306078, 306079, 306080);
Date: 2023-03-07 22:34:19 Duration: 29s668ms
-
UPDATE "stock_move" SET "state" = 'assigned', "write_uid" = 1020, "write_date" = (now() at time zone 'UTC') WHERE id IN (304128, 304130, 304133, 304134, 304135, 304136, 304137, 304138, 304118, 304119, 304120, 304121, 304124, 304126);
Date: 2023-03-07 13:28:56 Duration: 16s335ms
8 873ms 11s738ms 1s247ms 1,121 23m18s update "stock_move" set "current_warehouse_qty" = ?.?, "is_done" = true, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Mar 07 00 1 915ms 915ms 10 6 5s571ms 928ms 11 13 11s934ms 918ms 12 17 17s320ms 1s18ms 13 132 2m34s 1s170ms 14 129 2m27s 1s144ms 15 168 3m45s 1s342ms 16 156 3m38s 1s398ms 17 63 1m16s 1s221ms 18 209 4m22s 1s255ms 19 117 2m26s 1s255ms 20 86 1m45s 1s231ms 21 24 24s494ms 1s20ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "is_done" = true, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (294049, 294050, 294051, 294052, 294055, 294056, 294057, 294058, 294059, 294060, 294045, 294046);
Date: 2023-03-07 18:29:10 Duration: 11s738ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (299619, 284420, 299620, 300771, 299623, 300745, 299608, 304728, 296664, 296665);
Date: 2023-03-07 16:17:05 Duration: 9s539ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 0.0, "is_done" = true, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (293381, 299559, 299562, 303690, 299153, 299154, 299571, 299576, 299577, 303676);
Date: 2023-03-07 20:11:38 Duration: 9s346ms
9 876ms 4s600ms 1s60ms 799 14m7s update "stock_move" set "delay_alert_date" = ?, "is_done" = false, "picking_code" = ?, "product_qty" = ?.?, "reference" = ?, "unit_factor" = ?.?, "weight" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Mar 07 10 3 2s942ms 980ms 11 2 1s789ms 894ms 12 43 42s515ms 988ms 13 103 1m53s 1s98ms 14 67 1m9s 1s32ms 15 70 1m13s 1s52ms 16 73 1m15s 1s34ms 17 96 1m57s 1s221ms 18 70 1m19s 1s136ms 19 139 2m21s 1s16ms 20 60 1m2s 1s47ms 21 61 56s565ms 927ms 23 12 10s920ms 910ms -
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '13-T/OUT/07019', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (304749, 304750, 304751, 304753, 304755);
Date: 2023-03-07 16:20:36 Duration: 4s600ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'incoming', "product_qty" = 125.0, "reference" = '13-T/IN/04033', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (305106, 305100, 305102, 305103);
Date: 2023-03-07 17:55:49 Duration: 4s552ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '10-I/OUT/05306', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 972, "write_date" = (now() at time zone 'UTC') WHERE id IN (304975, 304976, 304977, 304978, 304979);
Date: 2023-03-07 17:29:04 Duration: 4s544ms
10 877ms 1s386ms 955ms 715 11m22s insert into "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), false, null, null, ?, ?, ?, ?, ?, ?, ?, ?, ?, null, ?, ?, ?, ?, ?, ?, ?, ?, false, ?, ?, ?, ?, ?) returning id;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Mar 07 10 3 2s848ms 949ms 11 2 1s797ms 898ms 12 45 43s928ms 976ms 13 114 1m50s 972ms 14 70 1m7s 959ms 15 55 52s868ms 961ms 16 70 1m8s 974ms 17 72 1m7s 940ms 18 85 1m20s 951ms 19 110 1m42s 934ms 20 63 59s389ms 942ms 21 26 24s513ms 942ms -
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 14:19:23', '2023-03-07 14:19:23', 'Bolt', 63355, 5, 437, 'new_product', '[327-115] Bolt', NULL, 'I-04981', 37992, 330, '0', 'make_to_stock', 216506, 1, '1.00', false, 371, 100893, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 14:20:36 Duration: 1s386ms
-
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 12:40:53', '2023-03-07 12:40:53', '3/4" U-Bolt Nut', 63388, 5, 437, 'new_product', '[3/4] 3/4" U-Bolt Nut', NULL, 'I-04974', 34093, 330, '0', 'make_to_stock', 213564, 1, '8.00', false, 371, 100914, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 14:47:30 Duration: 1s285ms
-
INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 18:30:54', '2023-03-07 18:30:54', 'CLAMP,5in. SS PRE-FORM', 63702, 5, 437, 'new_product', '[PF-5SS] CLAMP,5in. SS PRE-FORM', NULL, 'I-05014', 51178, 330, '0', 'make_to_stock', 206046, 1, '2.00', false, 371, 101348, 10, 'draft', 42) RETURNING id;
Date: 2023-03-07 18:44:19 Duration: 1s259ms
11 602ms 6s714ms 887ms 4,015 59m21s select "item_list_line".id from "item_list_line" where (((("item_list_line"."active" = true) and ("item_list_line"."product_id" = ?)) and (("item_list_line"."method" not in (...)) or "item_list_line"."method" is null)) and ("item_list_line"."item_demand_plan_id" = ?)) order by "item_list_line"."id" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Mar 07 00 841 16m32s 1s179ms 01 1,462 20m19s 834ms 02 941 12m40s 808ms 11 368 5m8s 837ms 12 220 2m39s 722ms 15 183 2m2s 668ms -
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 188574)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:54:26 Duration: 6s714ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189486)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2758)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 01:00:31 Duration: 6s358ms
-
SELECT "item_list_line".id FROM "item_list_line" WHERE (((("item_list_line"."active" = true) AND ("item_list_line"."product_id" = 189019)) AND (("item_list_line"."method" not in (7, 8)) OR "item_list_line"."method" IS NULL)) AND ("item_list_line"."item_demand_plan_id" = 2760)) ORDER BY "item_list_line"."id" LIMIT 1;
Date: 2023-03-07 00:59:19 Duration: 5s397ms
12 662ms 1s139ms 699ms 1,217 14m11s 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 #12
Day Hour Count Duration Avg duration Mar 07 11 6 4s247ms 707ms 12 46 32s648ms 709ms 13 226 2m39s 706ms 14 149 1m44s 699ms 15 166 1m55s 697ms 16 141 1m39s 702ms 17 107 1m14s 692ms 18 111 1m17s 700ms 19 116 1m20s 696ms 20 88 1m1s 694ms 21 40 27s539ms 688ms 22 21 14s277ms 679ms -
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 ('%90-70-28x%')) 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 ('%90-70-28x%'))) 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 ('%90-70-28x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%90-70-28x%')))))) 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: 2023-03-07 16:25:21 Duration: 1s139ms
-
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 ('%sp04-020%')) 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 ('%sp04-020%'))) 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 ('%sp04-020%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sp04-020%')))))) 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: 2023-03-07 13:23:08 Duration: 1s18ms
-
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 ('%sfp3030c%')) 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 ('%sfp3030c%'))) 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 ('%sfp3030c%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%sfp3030c%')))))) 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: 2023-03-07 12:25:28 Duration: 969ms
13 493ms 2s433ms 568ms 859 8m8s select distinct ill.product_id from item_list_line as ill left join res_forecast_method as fm on fm.id = ill.method where ill.item_demand_plan_id = ? and ill.method not in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Mar 07 00 88 1m 693ms 01 130 1m16s 591ms 02 74 42s37ms 568ms 10 323 2m50s 528ms 11 74 43s844ms 592ms 12 107 59s62ms 551ms 13 3 1s617ms 539ms 15 22 12s292ms 558ms 16 6 3s877ms 646ms 18 3 1s643ms 547ms 19 6 3s218ms 536ms 20 8 4s509ms 563ms 21 5 2s607ms 521ms 22 5 2s682ms 536ms 23 5 2s651ms 530ms -
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2758 and ill.method not in (8, 7);
Date: 2023-03-07 00:58:20 Duration: 2s433ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2762 and ill.method not in (8, 7);
Date: 2023-03-07 00:56:44 Duration: 1s755ms
-
select DISTINCT ill.product_id from item_list_line as ill LEFT JOIN res_forecast_method as fm ON fm.id = ill.method where ill.item_demand_plan_id = 2760 and ill.method not in (8, 7);
Date: 2023-03-07 00:53:27 Duration: 1s183ms
14 515ms 1s133ms 561ms 3,898 36m29s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Mar 07 10 14 8s498ms 607ms 11 6 3s251ms 541ms 12 218 2m1s 557ms 13 570 5m29s 578ms 14 360 3m23s 563ms 15 378 3m35s 568ms 16 464 4m21s 563ms 17 351 3m13s 550ms 18 346 3m13s 558ms 19 629 5m50s 556ms 20 378 3m30s 557ms 21 114 1m1s 543ms 22 55 29s649ms 539ms 23 15 8s56ms 537ms -
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 ('%%pl1315%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%pl1315%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%pl1315%'))) 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: 2023-03-07 13:42:45 Duration: 1s133ms
-
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 ('%%a470%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a470%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a470%'))) 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: 2023-03-07 13:42:45 Duration: 1s116ms
-
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 ('%%a4707%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%a4707%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%a4707%'))) 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: 2023-03-07 13:42:45 Duration: 1s82ms
15 518ms 939ms 561ms 1,553 14m31s 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 #15
Day Hour Count Duration Avg duration Mar 07 11 5 2s751ms 550ms 12 119 1m6s 561ms 13 179 1m41s 568ms 14 132 1m14s 561ms 15 260 2m26s 565ms 16 255 2m23s 564ms 17 185 1m42s 553ms 18 212 1m58s 559ms 19 103 57s57ms 553ms 20 39 21s668ms 555ms 21 62 34s4ms 548ms 23 2 1s129ms 564ms -
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 ('%%n28302272%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-72%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-72%'))) 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: 2023-03-07 16:10:27 Duration: 939ms
-
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 ('%%n283022%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n28-30-22-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n28-30-22-%'))) 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: 2023-03-07 16:10:27 Duration: 919ms
-
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 ('%%4302666%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%4302666%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%4302666%'))) 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: 2023-03-07 15:28:59 Duration: 899ms
16 361ms 2s465ms 417ms 11,217 1h18m3s select date_part(?, invoice_date) as year, date_part(?, invoice_date) as month, date_part(?, invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = ? and item_demand_plan_id = ? group by product_id, date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date) order by date_part(?, invoice_date), date_part(?, invoice_date), date_part(?, invoice_date);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Mar 07 00 844 7m40s 546ms 01 1,500 10m59s 439ms 02 948 7m8s 451ms 05 189 1m12s 380ms 08 600 3m46s 377ms 09 1,199 7m32s 377ms 10 1,192 7m58s 401ms 11 1,581 10m47s 409ms 12 1,418 9m27s 399ms 13 1,162 7m40s 396ms 14 401 2m38s 396ms 15 183 1m11s 389ms -
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 188925 and item_demand_plan_id = 2760 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:20 Duration: 2s465ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189455 and item_demand_plan_id = 2755 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:54:08 Duration: 2s151ms
-
select date_part('year', invoice_date) as Year, date_part('month', invoice_date) as Month, date_part('day', invoice_date) as day, product_id, sum(product_uom_qty) as total from item_list_line where product_id = 189203 and item_demand_plan_id = 2756 group by product_id, date_part('month', invoice_date), date_part('year', invoice_date), date_part('day', invoice_date) order by date_part('year', invoice_date), date_part('month', invoice_date), date_part('day', invoice_date);
Date: 2023-03-07 00:58:31 Duration: 2s132ms
17 206ms 421ms 232ms 960 3m43s select "sale_history_line".id from "sale_history_line" where ("sale_history_line"."so_line_id" in (...)) order by "sale_history_line"."id";Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Mar 07 10 3 802ms 267ms 11 2 472ms 236ms 12 48 11s182ms 232ms 13 141 33s323ms 236ms 14 81 19s161ms 236ms 15 72 17s648ms 245ms 16 97 22s481ms 231ms 17 104 23s875ms 229ms 18 120 28s143ms 234ms 19 135 30s704ms 227ms 20 116 26s696ms 230ms 21 41 9s113ms 222ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (101119)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 16:40:39 Duration: 421ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (100739)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 13:15:54 Duration: 380ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (101013)) ORDER BY "sale_history_line"."id";
Date: 2023-03-07 15:35:19 Duration: 360ms
18 185ms 1s792ms 208ms 938 3m15s update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Mar 07 00 3 586ms 195ms 10 3 624ms 208ms 11 10 2s366ms 236ms 12 101 21s839ms 216ms 13 127 26s311ms 207ms 14 85 17s710ms 208ms 15 71 14s680ms 206ms 16 99 21s100ms 213ms 17 84 17s162ms 204ms 18 104 21s689ms 208ms 19 112 23s231ms 207ms 20 100 20s350ms 203ms 21 36 7s232ms 200ms 22 3 585ms 195ms -
UPDATE "sale_order_line" SET "write_uid" = 1140, "write_date" = (now() at time zone 'UTC') WHERE id IN (100676, 100677, 100678, 100679, 100680, 100681, 100682, 100684, 100685, 100687);
Date: 2023-03-07 12:52:34 Duration: 1s792ms
-
UPDATE "sale_order_line" SET "write_uid" = 1192, "write_date" = (now() at time zone 'UTC') WHERE id IN (101073, 101091);
Date: 2023-03-07 16:16:14 Duration: 452ms
-
UPDATE "sale_order_line" SET "write_uid" = 1142, "write_date" = (now() at time zone 'UTC') WHERE id IN (100832, 100863);
Date: 2023-03-07 14:02:54 Duration: 397ms
19 163ms 499ms 173ms 2,528 7m18s select res_partner.id from "res_partner" where ("res_partner"."active" = true) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Mar 07 00 2 332ms 166ms 10 4 703ms 175ms 11 4 689ms 172ms 12 62 11s861ms 191ms 13 124 22s473ms 181ms 14 172 29s916ms 173ms 15 146 25s825ms 176ms 16 209 36s432ms 174ms 17 397 1m7s 170ms 18 455 1m19s 173ms 19 273 47s157ms 172ms 20 410 1m10s 171ms 21 270 45s629ms 168ms -
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%N-00326%') OR unaccent (res_partner.display_name) ilike unaccent ('%N-00326%') OR unaccent (res_partner.ref) ilike unaccent ('%N-00326%') OR unaccent (res_partner.vat) ilike unaccent ('N-00326')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%N-00326%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 13:59:44 Duration: 499ms
-
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%gnh%') OR unaccent (res_partner.display_name) ilike unaccent ('%gnh%') OR unaccent (res_partner.ref) ilike unaccent ('%gnh%') OR unaccent (res_partner.vat) ilike unaccent ('gnh')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%gnh%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 12:59:07 Duration: 310ms
-
SELECT res_partner.id FROM "res_partner" WHERE ("res_partner"."active" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%t-01632%') OR unaccent (res_partner.display_name) ilike unaccent ('%t-01632%') OR unaccent (res_partner.ref) ilike unaccent ('%t-01632%') OR unaccent (res_partner.vat) ilike unaccent ('t-01632')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%t-01632%') desc, unaccent (res_partner.display_name);
Date: 2023-03-07 16:09:36 Duration: 306ms
20 122ms 931ms 149ms 752 1m52s update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Mar 07 00 2 252ms 126ms 10 6 833ms 138ms 11 12 1s590ms 132ms 12 14 2s67ms 147ms 13 94 14s56ms 149ms 14 122 18s222ms 149ms 15 90 12s495ms 138ms 16 116 18s504ms 159ms 17 56 7s620ms 136ms 18 79 12s253ms 155ms 19 69 10s483ms 151ms 20 67 10s551ms 157ms 21 25 3s641ms 145ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (48574, 234378, 234380, 234382, 234384, 234386, 225950);
Date: 2023-03-07 16:16:17 Duration: 931ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (233076, 233077, 233078, 233079, 233080);
Date: 2023-03-07 18:45:28 Duration: 645ms
-
UPDATE "stock_quant" SET "quantity" = 3.0, "reserved_quantity" = 0.0, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (223024, 188601, 214852, 224448);
Date: 2023-03-07 13:37:44 Duration: 636ms
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
- 120,805 Log entries
Events distribution
Key values
- 0 PANIC entries
- 1 FATAL entries
- 6004 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 3,300 Max number of times the same event was reported
- 6,005 Total events found
Rank Times reported Error 1 3,300 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #1
Day Hour Count Mar 07 00 104 01 102 02 123 03 113 04 97 05 105 06 117 07 169 08 157 09 105 10 89 11 97 12 169 13 134 14 133 15 169 16 131 17 120 18 232 19 282 20 199 21 136 22 122 23 95 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM ir_attachment WHERE id IN (985619)
Date: 2023-03-07 00:00:16
2 1,424 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #2
Day Hour Count Mar 07 00 43 01 39 02 46 03 39 04 39 05 37 06 55 07 61 08 58 09 44 10 34 11 37 12 65 13 62 14 57 15 71 16 54 17 52 18 136 19 150 20 104 21 57 22 52 23 32 - ERROR: process 1716700 still waiting for ShareLock on transaction 99077542 after 1000.051 ms
- ERROR: process 1723449 still waiting for ShareLock on transaction 99077618 after 1000.052 ms
- ERROR: process 1722189 still waiting for ShareLock on transaction 99077761 after 1000.052 ms
Detail: Process holding the lock: 1692730. Wait queue: 1716700.
Context: while deleting tuple (2349,8) in relation "ir_attachment"
Statement: DELETE FROM ir_attachment WHERE id IN (985619)Date: 2023-03-07 00:00:15
Detail: Process holding the lock: 1767329. Wait queue: 1723449.
Context: while deleting tuple (2244,16) in relation "ir_attachment"
Statement: DELETE FROM ir_attachment WHERE id IN (985643)Date: 2023-03-07 00:01:11
Detail: Process holding the lock: 1776090. Wait queue: 1722189.
Context: while deleting tuple (2465,2) in relation "ir_attachment"
Statement: DELETE FROM ir_attachment WHERE id IN (985692)Date: 2023-03-07 00:03:11
3 528 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #3
Day Hour Count Mar 07 00 8 01 7 02 2 03 1 04 11 09 2 11 48 12 34 13 45 14 30 15 54 16 51 17 49 18 75 19 64 20 19 21 16 22 11 23 1 - ERROR: could not serialize access due to concurrent update
Statement: UPDATE "substitution_master_line" SET "write_uid"=4,"write_date"=(now() at time zone 'UTC') WHERE id IN (11157, 11158)
Date: 2023-03-07 00:08:43
4 507 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #4
Day Hour Count Mar 07 00 30 01 61 02 38 03 7 04 6 05 7 06 9 07 6 08 11 09 21 10 165 11 34 12 9 13 8 14 14 15 10 16 10 17 19 18 6 19 8 20 7 21 9 22 7 23 5 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "website_visitor"
- ERROR: could not obtain lock on row in relation "stock_quant"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2023-03-07 00:00:06
Statement: SELECT * FROM website_visitor where id = 11575 FOR NO KEY UPDATE NOWAIT
Date: 2023-03-07 12:41:22
Statement: SELECT 1 FROM stock_quant WHERE id = 166477 FOR UPDATE NOWAIT
Date: 2023-03-07 13:37:43
5 114 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #5
Day Hour Count Mar 07 00 4 01 2 02 8 03 3 04 1 05 3 06 6 07 3 09 2 10 4 11 1 12 8 13 9 14 5 15 9 16 8 17 4 18 1 19 2 20 3 21 4 22 20 23 4 - ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT "ir_ui_view".id FROM "ir_ui_view" LEFT JOIN "website" AS "ir_ui_view__website_id" ON ("ir_ui_view"."website_id" = "ir_ui_view__website_id"."id") WHERE (("ir_ui_view"."active" = true) AND (("ir_ui_view"."key" = 'http_routing.http_error') AND (("ir_ui_view"."website_id" in (1)) OR "ir_ui_view"."website_id" IS NULL))) ORDER BY "ir_ui_view__website_id"."id" LIMIT 1
Date: 2023-03-07 00:03:33
6 101 LOG: process ... still waiting for AccessExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #6
Day Hour Count Mar 07 00 1 02 6 04 1 05 1 06 1 07 3 08 3 09 1 10 2 11 2 12 8 13 3 14 2 15 5 16 5 17 1 18 11 19 31 20 13 22 1 - ERROR: process 1726507 still waiting for AccessExclusiveLock on tuple (2892,70) of relation 43604 of database 65946 after 1000.041 ms
- ERROR: process 1930879 still waiting for AccessExclusiveLock on tuple (3224,2) of relation 43604 of database 65946 after 1000.041 ms
- ERROR: process 1771067 still waiting for AccessExclusiveLock on tuple (3224,2) of relation 43604 of database 65946 after 1000.078 ms
Detail: Process holding the lock: 1874204. Wait queue: 1726507.
Statement: DELETE FROM ir_attachment WHERE id IN (986477)Date: 2023-03-07 00:29:11
Detail: Process holding the lock: 1735699. Wait queue: 1930879, 1771067, 1977225.
Statement: DELETE FROM ir_attachment WHERE id IN (989350)Date: 2023-03-07 02:07:36
Detail: Process holding the lock: 1735699. Wait queue: 1930879, 1771067, 1977225.
Statement: DELETE FROM ir_attachment WHERE id IN (989350)Date: 2023-03-07 02:07:37
7 10 ERROR: invalid input syntax for type integer: ...
Times Reported Most Frequent Error / Event #7
Day Hour Count Mar 07 15 3 16 1 19 5 21 1 - ERROR: invalid input syntax for type integer: "False" at character 66
Statement: select sum(product_uom_qty) from stock_move where sale_line_id = 'False' and state not in ('done','cancel')
Date: 2023-03-07 15:37:09
8 5 LOG: process ... still waiting for ShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #8
Day Hour Count Mar 07 08 3 09 2 - ERROR: process 2169730 still waiting for ShareLock on relation 44482 of database 65946 after 1000.054 ms
- ERROR: process 2169730 still waiting for ShareLock on relation 44482 of database 65946 after 1000.050 ms
- ERROR: process 2169730 still waiting for ShareLock on relation 42418 of database 65946 after 1000.049 ms
Detail: Processes holding the lock: 2168426, 2169523. Wait queue: 2169730.
Statement: CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is trueDate: 2023-03-07 08:48:15
Detail: Processes holding the lock: 2168968, 2168283, 2169205. Wait queue: 2169730.
Statement: CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is trueDate: 2023-03-07 08:48:17
Detail: Process holding the lock: 2168280. Wait queue: 2169730.
Statement: CREATE INDEX IF NOT EXISTS account_move_to_check_idx ON account_move(journal_id) WHERE to_check = true; CREATE INDEX IF NOT EXISTS account_move_payment_idx ON account_move(journal_id, state, payment_state, move_type, date);Date: 2023-03-07 08:48:25
9 4 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #9
Day Hour Count Mar 07 08 2 09 2 - ERROR: could not create unique index "vendor_account_master_unique_acc_no"
Detail: Key (account_number)=(P10394) is duplicated.
Statement: ALTER TABLE "vendor_account_master" ADD CONSTRAINT "vendor_account_master_unique_acc_no" unique (account_number)Date: 2023-03-07 08:47:49
10 3 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #10
Day Hour Count Mar 07 15 1 18 2 - ERROR: process 2180345 still waiting for ExclusiveLock on tuple (8609,2) of relation 42418 of database 65946 after 1000.051 ms
- ERROR: process 2552150 still waiting for ExclusiveLock on tuple (8781,41) of relation 42418 of database 65946 after 1000.046 ms
- ERROR: process 2550804 still waiting for ExclusiveLock on tuple (8781,41) of relation 42418 of database 65946 after 1000.049 ms
Detail: Process holding the lock: 2179588. Wait queue: 2180345.
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 != 462834 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 != 462834 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-03-07 15:01:45
Detail: Process holding the lock: 2553458. Wait queue: 2552150.
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 != 463984 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 != 463984 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-03-07 18:10:35
Detail: Process holding the lock: 2553458. Wait queue: 2552150, 2550804.
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 != 463988 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 != 463988 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-03-07 18:11:09
11 2 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #11
Day Hour Count Mar 07 14 2 - ERROR: null value in column "code" of relation "account_payment_method" violates not-null constraint
Detail: Failing row contains (11, Cash, null, null, 10, 1002, 2023-03-07 14:11:55.58479, 1002, 2023-03-07 14:11:55.58479).
Statement: INSERT INTO "account_payment_method" ("id", "create_uid", "create_date", "write_uid", "write_date", "name", "sequence") VALUES (nextval('account_payment_method_id_seq'), 1002, (now() at time zone 'UTC'), 1002, (now() at time zone 'UTC'), 'Cash', 10) RETURNING idDate: 2023-03-07 14:11:55
12 2 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #12
Day Hour Count Mar 07 18 2 - ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 2530613 waits for ShareLock on transaction 99242505; blocked by process 2520984. Process 2520984 waits for ShareLock on transaction 99242466; blocked by process 2530613. Process 2530613: UPDATE "stock_quant" SET "reserved_quantity"=4.0,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (190231) Process 2520984: UPDATE "stock_quant" SET "reserved_quantity"=0.0,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434)
Context: while updating tuple (1078,73) in relation "stock_quant"
Hint: See server log for query details.
Statement: UPDATE "stock_quant" SET "reserved_quantity"=4.0,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (190231)Date: 2023-03-07 18:43:42
Detail: Process 2530613 waits for ShareLock on transaction 99242540; blocked by process 2520984. Process 2520984 waits for ShareLock on transaction 99242539; blocked by process 2530613. Process 2530613: INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 18:30:54', '2023-03-07 18:30:54', 'CLAMP,5in. SS PRE-FORM', 63699, 5, 437, 'new_product', '[PF-5SS] CLAMP,5in. SS PRE-FORM', NULL, 'I-05014', 51178, 330, '0', 'make_to_stock', 206046, 1, '2.00', false, 371, 101348, 10, 'draft', 42) RETURNING id Process 2520984: UPDATE "stock_quant" SET "reserved_quantity"=0.0,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (190231, 53101, 233076, 233077, 233078, 233079, 233080, 53434)
Context: while updating tuple (4782,15) in relation "product_warehouse_inventory" SQL statement "update product_warehouse_inventory set last_receive_date=Inventory.date , qty_last_receive=Inventory.product_uom_qty where product_id=NEW.product_id and warehouse_id=NEW.warehouse_id" PL/pgSQL function updated_in_last_receive_date_qty() line 10 at SQL statement
Hint: See server log for query details.
Statement: INSERT INTO "stock_move" ("id", "create_uid", "create_date", "write_uid", "write_date", "additional", "bom_action", "branch_id", "company_id", "date", "date_deadline", "description_picking", "group_id", "location_dest_id", "location_id", "move_options", "name", "orderpoint_id", "origin", "partner_id", "picking_type_id", "priority", "procure_method", "product_id", "product_uom", "product_uom_qty", "propagate_cancel", "rule_id", "sale_line_id", "sequence", "state", "warehouse_id") VALUES (nextval('stock_move_id_seq'), 1, (now() at time zone 'UTC'), 1, (now() at time zone 'UTC'), false, NULL, NULL, 1, '2023-03-07 18:30:54', '2023-03-07 18:30:54', 'CLAMP,5in. SS PRE-FORM', 63699, 5, 437, 'new_product', '[PF-5SS] CLAMP,5in. SS PRE-FORM', NULL, 'I-05014', 51178, 330, '0', 'make_to_stock', 206046, 1, '2.00', false, 371, 101348, 10, 'draft', 42) RETURNING idDate: 2023-03-07 18:43:53
13 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #13
Day Hour Count Mar 07 14 1 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
Detail: Key (vehicle_unit_no, driver_id)=(046, 34091) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "name", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 952, (now() at time zone 'UTC'), 952, (now() at time zone 'UTC'), '2023-03-07', true, 114, 0.0, 0.0, NULL, 1, NULL, 1, 34091, '2023-03-07', NULL, NULL, 0, 0.0, 'PKD-4043', NULL, 952, 290, 21, '2006', 'ken', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '046', '1NKDL00X56J157501') RETURNING idDate: 2023-03-07 14:59:32
14 1 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #14
Day Hour Count Mar 07 09 1 - ERROR: process 2177134 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.050 ms at character 34
Detail: Process holding the lock: 2177656. Wait queue: 2177134.
Statement: SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'res.partner') ORDER BY "ir_model_fields"."name"Date: 2023-03-07 09:05:05
15 1 FATAL: connection to client lost
Times Reported Most Frequent Error / Event #15
Day Hour Count Mar 07 18 1 - FATAL: connection to client lost
Statement: COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage) TO stdout;
Date: 2023-03-07 18:18:04
16 1 LOG: process ... still waiting for RowExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #16
Day Hour Count Mar 07 09 1 - ERROR: process 2176854 still waiting for RowExclusiveLock on relation 42418 of database 65946 after 1000.051 ms
Detail: Process holding the lock: 2177656. Wait queue: 2176854.
Statement: DELETE FROM ir_attachment WHERE id IN (1001586)Date: 2023-03-07 09:04:48
17 1 LOG: could not send data to client: Connection reset by peer
Times Reported Most Frequent Error / Event #17
Day Hour Count Mar 07 18 1 - ERROR: could not send data to client: Connection reset by peer
Statement: COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage) TO stdout;
Date: 2023-03-07 18:18:04