-
Global information
- Generated on Thu May 25 23:50:43 2023
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 187,924 log entries in 42s
- Log start from 2023-05-24 00:00:46 to 2023-05-24 23:59:59
-
Overview
Global Stats
- 937 Number of unique normalized queries
- 64,962 Number of queries
- 6h5m4s Total query duration
- 2023-05-24 00:00:46 First query
- 2023-05-24 23:59:59 Last query
- 55 queries/s at 2023-05-24 14:11:19 Query peak
- 6h5m4s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 6h5m4s Execute total duration
- 4,687 Number of events
- 13 Number of unique normalized events
- 3,636 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
- 64,962 Average queries per session
- 6h5m4s 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
- 55 queries/s Query Peak
- 2023-05-24 14:11:19 Date
SELECT Traffic
Key values
- 55 queries/s Query Peak
- 2023-05-24 14:11:19 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 13 queries/s Query Peak
- 2023-05-24 19:03:17 Date
Queries duration
Key values
- 6h5m4s 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) May 24 00 962 0ms 14s854ms 253ms 10s434ms 28s235ms 38s211ms 01 2,321 120ms 308ms 170ms 13s84ms 14s63ms 16s898ms 02 1,263 0ms 298ms 168ms 7s620ms 7s867ms 9s724ms 03 1,065 120ms 276ms 166ms 6s147ms 7s625ms 8s272ms 04 234 0ms 851ms 160ms 5s247ms 7s236ms 7s236ms 05 258 0ms 277ms 151ms 6s357ms 6s816ms 6s816ms 06 277 0ms 4s249ms 287ms 6s691ms 7s998ms 11s615ms 07 325 120ms 15s823ms 322ms 4s17ms 11s970ms 25s425ms 08 278 120ms 383ms 161ms 2s983ms 4s867ms 7s891ms 09 800 120ms 3m37s 796ms 32s792ms 1m6s 3m58s 10 855 0ms 20s894ms 377ms 32s58ms 37s628ms 42s361ms 11 3,015 120ms 4s226ms 375ms 36s455ms 48s996ms 54s437ms 12 7,287 120ms 18s123ms 365ms 1m14s 1m33s 1m49s 13 8,694 120ms 18s353ms 361ms 1m30s 1m41s 2m32s 14 6,315 120ms 7s148ms 341ms 1m10s 1m17s 1m33s 15 6,247 120ms 14s633ms 360ms 1m5s 1m32s 1m42s 16 4,846 120ms 19s823ms 374ms 53s637ms 57s81ms 1m7s 17 4,577 120ms 14s729ms 378ms 57s509ms 1m15s 1m43s 18 4,016 120ms 7s258ms 366ms 45s844ms 47s614ms 1m1s 19 5,053 120ms 5s219ms 345ms 47s95ms 50s470ms 1m40s 20 3,054 120ms 6s72ms 292ms 28s822ms 36s213ms 47s709ms 21 1,726 121ms 2s286ms 202ms 10s335ms 15s350ms 28s840ms 22 604 0ms 291ms 165ms 5s779ms 7s207ms 12s291ms 23 890 0ms 1s20ms 169ms 5s891ms 6s836ms 10s604ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 24 00 937 0 165ms 6s604ms 7s674ms 10s434ms 01 2,321 0 170ms 8s619ms 13s84ms 16s139ms 02 1,262 0 168ms 5s865ms 7s620ms 9s724ms 03 1,065 0 166ms 4s34ms 6s147ms 7s935ms 04 232 0 159ms 4s541ms 5s247ms 6s572ms 05 258 0 151ms 4s573ms 6s357ms 6s816ms 06 264 0 293ms 4s761ms 6s691ms 11s462ms 07 262 0 298ms 2s866ms 3s864ms 11s830ms 08 218 0 168ms 505ms 2s845ms 6s671ms 09 666 68 830ms 6s317ms 32s655ms 1m6s 10 787 0 216ms 6s33ms 6s387ms 32s58ms 11 2,260 0 386ms 24s113ms 31s876ms 45s192ms 12 4,763 0 350ms 35s561ms 45s191ms 1m13s 13 5,870 0 337ms 50s432ms 54s315ms 1m23s 14 4,242 0 315ms 37s39ms 51s195ms 1m1s 15 4,035 0 319ms 29s402ms 37s319ms 1m 16 2,988 0 336ms 27s88ms 33s99ms 41s892ms 17 3,400 0 354ms 26s363ms 42s805ms 1m12s 18 2,562 0 362ms 23s710ms 28s755ms 36s724ms 19 3,538 0 319ms 25s717ms 34s117ms 40s910ms 20 2,385 0 265ms 16s300ms 18s684ms 24s849ms 21 1,667 0 196ms 6s801ms 8s825ms 14s909ms 22 603 0 165ms 5s551ms 5s779ms 12s291ms 23 888 0 167ms 5s463ms 5s891ms 10s604ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 24 00 0 0 25 0 3s551ms 0ms 0ms 22s903ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 2 0 0 332ms 0ms 0ms 664ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 2 0 1s103ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 5 0 3s490ms 0ms 0ms 0ms 10 0 28 29 0 2s643ms 0ms 2s633ms 37s628ms 11 42 683 7 0 347ms 3s239ms 8s30ms 14s751ms 12 107 2,213 18 0 405ms 14s114ms 20s789ms 37s772ms 13 114 2,448 12 0 432ms 17s272ms 26s268ms 50s651ms 14 73 1,748 12 0 417ms 14s51ms 19s377ms 24s435ms 15 57 1,933 32 0 456ms 14s423ms 22s27ms 39s136ms 16 60 1,660 41 0 447ms 12s434ms 17s239ms 30s964ms 17 48 1,022 9 0 467ms 9s3ms 13s143ms 23s114ms 18 96 1,192 30 0 388ms 7s484ms 10s723ms 19s758ms 19 72 1,324 11 0 420ms 8s636ms 15s639ms 29s303ms 20 47 575 1 0 404ms 3s435ms 6s586ms 16s750ms 21 5 52 0 0 366ms 0ms 0ms 642ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 2 0 972ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare May 24 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 May 24 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 May 24 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 May 24 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 May 24 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) May 24 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 May 24 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 May 24 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 May 24 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
- 66 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 40 2m 1s14ms 10s834ms 3s11ms 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 != 657133 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 != 657133 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2023-05-24 12:31:52
2 18 56s140ms 1s161ms 8s525ms 3s118ms 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" = 2664929, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (657004);
Date: 2023-05-24 12:10:54
3 3 16s595ms 1s151ms 8s995ms 5s531ms delete from ir_attachment where id in ( select id from ir_attachment where id in (...) for no key update skip locked);-
DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662956) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2023-05-24 09:47:42
-
DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662957) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2023-05-24 09:47:42
-
DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662971) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2023-05-24 09:48:09
4 1 4s615ms 4s615ms 4s615ms 4s615ms 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-05-24 13:13:10
5 2 4s160ms 1s834ms 2s326ms 2s80ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = '7e91cab2-cb46-473e-ad0e-a6f04c47dba8', "write_uid" = 953, "write_date" = (now() at time zone 'UTC') WHERE id IN (658174);
Date: 2023-05-24 15:02:45
6 1 2s864ms 2s864ms 2s864ms 2s864ms select "ir_model_fields".id from "ir_model_fields" where ("ir_model_fields"."model" = ?) order by "ir_model_fields"."name";-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.product') ORDER BY "ir_model_fields"."name";
Date: 2023-05-24 09:47:54
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";
Date: 2023-05-24 09:47:54
7 1 2s738ms 2s738ms 2s738ms 2s738ms update "account_move" set "amount_residual" = ?, "amount_residual_signed" = ?, "payment_state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "amount_residual" = '0.00', "amount_residual_signed" = '0.00', "payment_state" = 'in_payment', "write_uid" = 1046, "write_date" = (now() at time zone 'UTC') WHERE id IN (657745);
Date: 2023-05-24 13:53:31
Queries that waited the most
Rank Wait time Query 1 10s834ms 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 != 657660 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 != 657660 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:45:05 ]
2 8s995ms DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662956) FOR NO KEY UPDATE SKIP LOCKED);[ Date: 2023-05-24 09:47:42 ]
3 8s525ms UPDATE "account_move" SET "message_main_attachment_id" = 2665359, "write_uid" = 965, "write_date" = (now() at time zone 'UTC') WHERE id IN (657068);[ Date: 2023-05-24 12:25:56 ]
4 6s447ms DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662957) FOR NO KEY UPDATE SKIP LOCKED);[ Date: 2023-05-24 09:47:42 ]
5 5s762ms UPDATE "account_move" SET "message_main_attachment_id" = 2669027, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (658227);[ Date: 2023-05-24 15:12:34 ]
6 5s578ms 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 != 657773 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 != 657773 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:58:35 ]
7 5s500ms 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 != 413420 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 != 413420 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:35:11 ]
8 5s276ms 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 != 657576 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 != 657576 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:29:11 ]
9 5s191ms 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 != 658177 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 != 658177 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 15:02:45 ]
10 4s615ms 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-05-24 13:13:10 ]
11 4s517ms UPDATE "account_move" SET "message_main_attachment_id" = 2667728, "write_uid" = 1037, "write_date" = (now() at time zone 'UTC') WHERE id IN (657823);[ Date: 2023-05-24 14:02:08 ]
12 4s284ms 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 != 657394 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 != 657394 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:03:56 ]
13 4s248ms 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 != 657391 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 != 657391 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:03:51 ]
14 4s155ms 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 != 657417 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 != 657417 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:05:17 ]
15 4s101ms UPDATE "account_move" SET "message_main_attachment_id" = 2667592, "write_uid" = 1022, "write_date" = (now() at time zone 'UTC') WHERE id IN (657773);[ Date: 2023-05-24 13:58:15 ]
16 3s981ms UPDATE "account_move" SET "message_main_attachment_id" = 2666683, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (657550);[ Date: 2023-05-24 13:28:27 ]
17 3s946ms 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 != 659140 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 != 659140 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 19:26:03 ]
18 3s856ms 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 != 657392 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 != 657392 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:03:51 ]
19 3s520ms 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 != 371972 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 != 371972 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2023-05-24 13:32:16 ]
20 3s510ms UPDATE "account_move" SET "message_main_attachment_id" = 2664929, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (657004);[ Date: 2023-05-24 12:10:54 ]
-
Queries
Queries by type
Key values
- 47,473 Total read queries
- 17,489 Total write queries
Queries by database
Key values
- unknown Main database
- 64,962 Requests
- 6h5m4s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 64,962 Requests
User Request type Count Duration unknown Total 64,962 6h5m4s copy to 68 8m15s cte 1,580 5m50s ddl 4 1s782ms delete 236 9m45s insert 721 4m12s select 47,473 3h55m23s update 14,880 1h41m34s Duration by user
Key values
- 6h5m4s (unknown) Main time consuming user
User Request type Count Duration unknown Total 64,962 6h5m4s copy to 68 8m15s cte 1,580 5m50s ddl 4 1s782ms delete 236 9m45s insert 721 4m12s select 47,473 3h55m23s update 14,880 1h41m34s Queries by host
Key values
- unknown Main host
- 64,962 Requests
- 6h5m4s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 64,962 Requests
- 6h5m4s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2023-05-24 13:27:49 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 52,299 100-500ms duration
Slowest individual queries
Rank Duration Query 1 3m37s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2023-05-24 09:06:38 ]
2 1m5s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2023-05-24 09:03:00 ]
3 1m4s 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-05-24 09:01:51 ]
4 20s894ms DELETE FROM account_move_line WHERE id IN (2373131, 2373132, 2373092, 2373093, 2373094, 2373095, 2373096, 2373097, 2373098, 2373099, 2373100, 2373101, 2373102, 2373103, 2373104, 2373105, 2373106, 2373107, 2373108, 2373109, 2373110, 2373111, 2373112, 2373113, 2373114, 2373115, 2373116, 2373117, 2373118, 2373119, 2373120, 2373121, 2373122, 2373123, 2373124, 2373125, 2373126, 2373127, 2373128, 2373129, 2373130);[ Date: 2023-05-24 10:17:57 ]
5 20s787ms 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-05-24 09:07:33 ]
6 20s492ms DELETE FROM account_move_line WHERE id IN (2383718, 2383719, 2383720, 2383721, 2383722, 2383723, 2383724, 2383725, 2383726, 2383727, 2383728, 2383729, 2383730, 2383731, 2383732, 2383733, 2383734, 2383735, 2383736, 2383737, 2383738, 2383739, 2383740, 2383741, 2383742, 2383743, 2383744, 2383745, 2383746, 2383747, 2383748, 2383749, 2383750, 2383751, 2383752, 2383753, 2383754, 2383755, 2383756, 2383757);[ Date: 2023-05-24 10:18:21 ]
7 20s333ms COPY public.website_visitor (id, name, access_token, active, website_id, partner_id, country_id, lang_id, timezone, visit_count, create_date, last_connection_datetime, create_uid, write_uid, write_date) TO stdout;[ Date: 2023-05-24 09:08:23 ]
8 19s823ms DELETE FROM account_move_line WHERE id IN (2381020, 2381021, 2381022, 2381023, 2381024, 2381025, 2381026, 2381027, 2381028, 2381029, 2381030, 2381031, 2381032, 2381033, 2381034, 2381035, 2381036, 2381037, 2381038, 2381039, 2381040, 2381041, 2381042, 2381043, 2381044, 2381045, 2381046, 2381047, 2381048, 2381049, 2381050, 2381051, 2381052, 2388615, 2388616, 2388617, 2388618, 2388619);[ Date: 2023-05-24 16:47:25 ]
9 18s353ms UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (431872, 431875, 431864, 415099, 431865, 415056, 415057, 415058, 415059, 415060, 415061, 415063, 415064, 415065, 415066, 415067, 415068, 415069, 415070, 415071, 415072, 415073, 415074, 415075, 415076, 415078, 415079, 415085, 415087, 415088, 415089, 415090, 415091, 431861, 431862, 431863, 415096, 415097, 415098, 415093, 431869);[ Date: 2023-05-24 13:04:28 ]
10 18s123ms UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (425866, 425867, 425868, 425869, 425873, 425875, 425876, 425877, 425880, 425882, 425883, 425886, 425887, 425890, 425891, 425893, 425894, 425895, 425896, 425897, 425898, 425900, 425902, 425903, 425904, 425911, 425914, 425915, 425918, 425919, 425920, 425921, 425922, 425923, 431692, 425821, 425822, 425826, 425827, 425829);[ Date: 2023-05-24 12:29:56 ]
11 16s439ms DELETE FROM product_pricelist_item WHERE id IN (30555, 30554, 30553, 30557, 30560, 30556, 30559, 30558);[ Date: 2023-05-24 16:56:39 ]
12 15s823ms with data as ( select distinct shl.id as record, 3657, 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-05-24 11:16:47' and shl.invoice_date <= '2023-05-24 11:16:47' 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 (3085) and pp.id in (187564) and pp.id not in (207297, 246802, 207571, 179983, 178622, 178753, 178720, 177545, 239475, 190593, 207578, 193195, 173241, 173724, 173313, 239470, 177857, 197261, 190950, 239420, 197248, 173726, 174027, 176928, 180730, 187848, 179405, 199604, 181339, 239394, 181311, 173638, 176960, 181324, 173229, 180855, 190525, 178829, 197240, 179363, 227034, 239345, 207368, 177415, 181323, 206696, 239480, 184561, 206536, 181404, 203327, 205010, 173711, 205001, 181351, 247333, 176920, 181348, 193387, 206620, 178772, 184515, 181388, 173372, 181383, 190636, 174246, 180262, 173216, 246017, 207384, 246016, 206526, 197276, 179984, 173231, 181068, 179583, 246568, 207387) UNION ALL ( select distinct sol.id as record, 3657, 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-05-24 11:16:47' and am.invoice_date <= '2023-05-24 11:16:47' 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 (3085) and pp.id in (187564) and pp.id not in (207297, 246802, 207571, 179983, 178622, 178753, 178720, 177545, 239475, 190593, 207578, 193195, 173241, 173724, 173313, 239470, 177857, 197261, 190950, 239420, 197248, 173726, 174027, 176928, 180730, 187848, 179405, 199604, 181339, 239394, 181311, 173638, 176960, 181324, 173229, 180855, 190525, 178829, 197240, 179363, 227034, 239345, 207368, 177415, 181323, 206696, 239480, 184561, 206536, 181404, 203327, 205010, 173711, 205001, 181351, 247333, 176920, 181348, 193387, 206620, 178772, 184515, 181388, 173372, 181383, 190636, 174246, 180262, 173216, 246017, 207384, 246016, 206526, 197276, 179984, 173231, 181068, 179583, 246568, 207387)) UNION ALL ( select distinct sol.id as record, 3657, 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-05-24 11:16:47' and so.date_order <= '2023-05-24 11:16:47' 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 (3085) and pp.id in (187564) and pp.id not in (207297, 246802, 207571, 179983, 178622, 178753, 178720, 177545, 239475, 190593, 207578, 193195, 173241, 173724, 173313, 239470, 177857, 197261, 190950, 239420, 197248, 173726, 174027, 176928, 180730, 187848, 179405, 199604, 181339, 239394, 181311, 173638, 176960, 181324, 173229, 180855, 190525, 178829, 197240, 179363, 227034, 239345, 207368, 177415, 181323, 206696, 239480, 184561, 206536, 181404, 203327, 205010, 173711, 205001, 181351, 247333, 176920, 181348, 193387, 206620, 178772, 184515, 181388, 173372, 181383, 190636, 174246, 180262, 173216, 246017, 207384, 246016, 206526, 197276, 179984, 173231, 181068, 179583, 246568, 207387)) UNION ALL ( select distinct rol.id as record, 3657, 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-05-24 11:16:47' and ro.create_date <= '2023-05-24 11:16:47' 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 (3085) and pp.id in (187564) and pp.id not in (207297, 246802, 207571, 179983, 178622, 178753, 178720, 177545, 239475, 190593, 207578, 193195, 173241, 173724, 173313, 239470, 177857, 197261, 190950, 239420, 197248, 173726, 174027, 176928, 180730, 187848, 179405, 199604, 181339, 239394, 181311, 173638, 176960, 181324, 173229, 180855, 190525, 178829, 197240, 179363, 227034, 239345, 207368, 177415, 181323, 206696, 239480, 184561, 206536, 181404, 203327, 205010, 173711, 205001, 181351, 247333, 176920, 181348, 193387, 206620, 178772, 184515, 181388, 173372, 181383, 190636, 174246, 180262, 173216, 246017, 207384, 246016, 206526, 197276, 179984, 173231, 181068, 179583, 246568, 207387)) UNION ALL ( select distinct sm.id as record, 3657, 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-05-24 11:16:47' and mrp.create_date <= '2023-05-24 11:16:47' 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 (3085) and pp.id in (187564) and pp.id not in (207297, 246802, 207571, 179983, 178622, 178753, 178720, 177545, 239475, 190593, 207578, 193195, 173241, 173724, 173313, 239470, 177857, 197261, 190950, 239420, 197248, 173726, 174027, 176928, 180730, 187848, 179405, 199604, 181339, 239394, 181311, 173638, 176960, 181324, 173229, 180855, 190525, 178829, 197240, 179363, 227034, 239345, 207368, 177415, 181323, 206696, 239480, 184561, 206536, 181404, 203327, 205010, 173711, 205001, 181351, 247333, 176920, 181348, 193387, 206620, 178772, 184515, 181388, 173372, 181383, 190636, 174246, 180262, 173216, 246017, 207384, 246016, 206526, 197276, 179984, 173231, 181068, 179583, 246568, 207387))) 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 3657, 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-05-24 07:17:39 ]
13 14s854ms DELETE FROM account_move_line WHERE id IN (2352082, 2352083, 2352084, 2352085, 2352086, 2352087, 2352088, 2352089, 2352090, 2352091, 2352092, 2352093, 2352094, 2352095, 2352096, 2352097, 2352098, 2352099, 2352100, 2352101, 2352102, 2352103, 2352104, 2352105, 2352106, 2352107, 2352108, 2380202, 2380203);[ Date: 2023-05-24 00:41:30 ]
14 14s729ms UPDATE "stock_move" SET "date" = '2023-05-24 17:17:41', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (424599, 424600, 424601, 424602, 424603, 424604, 424605, 424606, 424607, 424608, 424609, 424610, 424612, 424613, 424614, 424615, 424616, 424617, 424618, 424619, 424620, 424621, 424622, 424624, 424625, 424626);[ Date: 2023-05-24 17:17:56 ]
15 14s714ms 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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:10:46 ]
16 14s633ms DELETE FROM sale_order_line WHERE id IN (161465, 161466, 161467, 161469, 161470, 161472);[ Date: 2023-05-24 15:10:45 ]
17 14s566ms UPDATE "stock_move" SET "is_done" = true, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (431000, 430995, 430996, 417301, 430997, 417303, 430999, 417305, 417302, 417304, 431001, 417309, 431006, 431007, 417306, 431003, 431004, 431005, 431002, 431008, 431020, 431025, 418226, 431028, 431030, 431033, 431034, 431037, 432462, 432463, 432480, 423778, 431868);[ Date: 2023-05-24 15:48:10 ]
18 14s535ms 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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:12:25 ]
19 14s485ms 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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:07:31 ]
20 14s403ms 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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:11:26 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 59m59s 20,526 164ms 568ms 175ms 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 #1
Day Hour Count Duration Avg duration May 24 00 632 1m46s 169ms 01 2,093 6m1s 172ms 02 1,038 2m57s 171ms 03 856 2m25s 170ms 04 33 5s720ms 173ms 05 3 503ms 167ms 06 2 380ms 190ms 08 9 1s513ms 168ms 09 420 1m11s 169ms 10 694 1m57s 169ms 11 694 1m59s 172ms 12 1,199 3m37s 181ms 13 1,464 4m28s 183ms 14 1,181 3m35s 182ms 15 1,435 4m19s 180ms 16 754 2m12s 175ms 17 1,791 5m15s 176ms 18 802 2m21s 176ms 19 1,585 4m41s 177ms 20 1,519 4m23s 173ms 21 1,418 4m1s 170ms 22 297 50s563ms 170ms 23 607 1m43s 170ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-38c0b4c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 14:10:17 Duration: 568ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-38c0b4c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 09:45:02 Duration: 528ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-acef63c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 13:38:46 Duration: 501ms
2 36m41s 3,722 530ms 1s635ms 591ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 24 10 4 2s252ms 563ms 11 310 2m59s 577ms 12 618 6m4s 590ms 13 456 4m32s 598ms 14 470 4m44s 604ms 15 511 5m3s 594ms 16 418 4m5s 587ms 17 89 53s186ms 597ms 18 408 3m58s 584ms 19 294 2m53s 589ms 20 116 1m7s 583ms 21 28 15s961ms 570ms -
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 ('%%ult%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ult%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ult%'))) 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-05-24 14:21:34 Duration: 1s635ms
-
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 ('%%ultr%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultr%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultr%'))) 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-05-24 14:21:34 Duration: 1s349ms
-
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 ('%%ultra%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultra%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultra%'))) 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-05-24 14:21:34 Duration: 1s244ms
3 14m45s 4,293 120ms 520ms 206ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 24 00 44 6s892ms 156ms 01 26 4s265ms 164ms 02 27 4s455ms 165ms 03 51 8s269ms 162ms 04 32 5s588ms 174ms 05 70 11s154ms 159ms 06 28 4s478ms 159ms 07 28 4s789ms 171ms 08 2 249ms 124ms 09 46 7s667ms 166ms 10 28 4s761ms 170ms 11 151 27s146ms 179ms 12 346 1m14s 215ms 13 434 1m29s 207ms 14 361 1m24s 235ms 15 503 1m37s 193ms 16 508 1m53s 222ms 17 545 2m 221ms 18 178 37s638ms 211ms 19 393 1m25s 218ms 20 223 44s969ms 201ms 21 149 25s849ms 173ms 22 77 13s523ms 175ms 23 43 7s346ms 170ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_972"', '["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 520ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1018"', '["pointspring_master","calendar.alarm",19556]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",111]', '["pointspring_master","mail.channel",112]', '["pointspring_master","mail.channel",369]', '["pointspring_master","mail.channel",430]', '["pointspring_master","mail.channel",475]', '["pointspring_master","res.partner",19556]', '["pointspring_master","ir.needaction",19556]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 504ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1015"', '["pointspring_master","calendar.alarm",19553]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",51]', '["pointspring_master","mail.channel",52]', '["pointspring_master","mail.channel",53]', '["pointspring_master","mail.channel",346]', '["pointspring_master","mail.channel",347]', '["pointspring_master","mail.channel",457]', '["pointspring_master","res.partner",19553]', '["pointspring_master","ir.needaction",19553]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 495ms
4 12m51s 1,297 542ms 994ms 594ms 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 #4
Day Hour Count Duration Avg duration May 24 06 2 1s136ms 568ms 07 3 1s717ms 572ms 10 11 6s336ms 576ms 11 79 45s803ms 579ms 12 285 2m52s 606ms 13 181 1m49s 603ms 14 94 57s993ms 616ms 15 116 1m8s 588ms 16 110 1m4s 588ms 17 106 1m1s 584ms 18 190 1m50s 583ms 19 95 55s572ms 584ms 20 25 14s943ms 597ms -
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 ('%%cp%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cp*%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cp*%'))) 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-05-24 14:22:04 Duration: 994ms
-
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 ('%%n210661%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661%'))) 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-05-24 12:26:12 Duration: 993ms
-
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 ('%%n210661xs%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-xs%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-xs%'))) 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-05-24 12:26:16 Duration: 992ms
5 9m54s 801 698ms 1s240ms 741ms 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 #5
Day Hour Count Duration Avg duration May 24 10 1 721ms 721ms 11 43 31s596ms 734ms 12 119 1m29s 750ms 13 135 1m41s 750ms 14 114 1m25s 753ms 15 69 51s236ms 742ms 16 44 32s167ms 731ms 17 75 55s215ms 736ms 18 77 56s551ms 734ms 19 83 1m 728ms 20 40 28s868ms 721ms 21 1 716ms 716ms -
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 ('%1011e%')) 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 ('%1011e%'))) 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 ('%1011e%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1011e%')))))) 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-05-24 14:25:30 Duration: 1s240ms
-
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 ('%1r12-485%')) 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 ('%1r12-485%'))) 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 ('%1r12-485%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1r12-485%')))))) 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-05-24 12:25:52 Duration: 1s163ms
-
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 ('%LFP928F%')) 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 ('%LFP928F%'))) 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 ('%LFP928F%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%LFP928F%')))))) 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-05-24 13:31:56 Duration: 1s160ms
6 7m47s 553 525ms 2s442ms 845ms update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 24 10 2 1s934ms 967ms 11 11 9s188ms 835ms 12 68 56s124ms 825ms 13 141 1m56s 829ms 14 30 29s732ms 991ms 15 52 45s118ms 867ms 16 77 1m7s 873ms 17 43 34s776ms 808ms 18 43 34s397ms 799ms 19 60 50s201ms 836ms 20 22 18s78ms 821ms 21 4 3s898ms 974ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2023-05-24 14:44:19', "is_done" = true, "state" = 'done', "write_uid" = 1039, "write_date" = (now() at time zone 'UTC') WHERE id IN (429525, 429526);
Date: 2023-05-24 14:44:22 Duration: 2s442ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2023-05-24 16:36:06', "is_done" = true, "state" = 'done', "write_uid" = 1022, "write_date" = (now() at time zone 'UTC') WHERE id IN (432660, 432661);
Date: 2023-05-24 16:36:12 Duration: 2s143ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2023-05-24 16:20:44', "is_done" = true, "state" = 'done', "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (406363, 406355);
Date: 2023-05-24 16:20:51 Duration: 1s923ms
7 7m38s 1,199 277ms 664ms 382ms select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 24 11 29 8s473ms 292ms 12 393 2m23s 365ms 13 758 5m 396ms 20 19 5s799ms 305ms -
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 12:43:10 Duration: 664ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 634ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 615ms
8 7m24s 833 138ms 2s986ms 533ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 24 10 2 1s192ms 596ms 11 28 13s785ms 492ms 12 115 58s956ms 512ms 13 221 1m56s 528ms 14 106 56s189ms 530ms 15 91 54s20ms 593ms 16 78 43s648ms 559ms 17 43 19s19ms 442ms 18 40 20s316ms 507ms 19 67 38s725ms 577ms 20 39 19s165ms 491ms 21 3 2s345ms 781ms -
UPDATE "stock_quant" SET "quantity" = 2.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (239648, 268264, 42507, 244271, 39764, 292758, 42171);
Date: 2023-05-24 15:47:27 Duration: 2s986ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (237058, 46181, 265991, 162068, 43253);
Date: 2023-05-24 13:01:42 Duration: 2s859ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (39847, 39018, 297977, 294842, 297757);
Date: 2023-05-24 15:47:32 Duration: 2s813ms
9 5m43s 2,264 120ms 298ms 151ms select count(distinct (so.id)) as total_orders from sale_order as so left join sale_order_line as sol on sol.order_id = so.id left join product_warehouse_inventory as pwi on pwi.product_id = sol.product_id left join stock_warehouse as sw on sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= ?::timestamp and so.date_order <= ?::timestamp and sol.product_id = ? and so.state in (...) and so.warehouse_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 24 00 261 40s915ms 156ms 01 199 29s519ms 148ms 02 197 29s967ms 152ms 03 158 23s411ms 148ms 04 166 24s777ms 149ms 05 183 27s170ms 148ms 06 159 23s679ms 148ms 07 147 22s379ms 152ms 08 174 26s315ms 151ms 09 172 25s126ms 146ms 22 221 34s177ms 154ms 23 227 35s732ms 157ms -
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T02:30:01.334845'::timestamp and so.date_order <= '2023-05-24T02:30:01.334845'::timestamp and sol.product_id = 184787 and so.state in ('done', 'sale') and so.warehouse_id = 41;
Date: 2023-05-24 02:30:08 Duration: 298ms
-
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T00:30:16.407603'::timestamp and so.date_order <= '2023-05-24T00:30:16.407603'::timestamp and sol.product_id = 193576 and so.state in ('done', 'sale') and so.warehouse_id = 35;
Date: 2023-05-24 00:30:58 Duration: 295ms
-
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T01:30:12.844839'::timestamp and so.date_order <= '2023-05-24T01:30:12.844839'::timestamp and sol.product_id = 188558 and so.state in ('done', 'sale') and so.warehouse_id = 36;
Date: 2023-05-24 01:35:33 Duration: 292ms
10 5m39s 24 13s866ms 14s714ms 14s141ms 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 #10
Day Hour Count Duration Avg duration May 24 17 24 5m39s 14s141ms -
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:10:46 Duration: 14s714ms
-
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:12:25 Duration: 14s535ms
-
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:07:31 Duration: 14s485ms
11 5m35s 278 147ms 8s442ms 1s205ms 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 #11
Day Hour Count Duration Avg duration May 24 11 13 23s747ms 1s826ms 12 43 57s395ms 1s334ms 13 43 57s908ms 1s346ms 14 35 32s331ms 923ms 15 33 32s202ms 975ms 16 33 38s174ms 1s156ms 17 13 15s291ms 1s176ms 18 27 33s900ms 1s255ms 19 25 27s979ms 1s119ms 20 12 13s947ms 1s162ms 21 1 2s286ms 2s286ms -
UPDATE "stock_move" SET "branch_id" = 48, "picking_id" = 152239, "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 (432000, 432001, 432002, 432003, 432005, 431987, 431988, 431989, 431990, 431991, 431992, 431993, 431994, 431995, 431996, 431997, 431998, 431999);
Date: 2023-05-24 13:27:56 Duration: 8s442ms
-
UPDATE "stock_move" SET "branch_id" = 38, "picking_id" = 152768, "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 (432833, 432834, 432835, 432837, 432838, 432839, 432840, 432841, 432842, 432843, 432844, 432845, 432846, 432831);
Date: 2023-05-24 17:16:36 Duration: 6s946ms
-
UPDATE "stock_move" SET "branch_id" = 46, "picking_id" = 152061, "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 (431700, 431701, 431703, 431704, 431705, 431706, 431707, 431708, 431709, 431710);
Date: 2023-05-24 12:28:50 Duration: 6s5ms
12 5m27s 556 539ms 874ms 589ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."type" != ?) or "product_product__product_tmpl_id"."type" is null)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 24 11 8 4s553ms 569ms 12 82 48s348ms 589ms 13 75 45s167ms 602ms 14 101 59s661ms 590ms 15 70 40s928ms 584ms 16 40 23s725ms 593ms 17 29 16s817ms 579ms 18 95 56s197ms 591ms 19 54 31s278ms 579ms 20 2 1s101ms 550ms -
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 ('%%n2106611xsa%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-1xsa%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-1xsa%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 14:57:10 Duration: 874ms
-
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 ('%%n2106611x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-1x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-1x%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 14:57:10 Duration: 820ms
-
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 ('%%bti%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%bti%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%bti%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 16:44:01 Duration: 820ms
13 5m14s 71 508ms 20s894ms 4s429ms delete from account_move_line where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 24 00 15 1m11s 4s756ms 07 1 1s85ms 1s85ms 10 16 1m57s 7s351ms 11 1 546ms 546ms 12 4 13s118ms 3s279ms 13 1 9s67ms 9s67ms 14 4 5s817ms 1s454ms 15 8 16s324ms 2s40ms 16 12 56s260ms 4s688ms 18 8 22s292ms 2s786ms 23 1 1s20ms 1s20ms -
DELETE FROM account_move_line WHERE id IN (2373131, 2373132, 2373092, 2373093, 2373094, 2373095, 2373096, 2373097, 2373098, 2373099, 2373100, 2373101, 2373102, 2373103, 2373104, 2373105, 2373106, 2373107, 2373108, 2373109, 2373110, 2373111, 2373112, 2373113, 2373114, 2373115, 2373116, 2373117, 2373118, 2373119, 2373120, 2373121, 2373122, 2373123, 2373124, 2373125, 2373126, 2373127, 2373128, 2373129, 2373130);
Date: 2023-05-24 10:17:57 Duration: 20s894ms
-
DELETE FROM account_move_line WHERE id IN (2383718, 2383719, 2383720, 2383721, 2383722, 2383723, 2383724, 2383725, 2383726, 2383727, 2383728, 2383729, 2383730, 2383731, 2383732, 2383733, 2383734, 2383735, 2383736, 2383737, 2383738, 2383739, 2383740, 2383741, 2383742, 2383743, 2383744, 2383745, 2383746, 2383747, 2383748, 2383749, 2383750, 2383751, 2383752, 2383753, 2383754, 2383755, 2383756, 2383757);
Date: 2023-05-24 10:18:21 Duration: 20s492ms
-
DELETE FROM account_move_line WHERE id IN (2381020, 2381021, 2381022, 2381023, 2381024, 2381025, 2381026, 2381027, 2381028, 2381029, 2381030, 2381031, 2381032, 2381033, 2381034, 2381035, 2381036, 2381037, 2381038, 2381039, 2381040, 2381041, 2381042, 2381043, 2381044, 2381045, 2381046, 2381047, 2381048, 2381049, 2381050, 2381051, 2381052, 2388615, 2388616, 2388617, 2388618, 2388619);
Date: 2023-05-24 16:47:25 Duration: 19s823ms
14 5m8s 345 854ms 1s74ms 894ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?)))) order by coalesce("product_template"."is_published", false) desc, "product_template"."website_sequence" asc, "product_template"."id" desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 24 10 1 876ms 876ms 11 142 2m5s 882ms 12 31 28s682ms 925ms 13 15 13s738ms 915ms 14 2 1s741ms 870ms 15 36 33s49ms 918ms 16 44 39s215ms 891ms 18 24 21s479ms 894ms 19 41 36s584ms 892ms 20 9 8s3ms 889ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%RSL5900%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RSL5900%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%RSL5900%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%RSL5900%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%RSL5900%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%RSL5900%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 11:49:10 Duration: 1s74ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%5008%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5008%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%5008%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%5008%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%5008%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%5008%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 12:30:13 Duration: 1s39ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%500857%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%500857%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%500857%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%500857%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%500857%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%500857%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 12:30:54 Duration: 1s27ms
15 4m54s 1,337 120ms 686ms 220ms with currency_rate as ( select r.currency_id, coalesce(r.company_id, c.id) as company_id, r.rate, r.name as date_start, ( select name from res_currency_rate r2 where r2.name > r.name and r2.currency_id = r.currency_id and (r2.company_id is null or r2.company_id = c.id) order by r2.name asc limit ?) as date_end from res_currency_rate r join res_company c on (r.company_id is null or r.company_id = c.id)) select l.product_id as product_id, sum(l.price_unit / ( case coalesce(cr.rate, ?) when ? then ?.? else cr.rate end) * l.quantity * ( case when i.move_type in (...) then ? else ? end) * ((? - l.discount) * ?.?)) / nullif (sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)), ?) as avg_unit_price, sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)) as num_qty, sum(abs(l.balance) * ( case when i.move_type in (...) then ? else ? end)) as total, sum(l.quantity * pt.list_price * ( case when i.move_type in (...) then ? else ? end)) as sale_expected from account_move_line l left join account_move i on (l.move_id = i.id) left join product_product product on (product.id = l.product_id) left join product_template pt on (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= coalesce(i.invoice_date, now()) and (cr.date_end is null or cr.date_end > coalesce(i.invoice_date, now()))) where l.product_id in (...) and i.state in (...) and i.payment_state in (...) and i.move_type in (...) and i.invoice_date between ? and ? and i.company_id = ? and l.display_type is null and l.exclude_from_invoice_tab = false group by l.product_id;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 24 06 2 421ms 210ms 09 2 434ms 217ms 10 4 918ms 229ms 11 23 5s36ms 218ms 12 176 38s742ms 220ms 13 244 53s425ms 218ms 14 234 52s744ms 225ms 15 187 40s719ms 217ms 16 90 19s651ms 218ms 17 96 21s367ms 222ms 18 131 28s542ms 217ms 19 102 22s439ms 219ms 20 44 9s707ms 220ms 21 2 438ms 219ms -
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204854, 204823) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:11:20 Duration: 686ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204371, 204372, 203803, 204035, 203741, 203744, 204308) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:22:04 Duration: 389ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (206278, 206034) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 13:13:09 Duration: 382ms
16 4m48s 1,030 246ms 1s257ms 280ms 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 #16
Day Hour Count Duration Avg duration May 24 11 60 16s394ms 273ms 12 190 53s222ms 280ms 13 171 50s935ms 297ms 14 104 29s965ms 288ms 15 113 31s305ms 277ms 16 111 31s391ms 282ms 17 42 10s991ms 261ms 18 100 26s975ms 269ms 19 98 26s791ms 273ms 20 34 8s868ms 260ms 21 7 1s918ms 274ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161223)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 13:55:44 Duration: 1s257ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161598)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 15:50:58 Duration: 1s72ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161701)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 16:50:44 Duration: 1s6ms
17 4m44s 318 852ms 1s349ms 894ms select count(?) from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?))));Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 24 10 1 860ms 860ms 11 130 1m54s 883ms 12 28 25s399ms 907ms 13 15 13s672ms 911ms 14 2 1s731ms 865ms 15 34 31s670ms 931ms 16 39 34s282ms 879ms 18 23 20s760ms 902ms 19 38 33s891ms 891ms 20 8 7s240ms 905ms -
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%N3985001%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N3985001%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%N3985001%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%N3985001%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%N3985001%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%N3985001%'))));
Date: 2023-05-24 15:00:38 Duration: 1s349ms
-
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%axp4515ku%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%axp4515ku%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%axp4515ku%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%axp4515ku%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%axp4515ku%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%axp4515ku%'))));
Date: 2023-05-24 15:19:47 Duration: 1s292ms
-
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%50085%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%50085%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%50085%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%50085%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%50085%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%50085%'))));
Date: 2023-05-24 12:30:16 Duration: 1s52ms
18 4m37s 126 289ms 14s729ms 2s202ms update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 24 10 1 790ms 790ms 11 3 4s492ms 1s497ms 12 21 50s430ms 2s401ms 13 27 1m15s 2s784ms 14 26 46s519ms 1s789ms 15 16 32s31ms 2s1ms 16 3 11s361ms 3s787ms 17 9 28s108ms 3s123ms 18 11 15s160ms 1s378ms 19 4 3s562ms 890ms 20 5 9s878ms 1s975ms -
UPDATE "stock_move" SET "date" = '2023-05-24 17:17:41', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (424599, 424600, 424601, 424602, 424603, 424604, 424605, 424606, 424607, 424608, 424609, 424610, 424612, 424613, 424614, 424615, 424616, 424617, 424618, 424619, 424620, 424621, 424622, 424624, 424625, 424626);
Date: 2023-05-24 17:17:56 Duration: 14s729ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 13:28:17', "state" = 'done', "write_uid" = 965, "write_date" = (now() at time zone 'UTC') WHERE id IN (432001, 432002, 432003, 432005, 431988, 431989, 431992, 431993, 431994, 431995, 431996, 431997, 431998, 431999);
Date: 2023-05-24 13:28:31 Duration: 11s261ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 16:15:31', "state" = 'done', "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (432096, 432097, 432098, 432099, 432100, 432101, 432294, 432103, 432093, 432094, 432095);
Date: 2023-05-24 16:15:42 Duration: 9s423ms
19 4m20s 309 521ms 3s530ms 844ms update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 24 11 14 9s334ms 666ms 12 37 27s473ms 742ms 13 42 33s492ms 797ms 14 67 54s655ms 815ms 15 35 26s435ms 755ms 16 32 30s962ms 967ms 17 25 18s566ms 742ms 18 19 15s335ms 807ms 19 26 35s854ms 1s379ms 20 12 8s704ms 725ms -
UPDATE "stock_move" SET "date" = '2023-05-24 19:25:02', "is_done" = true, "state" = 'done', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (420741, 433268, 433146, 433149, 433151);
Date: 2023-05-24 19:25:07 Duration: 3s530ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 16:11:09', "is_done" = true, "state" = 'done', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (432576, 432577, 432574, 432575);
Date: 2023-05-24 16:11:14 Duration: 3s218ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 19:52:11', "is_done" = true, "state" = 'done', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (433347, 433348, 433349);
Date: 2023-05-24 19:52:16 Duration: 3s176ms
20 4m16s 649 138ms 7s715ms 395ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 24 10 1 835ms 835ms 11 29 12s149ms 418ms 12 83 29s100ms 350ms 13 72 30s906ms 429ms 14 78 25s939ms 332ms 15 65 38s487ms 592ms 16 75 30s688ms 409ms 17 71 31s264ms 440ms 18 83 23s960ms 288ms 19 64 23s951ms 374ms 20 27 9s249ms 342ms 21 1 435ms 435ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (432429, 432430, 432431, 432432, 432433, 432434, 432435, 432436, 432437, 432438, 432439, 432440, 432441);
Date: 2023-05-24 15:37:13 Duration: 7s715ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 978, "write_date" = (now() at time zone 'UTC') WHERE id IN (432485, 432486, 432487, 432488, 432489, 432490, 432491, 432492, 432493);
Date: 2023-05-24 15:47:22 Duration: 3s660ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (431872, 431875, 431861, 431862, 431863, 431864, 431865, 431869);
Date: 2023-05-24 13:03:11 Duration: 3s277ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 20,526 59m59s 164ms 568ms 175ms 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 #1
Day Hour Count Duration Avg duration May 24 00 632 1m46s 169ms 01 2,093 6m1s 172ms 02 1,038 2m57s 171ms 03 856 2m25s 170ms 04 33 5s720ms 173ms 05 3 503ms 167ms 06 2 380ms 190ms 08 9 1s513ms 168ms 09 420 1m11s 169ms 10 694 1m57s 169ms 11 694 1m59s 172ms 12 1,199 3m37s 181ms 13 1,464 4m28s 183ms 14 1,181 3m35s 182ms 15 1,435 4m19s 180ms 16 754 2m12s 175ms 17 1,791 5m15s 176ms 18 802 2m21s 176ms 19 1,585 4m41s 177ms 20 1,519 4m23s 173ms 21 1,418 4m1s 170ms 22 297 50s563ms 170ms 23 607 1m43s 170ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-38c0b4c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 14:10:17 Duration: 568ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-38c0b4c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 09:45:02 Duration: 528ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_frontend_lazy.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-acef63c/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2023-05-24 13:38:46 Duration: 501ms
2 4,293 14m45s 120ms 520ms 206ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 24 00 44 6s892ms 156ms 01 26 4s265ms 164ms 02 27 4s455ms 165ms 03 51 8s269ms 162ms 04 32 5s588ms 174ms 05 70 11s154ms 159ms 06 28 4s478ms 159ms 07 28 4s789ms 171ms 08 2 249ms 124ms 09 46 7s667ms 166ms 10 28 4s761ms 170ms 11 151 27s146ms 179ms 12 346 1m14s 215ms 13 434 1m29s 207ms 14 361 1m24s 235ms 15 503 1m37s 193ms 16 508 1m53s 222ms 17 545 2m 221ms 18 178 37s638ms 211ms 19 393 1m25s 218ms 20 223 44s969ms 201ms 21 149 25s849ms 173ms 22 77 13s523ms 175ms 23 43 7s346ms 170ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_972"', '["pointspring_master","calendar.alarm",19510]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",84]', '["pointspring_master","mail.channel",85]', '["pointspring_master","mail.channel",86]', '["pointspring_master","mail.channel",87]', '["pointspring_master","res.partner",19510]', '["pointspring_master","ir.needaction",19510]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 520ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1018"', '["pointspring_master","calendar.alarm",19556]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",111]', '["pointspring_master","mail.channel",112]', '["pointspring_master","mail.channel",369]', '["pointspring_master","mail.channel",430]', '["pointspring_master","mail.channel",475]', '["pointspring_master","res.partner",19556]', '["pointspring_master","ir.needaction",19556]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 504ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2023-05-24 12:14:32') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1015"', '["pointspring_master","calendar.alarm",19553]', '["pointspring_master","mail.channel",1]', '["pointspring_master","mail.channel",51]', '["pointspring_master","mail.channel",52]', '["pointspring_master","mail.channel",53]', '["pointspring_master","mail.channel",346]', '["pointspring_master","mail.channel",347]', '["pointspring_master","mail.channel",457]', '["pointspring_master","res.partner",19553]', '["pointspring_master","ir.needaction",19553]'))) ORDER BY "bus_bus"."id";
Date: 2023-05-24 12:15:22 Duration: 495ms
3 3,722 36m41s 530ms 1s635ms 591ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 24 10 4 2s252ms 563ms 11 310 2m59s 577ms 12 618 6m4s 590ms 13 456 4m32s 598ms 14 470 4m44s 604ms 15 511 5m3s 594ms 16 418 4m5s 587ms 17 89 53s186ms 597ms 18 408 3m58s 584ms 19 294 2m53s 589ms 20 116 1m7s 583ms 21 28 15s961ms 570ms -
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 ('%%ult%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ult%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ult%'))) 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-05-24 14:21:34 Duration: 1s635ms
-
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 ('%%ultr%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultr%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultr%'))) 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-05-24 14:21:34 Duration: 1s349ms
-
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 ('%%ultra%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultra%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultra%'))) 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-05-24 14:21:34 Duration: 1s244ms
4 2,264 5m43s 120ms 298ms 151ms select count(distinct (so.id)) as total_orders from sale_order as so left join sale_order_line as sol on sol.order_id = so.id left join product_warehouse_inventory as pwi on pwi.product_id = sol.product_id left join stock_warehouse as sw on sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= ?::timestamp and so.date_order <= ?::timestamp and sol.product_id = ? and so.state in (...) and so.warehouse_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 24 00 261 40s915ms 156ms 01 199 29s519ms 148ms 02 197 29s967ms 152ms 03 158 23s411ms 148ms 04 166 24s777ms 149ms 05 183 27s170ms 148ms 06 159 23s679ms 148ms 07 147 22s379ms 152ms 08 174 26s315ms 151ms 09 172 25s126ms 146ms 22 221 34s177ms 154ms 23 227 35s732ms 157ms -
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T02:30:01.334845'::timestamp and so.date_order <= '2023-05-24T02:30:01.334845'::timestamp and sol.product_id = 184787 and so.state in ('done', 'sale') and so.warehouse_id = 41;
Date: 2023-05-24 02:30:08 Duration: 298ms
-
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T00:30:16.407603'::timestamp and so.date_order <= '2023-05-24T00:30:16.407603'::timestamp and sol.product_id = 193576 and so.state in ('done', 'sale') and so.warehouse_id = 35;
Date: 2023-05-24 00:30:58 Duration: 295ms
-
select count(distinct (so.id)) as total_orders from sale_order as so LEFT JOIN sale_order_line as sol ON sol.order_id = so.id LEFT JOIN product_warehouse_inventory as pwi ON pwi.product_id = sol.product_id LEFT JOIN stock_warehouse as sw ON sw.id = so.warehouse_id and sw.id = pwi.warehouse_id where so.date_order >= '2022-11-24T01:30:12.844839'::timestamp and so.date_order <= '2023-05-24T01:30:12.844839'::timestamp and sol.product_id = 188558 and so.state in ('done', 'sale') and so.warehouse_id = 36;
Date: 2023-05-24 01:35:33 Duration: 292ms
5 1,388 4m16s 172ms 380ms 184ms 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 #5
Day Hour Count Duration Avg duration May 24 08 1 179ms 179ms 10 2 354ms 177ms 11 53 9s317ms 175ms 12 140 25s999ms 185ms 13 203 37s824ms 186ms 14 171 32s645ms 190ms 15 219 40s674ms 185ms 16 132 24s256ms 183ms 17 154 28s89ms 182ms 18 132 24s20ms 181ms 19 115 21s156ms 183ms 20 66 11s812ms 178ms -
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 ('%G-01374%') OR unaccent (res_partner.display_name) ilike unaccent ('%G-01374%') OR unaccent (res_partner.ref) ilike unaccent ('%G-01374%') OR unaccent (res_partner.vat) ilike unaccent ('G-01374')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%G-01374%') desc, unaccent (res_partner.display_name);
Date: 2023-05-24 13:13:06 Duration: 380ms
-
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 ('%f-00746%') OR unaccent (res_partner.display_name) ilike unaccent ('%f-00746%') OR unaccent (res_partner.ref) ilike unaccent ('%f-00746%') OR unaccent (res_partner.vat) ilike unaccent ('f-00746')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%f-00746%') desc, unaccent (res_partner.display_name);
Date: 2023-05-24 14:57:36 Duration: 323ms
-
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 ('%G-01046%') OR unaccent (res_partner.display_name) ilike unaccent ('%G-01046%') OR unaccent (res_partner.ref) ilike unaccent ('%G-01046%') OR unaccent (res_partner.vat) ilike unaccent ('G-01046')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%G-01046%') desc, unaccent (res_partner.display_name);
Date: 2023-05-24 14:40:00 Duration: 322ms
6 1,337 4m54s 120ms 686ms 220ms with currency_rate as ( select r.currency_id, coalesce(r.company_id, c.id) as company_id, r.rate, r.name as date_start, ( select name from res_currency_rate r2 where r2.name > r.name and r2.currency_id = r.currency_id and (r2.company_id is null or r2.company_id = c.id) order by r2.name asc limit ?) as date_end from res_currency_rate r join res_company c on (r.company_id is null or r.company_id = c.id)) select l.product_id as product_id, sum(l.price_unit / ( case coalesce(cr.rate, ?) when ? then ?.? else cr.rate end) * l.quantity * ( case when i.move_type in (...) then ? else ? end) * ((? - l.discount) * ?.?)) / nullif (sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)), ?) as avg_unit_price, sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)) as num_qty, sum(abs(l.balance) * ( case when i.move_type in (...) then ? else ? end)) as total, sum(l.quantity * pt.list_price * ( case when i.move_type in (...) then ? else ? end)) as sale_expected from account_move_line l left join account_move i on (l.move_id = i.id) left join product_product product on (product.id = l.product_id) left join product_template pt on (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= coalesce(i.invoice_date, now()) and (cr.date_end is null or cr.date_end > coalesce(i.invoice_date, now()))) where l.product_id in (...) and i.state in (...) and i.payment_state in (...) and i.move_type in (...) and i.invoice_date between ? and ? and i.company_id = ? and l.display_type is null and l.exclude_from_invoice_tab = false group by l.product_id;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 24 06 2 421ms 210ms 09 2 434ms 217ms 10 4 918ms 229ms 11 23 5s36ms 218ms 12 176 38s742ms 220ms 13 244 53s425ms 218ms 14 234 52s744ms 225ms 15 187 40s719ms 217ms 16 90 19s651ms 218ms 17 96 21s367ms 222ms 18 131 28s542ms 217ms 19 102 22s439ms 219ms 20 44 9s707ms 220ms 21 2 438ms 219ms -
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204854, 204823) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:11:20 Duration: 686ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204371, 204372, 203803, 204035, 203741, 203744, 204308) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:22:04 Duration: 389ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (206278, 206034) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 13:13:09 Duration: 382ms
7 1,297 12m51s 542ms 994ms 594ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 24 06 2 1s136ms 568ms 07 3 1s717ms 572ms 10 11 6s336ms 576ms 11 79 45s803ms 579ms 12 285 2m52s 606ms 13 181 1m49s 603ms 14 94 57s993ms 616ms 15 116 1m8s 588ms 16 110 1m4s 588ms 17 106 1m1s 584ms 18 190 1m50s 583ms 19 95 55s572ms 584ms 20 25 14s943ms 597ms -
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 ('%%cp%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cp*%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cp*%'))) 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-05-24 14:22:04 Duration: 994ms
-
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 ('%%n210661%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661%'))) 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-05-24 12:26:12 Duration: 993ms
-
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 ('%%n210661xs%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-xs%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-xs%'))) 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-05-24 12:26:16 Duration: 992ms
8 1,199 7m38s 277ms 664ms 382ms select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 24 11 29 8s473ms 292ms 12 393 2m23s 365ms 13 758 5m 396ms 20 19 5s799ms 305ms -
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 12:43:10 Duration: 664ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 634ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 615ms
9 1,030 4m48s 246ms 1s257ms 280ms 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 #9
Day Hour Count Duration Avg duration May 24 11 60 16s394ms 273ms 12 190 53s222ms 280ms 13 171 50s935ms 297ms 14 104 29s965ms 288ms 15 113 31s305ms 277ms 16 111 31s391ms 282ms 17 42 10s991ms 261ms 18 100 26s975ms 269ms 19 98 26s791ms 273ms 20 34 8s868ms 260ms 21 7 1s918ms 274ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161223)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 13:55:44 Duration: 1s257ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161598)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 15:50:58 Duration: 1s72ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161701)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 16:50:44 Duration: 1s6ms
10 1,030 3m46s 138ms 1s931ms 220ms update "sale_order_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 24 11 83 17s780ms 214ms 12 169 38s553ms 228ms 13 160 35s748ms 223ms 14 94 21s450ms 228ms 15 167 36s126ms 216ms 16 116 25s346ms 218ms 17 36 7s718ms 214ms 18 88 18s934ms 215ms 19 80 17s408ms 217ms 20 32 6s765ms 211ms 21 5 1s31ms 206ms -
UPDATE "sale_order_line" SET "write_uid" = 1140, "write_date" = (now() at time zone 'UTC') WHERE id IN (161029, 161031, 161032, 161006, 161038, 161008, 161009, 161010, 161041);
Date: 2023-05-24 12:04:49 Duration: 1s931ms
-
UPDATE "sale_order_line" SET "write_uid" = 1039, "write_date" = (now() at time zone 'UTC') WHERE id IN (161415);
Date: 2023-05-24 14:21:33 Duration: 813ms
-
UPDATE "sale_order_line" SET "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (161222);
Date: 2023-05-24 13:55:42 Duration: 500ms
11 1,025 2m31s 131ms 1s311ms 147ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 24 11 67 9s371ms 139ms 12 160 23s337ms 145ms 13 142 23s818ms 167ms 14 105 15s344ms 146ms 15 134 19s279ms 143ms 16 115 16s483ms 143ms 17 75 10s943ms 145ms 18 102 14s639ms 143ms 19 74 10s856ms 146ms 20 48 6s849ms 142ms 21 3 425ms 141ms -
UPDATE "stock_quant" SET "reserved_quantity" = 3.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (255393, 962, 422, 968, 287819, 1070, 218449, 916, 918);
Date: 2023-05-24 13:01:14 Duration: 1s311ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 2.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (320, 836, 1928, 744, 1228, 756, 406, 163034, 1948);
Date: 2023-05-24 13:01:12 Duration: 1s268ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 1.0, "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (866, 277381, 301036, 978, 253554);
Date: 2023-05-24 13:01:12 Duration: 685ms
12 1,002 3m56s 120ms 579ms 235ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 24 11 18 2s432ms 135ms 12 30 4s757ms 158ms 13 445 1m49s 246ms 14 433 1m48s 251ms 15 22 3s102ms 141ms 16 13 1s671ms 128ms 17 9 1s436ms 159ms 18 16 2s218ms 138ms 19 10 1s392ms 139ms 20 6 811ms 135ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (239049)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:21:33 Duration: 579ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177535, 177536, 177541, 177543, 177534, 177532)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:11:19 Duration: 546ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (180730, 180751, 180822, 180807, 180855)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:11:19 Duration: 530ms
13 833 7m24s 138ms 2s986ms 533ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 24 10 2 1s192ms 596ms 11 28 13s785ms 492ms 12 115 58s956ms 512ms 13 221 1m56s 528ms 14 106 56s189ms 530ms 15 91 54s20ms 593ms 16 78 43s648ms 559ms 17 43 19s19ms 442ms 18 40 20s316ms 507ms 19 67 38s725ms 577ms 20 39 19s165ms 491ms 21 3 2s345ms 781ms -
UPDATE "stock_quant" SET "quantity" = 2.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (239648, 268264, 42507, 244271, 39764, 292758, 42171);
Date: 2023-05-24 15:47:27 Duration: 2s986ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (237058, 46181, 265991, 162068, 43253);
Date: 2023-05-24 13:01:42 Duration: 2s859ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (39847, 39018, 297977, 294842, 297757);
Date: 2023-05-24 15:47:32 Duration: 2s813ms
14 816 3m4s 199ms 852ms 226ms update "sale_order_line" set "invoice_status" = ?, "open_qty_fil" = ?.?, "qty_delivered" = ?, "qty_to_invoice" = ?, "untaxed_amount_to_invoice" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 24 10 4 864ms 216ms 11 23 5s235ms 227ms 12 122 27s80ms 221ms 13 231 51s618ms 223ms 14 108 24s303ms 225ms 15 82 19s16ms 231ms 16 81 18s80ms 223ms 17 26 6s639ms 255ms 18 52 11s539ms 221ms 19 49 11s978ms 244ms 20 33 7s150ms 216ms 21 5 1s51ms 210ms -
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 2.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (157416, 143515, 143517, 157414);
Date: 2023-05-24 17:18:16 Duration: 852ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'to invoice', "open_qty_fil" = 0.0, "qty_delivered" = '-4.00', "qty_to_invoice" = '-4.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1025, "write_date" = (now() at time zone 'UTC') WHERE id IN (161939, 161940, 161942, 161943);
Date: 2023-05-24 19:53:53 Duration: 822ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 1.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 967, "write_date" = (now() at time zone 'UTC') WHERE id IN (116272, 157450, 86179);
Date: 2023-05-24 12:02:41 Duration: 665ms
15 801 9m54s 698ms 1s240ms 741ms 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 #15
Day Hour Count Duration Avg duration May 24 10 1 721ms 721ms 11 43 31s596ms 734ms 12 119 1m29s 750ms 13 135 1m41s 750ms 14 114 1m25s 753ms 15 69 51s236ms 742ms 16 44 32s167ms 731ms 17 75 55s215ms 736ms 18 77 56s551ms 734ms 19 83 1m 728ms 20 40 28s868ms 721ms 21 1 716ms 716ms -
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 ('%1011e%')) 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 ('%1011e%'))) 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 ('%1011e%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1011e%')))))) 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-05-24 14:25:30 Duration: 1s240ms
-
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 ('%1r12-485%')) 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 ('%1r12-485%'))) 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 ('%1r12-485%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1r12-485%')))))) 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-05-24 12:25:52 Duration: 1s163ms
-
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 ('%LFP928F%')) 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 ('%LFP928F%'))) 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 ('%LFP928F%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%LFP928F%')))))) 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-05-24 13:31:56 Duration: 1s160ms
16 732 2m40s 198ms 443ms 218ms 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 (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 24 10 3 607ms 202ms 11 21 4s381ms 208ms 12 111 24s470ms 220ms 13 211 46s392ms 219ms 14 96 21s71ms 219ms 15 65 14s132ms 217ms 16 71 16s35ms 225ms 17 32 6s779ms 211ms 18 45 9s537ms 211ms 19 39 8s639ms 221ms 20 33 7s174ms 217ms 21 5 1s36ms 207ms -
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '1.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '104.99', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (161660, 161661);
Date: 2023-05-24 16:34:09 Duration: 443ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '2.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '125.36', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 983, "write_date" = (now() at time zone 'UTC') WHERE id IN (161035, 161037);
Date: 2023-05-24 13:28:24 Duration: 442ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'invoiced', "qty_invoiced" = '1.00', "qty_to_invoice" = '0.00', "untaxed_amount_invoiced" = '56.14', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 961, "write_date" = (now() at time zone 'UTC') WHERE id IN (161645, 161646);
Date: 2023-05-24 16:14:18 Duration: 439ms
17 657 1m54s 136ms 1s49ms 173ms 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 #17
Day Hour Count Duration Avg duration May 24 11 47 7s486ms 159ms 12 112 19s922ms 177ms 13 100 18s33ms 180ms 14 65 11s2ms 169ms 15 73 11s400ms 156ms 16 79 13s306ms 168ms 17 32 5s36ms 157ms 18 61 12s284ms 201ms 19 55 10s582ms 192ms 20 29 4s464ms 153ms 21 4 587ms 146ms -
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 1.0, "reference" = '13-T/OUT/11027', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (432992, 432984, 432985, 432986, 432987, 432989, 432991);
Date: 2023-05-24 18:03:39 Duration: 1s49ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 4.0, "reference" = '03-C/OUT/06841', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 1018, "write_date" = (now() at time zone 'UTC') WHERE id IN (431636, 431637, 431638, 431639, 431640, 431641);
Date: 2023-05-24 12:14:14 Duration: 875ms
-
UPDATE "stock_move" SET "delay_alert_date" = NULL, "is_done" = false, "picking_code" = 'outgoing', "product_qty" = 10.0, "reference" = '10-I/OUT/08632', "unit_factor" = 1.0, "weight" = '0.00', "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (432099, 432101, 432102, 432103, 432094);
Date: 2023-05-24 13:56:15 Duration: 763ms
18 649 4m16s 138ms 7s715ms 395ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 24 10 1 835ms 835ms 11 29 12s149ms 418ms 12 83 29s100ms 350ms 13 72 30s906ms 429ms 14 78 25s939ms 332ms 15 65 38s487ms 592ms 16 75 30s688ms 409ms 17 71 31s264ms 440ms 18 83 23s960ms 288ms 19 64 23s951ms 374ms 20 27 9s249ms 342ms 21 1 435ms 435ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (432429, 432430, 432431, 432432, 432433, 432434, 432435, 432436, 432437, 432438, 432439, 432440, 432441);
Date: 2023-05-24 15:37:13 Duration: 7s715ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 978, "write_date" = (now() at time zone 'UTC') WHERE id IN (432485, 432486, 432487, 432488, 432489, 432490, 432491, 432492, 432493);
Date: 2023-05-24 15:47:22 Duration: 3s660ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (431872, 431875, 431861, 431862, 431863, 431864, 431865, 431869);
Date: 2023-05-24 13:03:11 Duration: 3s277ms
19 633 1m48s 120ms 418ms 170ms select "forecasted_data".id from "forecasted_data" where ("forecasted_data"."item_supply_plan_id" in (...)) order by "forecasted_data"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 24 11 7 948ms 135ms 12 10 1s380ms 138ms 13 315 52s482ms 166ms 14 300 53s250ms 177ms 20 1 134ms 134ms -
SELECT "forecasted_data".id FROM "forecasted_data" WHERE ("forecasted_data"."item_supply_plan_id" in (17284)) ORDER BY "forecasted_data"."id";
Date: 2023-05-24 14:11:19 Duration: 418ms
-
SELECT "forecasted_data".id FROM "forecasted_data" WHERE ("forecasted_data"."item_supply_plan_id" in (17607)) ORDER BY "forecasted_data"."id";
Date: 2023-05-24 14:11:18 Duration: 372ms
-
SELECT "forecasted_data".id FROM "forecasted_data" WHERE ("forecasted_data"."item_supply_plan_id" in (17369)) ORDER BY "forecasted_data"."id";
Date: 2023-05-24 14:11:19 Duration: 351ms
20 604 2m14s 200ms 397ms 222ms update "sale_order_line" set "branch_id" = ?, "currency_id" = ?, "cus_date_order" = ?, "cus_part_route" = ?, "cus_user_id" = ?, "inventory_vendor_id" = ?, "is_service" = false, "margin" = ?, "margin_percent" = ?.?, "order_partner_id" = ?, "price_reduce" = ?, "price_reduce_taxexcl" = ?, "price_reduce_taxinc" = ?, "price_subtotal" = ?, "price_tax" = ?.?, "price_total" = ?, "purchase_price" = ?, "qty_delivered_method" = ?, "qty_invoiced" = ?, "qty_to_invoice" = ?, "salesman_id" = ?, "untaxed_amount_invoiced" = ?, "untaxed_amount_to_invoice" = ?, "warehouse_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 24 10 1 288ms 288ms 11 53 12s151ms 229ms 12 90 19s513ms 216ms 13 80 18s402ms 230ms 14 82 18s274ms 222ms 15 64 14s242ms 222ms 16 65 14s560ms 224ms 17 21 4s584ms 218ms 18 75 16s261ms 216ms 19 43 9s546ms 222ms 20 25 5s498ms 219ms 21 5 1s62ms 212ms -
UPDATE "sale_order_line" SET "branch_id" = 46, "currency_id" = 2, "cus_date_order" = '2023-05-24 13:08:58', "cus_part_route" = NULL, "cus_user_id" = 983, "inventory_vendor_id" = 2924, "is_service" = false, "margin" = '18.70', "margin_percent" = 0.38990825688073394, "order_partner_id" = 33423, "price_reduce" = '23.98', "price_reduce_taxexcl" = '23.98', "price_reduce_taxinc" = '23.98', "price_subtotal" = '47.96', "price_tax" = 0.0, "price_total" = '47.96', "purchase_price" = '14.63', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 983, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 43, "write_uid" = 983, "write_date" = (now() at time zone 'UTC') WHERE id IN (161259);
Date: 2023-05-24 13:09:33 Duration: 397ms
-
UPDATE "sale_order_line" SET "branch_id" = 46, "currency_id" = 2, "cus_date_order" = '2023-05-24 13:49:40', "cus_part_route" = NULL, "cus_user_id" = 1034, "inventory_vendor_id" = 3026, "is_service" = false, "margin" = '37.75', "margin_percent" = 0.3600038146099561, "order_partner_id" = 33593, "price_reduce" = '104.86', "price_reduce_taxexcl" = '104.86', "price_reduce_taxinc" = '104.86', "price_subtotal" = '104.86', "price_tax" = 0.0, "price_total" = '104.86', "purchase_price" = '67.11', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 1034, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 43, "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (161349);
Date: 2023-05-24 13:50:06 Duration: 307ms
-
UPDATE "sale_order_line" SET "branch_id" = 48, "currency_id" = 2, "cus_date_order" = '2023-05-24 10:59:35', "cus_part_route" = NULL, "cus_user_id" = 965, "inventory_vendor_id" = 3089, "is_service" = false, "margin" = '2.88', "margin_percent" = 0.5303867403314917, "order_partner_id" = 44982, "price_reduce" = '5.43', "price_reduce_taxexcl" = '5.43', "price_reduce_taxinc" = '5.76', "price_subtotal" = '5.43', "price_tax" = 0.33, "price_total" = '5.76', "purchase_price" = '2.55', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 965, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 45, "write_uid" = 971, "write_date" = (now() at time zone 'UTC') WHERE id IN (160965);
Date: 2023-05-24 11:01:32 Duration: 306ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 13s866ms 14s714ms 14s141ms 24 5m39s 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 #1
Day Hour Count Duration Avg duration May 24 17 24 5m39s 14s141ms -
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:10:46 Duration: 14s714ms
-
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:12:25 Duration: 14s535ms
-
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-05-24'::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-05-24'::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-05-24'::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-05-24'::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-05-24 17:07:31 Duration: 14s485ms
2 508ms 20s894ms 4s429ms 71 5m14s delete from account_move_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 24 00 15 1m11s 4s756ms 07 1 1s85ms 1s85ms 10 16 1m57s 7s351ms 11 1 546ms 546ms 12 4 13s118ms 3s279ms 13 1 9s67ms 9s67ms 14 4 5s817ms 1s454ms 15 8 16s324ms 2s40ms 16 12 56s260ms 4s688ms 18 8 22s292ms 2s786ms 23 1 1s20ms 1s20ms -
DELETE FROM account_move_line WHERE id IN (2373131, 2373132, 2373092, 2373093, 2373094, 2373095, 2373096, 2373097, 2373098, 2373099, 2373100, 2373101, 2373102, 2373103, 2373104, 2373105, 2373106, 2373107, 2373108, 2373109, 2373110, 2373111, 2373112, 2373113, 2373114, 2373115, 2373116, 2373117, 2373118, 2373119, 2373120, 2373121, 2373122, 2373123, 2373124, 2373125, 2373126, 2373127, 2373128, 2373129, 2373130);
Date: 2023-05-24 10:17:57 Duration: 20s894ms
-
DELETE FROM account_move_line WHERE id IN (2383718, 2383719, 2383720, 2383721, 2383722, 2383723, 2383724, 2383725, 2383726, 2383727, 2383728, 2383729, 2383730, 2383731, 2383732, 2383733, 2383734, 2383735, 2383736, 2383737, 2383738, 2383739, 2383740, 2383741, 2383742, 2383743, 2383744, 2383745, 2383746, 2383747, 2383748, 2383749, 2383750, 2383751, 2383752, 2383753, 2383754, 2383755, 2383756, 2383757);
Date: 2023-05-24 10:18:21 Duration: 20s492ms
-
DELETE FROM account_move_line WHERE id IN (2381020, 2381021, 2381022, 2381023, 2381024, 2381025, 2381026, 2381027, 2381028, 2381029, 2381030, 2381031, 2381032, 2381033, 2381034, 2381035, 2381036, 2381037, 2381038, 2381039, 2381040, 2381041, 2381042, 2381043, 2381044, 2381045, 2381046, 2381047, 2381048, 2381049, 2381050, 2381051, 2381052, 2388615, 2388616, 2388617, 2388618, 2388619);
Date: 2023-05-24 16:47:25 Duration: 19s823ms
3 289ms 14s729ms 2s202ms 126 4m37s update "stock_move" set "date" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 24 10 1 790ms 790ms 11 3 4s492ms 1s497ms 12 21 50s430ms 2s401ms 13 27 1m15s 2s784ms 14 26 46s519ms 1s789ms 15 16 32s31ms 2s1ms 16 3 11s361ms 3s787ms 17 9 28s108ms 3s123ms 18 11 15s160ms 1s378ms 19 4 3s562ms 890ms 20 5 9s878ms 1s975ms -
UPDATE "stock_move" SET "date" = '2023-05-24 17:17:41', "state" = 'done', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (424599, 424600, 424601, 424602, 424603, 424604, 424605, 424606, 424607, 424608, 424609, 424610, 424612, 424613, 424614, 424615, 424616, 424617, 424618, 424619, 424620, 424621, 424622, 424624, 424625, 424626);
Date: 2023-05-24 17:17:56 Duration: 14s729ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 13:28:17', "state" = 'done', "write_uid" = 965, "write_date" = (now() at time zone 'UTC') WHERE id IN (432001, 432002, 432003, 432005, 431988, 431989, 431992, 431993, 431994, 431995, 431996, 431997, 431998, 431999);
Date: 2023-05-24 13:28:31 Duration: 11s261ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 16:15:31', "state" = 'done', "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (432096, 432097, 432098, 432099, 432100, 432101, 432294, 432103, 432093, 432094, 432095);
Date: 2023-05-24 16:15:42 Duration: 9s423ms
4 147ms 8s442ms 1s205ms 278 5m35s 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 #4
Day Hour Count Duration Avg duration May 24 11 13 23s747ms 1s826ms 12 43 57s395ms 1s334ms 13 43 57s908ms 1s346ms 14 35 32s331ms 923ms 15 33 32s202ms 975ms 16 33 38s174ms 1s156ms 17 13 15s291ms 1s176ms 18 27 33s900ms 1s255ms 19 25 27s979ms 1s119ms 20 12 13s947ms 1s162ms 21 1 2s286ms 2s286ms -
UPDATE "stock_move" SET "branch_id" = 48, "picking_id" = 152239, "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 (432000, 432001, 432002, 432003, 432005, 431987, 431988, 431989, 431990, 431991, 431992, 431993, 431994, 431995, 431996, 431997, 431998, 431999);
Date: 2023-05-24 13:27:56 Duration: 8s442ms
-
UPDATE "stock_move" SET "branch_id" = 38, "picking_id" = 152768, "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 (432833, 432834, 432835, 432837, 432838, 432839, 432840, 432841, 432842, 432843, 432844, 432845, 432846, 432831);
Date: 2023-05-24 17:16:36 Duration: 6s946ms
-
UPDATE "stock_move" SET "branch_id" = 46, "picking_id" = 152061, "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 (431700, 431701, 431703, 431704, 431705, 431706, 431707, 431708, 431709, 431710);
Date: 2023-05-24 12:28:50 Duration: 6s5ms
5 854ms 1s74ms 894ms 345 5m8s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?)))) order by coalesce("product_template"."is_published", false) desc, "product_template"."website_sequence" asc, "product_template"."id" desc limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 24 10 1 876ms 876ms 11 142 2m5s 882ms 12 31 28s682ms 925ms 13 15 13s738ms 915ms 14 2 1s741ms 870ms 15 36 33s49ms 918ms 16 44 39s215ms 891ms 18 24 21s479ms 894ms 19 41 36s584ms 892ms 20 9 8s3ms 889ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%RSL5900%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%RSL5900%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%RSL5900%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%RSL5900%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%RSL5900%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%RSL5900%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 11:49:10 Duration: 1s74ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%5008%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5008%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%5008%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%5008%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%5008%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%5008%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 12:30:13 Duration: 1s39ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%500857%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%500857%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%500857%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%500857%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%500857%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%500857%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC LIMIT 5;
Date: 2023-05-24 12:30:54 Duration: 1s27ms
6 852ms 1s349ms 894ms 318 4m44s select count(?) from "product_template" left join "ir_translation" AS "product_template__description_sale" on ("product_template"."id" = "product_template__description_sale"."res_id" and "product_template__description_sale"."type" = ? and "product_template__description_sale"."name" = ? and "product_template__description_sale"."lang" = ? and "product_template__description_sale"."value" != ?) left join "ir_translation" AS "product_template__description" on ("product_template"."id" = "product_template__description"."res_id" and "product_template__description"."type" = ? and "product_template__description"."name" = ? and "product_template__description"."lang" = ? and "product_template__description"."value" != ?) left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and ((("product_template"."sale_ok" = true) and (("product_template"."website_id" in (...)) or "product_template"."website_id" is null)) and (((((unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?)))))) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" where (("product_product"."active" = true) and (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)))))) or ("product_template"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) or unaccent (coalesce("product_template__description"."value", "product_template"."description")) ilike unaccent (?)) or unaccent (coalesce("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent (?))));Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 24 10 1 860ms 860ms 11 130 1m54s 883ms 12 28 25s399ms 907ms 13 15 13s672ms 911ms 14 2 1s731ms 865ms 15 34 31s670ms 931ms 16 39 34s282ms 879ms 18 23 20s760ms 902ms 19 38 33s891ms 891ms 20 8 7s240ms 905ms -
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%N3985001%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%N3985001%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%N3985001%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%N3985001%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%N3985001%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%N3985001%'))));
Date: 2023-05-24 15:00:38 Duration: 1s349ms
-
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%axp4515ku%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%axp4515ku%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%axp4515ku%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%axp4515ku%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%axp4515ku%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%axp4515ku%'))));
Date: 2023-05-24 15:19:47 Duration: 1s292ms
-
SELECT count(1) FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__description_sale" ON ("product_template"."id" = "product_template__description_sale"."res_id" AND "product_template__description_sale"."type" = 'model' AND "product_template__description_sale"."name" = 'product.template,description_sale' AND "product_template__description_sale"."lang" = 'en_US' AND "product_template__description_sale"."value" != '') LEFT JOIN "ir_translation" AS "product_template__description" ON ("product_template"."id" = "product_template__description"."res_id" AND "product_template__description"."type" = 'model' AND "product_template__description"."name" = 'product.template,description' AND "product_template__description"."lang" = 'en_US' AND "product_template__description"."value" != '') LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND ((("product_template"."sale_ok" = true) AND (("product_template"."website_id" in (1)) OR "product_template"."website_id" IS NULL)) AND (((((unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%50085%') OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%50085%')))))) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%50085%')))))) OR ("product_template"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%50085%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%50085%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%50085%'))));
Date: 2023-05-24 12:30:16 Duration: 1s52ms
7 525ms 2s442ms 845ms 553 7m47s update "stock_move" set "current_warehouse_qty" = ?.?, "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 24 10 2 1s934ms 967ms 11 11 9s188ms 835ms 12 68 56s124ms 825ms 13 141 1m56s 829ms 14 30 29s732ms 991ms 15 52 45s118ms 867ms 16 77 1m7s 873ms 17 43 34s776ms 808ms 18 43 34s397ms 799ms 19 60 50s201ms 836ms 20 22 18s78ms 821ms 21 4 3s898ms 974ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2023-05-24 14:44:19', "is_done" = true, "state" = 'done', "write_uid" = 1039, "write_date" = (now() at time zone 'UTC') WHERE id IN (429525, 429526);
Date: 2023-05-24 14:44:22 Duration: 2s442ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2023-05-24 16:36:06', "is_done" = true, "state" = 'done', "write_uid" = 1022, "write_date" = (now() at time zone 'UTC') WHERE id IN (432660, 432661);
Date: 2023-05-24 16:36:12 Duration: 2s143ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 2.0, "date" = '2023-05-24 16:20:44', "is_done" = true, "state" = 'done', "write_uid" = 991, "write_date" = (now() at time zone 'UTC') WHERE id IN (406363, 406355);
Date: 2023-05-24 16:20:51 Duration: 1s923ms
8 521ms 3s530ms 844ms 309 4m20s update "stock_move" set "date" = ?, "is_done" = true, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 24 11 14 9s334ms 666ms 12 37 27s473ms 742ms 13 42 33s492ms 797ms 14 67 54s655ms 815ms 15 35 26s435ms 755ms 16 32 30s962ms 967ms 17 25 18s566ms 742ms 18 19 15s335ms 807ms 19 26 35s854ms 1s379ms 20 12 8s704ms 725ms -
UPDATE "stock_move" SET "date" = '2023-05-24 19:25:02', "is_done" = true, "state" = 'done', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (420741, 433268, 433146, 433149, 433151);
Date: 2023-05-24 19:25:07 Duration: 3s530ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 16:11:09', "is_done" = true, "state" = 'done', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (432576, 432577, 432574, 432575);
Date: 2023-05-24 16:11:14 Duration: 3s218ms
-
UPDATE "stock_move" SET "date" = '2023-05-24 19:52:11', "is_done" = true, "state" = 'done', "write_uid" = 1028, "write_date" = (now() at time zone 'UTC') WHERE id IN (433347, 433348, 433349);
Date: 2023-05-24 19:52:16 Duration: 3s176ms
9 698ms 1s240ms 741ms 801 9m54s 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 #9
Day Hour Count Duration Avg duration May 24 10 1 721ms 721ms 11 43 31s596ms 734ms 12 119 1m29s 750ms 13 135 1m41s 750ms 14 114 1m25s 753ms 15 69 51s236ms 742ms 16 44 32s167ms 731ms 17 75 55s215ms 736ms 18 77 56s551ms 734ms 19 83 1m 728ms 20 40 28s868ms 721ms 21 1 716ms 716ms -
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 ('%1011e%')) 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 ('%1011e%'))) 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 ('%1011e%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1011e%')))))) 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-05-24 14:25:30 Duration: 1s240ms
-
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 ('%1r12-485%')) 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 ('%1r12-485%'))) 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 ('%1r12-485%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%1r12-485%')))))) 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-05-24 12:25:52 Duration: 1s163ms
-
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 ('%LFP928F%')) 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 ('%LFP928F%'))) 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 ('%LFP928F%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%LFP928F%')))))) 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-05-24 13:31:56 Duration: 1s160ms
10 542ms 994ms 594ms 1,297 12m51s 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 May 24 06 2 1s136ms 568ms 07 3 1s717ms 572ms 10 11 6s336ms 576ms 11 79 45s803ms 579ms 12 285 2m52s 606ms 13 181 1m49s 603ms 14 94 57s993ms 616ms 15 116 1m8s 588ms 16 110 1m4s 588ms 17 106 1m1s 584ms 18 190 1m50s 583ms 19 95 55s572ms 584ms 20 25 14s943ms 597ms -
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 ('%%cp%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%cp*%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%cp*%'))) 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-05-24 14:22:04 Duration: 994ms
-
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 ('%%n210661%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661%'))) 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-05-24 12:26:12 Duration: 993ms
-
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 ('%%n210661xs%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-xs%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-xs%'))) 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-05-24 12:26:16 Duration: 992ms
11 530ms 1s635ms 591ms 3,722 36m41s 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 #11
Day Hour Count Duration Avg duration May 24 10 4 2s252ms 563ms 11 310 2m59s 577ms 12 618 6m4s 590ms 13 456 4m32s 598ms 14 470 4m44s 604ms 15 511 5m3s 594ms 16 418 4m5s 587ms 17 89 53s186ms 597ms 18 408 3m58s 584ms 19 294 2m53s 589ms 20 116 1m7s 583ms 21 28 15s961ms 570ms -
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 ('%%ult%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ult%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ult%'))) 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-05-24 14:21:34 Duration: 1s635ms
-
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 ('%%ultr%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultr%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultr%'))) 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-05-24 14:21:34 Duration: 1s349ms
-
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 ('%%ultra%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ultra%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ultra%'))) 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-05-24 14:21:34 Duration: 1s244ms
12 539ms 874ms 589ms 556 5m27s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."type" != ?) or "product_product__product_tmpl_id"."type" is null)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 24 11 8 4s553ms 569ms 12 82 48s348ms 589ms 13 75 45s167ms 602ms 14 101 59s661ms 590ms 15 70 40s928ms 584ms 16 40 23s725ms 593ms 17 29 16s817ms 579ms 18 95 56s197ms 591ms 19 54 31s278ms 579ms 20 2 1s101ms 550ms -
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 ('%%n2106611xsa%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-1xsa%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-1xsa%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 14:57:10 Duration: 874ms
-
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 ('%%n2106611x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n210661-1x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n210661-1x%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 14:57:10 Duration: 820ms
-
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 ('%%bti%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%bti%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%bti%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."type" != 'service') OR "product_product__product_tmpl_id"."type" IS NULL)) 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-05-24 16:44:01 Duration: 820ms
13 138ms 2s986ms 533ms 833 7m24s update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 24 10 2 1s192ms 596ms 11 28 13s785ms 492ms 12 115 58s956ms 512ms 13 221 1m56s 528ms 14 106 56s189ms 530ms 15 91 54s20ms 593ms 16 78 43s648ms 559ms 17 43 19s19ms 442ms 18 40 20s316ms 507ms 19 67 38s725ms 577ms 20 39 19s165ms 491ms 21 3 2s345ms 781ms -
UPDATE "stock_quant" SET "quantity" = 2.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (239648, 268264, 42507, 244271, 39764, 292758, 42171);
Date: 2023-05-24 15:47:27 Duration: 2s986ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (237058, 46181, 265991, 162068, 43253);
Date: 2023-05-24 13:01:42 Duration: 2s859ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (39847, 39018, 297977, 294842, 297757);
Date: 2023-05-24 15:47:32 Duration: 2s813ms
14 138ms 7s715ms 395ms 649 4m16s update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 24 10 1 835ms 835ms 11 29 12s149ms 418ms 12 83 29s100ms 350ms 13 72 30s906ms 429ms 14 78 25s939ms 332ms 15 65 38s487ms 592ms 16 75 30s688ms 409ms 17 71 31s264ms 440ms 18 83 23s960ms 288ms 19 64 23s951ms 374ms 20 27 9s249ms 342ms 21 1 435ms 435ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 969, "write_date" = (now() at time zone 'UTC') WHERE id IN (432429, 432430, 432431, 432432, 432433, 432434, 432435, 432436, 432437, 432438, 432439, 432440, 432441);
Date: 2023-05-24 15:37:13 Duration: 7s715ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 978, "write_date" = (now() at time zone 'UTC') WHERE id IN (432485, 432486, 432487, 432488, 432489, 432490, 432491, 432492, 432493);
Date: 2023-05-24 15:47:22 Duration: 3s660ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (431872, 431875, 431861, 431862, 431863, 431864, 431865, 431869);
Date: 2023-05-24 13:03:11 Duration: 3s277ms
15 277ms 664ms 382ms 1,199 7m38s select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 24 11 29 8s473ms 292ms 12 393 2m23s 365ms 13 758 5m 396ms 20 19 5s799ms 305ms -
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 12:43:10 Duration: 664ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 634ms
-
select id from product_warehouse_inventory where loc_check_qty < max_product_uom_qty;
Date: 2023-05-24 13:09:33 Duration: 615ms
16 246ms 1s257ms 280ms 1,030 4m48s 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 #16
Day Hour Count Duration Avg duration May 24 11 60 16s394ms 273ms 12 190 53s222ms 280ms 13 171 50s935ms 297ms 14 104 29s965ms 288ms 15 113 31s305ms 277ms 16 111 31s391ms 282ms 17 42 10s991ms 261ms 18 100 26s975ms 269ms 19 98 26s791ms 273ms 20 34 8s868ms 260ms 21 7 1s918ms 274ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161223)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 13:55:44 Duration: 1s257ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161598)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 15:50:58 Duration: 1s72ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."so_line_id" in (161701)) ORDER BY "sale_history_line"."id";
Date: 2023-05-24 16:50:44 Duration: 1s6ms
17 120ms 579ms 235ms 1,002 3m56s 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 #17
Day Hour Count Duration Avg duration May 24 11 18 2s432ms 135ms 12 30 4s757ms 158ms 13 445 1m49s 246ms 14 433 1m48s 251ms 15 22 3s102ms 141ms 16 13 1s671ms 128ms 17 9 1s436ms 159ms 18 16 2s218ms 138ms 19 10 1s392ms 139ms 20 6 811ms 135ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (239049)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:21:33 Duration: 579ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (177535, 177536, 177541, 177543, 177534, 177532)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:11:19 Duration: 546ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (180730, 180751, 180822, 180807, 180855)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2023-05-24 14:11:19 Duration: 530ms
18 199ms 852ms 226ms 816 3m4s update "sale_order_line" set "invoice_status" = ?, "open_qty_fil" = ?.?, "qty_delivered" = ?, "qty_to_invoice" = ?, "untaxed_amount_to_invoice" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration May 24 10 4 864ms 216ms 11 23 5s235ms 227ms 12 122 27s80ms 221ms 13 231 51s618ms 223ms 14 108 24s303ms 225ms 15 82 19s16ms 231ms 16 81 18s80ms 223ms 17 26 6s639ms 255ms 18 52 11s539ms 221ms 19 49 11s978ms 244ms 20 33 7s150ms 216ms 21 5 1s51ms 210ms -
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 2.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1038, "write_date" = (now() at time zone 'UTC') WHERE id IN (157416, 143515, 143517, 157414);
Date: 2023-05-24 17:18:16 Duration: 852ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'to invoice', "open_qty_fil" = 0.0, "qty_delivered" = '-4.00', "qty_to_invoice" = '-4.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1025, "write_date" = (now() at time zone 'UTC') WHERE id IN (161939, 161940, 161942, 161943);
Date: 2023-05-24 19:53:53 Duration: 822ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 1.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 967, "write_date" = (now() at time zone 'UTC') WHERE id IN (116272, 157450, 86179);
Date: 2023-05-24 12:02:41 Duration: 665ms
19 200ms 397ms 222ms 604 2m14s update "sale_order_line" set "branch_id" = ?, "currency_id" = ?, "cus_date_order" = ?, "cus_part_route" = ?, "cus_user_id" = ?, "inventory_vendor_id" = ?, "is_service" = false, "margin" = ?, "margin_percent" = ?.?, "order_partner_id" = ?, "price_reduce" = ?, "price_reduce_taxexcl" = ?, "price_reduce_taxinc" = ?, "price_subtotal" = ?, "price_tax" = ?.?, "price_total" = ?, "purchase_price" = ?, "qty_delivered_method" = ?, "qty_invoiced" = ?, "qty_to_invoice" = ?, "salesman_id" = ?, "untaxed_amount_invoiced" = ?, "untaxed_amount_to_invoice" = ?, "warehouse_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 24 10 1 288ms 288ms 11 53 12s151ms 229ms 12 90 19s513ms 216ms 13 80 18s402ms 230ms 14 82 18s274ms 222ms 15 64 14s242ms 222ms 16 65 14s560ms 224ms 17 21 4s584ms 218ms 18 75 16s261ms 216ms 19 43 9s546ms 222ms 20 25 5s498ms 219ms 21 5 1s62ms 212ms -
UPDATE "sale_order_line" SET "branch_id" = 46, "currency_id" = 2, "cus_date_order" = '2023-05-24 13:08:58', "cus_part_route" = NULL, "cus_user_id" = 983, "inventory_vendor_id" = 2924, "is_service" = false, "margin" = '18.70', "margin_percent" = 0.38990825688073394, "order_partner_id" = 33423, "price_reduce" = '23.98', "price_reduce_taxexcl" = '23.98', "price_reduce_taxinc" = '23.98', "price_subtotal" = '47.96', "price_tax" = 0.0, "price_total" = '47.96', "purchase_price" = '14.63', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 983, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 43, "write_uid" = 983, "write_date" = (now() at time zone 'UTC') WHERE id IN (161259);
Date: 2023-05-24 13:09:33 Duration: 397ms
-
UPDATE "sale_order_line" SET "branch_id" = 46, "currency_id" = 2, "cus_date_order" = '2023-05-24 13:49:40', "cus_part_route" = NULL, "cus_user_id" = 1034, "inventory_vendor_id" = 3026, "is_service" = false, "margin" = '37.75', "margin_percent" = 0.3600038146099561, "order_partner_id" = 33593, "price_reduce" = '104.86', "price_reduce_taxexcl" = '104.86', "price_reduce_taxinc" = '104.86', "price_subtotal" = '104.86', "price_tax" = 0.0, "price_total" = '104.86', "purchase_price" = '67.11', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 1034, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 43, "write_uid" = 1035, "write_date" = (now() at time zone 'UTC') WHERE id IN (161349);
Date: 2023-05-24 13:50:06 Duration: 307ms
-
UPDATE "sale_order_line" SET "branch_id" = 48, "currency_id" = 2, "cus_date_order" = '2023-05-24 10:59:35', "cus_part_route" = NULL, "cus_user_id" = 965, "inventory_vendor_id" = 3089, "is_service" = false, "margin" = '2.88', "margin_percent" = 0.5303867403314917, "order_partner_id" = 44982, "price_reduce" = '5.43', "price_reduce_taxexcl" = '5.43', "price_reduce_taxinc" = '5.76', "price_subtotal" = '5.43', "price_tax" = 0.33, "price_total" = '5.76', "purchase_price" = '2.55', "qty_delivered_method" = 'stock_move', "qty_invoiced" = '0.00', "qty_to_invoice" = '0.00', "salesman_id" = 965, "untaxed_amount_invoiced" = '0.00', "untaxed_amount_to_invoice" = '0.00', "warehouse_id" = 45, "write_uid" = 971, "write_date" = (now() at time zone 'UTC') WHERE id IN (160965);
Date: 2023-05-24 11:01:32 Duration: 306ms
20 120ms 686ms 220ms 1,337 4m54s with currency_rate as ( select r.currency_id, coalesce(r.company_id, c.id) as company_id, r.rate, r.name as date_start, ( select name from res_currency_rate r2 where r2.name > r.name and r2.currency_id = r.currency_id and (r2.company_id is null or r2.company_id = c.id) order by r2.name asc limit ?) as date_end from res_currency_rate r join res_company c on (r.company_id is null or r.company_id = c.id)) select l.product_id as product_id, sum(l.price_unit / ( case coalesce(cr.rate, ?) when ? then ?.? else cr.rate end) * l.quantity * ( case when i.move_type in (...) then ? else ? end) * ((? - l.discount) * ?.?)) / nullif (sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)), ?) as avg_unit_price, sum(l.quantity * ( case when i.move_type in (...) then ? else ? end)) as num_qty, sum(abs(l.balance) * ( case when i.move_type in (...) then ? else ? end)) as total, sum(l.quantity * pt.list_price * ( case when i.move_type in (...) then ? else ? end)) as sale_expected from account_move_line l left join account_move i on (l.move_id = i.id) left join product_product product on (product.id = l.product_id) left join product_template pt on (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= coalesce(i.invoice_date, now()) and (cr.date_end is null or cr.date_end > coalesce(i.invoice_date, now()))) where l.product_id in (...) and i.state in (...) and i.payment_state in (...) and i.move_type in (...) and i.invoice_date between ? and ? and i.company_id = ? and l.display_type is null and l.exclude_from_invoice_tab = false group by l.product_id;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 24 06 2 421ms 210ms 09 2 434ms 217ms 10 4 918ms 229ms 11 23 5s36ms 218ms 12 176 38s742ms 220ms 13 244 53s425ms 218ms 14 234 52s744ms 225ms 15 187 40s719ms 217ms 16 90 19s651ms 218ms 17 96 21s367ms 222ms 18 131 28s542ms 217ms 19 102 22s439ms 219ms 20 44 9s707ms 220ms 21 2 438ms 219ms -
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204854, 204823) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:11:20 Duration: 686ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (204371, 204372, 203803, 204035, 203741, 203744, 204308) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 14:22:04 Duration: 389ms
-
WITH currency_rate AS ( SELECT r.currency_id, COALESCE(r.company_id, c.id) as company_id, r.rate, r.name AS date_start, ( SELECT name FROM res_currency_rate r2 WHERE r2.name > r.name AND r2.currency_id = r.currency_id AND (r2.company_id is null or r2.company_id = c.id) ORDER BY r2.name ASC LIMIT 1) AS date_end FROM res_currency_rate r JOIN res_company c ON (r.company_id is null or r.company_id = c.id)) SELECT l.product_id as product_id, SUM(l.price_unit / ( CASE COALESCE(cr.rate, 0) WHEN 0 THEN 1.0 ELSE cr.rate END) * l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END) * ((100 - l.discount) * 0.01)) / NULLIF (SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)), 0) AS avg_unit_price, SUM(l.quantity * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS num_qty, SUM(ABS(l.balance) * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS total, SUM(l.quantity * pt.list_price * ( CASE WHEN i.move_type IN ('out_invoice', 'in_invoice') THEN 1 ELSE - 1 END)) AS sale_expected FROM account_move_line l LEFT JOIN account_move i ON (l.move_id = i.id) LEFT JOIN product_product product ON (product.id = l.product_id) LEFT JOIN product_template pt ON (pt.id = product.product_tmpl_id) left join currency_rate cr on (cr.currency_id = i.currency_id and cr.company_id = i.company_id and cr.date_start <= COALESCE(i.invoice_date, NOW()) and (cr.date_end IS NULL OR cr.date_end > COALESCE(i.invoice_date, NOW()))) WHERE l.product_id IN (206278, 206034) AND i.state IN ('posted') AND i.payment_state IN ('not_paid', 'in_payment', 'paid') AND i.move_type IN ('out_invoice', 'out_refund') AND i.invoice_date BETWEEN '2023-01-01' AND '2023-12-31' AND i.company_id = 1 AND l.display_type IS NULL AND l.exclude_from_invoice_tab = false GROUP BY l.product_id;
Date: 2023-05-24 13:13:09 Duration: 382ms
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
- 74,657 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 4687 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 3,636 Max number of times the same event was reported
- 4,687 Total events found
Rank Times reported Error 1 3,636 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count May 24 00 104 01 481 02 227 03 169 04 7 07 1 08 1 09 56 10 112 11 137 12 221 13 352 14 216 15 260 16 96 17 263 18 109 19 249 20 222 21 216 22 45 23 92 - ERROR: could not serialize access due to concurrent update
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2679112) FOR NO KEY UPDATE SKIP LOCKED )
Date: 2023-05-24 23:50:14
2 843 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count May 24 00 110 01 81 02 66 03 45 04 44 05 43 06 46 07 56 08 42 09 47 10 31 11 10 12 11 13 10 14 13 15 16 16 25 17 9 18 7 19 11 20 12 21 9 22 49 23 50 - ERROR: could not obtain lock on row in relation "ir_cron"
- 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=67 FOR UPDATE NOWAIT
Date: 2023-05-24 23:50:10
Statement: SELECT 1 FROM stock_quant WHERE id = 301542 FOR UPDATE NOWAIT
Date: 2023-05-24 19:01:20
3 119 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #3
Day Hour Count May 24 00 1 01 14 02 6 03 8 09 1 10 3 11 9 13 10 14 4 15 7 16 3 17 17 18 10 19 7 20 7 21 7 22 1 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-05-24 23:57:15
4 56 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count May 24 12 6 13 30 14 11 15 4 16 3 18 1 19 1 - ERROR: process 1104283 still waiting for ShareLock on transaction 187206183 after 1000.048 ms
- ERROR: process 1105165 still waiting for ShareLock on transaction 187208717 after 1000.051 ms
- ERROR: process 1104721 still waiting for ShareLock on transaction 187210197 after 1000.040 ms
Detail: Process holding the lock: 1104395. Wait queue: 1104283.
Context: while updating tuple (22793,1) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=2664929,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (657004)Date: 2023-05-24 12:10:52
Detail: Process holding the lock: 1103727. Wait queue: 1105165.
Context: while updating tuple (22777,48) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=2665359,"write_uid"=965,"write_date"=(now() at time zone 'UTC') WHERE id IN (657068)Date: 2023-05-24 12:25:48
Detail: Process holding the lock: 1106054. Wait queue: 1104721.
Context: while updating tuple (22788,16) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 657133 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 != 657133 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-05-24 12:31:50
5 10 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count May 24 20 10 - ERROR: syntax error at or near "andis_special_pricelist" at character 52
Statement: select id from product_pricelist_item where id > 0 andis_special_pricelist =False and (product_id in (173284,173320,173344,173359,173360,173366,173368,173369,173370,173371,173372,173373,173374,173375,173377,173378,249670,173379,173380,173381,173382,173383,173384,173385,173387,173389,173390,173391,173392,173393,173394,173395,173396,173397,173398,173399,173447,173448,173449,173456,173457,174212,174213,174214,174215,173483,239392,237276,173485,173486,245761,173488,173489,173490,173491,173492,173493,173500,173502,241012,239393,237277,173505,173507,173509,173511,173512,173514,173515,173517,173518,173520,173522,173524,173526,173527,173529,239394,237278,239395,237279,173530,173531,173532,173533,244648,173535,239396,237280,173538,173539,173541,173542,173543,173544,173545,173547,173549,241013,173550,173551,173552,173553,239398,237282,173554,239399,237283,173555,239400,237284,239401,237285,239402,237286,239403,237287,246013,173556,173557,246290,246292,173558,173559,239404,237288,173560,239406,237290,239405,237289,173561,173562,173563,239407,237291,173202,173565,244940,244941,173568,173569,239408,237292,239409,237293,173570,173571,239410,237294,173572,173576,239411,237295,239412,237296,239413,237297,173582,237298,239247,239248,239414,237299,239416,237301,239415,237300,173583,173584,173585,173586,173587,173588,239417,237302,239418,237303,239419,237304,239421,237306,239420,237305,239422,237307,173592,173593,173594,173595,239423,237308,239424,237309,239425,237310,239426,237311,239427,237312,239428,237313,239429,237314,239430,237315,239431,237316,239432,237317,173598,173600,173632,173639,173640,173225,173172,173173,173174,173175,173176,173177,173178,173179,173180,173181,173182,173183,173184,173185,173186,173187,173188,173189,173190,173191,173192,173193,173194,173675,173676,173677,173203,173678,173680,173681,173682,173683,173684,174292,173685,173686,173688,173689,173690,173691,173692,173693,173695,173696,173697,173698,173699,173700,173701,173702,173703,173704,173705,173706,173707,173708,173709,173710,173711,173712,173713,173715,239433,237318,173717,173718,173720,173722,241016,241017,173723,173725,173727,173728,173729,173730,173731,173732,173733,173734,173735,173736,173737,173738,173739,173740,173741,173742,173743,173744,247016,173745,173746,173747,173748,173749,173750,173751,173752,173753,173754,173755,173756,173757,173758,173759,173760,173761,173762,173763,173764,174216,173765,173766,173767,173768,173769,173770,173772,239435,237320,173773,173774,173775,173776,173777,244584,173778,173780,173781,173783,173785,173786,173787,173788,173789,173790,173791,173792,173793,173794,173795,173796,173797,173798,173799,173800,173801,173802,173803,173804,173805,173806,173807,173808,173809,173810,173811,173812,173813,173814,173816,173818,173819,173821,173822,173823,173824,173825,247819,173826,173827,173828,173829,173831,173832,247065,173834,173835,173836,173837,173838,173839,173840,173841,241018,173842,173843,173844,173845,173847,173848,245098,173849,173850,173852,173854,173855,248027,173856,173857,173858,173859,173860,173861,173862,173863,173864,173865,173866,173867,247014,173868,173870,173872,173874,173876,173877,173878,173879,241019,173880,173882,173883,173885,239436,237321,173887,173888,242670,242671,239437,237322,239439,237324,239440,237325,239441,237326,239442,237327,239443,237328,239444,237329,239445,237330,239446,237331,239447,237332,239448,237333,239449,237334,173890,173891,173892,239450,237335,173894,173895,173898,173900,241020,173901,173902,173903,173904,239451,237336,173907,173908,173909,239452,237337,173910,239453,237338,173911,173912,173913,173914,244964,173917,173918,239454,237339,173920,173921,173922,239455,237340,239456,237341,173923,173924,173925,173926,173927,173929,173930,173931,173932,173933,173934,173935,173936,173937,173938,173939,173940,173941,173942,239457,237342,239458,237343,239459,237344,173943,173944,173945,173946,239460,237345,239461,237346,239462,237347,239463,237348,173197,173198,173199,174217,174218,174219,239464,237349,239465,237350,174220,239466,237351,174221,174222,239467,237352,239468,237353,239469,237354,239470,237355,174223,239471,237356,174224,239472,237357,174225,239473,237358,239474,237359,174226,174227,239475,237360,239476,237361,174228,239477,237362,239478,237363,174229,174230,241033,174231,174232,174233,174234,174235,174236,174237,174238,242672,242673,174239,246072,247463,247464,174240,174241,174242,174243,174244,174245,174246,174247,174248,174249,174250,174251,174252,239479,237364,174253,174254,174255,174256,174257,174258,174259,174260,239480,237365,239481,237366,174261,174262,174263,174264,239482,237367,174265,239483,237368,174266,239484,237369,174267,239485,237370,239486,237371,174268,174269,174270,174271,174272,239487,237372,174273,239489,237374,239490,237375,239491,237376,239492,237377,174274,173947,173948,173363,173365,173949,173950,173951,173952,173953,173954,173955,173956,173957,173958,173959,173960,173961,173962,173963,173964,173965,243175,173966,173967,173968,173969,173970,173971,173972,173973,173974,173975,173976,173977,173978,249421,173979,173980,173981,173982,173983,173984,173985,173986,173987,173988,173989,173990,173991,173992,173993,173994,173995,173996,173997,173998,245639,173999,174000,174001,241021,174002,174003,174004,174005,174006,174007,174008,174009,174010,174011,174012,174013,174014,174015,174016,174017,241022,244828,174018,174019,174020,174021,174022,174023,174024,174025,174026,174027,174028,174029,174030,174031,174032,174033,174034,174035,174036,174037,247174,241023,174038,174039,174040,174041,174042,174043,174044,174045,174046,249378,174047,174048,249020,241024,241025,174049,174050,241026,174051,174052,241027,241028,241029,174053,174054,174055,174056,174057,174058,174059,174060,174061,174062,174063,174064,174065,174066,174067,174068,174069,174070,174071,243283,174072,174073,241030,174074,174075,174076,174077,174078,174079,174080,174081,246222,174082,174083,174084,174085,174086,174087,174088,174089,174090,248797,174092,174093,174094,174095,174096,174097,174098,174099,174100,174101,249807,174102,174103,174104,174105,174106,174107,174108,174109,174110,174111,174112,174113,174114,174115,174116,174117,174118,174119,174120,174121,241031,174122,249806,174123,174124,174125,174126,174127,174128,174129,174130,247901,174131,174132,174133,174134,174135,174136,174137,174138,174139,174140,174141,174142,174143,174144,174145,174146,174147,174148,174149,174150,244921,174151,174152,174153,174154,174155,174156,174157,174158,241032,174159,174160,174161,174162,174163,174164,174165,174166,174167,174168,174169,174170,174171,174172,174173,174174,174175,174176,174177,174178,174179,174180,174181,174182,174183,174184,174185,174186,174187,174188,174189,174190,174191,174192,174193,174194,174195,239493,237378,239494,237379,239495,237380,239496,237381,239497,237382,239498,237383,245297,174196,174197,174198,174199,174200,174201,174202,174203,174205,174206,174207,174208,174209,174210,174211,173205,173206,173207,174275,174276,174277,174278,174279,249545,174280,174281,174282,174283,241034,174284,174287,174288,174289,174290,174291,239499,237384,239500,237385,239501,237386,239502,237387,239503,237388,239504,237389,239505,237390,239506,237391,239507,237392,173223,173195,173196,173200,173201,174293,173287,247466,173217,173218,173219,173224,173226,173227,173228,173229,173230,173231,173232,173233,173234,247349,173235,173236,173237,173238,173239,173240,173241,173242,173243,173244,173245,173246,173247,173248,173249,241001,173250,173251,173252,173253,245266,173254,173255,173256,173257,173258,173259,173260,173261,173262,173263,173264,173265,173266,173267,245386,173268,173269,173270,247055,173271,241002,173272,173273,173274,173275,173276,173277,173278,173279,241003,173280,173281,173282,243103,173283,173285,243748,173286,249661,173288,173289,173290,173291,173292,173293,173294,173295,173296,241004,173297,173298,173299,173300,173301,173302,173303,173304,173305,173306,173307,173308,173309,246154,173310,173311,173312,173313,173314,173315,173316,173317,173318,173319,173321,173322,239508,237393,173323,173324,173325,173326,173327,173328,173329,173330,173331,173332,173333,173334,173335,173336,173337,173338,242795,173339,248069,173341,173342,173343,173345,239509,237394,173346,173347,245284,248140,248141,173348,173349,173350,173351,173352,173353,173354,173355,173356,241005,173357,173358,173361,173362,173386,173388,173400,173401,173402,248369,173403,173404,173405,173406,173407,173408,173409,241006,173410,173411,173412,173414,249250,173415,173416,173417,173418,173419,173420,173421,247947,173422,173423,173424,173425,173426,173427,173428,173429,249555,173430,173431,247286,173432,173433,173434,173435,173436,173437,173438,173439,173440,173441,173442,173444,173445,173446,173450,173451,248516,173452,173453,239510,237395,239511,237396,245498,173454,173455,173458,241007,173459,173460,173461,173463,173464,173465,173466,245600,173468,173469,173470,173471,241008,247707,173472,173473,173474,173475,239514,237399,246488,246493,239515,237400,241009,173476,173477,245856,241010,239516,237401,241011,239517,237402,173478,239518,237403,239519,237404,239520,237405,245932,173479,173480,173481,173482,173494,173495,173496,173497,173498,173503,173504,173506,173508,173510,173519,173534,173536,173564,173566,173567,247742,173573,173574,173575,173577,173578,173580,173581,173591,173596,173597,173599,173601,173602,173603,173604,173605,173606,173607,173608,173609,173610,173611,173612,173613,173614,248911,248912,173615,173616,173618,173619,245329,245330,173620,173621,173622,173623,173624,173625,173626,173627,245916,244427,244428,173628,173629,246246,246247,241014,249133,245331,245332,246071,173630,173631,173633,173634,173635,241015,173636,239521,237406,173637,243295,173638,173641,173642,173643,173644,173645,173646,173647,173648,173649,239522,237407,239523,237408,173650,246583,246584,173651,173652,173653,173654,173656,173657,173658,173659,173660,239524,237409,173661,173662,173663,173664,173665,173666,239526,237411,239527,237412,173667,173668,173669,173670,173671,173672,173673,173674,173679,173687,248238,239528,237413,245844,173694,245626,239529,237414,239530,237415,239531,237416,239532,237417,239533,237418,239534,237419,239535,237420,239536,237421,243266,173156,173157,173158,173159,173160,173171,173161,173162,173165,249491,173166,173167,173163,173164,173168,249492,173169,173170,173204,173208,173215,173210,173211,173216,173214,173212,173213,173484,173499,173501,173513,173516,173521,173523,173525,173528,173537,173540,173548,173579,173589,173590,173714,173716,173719,173721,173724,173726,173771,173779,173782,173784,173815,173817,173820,173830,173833,173846,173851,173853,173869,173871,173873,173875,173881,173884,173886,173889,173893,173896,173897,173899,173905,173906,173915,173916,173919,173928,173364,173367,239537,237422,239538,237423,239539,237424,173220,249635,173221,173222,241000,173209,242674,242675,173155) or product_tmpl_id in (241076,173991,173988,174279,248179,174302,174303,173815,173799,174107,173992,173656,173574,244826,245876,245879,245877,249952,244827,241072,247988,249308,173347,173348,173349,173350,173367,173368,173496,173464,173465,174267,174266,246862,246863,173480,174265,174264,174263,174262,173481,250397,174259,174258,173482,173483,173484,173485,173486,173487,174249,174248,173488,173489,174236,174235,173507,174229,173490,174221,174220,173491,173492,173493,173494,173495,174206,174204,173497,173498,173500,173501,173511,173516,173517,173519,173520,173521,173522,246513,173735,245878,173718,173717,173685,173684,173683,173682,173681,173680,173679,173678,173677,173676,173674,173592,173675,173672,173319,173505,173503,173504,173262,173261,246440,173256,173252,173251,173257,246529,173277,239592,173278,173276,239590,239591,173535,239593,174219,241058,173536,250479,237475,237474,237477,237476,173744,173787,173227,173816,173819,245083,173987,173797,173807,173989,173818,173400,239560,239556,239558,239596,239561,237480,237440,237442,237445,237444,173662,173243,173413,173414,173461,173462,250332,250333,245420,173659,174256,174255,174253,174252,174251,174250,249720,249721,173661,173660,173670,174247,174246,173669,173668,174241,174240,174237,174231,174230,174228,174227,174226,173667,174225,173663,174217,174216,173244,174243,174215,174242,174214,174213,174212,174211,174210,174209,174208,174207,173666,173665,173664,173213,173215,173217,173218,173219,173220,173221,173222,173223,173224,173225,173226,173228,173229,173230,173231,173232,241090,173233,173234,173235,173237,173236,173238,173239,173240,173242,173241,173246,173247,173248,173249,173245,174322,173731,173745,173757,173758,173756,239564,237448,173739,173814,174288,173403,174157,239557,239559,237443,237441,173811,173802,173809,173804,173752,173788,173734,173790,173820,173791,173812,174238,174349,173806,174338,174339,173279,173805,173808,173999,174274,173254,174282,174223,174281,173641,173255,173253,174205,173212,173640,174224,174268,174280,174239,173687,173509,174344,174346,174343,173990,173638,173810,173796,173733,173985,174332,174334,174335,174333,173260,250387,174331,174337,174336,173801,173789,173813,173798,173654,247692,173993,173329,174245,173250,173291,173344,174340,174156,174261,173345,173512,174254,174271,174270,173575,173352,245843,173355,173729,173566,173388,173356,173353,173336,173358,173369,173359,173357,173370,173354,241062,173564,173382,173378,174347,173732,173736,173699,173649,174329,173561,241092,173387,173384,173714,173803,173375,173377,174222,173513,174218,174234,173686,173311,173312,174257,173502,173986,173995,174269,174082,173529,173530,173531,173264,174244,242732,242733,173861,173883,173740,173741,173524,173301,247732,173324,173365,173363,173364,246762,173760,173783,173585,173598,173632,173594,173754,173747,173748,173749,173737,173376,173340,174345,173648,173742,173746,173755,243373,173767,173766,239450,237333,239506,239505,237390,237389,173948,173428,173427,173429,173430,239478,173448,173449,239479,173399,173386,239477,239522,174017,239548,237432,237362,237406,237361,237363,239463,239462,237345,237346,173431,174289,174276,239532,174284,174283,174295,173617,173616,173618,174037,239533,173351,237416,237417,173643,173644,248448,241066,246179,239581,237465,174311,173730,239549,173313,239303,239471,239304,173445,237433,237355,239472,173446,239473,237356,237357,173639,173297,173830,174319,173642,239537,239536,174099,173390,173391,239529,174160,174102,174035,237420,237413,237421,174299,174317,174290,174310,174306,174318,174313,248056,174178,247859,174086,173695,174293,173650,173651,174273,174171,174177,173395,173694,173629,173728,239576,239577,239575,237459,237460,237461,239580,239579,239573,239574,237457,237463,237464,237458,173630,174199,174180,174202,174203,248653,174166,173702,247223,239583,239584,237468,247224,237467,173608,173607,173606,174141,173331,173330,173470,173506,250078,173508,173468,173466,173473,173472,173471,173467,173533,241069,173534,241068,241064,173537,173634,174348,241071,247121,239585,239539,249837,239544,239566,239565,239572,237423,237450,237456,237428,237449,237469,247126,174304,173631,239540,239541,174126,239543,173401,237425,237427,237424,174324,173453,173420,173421,173456,173419,174144,173652,173280,174314,246906,239468,239467,239455,245439,246908,245440,237351,237338,237350,239595,239594,173671,173589,174181,173759,173831,173934,174137,173514,173214,173216,174272,241084,173795,173924,173827,173850,173925,173825,173826,173828,174305,173832,174028,174316,173305,173864,173893,173918,173863,173865,241091,173977,174286,173862,241078,173337,174294,173338,174323,174297,174308,174330,174062,248175,248176,174291,174309,173909,173927,173931,173716,173544,173908,173932,174012,174142,173389,174010,173627,173930,173926,173539,174104,174069,173770,173871,173880,173870,173886,173885,173887,173937,174192,173938,173936,173978,173881,173829,174173,173929,173557,173964,239510,174093,173954,173556,237394,245313,173955,174070,173463,174068,174063,174067,174066,174186,174193,174073,173383,174072,174125,174105,174098,174097,173412,173406,245829,173411,173417,173418,173404,174002,174000,174001,173439,174071,246676,173689,174003,246675,250667,242853,250666,241080,248703,173477,173636,173478,173479,173525,242731,237336,237354,237479,173792,173265,237478,173868,173867,173768,173762,173761,239518,239514,239515,239517,239519,239516,239520,237401,237402,237398,237400,237399,237403,237404,250259,174004,173570,173688,173751,247742,245009,173979,173822,173891,173582,173614,173878,173877,173764,173912,173842,173772,173967,173771,239490,237374,173975,173974,239511,246350,237395,173423,173422,241073,241082,241088,241083,243405,239568,173715,173692,246070,239578,173691,173719,237462,237452,173510,239567,173693,173690,237451,174133,173997,173998,173328,241081,174018,174130,174158,246220,174054,174050,173284,174060,173341,174132,174103,174084,174053,174051,173532,173706,174049,174040,174019,174021,174020,249148,174187,174129,250505,174052,174055,241067,174278,174277,173609,239589,239588,239562,239563,237446,237473,237472,237447,239586,237470,239587,237471,173590,173538,245610,173855,173851,173545,173541,173946,173546,173857,173856,173968,173965,173969,173858,173973,173919,173875,173869,173952,173840,173838,173837,247690,173824,173841,173928,173933,173921,173611,173915,173624,173956,173839,173621,173899,173836,173972,173981,248565,173980,173441,173911,173910,173588,248787,173961,173962,173950,245463,239508,173960,237392,173953,174005,174065,173304,174023,174022,174064,248484,173447,174013,174085,174101,174285,174008,174161,173298,241063,173450,174136,173342,174131,174011,174296,173846,173845,173848,173847,173903,173436,173426,173943,243393,173945,173944,173966,174307,174134,173780,173777,173782,173982,173963,173563,173781,173610,173776,173779,173958,173860,174162,173984,173976,174026,173628,173983,174300,174312,174025,174024,174196,174185,173392,173394,174197,174195,173393,174183,174198,174184,173577,173596,173593,173569,174048,174200,173379,174047,173576,173568,173425,174106,174315,173415,173327,174201,243252,173433,173443,173416,174095,174046,173424,173595,173591,239453,173458,246453,174043,174044,174042,174045,174100,250213,174287,173635,239469,174135,173438,237352,173579,173581,173586,173578,173587,173451,174059,174170,173457,173580,174123,174127,173597,173435,173603,174128,173299,174124,173573,173876,173889,173888,174038,173584,174092,173583,173942,173941,239493,239507,237377,237391,173951,173949,246837,174139,174163,173552,173551,173296,173554,173907,173906,173437,173859,173542,173884,173905,173916,173920,174275,173874,173852,173844,174009,173326,173605,173558,241079,241065,173343,174089,174087,174088,174090,174091,173633,174301,174033,174034,174058,173658,174031,174041,174032,174096,173653,174030,174029,173452,239482,239481,237366,237365,239485,239484,239486,237370,237369,237368,239487,239483,239480,239488,239489,237373,237372,237371,237364,237367,173721,173722,173620,173559,173560,173821,173281,173475,173474,173476,174182,173720,173274,173275,173940,173939,173959,173332,173572,173957,173555,173540,239449,173335,237332,241061,173646,173645,173626,173333,239475,173334,239476,237359,237360,173300,173515,173290,173288,173286,173289,173287,173285,173703,173310,239555,237439,173738,173935,173923,241077,173922,173346,174056,174094,174057,174015,174014,174006,174027,173696,174140,174292,173866,173882,173625,173526,173723,173258,173259,173273,174233,174232,173295,173362,173361,173398,173317,241089,173697,173442,173374,174167,173460,173373,173459,173360,173402,173444,174080,173314,173366,173371,173372,173339,174081,173315,173269,173707,173272,173271,173267,173270,173266,173268,173562,173528,174298,173302,174083,173316,174190,173283,245952,173709,173647,174138,173385,173325,174143,173712,173622,174191,173637,173623,243167,173710,174179,173282,173708,174154,173381,173380,174189,174146,174148,173705,245810,174145,174150,249597,174149,173835,173833,173834,173823,173601,173913,173914,173440,173567,173571,173565,241070,249008,173743,173303,173890,173769,239494,239504,239499,239503,239502,239498,239501,239497,239451,239456,242728,239500,239496,237334,237387,242729,237383,237386,237385,237381,237384,237388,237339,237382,237378,237380,173817,173548,173600,173599,173947,173615,173879,174327,174326,174325,242730,239464,239524,239461,239460,246615,239457,248903,239531,239527,239474,239547,239534,239542,250514,239538,239521,239466,239465,239546,237343,248904,237411,237349,237430,237431,237426,237405,237422,237418,237415,237408,237358,237347,237348,237344,237340,173994,174328,239513,239452,239512,237335,237396,237397,173549,239526,239530,239528,239458,239470,239523,239459,239525,239535,237407,237353,237341,237342,237419,237410,237409,237414,237412,173613,173996,173619,174320,174321,173612,239492,237376,173898,173897,173896,173894,173904,173873,173872,173455,239509,237393,173971,173604,174061,174036,173454,174007,174194,173970,174016,173849,173902,173547,173892,173901,173900,174159,173553,173550,173775,173774,173763,173800,173434,173895,173917,173765,173773,173843,174075,173785,173321,173655,174076,173318,174169,174168,173657,173320,174077,173407,173309,173322,173294,173292,173308,174165,174164,173293,173323,174078,173307,173405,173410,174174,173786,173409,174079,173408,173306,174175,241059,173793,174176,241074,173854,173753,173794,173853,241075,173784,173778,173211,239571,237455,239551,239552,239554,239553,239550,237438,237436,237434,237435,237437,173263,174172,174039,174074,173698,174152,173701,173704,174155,173700,174153,174151,241085,241086,174108,241087,173724,173725,241060,248830,174109,173397,174188,174119,174118,174110,174113,173727,174111,174115,173750,174116,174120,173726,174112,244051,174117,174114,174122,174121,173713,246205,173527) or categ_id in (10318,11541,10317,11549,11547,11545,11550,11542,11546,11548,11543,11544)) and (date_start >= '2023-01-01 00:00:00') and (date_end <= '2023-05-24 23:59:59') and pricelist_id in (2497,2497) order by pricelist_id
Date: 2023-05-24 20:07:44
6 6 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #6
Day Hour Count May 24 12 1 13 4 15 1 - ERROR: process 1103848 still waiting for ExclusiveLock on tuple (22788,16) of relation 42418 of database 65946 after 1000.044 ms
- ERROR: process 1104462 still waiting for ExclusiveLock on tuple (22794,34) of relation 42418 of database 65946 after 1000.061 ms
- ERROR: process 1106053 still waiting for ExclusiveLock on tuple (22809,22) of relation 42418 of database 65946 after 1000.061 ms
Detail: Process holding the lock: 1104721. Wait queue: 1103848.
Statement: UPDATE "account_move" SET "message_main_attachment_id"=2665643,"write_uid"=999,"write_date"=(now() at time zone 'UTC') WHERE id IN (657151)Date: 2023-05-24 12:31:52
Detail: Process holding the lock: 1104314. Wait queue: 1104462.
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 != 657386 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 != 657386 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-05-24 13:03:44
Detail: Process holding the lock: 1104314. Wait queue: 1106053.
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 != 657392 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 != 657392 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2023-05-24 13:03:48
7 5 ERROR: function "..." does not exist
Times Reported Most Frequent Error / Event #7
Day Hour Count May 24 19 5 - ERROR: function "update_qty_onorder_2;" does not exist at character 8
- ERROR: function "update_qty_onorder_2" does not exist at character 8
- ERROR: function "update_qty_onorder_" does not exist at character 8
Statement: SELECT 'update_qty_onorder_2;'::pg_catalog.regproc::pg_catalog.oid
Date: 2023-05-24 19:01:50
Statement: SELECT 'update_qty_onorder_2'::pg_catalog.regproc::pg_catalog.oid
Date: 2023-05-24 19:01:51
Statement: SELECT 'update_qty_onorder_'::pg_catalog.regproc::pg_catalog.oid
Date: 2023-05-24 19:01:53
8 3 LOG: process ... still waiting for RowExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #8
Day Hour Count May 24 09 3 - ERROR: process 1104395 still waiting for RowExclusiveLock on relation 42418 of database 65946 after 1000.040 ms
- ERROR: process 1104465 still waiting for RowExclusiveLock on relation 42418 of database 65946 after 1000.048 ms
- ERROR: process 1105868 still waiting for RowExclusiveLock on relation 42418 of database 65946 after 1000.051 ms
Detail: Process holding the lock: 1104042. Wait queue: 1104395.
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662956) FOR NO KEY UPDATE SKIP LOCKED )Date: 2023-05-24 09:47:34
Detail: Process holding the lock: 1104042. Wait queue: 1104395, 1104465.
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662957) FOR NO KEY UPDATE SKIP LOCKED )Date: 2023-05-24 09:47:36
Detail: Process holding the lock: 1104042. Wait queue: 1105868, 1104314.
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (2662971) FOR NO KEY UPDATE SKIP LOCKED )Date: 2023-05-24 09:48:09
9 3 ERROR: record "..." has no field "..."
Times Reported Most Frequent Error / Event #9
Day Hour Count May 24 19 3 - ERROR: record "new" has no field "is_core"
Context: SQL expression "NEW.is_core" PL/pgSQL function updated_qty_onorder_2() line 7 at IF
Statement: UPDATE "stock_move" SET "current_warehouse_qty"=1.0,"date"='2023-05-24 19:02:12',"state"='done',"write_uid"=1016,"write_date"=(now() at time zone 'UTC') WHERE id IN (365755)Date: 2023-05-24 19:02:13
10 2 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #10
Day Hour Count May 24 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-05-24 09:47:32
11 2 ERROR: trigger "..." for relation "..." already exists
Times Reported Most Frequent Error / Event #11
Day Hour Count May 24 19 2 - ERROR: trigger "update_qty_onorder_2" for relation "stock_move" already exists
Statement: CREATE TRIGGER update_qty_onorder_2 AFTER INSERT OR UPDATE OF state ON stock_move FOR EACH ROW EXECUTE PROCEDURE updated_qty_onorder_2();
Date: 2023-05-24 19:01:27
12 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #12
Day Hour Count May 24 16 1 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
Detail: Key (vehicle_unit_no, driver_id)=(R249, 40592) 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'), 953, (now() at time zone 'UTC'), 953, (now() at time zone 'UTC'), '2023-05-24', true, 127, 0.0, 0.0, NULL, 1, NULL, 5, 40592, '2023-05-24', NULL, NULL, 0, 0.0, 'ttd3585', NULL, 2, 208, 31, NULL, 'east', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, 'R249', '1rj302275') RETURNING idDate: 2023-05-24 16:21:27
13 1 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #13
Day Hour Count May 24 09 1 - ERROR: process 1104187 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.060 ms at character 34
Detail: Process holding the lock: 1104042. Wait queue: 1104187.
Statement: SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.product') ORDER BY "ir_model_fields"."name"Date: 2023-05-24 09:47:52