-
Global information
- Generated on Fri May 24 00:50:19 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 299,033 log entries in 17s
- Log start from 2024-05-23 00:00:06 to 2024-05-23 23:59:58
-
Overview
Global Stats
- 1,372 Number of unique normalized queries
- 100,101 Number of queries
- 11h20m16s Total query duration
- 2024-05-23 00:00:06 First query
- 2024-05-23 23:59:58 Last query
- 73 queries/s at 2024-05-23 20:14:18 Query peak
- 11h20m16s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 11h20m16s Execute total duration
- 4,506 Number of events
- 13 Number of unique normalized events
- 3,485 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
- 100,101 Average queries per session
- 11h20m16s 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
- 73 queries/s Query Peak
- 2024-05-23 20:14:18 Date
SELECT Traffic
Key values
- 72 queries/s Query Peak
- 2024-05-23 20:14:18 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 9 queries/s Query Peak
- 2024-05-23 17:33:11 Date
Queries duration
Key values
- 11h20m16s 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 23 00 598 120ms 764ms 212ms 4s540ms 14s152ms 14s487ms 01 540 120ms 931ms 242ms 11s151ms 11s713ms 18s348ms 02 544 120ms 1s858ms 264ms 10s225ms 15s627ms 23s169ms 03 657 120ms 924ms 255ms 14s418ms 16s686ms 24s620ms 04 644 120ms 1s168ms 259ms 12s586ms 14s760ms 16s355ms 05 576 120ms 813ms 246ms 10s215ms 11s975ms 18s85ms 06 751 120ms 928ms 248ms 10s266ms 19s86ms 22s431ms 07 558 120ms 921ms 279ms 12s133ms 14s891ms 21s299ms 08 2,361 120ms 5s473ms 322ms 25s694ms 26s333ms 29s543ms 09 1,807 120ms 6m10s 801ms 1m2s 2m1s 7m15s 10 1,700 120ms 34s158ms 342ms 16s340ms 21s485ms 41s653ms 11 5,423 120ms 46s54ms 379ms 1m4s 1m22s 1m53s 12 11,972 120ms 23s310ms 418ms 2m11s 2m25s 3m46s 13 11,013 120ms 28s570ms 376ms 1m50s 1m56s 2m6s 14 11,671 120ms 5m38s 535ms 6m6s 6m27s 7m3s 15 7,968 120ms 16s908ms 369ms 1m17s 1m38s 1m46s 16 7,570 120ms 22s101ms 351ms 1m12s 1m17s 1m23s 17 10,150 120ms 2m10s 424ms 2m32s 2m59s 3m46s 18 9,041 120ms 58s500ms 417ms 1m53s 2m19s 2m28s 19 7,161 120ms 14s626ms 353ms 1m9s 1m31s 2m14s 20 3,043 120ms 5s490ms 408ms 50s807ms 1m13s 2m12s 21 1,378 120ms 1s913ms 288ms 15s520ms 23s692ms 29s379ms 22 603 120ms 1s304ms 246ms 5s833ms 12s129ms 18s278ms 23 2,372 120ms 1m15s 554ms 1m1s 1m21s 1m34s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 23 00 598 0 212ms 1s809ms 4s540ms 14s366ms 01 540 0 242ms 2s61ms 11s151ms 13s46ms 02 544 0 264ms 1s577ms 10s225ms 15s720ms 03 657 0 255ms 2s272ms 14s418ms 17s613ms 04 640 0 258ms 2s727ms 12s586ms 15s149ms 05 576 0 246ms 1s909ms 10s215ms 14s359ms 06 751 0 248ms 2s672ms 10s266ms 20s228ms 07 558 0 279ms 2s234ms 12s133ms 15s679ms 08 2,298 0 312ms 20s569ms 24s421ms 26s298ms 09 1,700 106 801ms 18s111ms 53s883ms 2m8s 10 1,679 0 341ms 13s722ms 16s340ms 21s497ms 11 4,796 0 364ms 44s915ms 56s709ms 1m23s 12 9,991 0 395ms 1m32s 2m5s 2m38s 13 9,080 0 337ms 1m11s 1m32s 1m41s 14 9,726 0 531ms 1m41s 5m50s 6m21s 15 6,615 0 341ms 50s248ms 1m8s 1m34s 16 6,697 0 322ms 46s486ms 57s777ms 1m9s 17 8,348 0 333ms 54s609ms 1m46s 2m51s 18 7,705 0 343ms 56s901ms 1m26s 1m45s 19 5,995 0 321ms 45s967ms 56s572ms 1m19s 20 2,614 0 407ms 22s415ms 48s512ms 1m56s 21 1,299 0 289ms 10s324ms 14s837ms 28s166ms 22 569 0 239ms 2s780ms 5s199ms 13s287ms 23 2,090 0 255ms 12s789ms 17s377ms 24s433ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 23 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 349ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 56 2 0 714ms 0ms 0ms 5s755ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 3 18 0 0 373ms 0ms 0ms 1s168ms 11 29 569 29 0 487ms 5s27ms 8s862ms 17s11ms 12 115 1,800 62 0 539ms 17s629ms 29s653ms 41s512ms 13 66 1,816 37 0 561ms 17s878ms 25s820ms 40s999ms 14 70 1,847 16 0 555ms 16s606ms 29s427ms 53s85ms 15 77 1,253 16 0 509ms 9s246ms 18s534ms 37s211ms 16 46 786 38 0 572ms 6s681ms 12s729ms 20s710ms 17 65 1,691 33 0 852ms 20s791ms 40s974ms 1m48s 18 46 1,245 39 0 845ms 19s42ms 34s279ms 52s848ms 19 44 1,100 17 0 523ms 9s548ms 14s782ms 24s971ms 20 16 404 6 0 418ms 2s40ms 3s940ms 14s690ms 21 11 66 0 0 280ms 0ms 506ms 2s138ms 22 8 26 0 0 365ms 0ms 0ms 1s947ms 23 21 140 120 0 2s776ms 2s920ms 25s39ms 1m17s Day Hour Prepare Bind Bind/Prepare Percentage of prepare May 23 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 23 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 23 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 23 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 23 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 23 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 23 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 23 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 23 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
- 25 locks Total
Type Object Count Total Duration Average Duration (s) AccessShareLock 1 2s977ms 2s977ms relation 1 2s977ms 2s977ms ExclusiveLock 1 1s927ms 1s927ms tuple 1 1s927ms 1s927ms RowExclusiveLock 2 9s541ms 4s770ms relation 2 9s541ms 4s770ms ShareLock 21 1m58s 5s655ms relation 1 1s300ms 1s300ms transaction 20 1m57s 5s873ms Total 25 2m13s 5s328ms Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 1m 1m 1m 1m update "bus_presence" set "last_poll" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-05-23 20:36:49' WHERE id IN (40);
Date: 2024-05-23 20:37:50
2 10 31s940ms 1s798ms 9s975ms 3s194ms 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" = 5445991, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (1429197);
Date: 2024-05-23 16:21:00
3 9 25s508ms 2s267ms 4s149ms 2s834ms 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 != 1428009 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 != 1428009 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-05-23 12:40:51
-
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 != 1428824 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 != 1428824 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-05-23 14:56:50
4 2 9s541ms 4s73ms 5s468ms 4s770ms 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 (5437347) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2024-05-23 08:19:49
-
DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437348) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2024-05-23 08:19:49
-
DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437347) FOR NO KEY UPDATE SKIP LOCKED);
Date: 2024-05-23 08:19:49
5 1 2s977ms 2s977ms 2s977ms 2s977ms 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.template') ORDER BY "ir_model_fields"."name";
Date: 2024-05-23 08:20:05
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";
Date: 2024-05-23 08:20:05
6 1 1s300ms 1s300ms 1s300ms 1s300ms create unique index if not exists product_product_combination_unique on product_product (product_tmpl_id, combination_indices) where active is true;-
CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is true;
Date: 2024-05-23 08:20:16
-
CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is true;
Date: 2024-05-23 08:20:01
7 1 1s161ms 1s161ms 1s161ms 1s161ms update "repair_line" set "invoice_line_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "repair_line" SET "invoice_line_id" = 4993332, "write_uid" = 968, "write_date" = (now() at time zone 'UTC') WHERE id IN (86583);
Date: 2024-05-23 17:51:59
-
UPDATE "repair_line" SET "invoice_line_id" = 4993330, "write_uid" = 968, "write_date" = (now() at time zone 'UTC') WHERE id IN (86564);
Date: 2024-05-23 17:51:58
-
UPDATE "repair_line" SET "invoice_line_id" = 4993956, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (86606);
Date: 2024-05-23 18:48:24
Queries that waited the most
Rank Wait time Query 1 1m UPDATE "bus_presence" SET "last_poll" = '2024-05-23 20:36:49' WHERE id IN (40);[ Date: 2024-05-23 20:37:50 ]
2 9s975ms UPDATE "account_move" SET "message_main_attachment_id" = 5443892, "write_uid" = 1021, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428565);[ Date: 2024-05-23 14:14:21 ]
3 5s468ms DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437347) FOR NO KEY UPDATE SKIP LOCKED);[ Date: 2024-05-23 08:19:49 ]
4 4s149ms 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 != 1428012 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 != 1428012 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 12:40:48 ]
5 4s92ms 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 != 1323846 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 != 1323846 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 12:58:24 ]
6 4s73ms DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437348) FOR NO KEY UPDATE SKIP LOCKED);[ Date: 2024-05-23 08:19:49 ]
7 3s749ms 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 != 1428824 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 != 1428824 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 14:56:50 ]
8 3s746ms UPDATE "account_move" SET "message_main_attachment_id" = 5443417, "write_uid" = 1022, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428394);[ Date: 2024-05-23 13:48:22 ]
9 3s540ms 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 != 1428505 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 != 1428505 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 13:59:32 ]
10 3s279ms UPDATE "account_move" SET "message_main_attachment_id" = 5443176, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428318);[ Date: 2024-05-23 13:34:34 ]
11 3s136ms UPDATE "account_move" SET "message_main_attachment_id" = 5444104, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428618);[ Date: 2024-05-23 14:25:06 ]
12 2s977ms SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";[ Date: 2024-05-23 08:20:05 ]
13 2s820ms 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 != 1428515 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 != 1428515 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 14:00:58 ]
14 2s735ms UPDATE "account_move" SET "message_main_attachment_id" = 5442259, "write_uid" = 1223, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428024);[ Date: 2024-05-23 12:42:30 ]
15 2s555ms UPDATE "account_move" SET "message_main_attachment_id" = 5442982, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428264);[ Date: 2024-05-23 13:25:30 ]
16 2s267ms 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 != 1428868 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 != 1428868 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 15:08:26 ]
17 2s84ms 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 != 313271 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 != 313271 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-05-23 12:59:21 ]
18 1s927ms UPDATE "account_move" SET "message_main_attachment_id" = 5442204, "write_uid" = 1030, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428009);[ Date: 2024-05-23 12:40:48 ]
19 1s798ms UPDATE "account_move" SET "message_main_attachment_id" = 5445991, "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (1429197);[ Date: 2024-05-23 16:21:00 ]
20 1s667ms UPDATE "account_move" SET "message_main_attachment_id" = 5444404, "write_uid" = 1026, "write_date" = (now() at time zone 'UTC') WHERE id IN (1428732);[ Date: 2024-05-23 14:42:42 ]
-
Queries
Queries by type
Key values
- 86,066 Total read queries
- 14,034 Total write queries
Queries by database
Key values
- unknown Main database
- 100,101 Requests
- 11h20m16s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 100,217 Requests
User Request type Count Duration unknown Total 100,217 11h20m33s copy to 106 16m7s cte 70 14s578ms ddl 5 3s477ms delete 415 20m insert 617 2m42s others 1 184ms select 86,181 8h33m58s update 12,822 2h7m26s Duration by user
Key values
- 11h20m33s (unknown) Main time consuming user
User Request type Count Duration unknown Total 100,217 11h20m33s copy to 106 16m7s cte 70 14s578ms ddl 5 3s477ms delete 415 20m insert 617 2m42s others 1 184ms select 86,181 8h33m58s update 12,822 2h7m26s Queries by host
Key values
- unknown Main host
- 100,217 Requests
- 11h20m33s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 100,101 Requests
- 11h20m16s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-05-23 03:24:51 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 80,708 100-500ms duration
Slowest individual queries
Rank Duration Query 1 6m10s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-05-23 09:12:00 ]
2 5m38s SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-05-23 14:51:07 ]
3 5m34s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-05-23 14:45:29 ]
4 5m29s SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-05-23 14:46:55 ]
5 5m28s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-05-23 14:47:41 ]
6 5m8s SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-05-23 14:52:50 ]
7 5m2s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-05-23 14:41:26 ]
8 2m10s UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (411648, 411651, 362500, 389126, 389127, 403462, 339979, 399385, 405538, 305194, 305195, 305196, 368684, 399404, 290883, 378955, 368737, 405606, 405607, 405608, 368746, 405612, 309357, 342125, 368751, 405615, 368753, 391294, 391295, 389246, 389247, 379025, 381074, 358561, 358562, 307363, 358564, 360615, 307368, 346282, 307374, 358575, 297143, 307383, 374973, 374974, 346304, 374977, 374978, 374979, 374980, 374981, 381142, 403670, 383192, 405720, 338139, 409820, 338141, 338143, 338144, 393440, 338147, 399590, 268531, 305400, 327929, 305401, 327933, 360704, 381185, 381194, 356619, 356621, 409873, 409875, 409876, 405782, 317728, 317729, 321834, 321837, 405810, 385343, 328002, 309577, 328011, 338277, 387449, 348541, 373118, 385406, 315776, 387453, 387457, 409989, 315787, 336285, 336294, 328109, 336343, 336345, 362978, 362980, 281061, 303599, 391663, 352753, 391664, 410098, 289297, 334355, 334356, 266778, 287260, 317985, 289320, 309815, 289337, 361021, 369219, 399939, 328261, 369221, 369223, 377414, 309843, 399960, 309860, 275045, 377446, 377445, 275047, 268911, 309871, 266866, 367220, 299637, 309878, 367221, 268922, 357015, 357024, 385707, 279214, 328367, 381634, 381635, 332485, 346825, 305869, 402132, 328414, 363231, 328418, 363235, 367331, 377577, 299762, 293628, 385790, 363273, 324362, 365321, 293644, 385801, 324366, 318223, 365326, 365329, 383762, 293654, 350998, 365334, 402202, 363291, 299807, 310053, 389928, 322349, 305971, 383800, 383801, 310077, 283456, 283463, 299852, 392020, 371546, 371547, 396142, 390005, 353150, 318350, 336789, 336792, 297897, 297898, 349129, 308172, 349139, 328664, 328665, 400352, 379874, 304118, 306173, 402443, 298002, 359443, 373788, 347165, 359453, 394278, 361524, 379968, 379972, 316488, 361561, 386156, 384118, 359543, 402558, 320646, 355467, 275596, 298137, 355482, 310434, 378018, 330944, 330945, 330946, 402636, 402637, 396494, 396496, 279761, 396498, 306385, 335059, 396497, 335061, 335063, 396509, 396510, 279783, 365803, 394478, 306432, 355584, 355588, 406827, 406828, 406829, 386359, 271674, 341311, 353604, 353610, 329036, 329037, 335185, 365909, 386389, 353623, 355675, 355676, 355677, 355678, 355680, 355681, 384354, 355683, 406884, 355685, 355686, 355687, 355688, 300393, 355689, 388466, 388467, 386433, 400770, 325025, 294307, 363940, 335278, 335280, 294322, 292278, 292280, 296384, 296385, 372160, 388547, 331211, 296400, 382429, 392670, 318943, 339423, 388577, 339426, 273895, 341484, 341487, 355823, 355824, 341491, 355829, 378357, 407031, 384526, 384527, 357910, 327192, 359969, 366118, 296489, 398889, 405033, 366124, 331324, 331326, 298562, 298563, 284230, 333382, 333383, 394825, 394826, 284239, 300624, 300627, 411221, 284249, 284251, 317021, 284254, 337501, 298596, 386664, 394877, 267905, 267906, 327297, 401028, 267923, 267924, 292503, 362135, 292506, 366237, 345777, 296628, 296630, 349881, 276159, 267974, 267975, 296649, 335564, 288472, 288473, 370394, 345837, 345842, 300794, 300795, 315137, 347922, 329508, 323368, 347946, 329518, 329522, 329525, 329526, 329527, 329538, 329539, 329540, 329543, 329544, 370511, 370515, 280407, 337755, 280424, 403307, 323437, 335730, 329588, 329589, 329591, 329593, 329597, 313217, 329608, 329610, 313227, 313228, 329612, 399247, 288656, 399249, 329618, 399250, 329620, 325525, 329622, 399252, 300953, 329625, 337819, 329629, 329639, 337831, 294825, 329642, 305065, 305066, 305068, 305070, 329645, 305072, 305073, 403383, 305086, 391108, 387016, 294867, 294869, 303063, 409559, 409560, 399335, 276458, 270326, 274423, 301046, 274425, 362491);[ Date: 2024-05-23 17:53:32 ]
9 1m55s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-05-23 09:03:46 ]
10 1m51s UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (307200, 346113, 346114, 346115, 346116, 346117, 346118, 303114, 393227, 393229, 368654, 272399, 368656, 368657, 393231, 299039, 299043, 299045, 299047, 299049, 323629, 360495, 323638, 323639, 323640, 288825, 393277, 368709, 380998, 380999, 288846, 288849, 288851, 288854, 288856, 288861, 288862, 325752, 325755, 350342, 274587, 372897, 325823, 389312, 321729, 325826, 325827, 325828, 325843, 342235, 411884, 399606, 278793, 395535, 395536, 395537, 332066, 354597, 354600, 354601, 395569, 395570, 299318, 332087, 299320, 332088, 332091, 332093, 332094, 299334, 350547, 336223, 328033, 328035, 291176, 405875, 405876, 401806, 399759, 401807, 291220, 291221, 405909, 291227, 342427, 342428, 342429, 319905, 407970, 407971, 289207, 289213, 328128, 328129, 344513, 289222, 289226, 289227, 328144, 395731, 395732, 395733, 395734, 395735, 395736, 395737, 391650, 395749, 287207, 375271, 395753, 395760, 303606, 379382, 330238, 379395, 320010, 313867, 320012, 320014, 313872, 320016, 320018, 320020, 395801, 395802, 299551, 299557, 365172, 365173, 361091, 361092, 361093, 361094, 361095, 322187, 330380, 287373, 330381, 307901, 307903, 275156, 273114, 398043, 398045, 398046, 398047, 363242, 363243, 363247, 367350, 367351, 363260, 363265, 332553, 332554, 277263, 363280, 324369, 324370, 332561, 363281, 275221, 361245, 351448, 351449, 271152, 342837, 342838, 342839, 379708, 357181, 379716, 344906, 281419, 312140, 310100, 310101, 281435, 295775, 295777, 295778, 326502, 326503, 342909, 312235, 361389, 361404, 312271, 398291, 312277, 304091, 320483, 320484, 320486, 320488, 320489, 293868, 320492, 345074, 355320, 267261, 304128, 267268, 267293, 267294, 345131, 345132, 271406, 351280, 300085, 300086, 300087, 312380, 316486, 396377, 394351, 394352, 394353, 394356, 351352, 394360, 394361, 394362, 335005, 347305, 347306, 347308, 347310, 347315, 351412, 326837, 324797, 324799, 347338, 351435, 347340, 292044, 292045, 292046, 367824, 324815, 351438, 324819, 351440, 351441, 351442, 324823, 351444, 351445, 324826, 318683, 324827, 351446, 324830, 324831, 351456, 324833, 351457, 324835, 351453, 351458, 351460, 324839, 324841, 324842, 324843, 324844, 324847, 400624, 324849, 324850, 324851, 324852, 324854, 324856, 324857, 324858, 400634, 324860, 400636, 324864, 324866, 324867, 396550, 378120, 400651, 298253, 298254, 400663, 400664, 400666, 328992, 328993, 329000, 335158, 335159, 339294, 339295, 339303, 388461, 388465, 351610, 388476, 269701, 269705, 269706, 392586, 269709, 267662, 267663, 343442, 343443, 290197, 296343, 343451, 296354, 296363, 310709, 392632, 396736, 392647, 396776, 323056, 306704, 306708, 284182, 284190, 325155, 321090, 288348, 366218, 308892, 308906, 315059, 315066, 315073, 315088, 329425, 329426, 329427, 321238, 321240, 284377, 284378, 284379, 284380, 321241, 292575, 403172, 403174, 315111, 364282, 308991, 306946, 315144, 296723, 333614, 366397, 335684, 335689, 335690, 399186, 282452, 282453, 403284, 403289, 282459, 282468, 368500, 321398, 389118, 321401, 321404, 321407, 321409, 409473, 321411, 397198, 323494, 354228, 409531, 403398, 403408, 329698, 368619, 346097, 389105, 346099, 389106, 372727, 372728, 346109, 393214, 393215);[ Date: 2024-05-23 17:43:25 ]
11 1m50s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-05-23 09:05:49 ]
12 1m32s UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (391176, 329759, 329765, 329771, 329773, 368710, 354377, 323671, 288858, 288859, 288860, 288876, 323693, 288878, 280687, 323696, 280690, 370803, 280692, 292986, 280699, 280700, 286847, 280704, 280718, 293008, 280727, 280728, 280729, 280747, 280748, 360622, 360623, 280752, 360624, 280754, 280762, 280763, 280764, 409791, 407755, 370895, 370897, 350440, 360684, 340207, 340233, 340234, 340235, 346379, 346380, 340241, 340245, 340257, 407842, 340259, 407843, 274733, 274736, 383287, 383288, 389455, 268636, 377182, 268640, 323937, 323939, 305516, 305519, 383390, 377247, 377246, 360865, 324036, 324037, 350667, 408016, 408017, 408018, 408019, 408020, 358886, 358887, 358888, 313834, 313837, 313840, 313841, 313843, 281076, 313844, 313845, 342548, 281113, 324123, 385569, 373322, 315986, 385678, 385679, 357008, 357010, 357011, 357012, 357013, 357014, 385682, 371353, 371354, 371356, 371357, 371358, 371359, 268966, 314024, 293545, 365229, 365230, 365231, 334517, 350923, 389835, 389854, 334578, 334579, 334580, 334581, 334582, 334583, 293631, 314121, 344865, 344866, 344867, 387874, 396072, 344873, 396078, 344879, 344880, 344890, 344895, 344953, 301959, 301960, 281486, 281488, 301971, 281493, 361378, 361379, 361380, 361381, 361382, 361386, 361390, 361391, 345029, 345032, 322561, 375822, 369691, 336930, 275494, 275495, 275496, 275501, 275502, 275503, 275504, 289840, 275508, 357438, 357439, 357440, 289857, 289859, 328772, 275525, 390215, 410695, 410697, 375888, 375889, 375892, 367703, 359518, 328858, 328859, 382126, 382127, 396483, 392391, 392392, 328912, 328913, 328914, 328916, 328917, 328918, 328919, 328920, 328921, 406740, 328923, 359656, 326914, 328973, 328974, 374029, 406822, 351554, 316770, 316771, 382310, 374119, 267626, 357751, 357758, 279958, 404891, 279975, 279979, 279981, 279984, 279987, 345564, 345567, 409070, 409071, 273905, 409073, 409074, 282120, 353816, 376361, 376362, 376363, 345644, 323117, 345645, 345646, 345647, 376376, 376382, 284255, 358007, 358008, 358009, 358010, 358011, 368258, 288395, 288409, 319165, 319166, 319167, 349902, 349906, 356055, 356056, 356057, 390874, 356059, 356061, 390877, 390878, 390879, 356067, 292580, 356068, 292587, 292588, 292589, 292591, 292596, 292597, 292608, 292613, 292615, 292616, 292667, 309063, 313160, 309066, 313162, 309069, 309070, 362333, 372588, 274296, 354174, 407427, 407430, 407433, 407434, 407435, 358285, 407437, 358287, 407439, 407442, 407445, 407449, 407452, 358301, 370591, 358304, 384930, 370596, 399280, 399281, 350136, 350138, 350142, 350143, 350144, 350146, 370628, 350149, 350150, 370631, 370633, 370634, 370635, 370636, 370637, 370638, 370639, 370640, 399305, 370642, 323540, 370646, 323543, 370649, 323546, 370651, 323550, 323553, 305127, 305132, 268272, 346096, 268274, 391154, 391155, 321530, 321531);[ Date: 2024-05-23 17:46:08 ]
13 1m15s DELETE FROM account_move_line WHERE id IN (4932410, 4932411, 4932412, 4932413, 4932414, 4932415, 4932416, 4932417, 4932418, 4932419, 4932420, 4932421, 4932422, 4932423, 4932424, 4932425, 4932426, 4932427, 4932428, 4932429, 4932430, 4932431, 4932432, 4932433, 4932434, 4932435, 4932436, 4932437, 4932438, 4932439, 4932440, 4932441, 4932442, 4932443, 4932444, 4932445, 4932446, 4932447, 4943886, 4943887, 4993357, 4993358);[ Date: 2024-05-23 23:13:33 ]
14 1m13s DELETE FROM account_move_line WHERE id IN (4995118, 4995119, 4995120, 4995121, 4995122, 4995123, 4995124, 4995125, 4995126, 4995127, 4995128, 4995129, 4995130, 4995131, 4995132, 4995133, 4995134, 4995135, 4995136, 4995137, 4995138, 4995139, 4995140, 4995141, 4995142, 4995143, 4995144, 4995145, 4995146, 4995147, 4995148, 4995149, 4995150, 4995151, 4995152, 4995153, 4995154, 4995155, 4995156, 4995157, 4995158);[ Date: 2024-05-23 23:32:20 ]
15 1m11s DELETE FROM account_move_line WHERE id IN (4995329, 4995330, 4995331, 4995332, 4995333, 4995334, 4995335, 4995336, 4995337, 4995338, 4995339, 4995340, 4995341, 4995342, 4995343, 4995344, 4995345, 4995346, 4995347, 4995348, 4995349, 4995350, 4995351, 4995352, 4995353, 4995354, 4995355, 4995356, 4995357, 4995358, 4995359, 4995360, 4995361, 4995362, 4995363, 4995364, 4995365, 4995366, 4995367, 4995368);[ Date: 2024-05-23 23:33:37 ]
16 1m3s 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: 2024-05-23 09:16:17 ]
17 58s500ms UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (297763, 288787, 293932, 291905, 362066, 362067, 283220, 283221, 362068, 362071, 362072, 362069, 362073, 362075, 302682, 302683, 362074, 305250, 305251, 305252, 305253, 346228, 346233, 346234, 346235, 290959, 290960, 290961, 369300, 284821, 369302, 369303, 336024, 342177, 342180, 335142, 314026, 284849, 335144, 335145, 284856, 291005, 352445, 291007, 291008, 342214, 342215, 284873, 342218, 284875, 284876, 368022, 293603, 409831, 409832, 298217, 325866, 409833, 325868, 298221, 284911, 325871, 352501, 325878, 352504, 298232, 284922, 352507, 325884, 298238, 352510, 352511, 409856, 339339, 301831, 297738, 297740, 409869, 297742, 325902, 409870, 409874, 325907, 368406, 409881, 409882, 409883, 339340, 409885, 297758, 297759, 297760, 335137, 297761, 282402, 282403, 335141, 409894, 352549, 282404, 409897, 297762, 335147, 282406, 282407, 297765, 282410, 282411, 297768, 297769, 282414, 282416, 282419, 282420, 282422, 282424, 339341, 293183, 293184, 293185, 293186, 282438, 282444, 312146, 312150, 312151, 282456, 306041, 306042, 312187, 297864, 312201, 284042, 368011, 339337, 368013, 368014, 368015, 339338, 368017, 288141, 368019, 305037, 305038, 305040, 305044, 339343, 339344, 339345, 339346, 339347, 339348, 339349, 289180, 368023, 368024, 368033, 312230, 368039, 312239, 289203, 290232, 290233, 290234, 290235, 290244, 290245, 290247, 312264, 290249, 312265, 312266, 357833, 290253, 290254, 312269, 290256, 312270, 357835, 312275, 283092, 357836, 357837, 357838, 357840, 357842, 312282, 345051, 357844, 357845, 357846, 383439, 383456, 312289, 383457, 409898, 383441, 383461, 409899, 383463, 383467, 383468, 383469, 295414, 383445);[ Date: 2024-05-23 18:16:02 ]
18 50s897ms UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (325635, 372743, 325643, 325644, 382987, 325646, 325647, 382988, 382992, 382993, 411151, 411152, 411153, 411154, 411159, 411160, 411158, 334364, 406557, 327716, 334373, 317997, 378422, 375867, 372797, 375871, 375872, 293953, 293954, 375873, 375874, 308806, 308807, 308809, 411209, 312420, 309861, 318568, 286827, 286828, 286833, 375924, 287861, 377974, 327808, 308877, 340118, 325783, 340121, 347805, 408221, 347807, 411806, 347297, 347298, 310436, 325807, 370871, 325818, 348866, 350404, 340165, 340166, 382664, 382666, 382667, 382668, 372951, 377049, 372956, 324331, 291573, 322294, 291575, 322298, 286970, 403199, 331023, 309521, 309522, 408340, 408341, 309526, 309527, 396567, 309529, 309530, 396568, 396570, 321821, 406812, 294687, 294688, 346913, 410907, 281891, 281892, 322339, 289582, 410927, 278320, 354609, 322354, 324407, 324408, 390457, 390458, 278336, 278340, 331080, 331083, 331084, 337230, 406352, 337233, 365401, 365405, 287070, 309599, 309600, 309601, 348004, 389988, 307046, 307047, 307048, 312316, 278904, 278905, 278906, 278907, 278909, 406523, 406408, 406414, 371604, 325528, 325624, 315292, 275357, 325532, 325533, 325534, 325535, 325540, 325541, 325542, 343464, 325545, 343469, 326069, 406454, 406455, 406456, 406458, 325565, 336317, 307136, 315329, 371137, 384961, 406470, 406471, 343495, 312776, 295881, 312778, 343499, 312780, 344522, 371145, 376783, 400847, 400848, 402901, 360918, 411099, 411100, 351710, 391646, 345057, 351720, 411112, 354794, 351726, 351727, 351729, 411122, 411125, 411128, 411129, 411130, 411131, 411132);[ Date: 2024-05-23 18:03:47 ]
19 49s847ms UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (303616, 303617, 323584, 303620, 303621, 303622, 303625, 267787, 267788, 267790, 302609, 302610, 302611, 302612, 345106, 345107, 345108, 345109, 375827, 375829, 375833, 350265, 353854, 411727, 345174, 293463, 345175, 293468, 293472, 339553, 339554, 293475, 404070, 404071, 279164, 350855, 350856, 292491, 292492, 370325, 267930, 370848, 370849, 267938, 267954, 303796, 303797, 303798, 303799, 303800, 303801, 303802, 303803, 303804, 268989, 303805, 293571, 279749, 279750, 366278, 364232, 269001, 364236, 382669, 382670, 364239, 382671, 364241, 382672, 382673, 335060, 335062, 335575, 335064, 272601, 335065, 335576, 335577, 335578, 345304, 345312, 364261, 303608, 345325, 345330, 272627, 365813, 365815, 269050, 269051, 272636, 269052, 269053, 269054, 362747, 269057, 269059, 354056, 303615, 369933, 272654, 302355, 302356, 302357, 284950, 390931, 302360, 390932, 362778, 390934, 362780, 382269, 324415, 324416, 324417, 319813, 283987, 353625, 288606, 288608, 288610, 338793, 304490, 288619, 288620, 304491, 304492, 304493, 304494, 304495, 338797, 338799, 338804, 338805, 338806, 338809, 338810, 328071, 276884, 276885, 276886, 272795, 345499, 272797, 345501, 344991, 276896, 344992, 344993, 352673, 266662, 295335, 344998, 344999, 345000, 345003, 295340, 345004, 345005, 352680, 371116, 371117, 345010, 345011, 345013, 266680, 266681, 335806, 295377, 295378, 311287, 311288, 403944, 377835, 403949, 302581, 302582, 361463, 302584, 361461, 361462, 303611, 303613, 303614, 323583);[ Date: 2024-05-23 17:59:21 ]
20 46s54ms SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (266174)) ORDER BY "item_list_line"."id";[ Date: 2024-05-23 11:23:42 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 2h41m57s 35,041 120ms 2s226ms 277ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 23 00 348 1m30s 260ms 01 295 1m36s 326ms 02 283 1m23s 294ms 03 387 2m8s 332ms 04 374 2m3s 331ms 05 329 1m47s 325ms 06 500 2m29s 299ms 07 259 1m44s 403ms 08 723 2m19s 193ms 09 575 1m28s 154ms 10 512 1m54s 223ms 11 1,489 5m5s 205ms 12 4,090 21m17s 312ms 13 3,864 15m5s 234ms 14 4,289 18m50s 263ms 15 2,836 13m34s 287ms 16 2,966 12m7s 245ms 17 3,644 19m 312ms 18 2,963 14m 283ms 19 2,462 11m20s 276ms 20 997 8m9s 490ms 21 340 58s752ms 172ms 22 172 43s863ms 255ms 23 344 1m16s 223ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s226ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_969"', '["pointspring_master","calendar.alarm",19507]', '["pointspring_master","mail.channel",78]', '["pointspring_master","mail.channel",79]', '["pointspring_master","mail.channel",80]', '["pointspring_master","mail.channel",81]', '["pointspring_master","mail.channel",82]', '["pointspring_master","mail.channel",527]', '["pointspring_master","mail.channel",594]', '["pointspring_master","res.partner",19507]', '["pointspring_master","ir.needaction",19507]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s213ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19517]', '["pointspring_master","mail.channel",136]', '["pointspring_master","mail.channel",137]', '["pointspring_master","mail.channel",138]', '["pointspring_master","mail.channel",139]', '["pointspring_master","mail.channel",589]', '["pointspring_master","res.partner",19517]', '["pointspring_master","ir.needaction",19517]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s212ms
2 1h22m51s 11,429 397ms 1s977ms 435ms 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 #2
Day Hour Count Duration Avg duration May 23 00 3 1s262ms 420ms 04 3 1s220ms 406ms 06 3 1s258ms 419ms 07 3 1s206ms 402ms 08 1,257 8m43s 416ms 09 835 5m48s 416ms 10 773 5m19s 413ms 11 1,047 7m30s 429ms 12 1,135 8m38s 456ms 13 1,144 8m38s 453ms 14 971 7m29s 462ms 15 810 5m58s 442ms 16 848 6m8s 434ms 17 341 2m32s 447ms 18 571 4m12s 442ms 19 526 3m47s 432ms 20 454 3m7s 412ms 21 362 2m30s 414ms 22 1 403ms 403ms 23 342 2m22s 415ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 17:02:44 Duration: 1s977ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 13:40:59 Duration: 1s709ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 12:51:48 Duration: 1s550ms
3 37m33s 3,013 555ms 2s441ms 747ms 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 23 10 27 18s223ms 674ms 11 202 2m24s 714ms 12 434 5m45s 795ms 13 447 5m45s 773ms 14 400 5m7s 767ms 15 216 2m35s 719ms 16 245 2m58s 728ms 17 316 3m58s 753ms 18 309 3m46s 732ms 19 325 3m52s 716ms 20 89 59s910ms 673ms 21 3 1s983ms 661ms -
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 ('%%esiia%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esiia%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esiia%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:51:48 Duration: 2s441ms
-
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 ('%%esiie%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-e%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-e%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:19:29 Duration: 2s346ms
-
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 ('%%g25%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g25%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g25%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:24:31 Duration: 2s191ms
4 15m51s 26 1s719ms 2m10s 36s600ms update "sale_order_line" set "cus_user_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 23 11 1 2s494ms 2s494ms 17 9 8m17s 55s291ms 18 16 7m31s 28s217ms -
UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (411648, 411651, 362500, 389126, 389127, 403462, 339979, 399385, 405538, 305194, 305195, 305196, 368684, 399404, 290883, 378955, 368737, 405606, 405607, 405608, 368746, 405612, 309357, 342125, 368751, 405615, 368753, 391294, 391295, 389246, 389247, 379025, 381074, 358561, 358562, 307363, 358564, 360615, 307368, 346282, 307374, 358575, 297143, 307383, 374973, 374974, 346304, 374977, 374978, 374979, 374980, 374981, 381142, 403670, 383192, 405720, 338139, 409820, 338141, 338143, 338144, 393440, 338147, 399590, 268531, 305400, 327929, 305401, 327933, 360704, 381185, 381194, 356619, 356621, 409873, 409875, 409876, 405782, 317728, 317729, 321834, 321837, 405810, 385343, 328002, 309577, 328011, 338277, 387449, 348541, 373118, 385406, 315776, 387453, 387457, 409989, 315787, 336285, 336294, 328109, 336343, 336345, 362978, 362980, 281061, 303599, 391663, 352753, 391664, 410098, 289297, 334355, 334356, 266778, 287260, 317985, 289320, 309815, 289337, 361021, 369219, 399939, 328261, 369221, 369223, 377414, 309843, 399960, 309860, 275045, 377446, 377445, 275047, 268911, 309871, 266866, 367220, 299637, 309878, 367221, 268922, 357015, 357024, 385707, 279214, 328367, 381634, 381635, 332485, 346825, 305869, 402132, 328414, 363231, 328418, 363235, 367331, 377577, 299762, 293628, 385790, 363273, 324362, 365321, 293644, 385801, 324366, 318223, 365326, 365329, 383762, 293654, 350998, 365334, 402202, 363291, 299807, 310053, 389928, 322349, 305971, 383800, 383801, 310077, 283456, 283463, 299852, 392020, 371546, 371547, 396142, 390005, 353150, 318350, 336789, 336792, 297897, 297898, 349129, 308172, 349139, 328664, 328665, 400352, 379874, 304118, 306173, 402443, 298002, 359443, 373788, 347165, 359453, 394278, 361524, 379968, 379972, 316488, 361561, 386156, 384118, 359543, 402558, 320646, 355467, 275596, 298137, 355482, 310434, 378018, 330944, 330945, 330946, 402636, 402637, 396494, 396496, 279761, 396498, 306385, 335059, 396497, 335061, 335063, 396509, 396510, 279783, 365803, 394478, 306432, 355584, 355588, 406827, 406828, 406829, 386359, 271674, 341311, 353604, 353610, 329036, 329037, 335185, 365909, 386389, 353623, 355675, 355676, 355677, 355678, 355680, 355681, 384354, 355683, 406884, 355685, 355686, 355687, 355688, 300393, 355689, 388466, 388467, 386433, 400770, 325025, 294307, 363940, 335278, 335280, 294322, 292278, 292280, 296384, 296385, 372160, 388547, 331211, 296400, 382429, 392670, 318943, 339423, 388577, 339426, 273895, 341484, 341487, 355823, 355824, 341491, 355829, 378357, 407031, 384526, 384527, 357910, 327192, 359969, 366118, 296489, 398889, 405033, 366124, 331324, 331326, 298562, 298563, 284230, 333382, 333383, 394825, 394826, 284239, 300624, 300627, 411221, 284249, 284251, 317021, 284254, 337501, 298596, 386664, 394877, 267905, 267906, 327297, 401028, 267923, 267924, 292503, 362135, 292506, 366237, 345777, 296628, 296630, 349881, 276159, 267974, 267975, 296649, 335564, 288472, 288473, 370394, 345837, 345842, 300794, 300795, 315137, 347922, 329508, 323368, 347946, 329518, 329522, 329525, 329526, 329527, 329538, 329539, 329540, 329543, 329544, 370511, 370515, 280407, 337755, 280424, 403307, 323437, 335730, 329588, 329589, 329591, 329593, 329597, 313217, 329608, 329610, 313227, 313228, 329612, 399247, 288656, 399249, 329618, 399250, 329620, 325525, 329622, 399252, 300953, 329625, 337819, 329629, 329639, 337831, 294825, 329642, 305065, 305066, 305068, 305070, 329645, 305072, 305073, 403383, 305086, 391108, 387016, 294867, 294869, 303063, 409559, 409560, 399335, 276458, 270326, 274423, 301046, 274425, 362491);
Date: 2024-05-23 17:53:32 Duration: 2m10s
-
UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (307200, 346113, 346114, 346115, 346116, 346117, 346118, 303114, 393227, 393229, 368654, 272399, 368656, 368657, 393231, 299039, 299043, 299045, 299047, 299049, 323629, 360495, 323638, 323639, 323640, 288825, 393277, 368709, 380998, 380999, 288846, 288849, 288851, 288854, 288856, 288861, 288862, 325752, 325755, 350342, 274587, 372897, 325823, 389312, 321729, 325826, 325827, 325828, 325843, 342235, 411884, 399606, 278793, 395535, 395536, 395537, 332066, 354597, 354600, 354601, 395569, 395570, 299318, 332087, 299320, 332088, 332091, 332093, 332094, 299334, 350547, 336223, 328033, 328035, 291176, 405875, 405876, 401806, 399759, 401807, 291220, 291221, 405909, 291227, 342427, 342428, 342429, 319905, 407970, 407971, 289207, 289213, 328128, 328129, 344513, 289222, 289226, 289227, 328144, 395731, 395732, 395733, 395734, 395735, 395736, 395737, 391650, 395749, 287207, 375271, 395753, 395760, 303606, 379382, 330238, 379395, 320010, 313867, 320012, 320014, 313872, 320016, 320018, 320020, 395801, 395802, 299551, 299557, 365172, 365173, 361091, 361092, 361093, 361094, 361095, 322187, 330380, 287373, 330381, 307901, 307903, 275156, 273114, 398043, 398045, 398046, 398047, 363242, 363243, 363247, 367350, 367351, 363260, 363265, 332553, 332554, 277263, 363280, 324369, 324370, 332561, 363281, 275221, 361245, 351448, 351449, 271152, 342837, 342838, 342839, 379708, 357181, 379716, 344906, 281419, 312140, 310100, 310101, 281435, 295775, 295777, 295778, 326502, 326503, 342909, 312235, 361389, 361404, 312271, 398291, 312277, 304091, 320483, 320484, 320486, 320488, 320489, 293868, 320492, 345074, 355320, 267261, 304128, 267268, 267293, 267294, 345131, 345132, 271406, 351280, 300085, 300086, 300087, 312380, 316486, 396377, 394351, 394352, 394353, 394356, 351352, 394360, 394361, 394362, 335005, 347305, 347306, 347308, 347310, 347315, 351412, 326837, 324797, 324799, 347338, 351435, 347340, 292044, 292045, 292046, 367824, 324815, 351438, 324819, 351440, 351441, 351442, 324823, 351444, 351445, 324826, 318683, 324827, 351446, 324830, 324831, 351456, 324833, 351457, 324835, 351453, 351458, 351460, 324839, 324841, 324842, 324843, 324844, 324847, 400624, 324849, 324850, 324851, 324852, 324854, 324856, 324857, 324858, 400634, 324860, 400636, 324864, 324866, 324867, 396550, 378120, 400651, 298253, 298254, 400663, 400664, 400666, 328992, 328993, 329000, 335158, 335159, 339294, 339295, 339303, 388461, 388465, 351610, 388476, 269701, 269705, 269706, 392586, 269709, 267662, 267663, 343442, 343443, 290197, 296343, 343451, 296354, 296363, 310709, 392632, 396736, 392647, 396776, 323056, 306704, 306708, 284182, 284190, 325155, 321090, 288348, 366218, 308892, 308906, 315059, 315066, 315073, 315088, 329425, 329426, 329427, 321238, 321240, 284377, 284378, 284379, 284380, 321241, 292575, 403172, 403174, 315111, 364282, 308991, 306946, 315144, 296723, 333614, 366397, 335684, 335689, 335690, 399186, 282452, 282453, 403284, 403289, 282459, 282468, 368500, 321398, 389118, 321401, 321404, 321407, 321409, 409473, 321411, 397198, 323494, 354228, 409531, 403398, 403408, 329698, 368619, 346097, 389105, 346099, 389106, 372727, 372728, 346109, 393214, 393215);
Date: 2024-05-23 17:43:25 Duration: 1m51s
-
UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (391176, 329759, 329765, 329771, 329773, 368710, 354377, 323671, 288858, 288859, 288860, 288876, 323693, 288878, 280687, 323696, 280690, 370803, 280692, 292986, 280699, 280700, 286847, 280704, 280718, 293008, 280727, 280728, 280729, 280747, 280748, 360622, 360623, 280752, 360624, 280754, 280762, 280763, 280764, 409791, 407755, 370895, 370897, 350440, 360684, 340207, 340233, 340234, 340235, 346379, 346380, 340241, 340245, 340257, 407842, 340259, 407843, 274733, 274736, 383287, 383288, 389455, 268636, 377182, 268640, 323937, 323939, 305516, 305519, 383390, 377247, 377246, 360865, 324036, 324037, 350667, 408016, 408017, 408018, 408019, 408020, 358886, 358887, 358888, 313834, 313837, 313840, 313841, 313843, 281076, 313844, 313845, 342548, 281113, 324123, 385569, 373322, 315986, 385678, 385679, 357008, 357010, 357011, 357012, 357013, 357014, 385682, 371353, 371354, 371356, 371357, 371358, 371359, 268966, 314024, 293545, 365229, 365230, 365231, 334517, 350923, 389835, 389854, 334578, 334579, 334580, 334581, 334582, 334583, 293631, 314121, 344865, 344866, 344867, 387874, 396072, 344873, 396078, 344879, 344880, 344890, 344895, 344953, 301959, 301960, 281486, 281488, 301971, 281493, 361378, 361379, 361380, 361381, 361382, 361386, 361390, 361391, 345029, 345032, 322561, 375822, 369691, 336930, 275494, 275495, 275496, 275501, 275502, 275503, 275504, 289840, 275508, 357438, 357439, 357440, 289857, 289859, 328772, 275525, 390215, 410695, 410697, 375888, 375889, 375892, 367703, 359518, 328858, 328859, 382126, 382127, 396483, 392391, 392392, 328912, 328913, 328914, 328916, 328917, 328918, 328919, 328920, 328921, 406740, 328923, 359656, 326914, 328973, 328974, 374029, 406822, 351554, 316770, 316771, 382310, 374119, 267626, 357751, 357758, 279958, 404891, 279975, 279979, 279981, 279984, 279987, 345564, 345567, 409070, 409071, 273905, 409073, 409074, 282120, 353816, 376361, 376362, 376363, 345644, 323117, 345645, 345646, 345647, 376376, 376382, 284255, 358007, 358008, 358009, 358010, 358011, 368258, 288395, 288409, 319165, 319166, 319167, 349902, 349906, 356055, 356056, 356057, 390874, 356059, 356061, 390877, 390878, 390879, 356067, 292580, 356068, 292587, 292588, 292589, 292591, 292596, 292597, 292608, 292613, 292615, 292616, 292667, 309063, 313160, 309066, 313162, 309069, 309070, 362333, 372588, 274296, 354174, 407427, 407430, 407433, 407434, 407435, 358285, 407437, 358287, 407439, 407442, 407445, 407449, 407452, 358301, 370591, 358304, 384930, 370596, 399280, 399281, 350136, 350138, 350142, 350143, 350144, 350146, 370628, 350149, 350150, 370631, 370633, 370634, 370635, 370636, 370637, 370638, 370639, 370640, 399305, 370642, 323540, 370646, 323543, 370649, 323546, 370651, 323550, 323553, 305127, 305132, 268272, 346096, 268274, 391154, 391155, 321530, 321531);
Date: 2024-05-23 17:46:08 Duration: 1m32s
5 14m15s 942 819ms 2s239ms 907ms 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 23 11 41 36s96ms 880ms 12 135 2m5s 930ms 13 109 1m39s 912ms 14 155 2m26s 943ms 15 118 1m45s 890ms 16 74 1m5s 886ms 17 73 1m6s 904ms 18 159 2m20s 884ms 19 59 54s118ms 917ms 20 19 16s353ms 860ms -
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 ('%91023%')) 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 ('%91023%'))) 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 ('%91023%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%91023%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 19:01:52 Duration: 2s239ms
-
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 ('%lfp670%')) 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 ('%lfp670%'))) 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 ('%lfp670%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%lfp670%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:02:08 Duration: 2s43ms
-
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 ('%46-1422%')) 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 ('%46-1422%'))) 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 ('%46-1422%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%46-1422%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:49:41 Duration: 1s725ms
6 13m51s 5,764 124ms 1s41ms 144ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 23 00 240 33s205ms 138ms 01 240 33s79ms 137ms 02 240 33s98ms 137ms 03 241 33s372ms 138ms 04 240 32s984ms 137ms 05 240 33s148ms 138ms 06 240 33s114ms 137ms 07 240 33s60ms 137ms 08 240 33s554ms 139ms 09 240 34s90ms 142ms 10 240 33s975ms 141ms 11 240 35s316ms 147ms 12 240 37s452ms 156ms 13 241 37s280ms 154ms 14 240 37s841ms 157ms 15 241 36s602ms 151ms 16 241 36s362ms 150ms 17 240 37s766ms 157ms 18 240 36s560ms 152ms 19 240 35s518ms 147ms 20 240 33s875ms 141ms 21 240 33s295ms 138ms 22 240 33s63ms 137ms 23 240 33s804ms 140ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_inherits', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_range', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_enum', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_depend', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_proc', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_class', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_attribute', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_subscription', 'pg_catalog.pg_collation', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_type', 'pg_catalog.pg_am', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_description', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_extension', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_wal_receiver', 'information_schema.routine_sequence_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.view_table_usage', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.role_udt_grants', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.triggers', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.triggered_update_columns', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.view_column_usage', 'information_schema.collations', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.routine_column_usage', 'information_schema.schemata', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.data_type_privileges', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.column_udt_usage', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.check_constraint_routine_usage', 'information_schema.routines', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.constraint_column_usage', 'information_schema.routine_table_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.sql_implementation_info', 'information_schema.tables', 'information_schema.collation_character_set_applicability', 'information_schema.key_column_usage', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.sql_features', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-23 17:29:39 Duration: 1s41ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_group', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_user', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_rules', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_am', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_publication', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_settings', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amop', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_class', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_language', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_collation', 'pg_catalog.pg_index', 'pg_catalog.pg_namespace', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_stats', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_trigger', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_subscription', 'pg_catalog.pg_indexes', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_enum', 'pg_catalog.pg_db_role_setting', 'information_schema.routines', 'information_schema.role_table_grants', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.domains', 'information_schema.view_table_usage', 'information_schema.view_routine_usage', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.applicable_roles', 'information_schema.domain_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrapper_options', 'information_schema.administrable_role_authorizations', 'information_schema.column_udt_usage', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.routine_routine_usage', 'information_schema.foreign_table_options', 'information_schema.routine_column_usage', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.parameters', 'information_schema.sequences', 'information_schema.schemata', 'information_schema.sql_features', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.role_column_grants', 'information_schema.role_routine_grants', 'information_schema.character_sets', 'information_schema.column_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_tables', 'information_schema.routine_sequence_usage', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.role_usage_grants', 'information_schema.foreign_servers', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-23 16:59:54 Duration: 682ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_attribute', 'pg_catalog.pg_namespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_class', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_amop', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_language', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_settings', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_user', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_matviews', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_am', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_extension', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_user_mappings', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.view_table_usage', 'information_schema.foreign_tables', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.parameters', 'information_schema.sequences', 'information_schema.data_type_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.collations', 'information_schema.udt_privileges', 'information_schema.character_sets', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrappers', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.enabled_roles', 'information_schema.routine_table_usage', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.column_domain_usage', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.views', 'information_schema.triggers', 'information_schema.administrable_role_authorizations', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.column_column_usage', 'information_schema.foreign_server_options', 'information_schema.view_column_usage', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.columns', 'information_schema.routine_privileges');
Date: 2024-05-23 15:31:24 Duration: 591ms
7 13m35s 141 1s750ms 1m15s 5s783ms delete from account_move_line where id in (...);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 23 11 5 13s362ms 2s672ms 12 3 7s552ms 2s517ms 13 1 6s127ms 6s127ms 15 2 15s406ms 7s703ms 16 7 32s843ms 4s691ms 17 18 33s462ms 1s859ms 18 1 3s892ms 3s892ms 19 4 23s432ms 5s858ms 23 100 11m19s 6s793ms -
DELETE FROM account_move_line WHERE id IN (4932410, 4932411, 4932412, 4932413, 4932414, 4932415, 4932416, 4932417, 4932418, 4932419, 4932420, 4932421, 4932422, 4932423, 4932424, 4932425, 4932426, 4932427, 4932428, 4932429, 4932430, 4932431, 4932432, 4932433, 4932434, 4932435, 4932436, 4932437, 4932438, 4932439, 4932440, 4932441, 4932442, 4932443, 4932444, 4932445, 4932446, 4932447, 4943886, 4943887, 4993357, 4993358);
Date: 2024-05-23 23:13:33 Duration: 1m15s
-
DELETE FROM account_move_line WHERE id IN (4995118, 4995119, 4995120, 4995121, 4995122, 4995123, 4995124, 4995125, 4995126, 4995127, 4995128, 4995129, 4995130, 4995131, 4995132, 4995133, 4995134, 4995135, 4995136, 4995137, 4995138, 4995139, 4995140, 4995141, 4995142, 4995143, 4995144, 4995145, 4995146, 4995147, 4995148, 4995149, 4995150, 4995151, 4995152, 4995153, 4995154, 4995155, 4995156, 4995157, 4995158);
Date: 2024-05-23 23:32:20 Duration: 1m13s
-
DELETE FROM account_move_line WHERE id IN (4995329, 4995330, 4995331, 4995332, 4995333, 4995334, 4995335, 4995336, 4995337, 4995338, 4995339, 4995340, 4995341, 4995342, 4995343, 4995344, 4995345, 4995346, 4995347, 4995348, 4995349, 4995350, 4995351, 4995352, 4995353, 4995354, 4995355, 4995356, 4995357, 4995358, 4995359, 4995360, 4995361, 4995362, 4995363, 4995364, 4995365, 4995366, 4995367, 4995368);
Date: 2024-05-23 23:33:37 Duration: 1m11s
8 11m58s 986 632ms 1s553ms 728ms 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 #8
Day Hour Count Duration Avg duration May 23 11 17 12s47ms 708ms 12 133 1m38s 739ms 13 92 1m10s 767ms 14 178 2m9s 727ms 15 52 37s440ms 720ms 16 51 36s573ms 717ms 17 262 3m11s 732ms 18 72 50s491ms 701ms 19 120 1m24s 707ms 20 9 6s556ms 728ms -
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 ('%%5170%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s553ms
-
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 ('%%11B%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%11B-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%11B-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:51:59 Duration: 1s488ms
-
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 ('%%5170x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s472ms
9 11m3s 2 5m28s 5m34s 5m31s select "sale_history_line".id from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ("sale_history_line"."invoice_date" > ?)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 23 14 2 11m3s 5m31s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-05-23 14:45:29 Duration: 5m34s
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-05-23 14:47:41 Duration: 5m28s
10 10m46s 2 5m8s 5m38s 5m23s select count(?) from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ("sale_history_line"."invoice_date" > ?)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 23 14 2 10m46s 5m23s -
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:51:07 Duration: 5m38s
-
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:52:50 Duration: 5m8s
11 9m47s 3,150 162ms 708ms 186ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 23 12 31 6s529ms 210ms 13 54 10s799ms 199ms 14 493 1m38s 199ms 15 593 1m49s 184ms 16 10 1s879ms 187ms 17 422 1m20s 190ms 18 317 1m1s 192ms 19 443 1m22s 185ms 20 277 48s292ms 174ms 21 136 23s566ms 173ms 22 15 2s562ms 170ms 23 359 1m1s 172ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172564;
Date: 2024-05-23 17:23:07 Duration: 708ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172571;
Date: 2024-05-23 17:23:08 Duration: 668ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172569;
Date: 2024-05-23 17:23:07 Duration: 615ms
12 9m 538 329ms 3s159ms 1s3ms 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 #12
Day Hour Count Duration Avg duration May 23 08 9 8s860ms 984ms 11 10 8s210ms 821ms 12 68 1m6s 974ms 13 86 1m25s 990ms 14 83 1m25s 1s27ms 15 40 41s468ms 1s36ms 16 70 1m11s 1s23ms 17 36 35s81ms 974ms 18 24 23s139ms 964ms 19 94 1m36s 1s25ms 20 17 17s661ms 1s38ms 21 1 849ms 849ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "date" = '2024-05-23 12:40:36', "is_done" = true, "state" = 'done', "write_uid" = 1010, "write_date" = (now() at time zone 'UTC') WHERE id IN (962605, 962606, 962607);
Date: 2024-05-23 12:40:41 Duration: 3s159ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2024-05-23 17:05:51', "is_done" = true, "state" = 'done', "write_uid" = 1043, "write_date" = (now() at time zone 'UTC') WHERE id IN (963354, 963355, 963357);
Date: 2024-05-23 17:06:09 Duration: 2s626ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 8.0, "date" = '2024-05-23 15:49:13', "is_done" = true, "state" = 'done', "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (955056, 955052);
Date: 2024-05-23 15:49:23 Duration: 2s514ms
13 7m49s 721 159ms 6s618ms 651ms 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 23 08 9 6s419ms 713ms 11 33 16s716ms 506ms 12 138 1m30s 656ms 13 132 1m30s 687ms 14 124 1m27s 707ms 15 38 25s224ms 663ms 16 58 29s364ms 506ms 17 73 44s319ms 607ms 18 65 45s216ms 695ms 19 35 24s106ms 688ms 20 15 8s873ms 591ms 21 1 467ms 467ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1027, "write_date" = (now() at time zone 'UTC') WHERE id IN (483832, 483833, 483834, 483835, 483836, 483837, 483839);
Date: 2024-05-23 13:35:19 Duration: 6s618ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (472329, 472330, 472331, 472332, 472333, 472334, 472335);
Date: 2024-05-23 18:33:45 Duration: 3s424ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (484865, 484868, 484870, 484863);
Date: 2024-05-23 19:13:28 Duration: 3s142ms
14 6m49s 564 631ms 2s83ms 726ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 23 11 42 28s919ms 688ms 12 22 15s919ms 723ms 13 29 22s246ms 767ms 14 60 47s760ms 796ms 15 27 18s758ms 694ms 16 14 9s918ms 708ms 17 140 1m42s 732ms 18 121 1m29s 737ms 19 35 25s11ms 714ms 20 26 17s418ms 669ms 22 4 2s627ms 656ms 23 44 29s104ms 661ms -
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 ('%%ABP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ABP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ABP%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:29:40 Duration: 2s83ms
-
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 ('%%ABPN%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ABPN%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ABPN%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:29:40 Duration: 1s371ms
-
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 ('%%788%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%788%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%788%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 14:40:00 Duration: 1s332ms
15 6m26s 2,008 166ms 1s254ms 192ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) 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 #15
Day Hour Count Duration Avg duration May 23 08 4 765ms 191ms 10 1 173ms 173ms 11 65 12s583ms 193ms 12 160 31s298ms 195ms 13 192 37s549ms 195ms 14 198 40s58ms 202ms 15 147 27s377ms 186ms 16 325 1m 186ms 17 203 41s729ms 205ms 18 589 1m51s 189ms 19 103 19s172ms 186ms 20 16 2s949ms 184ms 21 2 347ms 173ms 23 3 537ms 179ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%05092%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%05092%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%05092%')))) 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 ('%05092%') OR unaccent (res_partner.display_name) ilike unaccent ('%05092%') OR unaccent (res_partner.ref) ilike unaccent ('%05092%') OR unaccent (res_partner.vat) ilike unaccent ('05092')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%05092%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 17:31:12 Duration: 1s254ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%LIBERT%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%LIBERT%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%LIBERT%')))) 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 ('%LIBERT%') OR unaccent (res_partner.display_name) ilike unaccent ('%LIBERT%') OR unaccent (res_partner.ref) ilike unaccent ('%LIBERT%') OR unaccent (res_partner.vat) ilike unaccent ('LIBERT')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%LIBERT%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 14:53:30 Duration: 963ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%D-RTV00010%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%D-RTV00010%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%D-RTV00010%')))) 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 ('%D-RTV00010%') OR unaccent (res_partner.display_name) ilike unaccent ('%D-RTV00010%') OR unaccent (res_partner.ref) ilike unaccent ('%D-RTV00010%') OR unaccent (res_partner.vat) ilike unaccent ('D-RTV00010')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%D-RTV00010%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 18:50:43 Duration: 529ms
16 6m15s 628 158ms 10s568ms 598ms update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 23 11 36 15s660ms 435ms 12 102 1m10s 695ms 13 77 49s731ms 645ms 14 85 1m2s 733ms 15 45 24s848ms 552ms 16 44 15s504ms 352ms 17 91 54s921ms 603ms 18 59 32s351ms 548ms 19 33 23s892ms 724ms 20 18 7s249ms 402ms 21 11 5s27ms 457ms 22 8 3s686ms 460ms 23 19 9s464ms 498ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (963969, 963970, 963971, 963972, 963973, 963974, 963975, 963976, 963977, 963978, 963980, 963984, 963985, 963986, 963988, 963989, 963990, 963991, 963992, 963995, 963996, 963998, 963965);
Date: 2024-05-23 19:54:16 Duration: 10s568ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 980, "write_date" = (now() at time zone 'UTC') WHERE id IN (963008, 963009, 963010, 962995, 962996, 962997, 962998, 962999, 963000, 963001, 963003, 963004, 963005, 963006, 963007);
Date: 2024-05-23 14:24:08 Duration: 8s446ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (962958, 962960, 962961, 962962, 962963, 962964, 962965, 962966, 962967, 962968, 962969, 962970);
Date: 2024-05-23 14:14:46 Duration: 6s316ms
17 6m10s 1 6m10s 6m10s 6m10s 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;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 23 09 1 6m10s 6m10s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-05-23 09:12:00 Duration: 6m10s
18 5m47s 121 314ms 17s747ms 2s875ms 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 23 08 2 1s785ms 892ms 11 3 2s504ms 834ms 12 21 33s436ms 1s592ms 13 29 1m32s 3s203ms 14 20 1m2s 3s120ms 15 7 41s965ms 5s995ms 16 5 7s865ms 1s573ms 17 17 41s12ms 2s412ms 18 11 36s961ms 3s360ms 19 6 27s94ms 4s515ms -
UPDATE "stock_move" SET "date" = '2024-05-23 14:45:55', "state" = 'done', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (956891, 956892, 956894, 956895, 956896, 956897, 956898, 956899, 956900, 956901, 956902, 956903, 956904, 956905, 956906, 956907, 956908, 956909, 956912, 956913);
Date: 2024-05-23 14:46:14 Duration: 17s747ms
-
UPDATE "stock_move" SET "date" = '2024-05-23 15:53:05', "state" = 'done', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (950801, 950802, 950803, 950804, 950806, 950807, 950808, 950809, 950810, 950811, 950812, 950813, 950814, 950815, 950816, 950817, 950818, 950819, 950821, 950822);
Date: 2024-05-23 15:53:22 Duration: 16s908ms
-
UPDATE "stock_move" SET "date" = '2024-05-23 19:16:58', "state" = 'done', "write_uid" = 1019, "write_date" = (now() at time zone 'UTC') WHERE id IN (953356, 953357, 953358, 953359, 953360, 953361, 953362, 953363, 953364, 953366, 953367, 953369, 953370, 953371, 953372, 953373, 953374);
Date: 2024-05-23 19:17:13 Duration: 14s626ms
19 5m45s 306 1s8ms 3s96ms 1s127ms 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;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 23 02 3 3s85ms 1s28ms 11 42 46s382ms 1s104ms 12 42 51s616ms 1s228ms 13 21 23s841ms 1s135ms 14 30 34s400ms 1s146ms 15 33 35s873ms 1s87ms 16 51 55s514ms 1s88ms 17 33 38s69ms 1s153ms 18 24 27s281ms 1s136ms 19 15 16s438ms 1s95ms 20 6 6s304ms 1s50ms 23 6 6s205ms 1s34ms -
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 ('%107342-5%') 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 ('%107342-5%')))))) 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 ('%107342-5%')))))) 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 ('%107342-5%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%107342-5%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%107342-5%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 17:23:08 Duration: 3s96ms
-
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 ('%9405%') 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 ('%9405%')))))) 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 ('%9405%')))))) 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 ('%9405%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%9405%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%9405%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 12:52:26 Duration: 2s108ms
-
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 ('%82-9437%') 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 ('%82-9437%')))))) 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 ('%82-9437%')))))) 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 ('%82-9437%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%82-9437%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%82-9437%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 12:27:56 Duration: 1s876ms
20 5m29s 1 5m29s 5m29s 5m29s select count(?) from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 23 14 1 5m29s 5m29s -
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:46:55 Duration: 5m29s
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 35,041 2h41m57s 120ms 2s226ms 277ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 23 00 348 1m30s 260ms 01 295 1m36s 326ms 02 283 1m23s 294ms 03 387 2m8s 332ms 04 374 2m3s 331ms 05 329 1m47s 325ms 06 500 2m29s 299ms 07 259 1m44s 403ms 08 723 2m19s 193ms 09 575 1m28s 154ms 10 512 1m54s 223ms 11 1,489 5m5s 205ms 12 4,090 21m17s 312ms 13 3,864 15m5s 234ms 14 4,289 18m50s 263ms 15 2,836 13m34s 287ms 16 2,966 12m7s 245ms 17 3,644 19m 312ms 18 2,963 14m 283ms 19 2,462 11m20s 276ms 20 997 8m9s 490ms 21 340 58s752ms 172ms 22 172 43s863ms 255ms 23 344 1m16s 223ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s226ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_969"', '["pointspring_master","calendar.alarm",19507]', '["pointspring_master","mail.channel",78]', '["pointspring_master","mail.channel",79]', '["pointspring_master","mail.channel",80]', '["pointspring_master","mail.channel",81]', '["pointspring_master","mail.channel",82]', '["pointspring_master","mail.channel",527]', '["pointspring_master","mail.channel",594]', '["pointspring_master","res.partner",19507]', '["pointspring_master","ir.needaction",19507]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s213ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19517]', '["pointspring_master","mail.channel",136]', '["pointspring_master","mail.channel",137]', '["pointspring_master","mail.channel",138]', '["pointspring_master","mail.channel",139]', '["pointspring_master","mail.channel",589]', '["pointspring_master","res.partner",19517]', '["pointspring_master","ir.needaction",19517]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s212ms
2 11,429 1h22m51s 397ms 1s977ms 435ms 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 #2
Day Hour Count Duration Avg duration May 23 00 3 1s262ms 420ms 04 3 1s220ms 406ms 06 3 1s258ms 419ms 07 3 1s206ms 402ms 08 1,257 8m43s 416ms 09 835 5m48s 416ms 10 773 5m19s 413ms 11 1,047 7m30s 429ms 12 1,135 8m38s 456ms 13 1,144 8m38s 453ms 14 971 7m29s 462ms 15 810 5m58s 442ms 16 848 6m8s 434ms 17 341 2m32s 447ms 18 571 4m12s 442ms 19 526 3m47s 432ms 20 454 3m7s 412ms 21 362 2m30s 414ms 22 1 403ms 403ms 23 342 2m22s 415ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 17:02:44 Duration: 1s977ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 13:40:59 Duration: 1s709ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 12:51:48 Duration: 1s550ms
3 5,764 13m51s 124ms 1s41ms 144ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 23 00 240 33s205ms 138ms 01 240 33s79ms 137ms 02 240 33s98ms 137ms 03 241 33s372ms 138ms 04 240 32s984ms 137ms 05 240 33s148ms 138ms 06 240 33s114ms 137ms 07 240 33s60ms 137ms 08 240 33s554ms 139ms 09 240 34s90ms 142ms 10 240 33s975ms 141ms 11 240 35s316ms 147ms 12 240 37s452ms 156ms 13 241 37s280ms 154ms 14 240 37s841ms 157ms 15 241 36s602ms 151ms 16 241 36s362ms 150ms 17 240 37s766ms 157ms 18 240 36s560ms 152ms 19 240 35s518ms 147ms 20 240 33s875ms 141ms 21 240 33s295ms 138ms 22 240 33s63ms 137ms 23 240 33s804ms 140ms -
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_inherits', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_transform', 'pg_catalog.pg_publication', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_index', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_range', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_language', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_sequences', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_enum', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_depend', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_proc', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_class', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_roles', 'pg_catalog.pg_attribute', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_subscription', 'pg_catalog.pg_collation', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_database', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_rules', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stats', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_type', 'pg_catalog.pg_am', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_description', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_constraint', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_extension', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_wal_receiver', 'information_schema.routine_sequence_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.information_schema_catalog_name', 'information_schema.view_table_usage', 'information_schema.domain_constraints', 'information_schema.enabled_roles', 'information_schema.role_udt_grants', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.column_privileges', 'information_schema.triggers', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.triggered_update_columns', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.element_types', 'information_schema.view_column_usage', 'information_schema.collations', 'information_schema.routine_routine_usage', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.routine_column_usage', 'information_schema.schemata', 'information_schema.udt_privileges', 'information_schema.usage_privileges', 'information_schema.data_type_privileges', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.column_column_usage', 'information_schema.referential_constraints', 'information_schema.column_udt_usage', 'information_schema.parameters', 'information_schema.table_constraints', 'information_schema.foreign_servers', 'information_schema.check_constraint_routine_usage', 'information_schema.routines', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.role_table_grants', 'information_schema.user_mappings', 'information_schema.constraint_column_usage', 'information_schema.routine_table_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.role_column_grants', 'information_schema.routine_privileges', 'information_schema.sql_implementation_info', 'information_schema.tables', 'information_schema.collation_character_set_applicability', 'information_schema.key_column_usage', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.sql_features', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-23 17:29:39 Duration: 1s41ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('pg_catalog.pg_group', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_user', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_rules', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_am', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_publication', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_sequence', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_roles', 'pg_catalog.pg_proc', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_settings', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_policies', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_amop', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_cast', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_type', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_conversion', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_class', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_language', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_collation', 'pg_catalog.pg_index', 'pg_catalog.pg_namespace', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_transform', 'pg_catalog.pg_stats', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_trigger', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_extension', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_subscription', 'pg_catalog.pg_indexes', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_enum', 'pg_catalog.pg_db_role_setting', 'information_schema.routines', 'information_schema.role_table_grants', 'information_schema.collation_character_set_applicability', 'information_schema.enabled_roles', 'information_schema.views', 'information_schema.role_udt_grants', 'information_schema.user_mapping_options', 'information_schema.constraint_column_usage', 'information_schema.domain_udt_usage', 'information_schema.table_privileges', 'information_schema.triggers', 'information_schema.column_column_usage', 'information_schema.columns', 'information_schema.domains', 'information_schema.view_table_usage', 'information_schema.view_routine_usage', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.applicable_roles', 'information_schema.domain_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.column_options', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrapper_options', 'information_schema.administrable_role_authorizations', 'information_schema.column_udt_usage', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.routine_routine_usage', 'information_schema.foreign_table_options', 'information_schema.routine_column_usage', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.data_type_privileges', 'information_schema.user_defined_types', 'information_schema.table_constraints', 'information_schema.triggered_update_columns', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.parameters', 'information_schema.sequences', 'information_schema.schemata', 'information_schema.sql_features', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_server_options', 'information_schema.attributes', 'information_schema.role_column_grants', 'information_schema.role_routine_grants', 'information_schema.character_sets', 'information_schema.column_privileges', 'information_schema.usage_privileges', 'information_schema.foreign_tables', 'information_schema.routine_sequence_usage', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.role_usage_grants', 'information_schema.foreign_servers', 'information_schema.check_constraint_routine_usage', 'information_schema.column_domain_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-05-23 16:59:54 Duration: 682ms
-
SELECT -- BLOATQUERY current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages AS real_size, (tblpages - est_tblpages_ff) * bs AS bloat_size, CASE WHEN tblpages - est_tblpages_ff > 0 THEN 100 * (tblpages - est_tblpages_ff) / tblpages::float ELSE 0 END AS bloat_ratio -- , (pst).free_percent + (pst).dead_tuple_percent AS real_frag FROM ( SELECT ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / 4) AS est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * 100))) + ceil(toasttuples / 4) AS est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na -- , stattuple.pgstattuple(tblid) AS pst FROM ( SELECT (4 + tpl_hdr_size + tpl_data_size + (2 * ma) - CASE WHEN tpl_hdr_size % ma = 0 THEN ma ELSE tpl_hdr_size % ma END - CASE WHEN ceil(tpl_data_size)::int % ma = 0 THEN ma ELSE ceil(tpl_data_size)::int % ma END) AS tpl_size, bs - page_hdr AS size_per_block, (heappages + toastpages) AS tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na FROM ( SELECT tbl.oid AS tblid, ns.nspname AS schemaname, tbl.relname AS tblname, tbl.reltuples, tbl.relpages AS heappages, coalesce(toast.relpages, 0) AS toastpages, coalesce(toast.reltuples, 0) AS toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ' ') FROM 'fillfactor=([0-9]+)')::smallint, 100) AS fillfactor, current_setting('block_size')::numeric AS bs, CASE WHEN version() ~ 'mingw32' OR version() ~ '64-bit|x86_64|ppc64|ia64|amd64' THEN 8 ELSE 4 END AS ma, 24 AS page_hdr, CASE WHEN current_setting('server_version_num')::integer < 80300 THEN 27 ELSE 23 END + CASE WHEN MAX(coalesce(null_frac, 0)) > 0 THEN (7 + count(*)) / 8 ELSE 0::int END + 0 AS tpl_hdr_size, sum((1 - coalesce(s.null_frac, 0)) * coalesce(s.avg_width, 1024)) AS tpl_data_size, bool_or(att.atttypid = 'pg_catalog.name'::regtype) OR count(att.attname) <> count(s.attname) AS is_na FROM pg_attribute AS att JOIN pg_class AS tbl ON att.attrelid = tbl.oid JOIN pg_namespace AS ns ON ns.oid = tbl.relnamespace LEFT JOIN pg_stats AS s ON s.schemaname = ns.nspname AND s.tablename = tbl.relname AND s.attname = att.attname LEFT JOIN pg_class AS toast ON tbl.reltoastrelid = toast.oid WHERE att.attnum > 0 AND NOT att.attisdropped AND tbl.relkind = 'r' GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ORDER BY 2, 3) AS s) AS s2) AS s3 where not is_na and schemaname || '.' || tblname in ('public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_attribute', 'pg_catalog.pg_namespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_trigger', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_subscription', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_description', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_tables', 'pg_catalog.pg_type', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_constraint', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_class', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_amop', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_proc', 'pg_catalog.pg_language', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_settings', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_enum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_user', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_matviews', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_am', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_extension', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_inherits', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_user_mappings', 'information_schema.referential_constraints', 'information_schema.routine_sequence_usage', 'information_schema.view_table_usage', 'information_schema.foreign_tables', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.parameters', 'information_schema.sequences', 'information_schema.data_type_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.collations', 'information_schema.udt_privileges', 'information_schema.character_sets', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.column_udt_usage', 'information_schema.domain_udt_usage', 'information_schema.sql_sizing', 'information_schema.triggered_update_columns', 'information_schema.foreign_data_wrappers', 'information_schema.collation_character_set_applicability', 'information_schema.column_privileges', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.enabled_roles', 'information_schema.routine_table_usage', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.column_domain_usage', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.views', 'information_schema.triggers', 'information_schema.administrable_role_authorizations', 'information_schema.routine_routine_usage', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.role_column_grants', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.column_column_usage', 'information_schema.foreign_server_options', 'information_schema.view_column_usage', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.columns', 'information_schema.routine_privileges');
Date: 2024-05-23 15:31:24 Duration: 591ms
4 3,150 9m47s 162ms 708ms 186ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 23 12 31 6s529ms 210ms 13 54 10s799ms 199ms 14 493 1m38s 199ms 15 593 1m49s 184ms 16 10 1s879ms 187ms 17 422 1m20s 190ms 18 317 1m1s 192ms 19 443 1m22s 185ms 20 277 48s292ms 174ms 21 136 23s566ms 173ms 22 15 2s562ms 170ms 23 359 1m1s 172ms -
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172564;
Date: 2024-05-23 17:23:07 Duration: 708ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172571;
Date: 2024-05-23 17:23:08 Duration: 668ms
-
SELECT COALESCE(SUM(pwi.max_product_uom_qty), 0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42659 and fd.product_id = 172569;
Date: 2024-05-23 17:23:07 Duration: 615ms
5 3,013 37m33s 555ms 2s441ms 747ms 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 #5
Day Hour Count Duration Avg duration May 23 10 27 18s223ms 674ms 11 202 2m24s 714ms 12 434 5m45s 795ms 13 447 5m45s 773ms 14 400 5m7s 767ms 15 216 2m35s 719ms 16 245 2m58s 728ms 17 316 3m58s 753ms 18 309 3m46s 732ms 19 325 3m52s 716ms 20 89 59s910ms 673ms 21 3 1s983ms 661ms -
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 ('%%esiia%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esiia%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esiia%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:51:48 Duration: 2s441ms
-
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 ('%%esiie%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-e%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-e%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:19:29 Duration: 2s346ms
-
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 ('%%g25%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g25%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g25%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:24:31 Duration: 2s191ms
6 2,008 6m26s 166ms 1s254ms 192ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) 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 #6
Day Hour Count Duration Avg duration May 23 08 4 765ms 191ms 10 1 173ms 173ms 11 65 12s583ms 193ms 12 160 31s298ms 195ms 13 192 37s549ms 195ms 14 198 40s58ms 202ms 15 147 27s377ms 186ms 16 325 1m 186ms 17 203 41s729ms 205ms 18 589 1m51s 189ms 19 103 19s172ms 186ms 20 16 2s949ms 184ms 21 2 347ms 173ms 23 3 537ms 179ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%05092%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%05092%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%05092%')))) 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 ('%05092%') OR unaccent (res_partner.display_name) ilike unaccent ('%05092%') OR unaccent (res_partner.ref) ilike unaccent ('%05092%') OR unaccent (res_partner.vat) ilike unaccent ('05092')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%05092%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 17:31:12 Duration: 1s254ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%LIBERT%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%LIBERT%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%LIBERT%')))) 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 ('%LIBERT%') OR unaccent (res_partner.display_name) ilike unaccent ('%LIBERT%') OR unaccent (res_partner.ref) ilike unaccent ('%LIBERT%') OR unaccent (res_partner.vat) ilike unaccent ('LIBERT')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%LIBERT%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 14:53:30 Duration: 963ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%D-RTV00010%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%D-RTV00010%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%D-RTV00010%')))) 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 ('%D-RTV00010%') OR unaccent (res_partner.display_name) ilike unaccent ('%D-RTV00010%') OR unaccent (res_partner.ref) ilike unaccent ('%D-RTV00010%') OR unaccent (res_partner.vat) ilike unaccent ('D-RTV00010')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%D-RTV00010%') desc, unaccent (res_partner.display_name);
Date: 2024-05-23 18:50:43 Duration: 529ms
7 1,939 4m32s 120ms 701ms 140ms 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 #7
Day Hour Count Duration Avg duration May 23 08 3 404ms 134ms 10 7 871ms 124ms 11 108 14s323ms 132ms 12 283 40s369ms 142ms 13 306 42s524ms 138ms 14 370 53s628ms 144ms 15 152 22s122ms 145ms 16 155 21s410ms 138ms 17 176 25s46ms 142ms 18 165 22s358ms 135ms 19 154 21s810ms 141ms 20 20 2s533ms 126ms 21 14 1s721ms 122ms 22 2 249ms 124ms 23 24 3s96ms 129ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (193222)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 17:29:38 Duration: 701ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (266196)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 15:31:24 Duration: 617ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (187848, 238917, 237210)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 12:52:25 Duration: 611ms
8 1,416 5m20s 185ms 1s716ms 226ms select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 23 06 1 199ms 199ms 08 1 212ms 212ms 11 83 18s118ms 218ms 12 220 51s714ms 235ms 13 175 40s543ms 231ms 14 223 54s462ms 244ms 15 137 29s98ms 212ms 16 131 29s171ms 222ms 17 105 24s303ms 231ms 18 156 34s90ms 218ms 19 96 21s347ms 222ms 20 32 6s329ms 197ms 21 18 3s568ms 198ms 22 18 3s501ms 194ms 23 20 4s8ms 200ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (185856))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 14:20:19 Duration: 1s716ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265946))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 13:44:32 Duration: 1s84ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (206582))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 14:32:59 Duration: 901ms
9 1,018 3m19s 157ms 895ms 195ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 23 08 8 1s453ms 181ms 11 67 12s311ms 183ms 12 161 31s522ms 195ms 13 177 34s799ms 196ms 14 126 26s666ms 211ms 15 81 16s248ms 200ms 16 120 23s540ms 196ms 17 69 13s517ms 195ms 18 71 13s774ms 194ms 19 110 20s592ms 187ms 20 26 4s627ms 177ms 21 2 347ms 173ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1423202)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-23 15:31:23 Duration: 895ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1422676)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-23 16:02:36 Duration: 890ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1411217)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-05-23 14:20:18 Duration: 848ms
10 986 11m58s 632ms 1s553ms 728ms 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 23 11 17 12s47ms 708ms 12 133 1m38s 739ms 13 92 1m10s 767ms 14 178 2m9s 727ms 15 52 37s440ms 720ms 16 51 36s573ms 717ms 17 262 3m11s 732ms 18 72 50s491ms 701ms 19 120 1m24s 707ms 20 9 6s556ms 728ms -
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 ('%%5170%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s553ms
-
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 ('%%11B%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%11B-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%11B-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:51:59 Duration: 1s488ms
-
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 ('%%5170x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s472ms
11 948 2m8s 120ms 263ms 135ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where (("product_warehouse_inventory"."warehouse_id" = ?) and ("product_warehouse_inventory"."product_id" = ?)) order by "product_warehouse_inventory"."warehouse_name" limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 23 11 130 16s891ms 129ms 12 70 9s207ms 131ms 13 128 17s407ms 135ms 14 61 8s436ms 138ms 15 51 6s812ms 133ms 16 24 3s210ms 133ms 17 172 22s848ms 132ms 18 132 18s756ms 142ms 19 147 20s56ms 136ms 20 33 4s374ms 132ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 38) AND ("product_warehouse_inventory"."product_id" = 172595)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-23 18:48:44 Duration: 263ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 198414)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-23 13:38:31 Duration: 250ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 180866)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-05-23 19:17:47 Duration: 236ms
12 942 14m15s 819ms 2s239ms 907ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 23 11 41 36s96ms 880ms 12 135 2m5s 930ms 13 109 1m39s 912ms 14 155 2m26s 943ms 15 118 1m45s 890ms 16 74 1m5s 886ms 17 73 1m6s 904ms 18 159 2m20s 884ms 19 59 54s118ms 917ms 20 19 16s353ms 860ms -
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 ('%91023%')) 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 ('%91023%'))) 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 ('%91023%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%91023%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 19:01:52 Duration: 2s239ms
-
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 ('%lfp670%')) 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 ('%lfp670%'))) 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 ('%lfp670%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%lfp670%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:02:08 Duration: 2s43ms
-
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 ('%46-1422%')) 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 ('%46-1422%'))) 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 ('%46-1422%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%46-1422%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:49:41 Duration: 1s725ms
13 936 2m40s 149ms 477ms 171ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 23 13 17 3s553ms 209ms 14 139 25s78ms 180ms 15 196 33s30ms 168ms 17 156 26s672ms 170ms 18 83 14s61ms 169ms 19 157 27s323ms 174ms 20 74 12s249ms 165ms 21 28 4s623ms 165ms 23 86 13s868ms 161ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (227376) and warehouse_id = (45));
Date: 2024-05-23 13:29:20 Duration: 477ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (227386) and warehouse_id = (45));
Date: 2024-05-23 13:29:21 Duration: 362ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (254171) and warehouse_id = (35));
Date: 2024-05-23 14:24:39 Duration: 344ms
14 914 2m19s 120ms 726ms 152ms 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"."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 (unaccent ("product_product"."barcode"::text) ilike unaccent (?)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name");Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 23 11 34 4s864ms 143ms 12 133 21s405ms 160ms 13 94 14s221ms 151ms 14 171 28s82ms 164ms 15 116 17s184ms 148ms 16 53 7s527ms 142ms 17 68 10s427ms 153ms 18 163 23s551ms 144ms 19 63 9s184ms 145ms 20 9 1s244ms 138ms 22 8 1s137ms 142ms 23 2 243ms 121ms -
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"."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 (unaccent ("product_product"."barcode"::text) ilike unaccent ('%724MF%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-23 12:43:44 Duration: 726ms
-
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"."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 (unaccent ("product_product"."barcode"::text) ilike unaccent ('%lfp670%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-23 14:02:06 Duration: 718ms
-
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"."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 (unaccent ("product_product"."barcode"::text) ilike unaccent ('%125803%')) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name");
Date: 2024-05-23 14:02:07 Duration: 627ms
15 881 2m38s 151ms 1s789ms 179ms update "stock_quant" set "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 23 11 59 10s749ms 182ms 12 137 24s332ms 177ms 13 108 18s839ms 174ms 14 130 25s425ms 195ms 15 95 16s171ms 170ms 16 56 9s912ms 177ms 17 114 21s132ms 185ms 18 87 15s345ms 176ms 19 52 9s72ms 174ms 20 22 3s624ms 164ms 21 6 988ms 164ms 22 4 647ms 161ms 23 11 1s850ms 168ms -
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (289027, 40355, 326083, 320234, 42139, 41773, 42845, 41775, 40371, 440763, 40349);
Date: 2024-05-23 14:03:12 Duration: 1s789ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 1.0, "write_uid" = 968, "write_date" = (now() at time zone 'UTC') WHERE id IN (450679);
Date: 2024-05-23 17:51:08 Duration: 681ms
-
UPDATE "stock_quant" SET "reserved_quantity" = 0.0, "write_uid" = 1012, "write_date" = (now() at time zone 'UTC') WHERE id IN (366507, 371815, 293397, 300111);
Date: 2024-05-23 11:43:12 Duration: 663ms
16 803 1m53s 120ms 987ms 141ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_tmpl_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 23 06 2 293ms 146ms 11 23 2s968ms 129ms 12 170 25s75ms 147ms 13 122 17s143ms 140ms 14 151 22s33ms 145ms 15 63 8s520ms 135ms 16 67 9s455ms 141ms 17 62 8s277ms 133ms 18 95 12s972ms 136ms 19 41 5s689ms 138ms 20 5 669ms 133ms 22 1 120ms 120ms 23 1 128ms 128ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (256430)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 12:58:53 Duration: 987ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (220204)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 12:50:12 Duration: 665ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_tmpl_id" in (256430)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-05-23 12:58:53 Duration: 551ms
17 774 1m53s 120ms 524ms 146ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration May 23 11 226 32s588ms 144ms 12 58 8s397ms 144ms 13 181 25s648ms 141ms 14 24 3s783ms 157ms 15 5 716ms 143ms 16 4 586ms 146ms 17 82 12s432ms 151ms 18 84 13s328ms 158ms 19 86 11s906ms 138ms 20 24 3s779ms 157ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 216381) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '48')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-05-23 20:29:09 Duration: 524ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 211235) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '48')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-05-23 12:33:09 Duration: 396ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 171848) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '45')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-05-23 18:48:22 Duration: 258ms
18 770 4m 258ms 1s157ms 311ms 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 23 08 11 3s390ms 308ms 11 29 8s471ms 292ms 12 134 40s500ms 302ms 13 176 55s213ms 313ms 14 129 38s203ms 296ms 15 67 24s592ms 367ms 16 46 13s924ms 302ms 17 39 13s574ms 348ms 18 47 14s964ms 318ms 19 70 21s58ms 300ms 20 21 5s986ms 285ms 21 1 294ms 294ms -
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" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (410922, 410916, 411210, 410924);
Date: 2024-05-23 15:19:42 Duration: 1s157ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 4.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (397624, 397611, 397605, 397614);
Date: 2024-05-23 15:53:46 Duration: 1s108ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 4000.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (407448, 345945, 407381, 407414);
Date: 2024-05-23 15:53:48 Duration: 1s101ms
19 721 7m49s 159ms 6s618ms 651ms update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 23 08 9 6s419ms 713ms 11 33 16s716ms 506ms 12 138 1m30s 656ms 13 132 1m30s 687ms 14 124 1m27s 707ms 15 38 25s224ms 663ms 16 58 29s364ms 506ms 17 73 44s319ms 607ms 18 65 45s216ms 695ms 19 35 24s106ms 688ms 20 15 8s873ms 591ms 21 1 467ms 467ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1027, "write_date" = (now() at time zone 'UTC') WHERE id IN (483832, 483833, 483834, 483835, 483836, 483837, 483839);
Date: 2024-05-23 13:35:19 Duration: 6s618ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (472329, 472330, 472331, 472332, 472333, 472334, 472335);
Date: 2024-05-23 18:33:45 Duration: 3s424ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (484865, 484868, 484870, 484863);
Date: 2024-05-23 19:13:28 Duration: 3s142ms
20 715 2m20s 161ms 1s453ms 196ms select count(?) from mail_tracking_value v left join mail_message m on (v.mail_message_id = m.id) join purchase_order po on (po.id = m.res_id) where m.create_date >= ? and m.model = ? and m.message_type = ? and v.old_value_char = ? and v.new_value_char = ? and po.company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 23 08 3 765ms 255ms 10 2 505ms 252ms 11 41 8s961ms 218ms 12 83 16s352ms 197ms 13 104 20s631ms 198ms 14 65 13s182ms 202ms 15 99 17s780ms 179ms 16 23 4s640ms 201ms 17 177 36s269ms 204ms 18 86 15s792ms 183ms 19 21 3s945ms 187ms 20 5 909ms 181ms 21 3 509ms 169ms 23 3 526ms 175ms -
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 17:31:11' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 17:31:12 Duration: 1s453ms
-
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 13:17:06' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 13:17:07 Duration: 608ms
-
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 14:24:39' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 14:24:39 Duration: 327ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 6m10s 6m10s 6m10s 1 6m10s 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;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 23 09 1 6m10s 6m10s -
COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;
Date: 2024-05-23 09:12:00 Duration: 6m10s
2 5m28s 5m34s 5m31s 2 11m3s select "sale_history_line".id from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ("sale_history_line"."invoice_date" > ?)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 23 14 2 11m3s 5m31s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-05-23 14:45:29 Duration: 5m34s
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-05-23 14:47:41 Duration: 5m28s
3 5m29s 5m29s 5m29s 1 5m29s select count(?) from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration May 23 14 1 5m29s 5m29s -
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:46:55 Duration: 5m29s
4 5m8s 5m38s 5m23s 2 10m46s select count(?) from "sale_history_line" where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ("sale_history_line"."invoice_date" > ?)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 23 14 2 10m46s 5m23s -
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:51:07 Duration: 5m38s
-
SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%pavlinch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ("sale_history_line"."invoice_date" > '2023-05-31')) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-05-23 14:52:50 Duration: 5m8s
5 1s719ms 2m10s 36s600ms 26 15m51s update "sale_order_line" set "cus_user_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 23 11 1 2s494ms 2s494ms 17 9 8m17s 55s291ms 18 16 7m31s 28s217ms -
UPDATE "sale_order_line" SET "cus_user_id" = 1049, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (411648, 411651, 362500, 389126, 389127, 403462, 339979, 399385, 405538, 305194, 305195, 305196, 368684, 399404, 290883, 378955, 368737, 405606, 405607, 405608, 368746, 405612, 309357, 342125, 368751, 405615, 368753, 391294, 391295, 389246, 389247, 379025, 381074, 358561, 358562, 307363, 358564, 360615, 307368, 346282, 307374, 358575, 297143, 307383, 374973, 374974, 346304, 374977, 374978, 374979, 374980, 374981, 381142, 403670, 383192, 405720, 338139, 409820, 338141, 338143, 338144, 393440, 338147, 399590, 268531, 305400, 327929, 305401, 327933, 360704, 381185, 381194, 356619, 356621, 409873, 409875, 409876, 405782, 317728, 317729, 321834, 321837, 405810, 385343, 328002, 309577, 328011, 338277, 387449, 348541, 373118, 385406, 315776, 387453, 387457, 409989, 315787, 336285, 336294, 328109, 336343, 336345, 362978, 362980, 281061, 303599, 391663, 352753, 391664, 410098, 289297, 334355, 334356, 266778, 287260, 317985, 289320, 309815, 289337, 361021, 369219, 399939, 328261, 369221, 369223, 377414, 309843, 399960, 309860, 275045, 377446, 377445, 275047, 268911, 309871, 266866, 367220, 299637, 309878, 367221, 268922, 357015, 357024, 385707, 279214, 328367, 381634, 381635, 332485, 346825, 305869, 402132, 328414, 363231, 328418, 363235, 367331, 377577, 299762, 293628, 385790, 363273, 324362, 365321, 293644, 385801, 324366, 318223, 365326, 365329, 383762, 293654, 350998, 365334, 402202, 363291, 299807, 310053, 389928, 322349, 305971, 383800, 383801, 310077, 283456, 283463, 299852, 392020, 371546, 371547, 396142, 390005, 353150, 318350, 336789, 336792, 297897, 297898, 349129, 308172, 349139, 328664, 328665, 400352, 379874, 304118, 306173, 402443, 298002, 359443, 373788, 347165, 359453, 394278, 361524, 379968, 379972, 316488, 361561, 386156, 384118, 359543, 402558, 320646, 355467, 275596, 298137, 355482, 310434, 378018, 330944, 330945, 330946, 402636, 402637, 396494, 396496, 279761, 396498, 306385, 335059, 396497, 335061, 335063, 396509, 396510, 279783, 365803, 394478, 306432, 355584, 355588, 406827, 406828, 406829, 386359, 271674, 341311, 353604, 353610, 329036, 329037, 335185, 365909, 386389, 353623, 355675, 355676, 355677, 355678, 355680, 355681, 384354, 355683, 406884, 355685, 355686, 355687, 355688, 300393, 355689, 388466, 388467, 386433, 400770, 325025, 294307, 363940, 335278, 335280, 294322, 292278, 292280, 296384, 296385, 372160, 388547, 331211, 296400, 382429, 392670, 318943, 339423, 388577, 339426, 273895, 341484, 341487, 355823, 355824, 341491, 355829, 378357, 407031, 384526, 384527, 357910, 327192, 359969, 366118, 296489, 398889, 405033, 366124, 331324, 331326, 298562, 298563, 284230, 333382, 333383, 394825, 394826, 284239, 300624, 300627, 411221, 284249, 284251, 317021, 284254, 337501, 298596, 386664, 394877, 267905, 267906, 327297, 401028, 267923, 267924, 292503, 362135, 292506, 366237, 345777, 296628, 296630, 349881, 276159, 267974, 267975, 296649, 335564, 288472, 288473, 370394, 345837, 345842, 300794, 300795, 315137, 347922, 329508, 323368, 347946, 329518, 329522, 329525, 329526, 329527, 329538, 329539, 329540, 329543, 329544, 370511, 370515, 280407, 337755, 280424, 403307, 323437, 335730, 329588, 329589, 329591, 329593, 329597, 313217, 329608, 329610, 313227, 313228, 329612, 399247, 288656, 399249, 329618, 399250, 329620, 325525, 329622, 399252, 300953, 329625, 337819, 329629, 329639, 337831, 294825, 329642, 305065, 305066, 305068, 305070, 329645, 305072, 305073, 403383, 305086, 391108, 387016, 294867, 294869, 303063, 409559, 409560, 399335, 276458, 270326, 274423, 301046, 274425, 362491);
Date: 2024-05-23 17:53:32 Duration: 2m10s
-
UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (307200, 346113, 346114, 346115, 346116, 346117, 346118, 303114, 393227, 393229, 368654, 272399, 368656, 368657, 393231, 299039, 299043, 299045, 299047, 299049, 323629, 360495, 323638, 323639, 323640, 288825, 393277, 368709, 380998, 380999, 288846, 288849, 288851, 288854, 288856, 288861, 288862, 325752, 325755, 350342, 274587, 372897, 325823, 389312, 321729, 325826, 325827, 325828, 325843, 342235, 411884, 399606, 278793, 395535, 395536, 395537, 332066, 354597, 354600, 354601, 395569, 395570, 299318, 332087, 299320, 332088, 332091, 332093, 332094, 299334, 350547, 336223, 328033, 328035, 291176, 405875, 405876, 401806, 399759, 401807, 291220, 291221, 405909, 291227, 342427, 342428, 342429, 319905, 407970, 407971, 289207, 289213, 328128, 328129, 344513, 289222, 289226, 289227, 328144, 395731, 395732, 395733, 395734, 395735, 395736, 395737, 391650, 395749, 287207, 375271, 395753, 395760, 303606, 379382, 330238, 379395, 320010, 313867, 320012, 320014, 313872, 320016, 320018, 320020, 395801, 395802, 299551, 299557, 365172, 365173, 361091, 361092, 361093, 361094, 361095, 322187, 330380, 287373, 330381, 307901, 307903, 275156, 273114, 398043, 398045, 398046, 398047, 363242, 363243, 363247, 367350, 367351, 363260, 363265, 332553, 332554, 277263, 363280, 324369, 324370, 332561, 363281, 275221, 361245, 351448, 351449, 271152, 342837, 342838, 342839, 379708, 357181, 379716, 344906, 281419, 312140, 310100, 310101, 281435, 295775, 295777, 295778, 326502, 326503, 342909, 312235, 361389, 361404, 312271, 398291, 312277, 304091, 320483, 320484, 320486, 320488, 320489, 293868, 320492, 345074, 355320, 267261, 304128, 267268, 267293, 267294, 345131, 345132, 271406, 351280, 300085, 300086, 300087, 312380, 316486, 396377, 394351, 394352, 394353, 394356, 351352, 394360, 394361, 394362, 335005, 347305, 347306, 347308, 347310, 347315, 351412, 326837, 324797, 324799, 347338, 351435, 347340, 292044, 292045, 292046, 367824, 324815, 351438, 324819, 351440, 351441, 351442, 324823, 351444, 351445, 324826, 318683, 324827, 351446, 324830, 324831, 351456, 324833, 351457, 324835, 351453, 351458, 351460, 324839, 324841, 324842, 324843, 324844, 324847, 400624, 324849, 324850, 324851, 324852, 324854, 324856, 324857, 324858, 400634, 324860, 400636, 324864, 324866, 324867, 396550, 378120, 400651, 298253, 298254, 400663, 400664, 400666, 328992, 328993, 329000, 335158, 335159, 339294, 339295, 339303, 388461, 388465, 351610, 388476, 269701, 269705, 269706, 392586, 269709, 267662, 267663, 343442, 343443, 290197, 296343, 343451, 296354, 296363, 310709, 392632, 396736, 392647, 396776, 323056, 306704, 306708, 284182, 284190, 325155, 321090, 288348, 366218, 308892, 308906, 315059, 315066, 315073, 315088, 329425, 329426, 329427, 321238, 321240, 284377, 284378, 284379, 284380, 321241, 292575, 403172, 403174, 315111, 364282, 308991, 306946, 315144, 296723, 333614, 366397, 335684, 335689, 335690, 399186, 282452, 282453, 403284, 403289, 282459, 282468, 368500, 321398, 389118, 321401, 321404, 321407, 321409, 409473, 321411, 397198, 323494, 354228, 409531, 403398, 403408, 329698, 368619, 346097, 389105, 346099, 389106, 372727, 372728, 346109, 393214, 393215);
Date: 2024-05-23 17:43:25 Duration: 1m51s
-
UPDATE "sale_order_line" SET "cus_user_id" = 993, "write_uid" = 949, "write_date" = (now() at time zone 'UTC') WHERE id IN (391176, 329759, 329765, 329771, 329773, 368710, 354377, 323671, 288858, 288859, 288860, 288876, 323693, 288878, 280687, 323696, 280690, 370803, 280692, 292986, 280699, 280700, 286847, 280704, 280718, 293008, 280727, 280728, 280729, 280747, 280748, 360622, 360623, 280752, 360624, 280754, 280762, 280763, 280764, 409791, 407755, 370895, 370897, 350440, 360684, 340207, 340233, 340234, 340235, 346379, 346380, 340241, 340245, 340257, 407842, 340259, 407843, 274733, 274736, 383287, 383288, 389455, 268636, 377182, 268640, 323937, 323939, 305516, 305519, 383390, 377247, 377246, 360865, 324036, 324037, 350667, 408016, 408017, 408018, 408019, 408020, 358886, 358887, 358888, 313834, 313837, 313840, 313841, 313843, 281076, 313844, 313845, 342548, 281113, 324123, 385569, 373322, 315986, 385678, 385679, 357008, 357010, 357011, 357012, 357013, 357014, 385682, 371353, 371354, 371356, 371357, 371358, 371359, 268966, 314024, 293545, 365229, 365230, 365231, 334517, 350923, 389835, 389854, 334578, 334579, 334580, 334581, 334582, 334583, 293631, 314121, 344865, 344866, 344867, 387874, 396072, 344873, 396078, 344879, 344880, 344890, 344895, 344953, 301959, 301960, 281486, 281488, 301971, 281493, 361378, 361379, 361380, 361381, 361382, 361386, 361390, 361391, 345029, 345032, 322561, 375822, 369691, 336930, 275494, 275495, 275496, 275501, 275502, 275503, 275504, 289840, 275508, 357438, 357439, 357440, 289857, 289859, 328772, 275525, 390215, 410695, 410697, 375888, 375889, 375892, 367703, 359518, 328858, 328859, 382126, 382127, 396483, 392391, 392392, 328912, 328913, 328914, 328916, 328917, 328918, 328919, 328920, 328921, 406740, 328923, 359656, 326914, 328973, 328974, 374029, 406822, 351554, 316770, 316771, 382310, 374119, 267626, 357751, 357758, 279958, 404891, 279975, 279979, 279981, 279984, 279987, 345564, 345567, 409070, 409071, 273905, 409073, 409074, 282120, 353816, 376361, 376362, 376363, 345644, 323117, 345645, 345646, 345647, 376376, 376382, 284255, 358007, 358008, 358009, 358010, 358011, 368258, 288395, 288409, 319165, 319166, 319167, 349902, 349906, 356055, 356056, 356057, 390874, 356059, 356061, 390877, 390878, 390879, 356067, 292580, 356068, 292587, 292588, 292589, 292591, 292596, 292597, 292608, 292613, 292615, 292616, 292667, 309063, 313160, 309066, 313162, 309069, 309070, 362333, 372588, 274296, 354174, 407427, 407430, 407433, 407434, 407435, 358285, 407437, 358287, 407439, 407442, 407445, 407449, 407452, 358301, 370591, 358304, 384930, 370596, 399280, 399281, 350136, 350138, 350142, 350143, 350144, 350146, 370628, 350149, 350150, 370631, 370633, 370634, 370635, 370636, 370637, 370638, 370639, 370640, 399305, 370642, 323540, 370646, 323543, 370649, 323546, 370651, 323550, 323553, 305127, 305132, 268272, 346096, 268274, 391154, 391155, 321530, 321531);
Date: 2024-05-23 17:46:08 Duration: 1m32s
6 1s750ms 1m15s 5s783ms 141 13m35s delete from account_move_line where id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 23 11 5 13s362ms 2s672ms 12 3 7s552ms 2s517ms 13 1 6s127ms 6s127ms 15 2 15s406ms 7s703ms 16 7 32s843ms 4s691ms 17 18 33s462ms 1s859ms 18 1 3s892ms 3s892ms 19 4 23s432ms 5s858ms 23 100 11m19s 6s793ms -
DELETE FROM account_move_line WHERE id IN (4932410, 4932411, 4932412, 4932413, 4932414, 4932415, 4932416, 4932417, 4932418, 4932419, 4932420, 4932421, 4932422, 4932423, 4932424, 4932425, 4932426, 4932427, 4932428, 4932429, 4932430, 4932431, 4932432, 4932433, 4932434, 4932435, 4932436, 4932437, 4932438, 4932439, 4932440, 4932441, 4932442, 4932443, 4932444, 4932445, 4932446, 4932447, 4943886, 4943887, 4993357, 4993358);
Date: 2024-05-23 23:13:33 Duration: 1m15s
-
DELETE FROM account_move_line WHERE id IN (4995118, 4995119, 4995120, 4995121, 4995122, 4995123, 4995124, 4995125, 4995126, 4995127, 4995128, 4995129, 4995130, 4995131, 4995132, 4995133, 4995134, 4995135, 4995136, 4995137, 4995138, 4995139, 4995140, 4995141, 4995142, 4995143, 4995144, 4995145, 4995146, 4995147, 4995148, 4995149, 4995150, 4995151, 4995152, 4995153, 4995154, 4995155, 4995156, 4995157, 4995158);
Date: 2024-05-23 23:32:20 Duration: 1m13s
-
DELETE FROM account_move_line WHERE id IN (4995329, 4995330, 4995331, 4995332, 4995333, 4995334, 4995335, 4995336, 4995337, 4995338, 4995339, 4995340, 4995341, 4995342, 4995343, 4995344, 4995345, 4995346, 4995347, 4995348, 4995349, 4995350, 4995351, 4995352, 4995353, 4995354, 4995355, 4995356, 4995357, 4995358, 4995359, 4995360, 4995361, 4995362, 4995363, 4995364, 4995365, 4995366, 4995367, 4995368);
Date: 2024-05-23 23:33:37 Duration: 1m11s
7 314ms 17s747ms 2s875ms 121 5m47s update "stock_move" set "date" = ?, "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 23 08 2 1s785ms 892ms 11 3 2s504ms 834ms 12 21 33s436ms 1s592ms 13 29 1m32s 3s203ms 14 20 1m2s 3s120ms 15 7 41s965ms 5s995ms 16 5 7s865ms 1s573ms 17 17 41s12ms 2s412ms 18 11 36s961ms 3s360ms 19 6 27s94ms 4s515ms -
UPDATE "stock_move" SET "date" = '2024-05-23 14:45:55', "state" = 'done', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (956891, 956892, 956894, 956895, 956896, 956897, 956898, 956899, 956900, 956901, 956902, 956903, 956904, 956905, 956906, 956907, 956908, 956909, 956912, 956913);
Date: 2024-05-23 14:46:14 Duration: 17s747ms
-
UPDATE "stock_move" SET "date" = '2024-05-23 15:53:05', "state" = 'done', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (950801, 950802, 950803, 950804, 950806, 950807, 950808, 950809, 950810, 950811, 950812, 950813, 950814, 950815, 950816, 950817, 950818, 950819, 950821, 950822);
Date: 2024-05-23 15:53:22 Duration: 16s908ms
-
UPDATE "stock_move" SET "date" = '2024-05-23 19:16:58', "state" = 'done', "write_uid" = 1019, "write_date" = (now() at time zone 'UTC') WHERE id IN (953356, 953357, 953358, 953359, 953360, 953361, 953362, 953363, 953364, 953366, 953367, 953369, 953370, 953371, 953372, 953373, 953374);
Date: 2024-05-23 19:17:13 Duration: 14s626ms
8 1s8ms 3s96ms 1s127ms 306 5m45s 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;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration May 23 02 3 3s85ms 1s28ms 11 42 46s382ms 1s104ms 12 42 51s616ms 1s228ms 13 21 23s841ms 1s135ms 14 30 34s400ms 1s146ms 15 33 35s873ms 1s87ms 16 51 55s514ms 1s88ms 17 33 38s69ms 1s153ms 18 24 27s281ms 1s136ms 19 15 16s438ms 1s95ms 20 6 6s304ms 1s50ms 23 6 6s205ms 1s34ms -
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 ('%107342-5%') 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 ('%107342-5%')))))) 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 ('%107342-5%')))))) 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 ('%107342-5%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%107342-5%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%107342-5%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 17:23:08 Duration: 3s96ms
-
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 ('%9405%') 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 ('%9405%')))))) 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 ('%9405%')))))) 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 ('%9405%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%9405%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%9405%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 12:52:26 Duration: 2s108ms
-
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 ('%82-9437%') 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 ('%82-9437%')))))) 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 ('%82-9437%')))))) 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 ('%82-9437%'))))) OR unaccent (COALESCE("product_template__description"."value", "product_template"."description")) ilike unaccent ('%82-9437%')) OR unaccent (COALESCE("product_template__description_sale"."value", "product_template"."description_sale")) ilike unaccent ('%82-9437%')))) ORDER BY COALESCE("product_template"."is_published", false) DESC, "product_template"."website_sequence" ASC, "product_template"."id" DESC;
Date: 2024-05-23 12:27:56 Duration: 1s876ms
9 329ms 3s159ms 1s3ms 538 9m 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 #9
Day Hour Count Duration Avg duration May 23 08 9 8s860ms 984ms 11 10 8s210ms 821ms 12 68 1m6s 974ms 13 86 1m25s 990ms 14 83 1m25s 1s27ms 15 40 41s468ms 1s36ms 16 70 1m11s 1s23ms 17 36 35s81ms 974ms 18 24 23s139ms 964ms 19 94 1m36s 1s25ms 20 17 17s661ms 1s38ms 21 1 849ms 849ms -
UPDATE "stock_move" SET "current_warehouse_qty" = 1.0, "date" = '2024-05-23 12:40:36', "is_done" = true, "state" = 'done', "write_uid" = 1010, "write_date" = (now() at time zone 'UTC') WHERE id IN (962605, 962606, 962607);
Date: 2024-05-23 12:40:41 Duration: 3s159ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 3.0, "date" = '2024-05-23 17:05:51', "is_done" = true, "state" = 'done', "write_uid" = 1043, "write_date" = (now() at time zone 'UTC') WHERE id IN (963354, 963355, 963357);
Date: 2024-05-23 17:06:09 Duration: 2s626ms
-
UPDATE "stock_move" SET "current_warehouse_qty" = 8.0, "date" = '2024-05-23 15:49:13', "is_done" = true, "state" = 'done', "write_uid" = 1015, "write_date" = (now() at time zone 'UTC') WHERE id IN (955056, 955052);
Date: 2024-05-23 15:49:23 Duration: 2s514ms
10 819ms 2s239ms 907ms 942 14m15s 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 #10
Day Hour Count Duration Avg duration May 23 11 41 36s96ms 880ms 12 135 2m5s 930ms 13 109 1m39s 912ms 14 155 2m26s 943ms 15 118 1m45s 890ms 16 74 1m5s 886ms 17 73 1m6s 904ms 18 159 2m20s 884ms 19 59 54s118ms 917ms 20 19 16s353ms 860ms -
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 ('%91023%')) 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 ('%91023%'))) 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 ('%91023%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%91023%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 19:01:52 Duration: 2s239ms
-
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 ('%lfp670%')) 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 ('%lfp670%'))) 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 ('%lfp670%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%lfp670%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:02:08 Duration: 2s43ms
-
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 ('%46-1422%')) 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 ('%46-1422%'))) 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 ('%46-1422%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%46-1422%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-05-23 14:49:41 Duration: 1s725ms
11 555ms 2s441ms 747ms 3,013 37m33s 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 23 10 27 18s223ms 674ms 11 202 2m24s 714ms 12 434 5m45s 795ms 13 447 5m45s 773ms 14 400 5m7s 767ms 15 216 2m35s 719ms 16 245 2m58s 728ms 17 316 3m58s 753ms 18 309 3m46s 732ms 19 325 3m52s 716ms 20 89 59s910ms 673ms 21 3 1s983ms 661ms -
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 ('%%esiia%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esiia%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esiia%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:51:48 Duration: 2s441ms
-
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 ('%%esiie%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%esii-e%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%esii-e%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:19:29 Duration: 2s346ms
-
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 ('%%g25%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g25%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g25%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 12:24:31 Duration: 2s191ms
12 632ms 1s553ms 728ms 986 11m58s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 23 11 17 12s47ms 708ms 12 133 1m38s 739ms 13 92 1m10s 767ms 14 178 2m9s 727ms 15 52 37s440ms 720ms 16 51 36s573ms 717ms 17 262 3m11s 732ms 18 72 50s491ms 701ms 19 120 1m24s 707ms 20 9 6s556ms 728ms -
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 ('%%5170%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s553ms
-
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 ('%%11B%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%11B-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%11B-%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:51:59 Duration: 1s488ms
-
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 ('%%5170x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%5-170x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%5-170x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 13:24:27 Duration: 1s472ms
13 631ms 2s83ms 726ms 564 6m49s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration May 23 11 42 28s919ms 688ms 12 22 15s919ms 723ms 13 29 22s246ms 767ms 14 60 47s760ms 796ms 15 27 18s758ms 694ms 16 14 9s918ms 708ms 17 140 1m42s 732ms 18 121 1m29s 737ms 19 35 25s11ms 714ms 20 26 17s418ms 669ms 22 4 2s627ms 656ms 23 44 29s104ms 661ms -
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 ('%%ABP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ABP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ABP%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:29:40 Duration: 2s83ms
-
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 ('%%ABPN%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%ABPN%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%ABPN%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 17:29:40 Duration: 1s371ms
-
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 ('%%788%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%788%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%788%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-05-23 14:40:00 Duration: 1s332ms
14 159ms 6s618ms 651ms 721 7m49s update "stock_quant" set "quantity" = ?.?, "reserved_quantity" = ?.?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 23 08 9 6s419ms 713ms 11 33 16s716ms 506ms 12 138 1m30s 656ms 13 132 1m30s 687ms 14 124 1m27s 707ms 15 38 25s224ms 663ms 16 58 29s364ms 506ms 17 73 44s319ms 607ms 18 65 45s216ms 695ms 19 35 24s106ms 688ms 20 15 8s873ms 591ms 21 1 467ms 467ms -
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 1027, "write_date" = (now() at time zone 'UTC') WHERE id IN (483832, 483833, 483834, 483835, 483836, 483837, 483839);
Date: 2024-05-23 13:35:19 Duration: 6s618ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (472329, 472330, 472331, 472332, 472333, 472334, 472335);
Date: 2024-05-23 18:33:45 Duration: 3s424ms
-
UPDATE "stock_quant" SET "quantity" = 0.0, "reserved_quantity" = 0.0, "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (484865, 484868, 484870, 484863);
Date: 2024-05-23 19:13:28 Duration: 3s142ms
15 158ms 10s568ms 598ms 628 6m15s update "stock_move" set "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 23 11 36 15s660ms 435ms 12 102 1m10s 695ms 13 77 49s731ms 645ms 14 85 1m2s 733ms 15 45 24s848ms 552ms 16 44 15s504ms 352ms 17 91 54s921ms 603ms 18 59 32s351ms 548ms 19 33 23s892ms 724ms 20 18 7s249ms 402ms 21 11 5s27ms 457ms 22 8 3s686ms 460ms 23 19 9s464ms 498ms -
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1003, "write_date" = (now() at time zone 'UTC') WHERE id IN (963969, 963970, 963971, 963972, 963973, 963974, 963975, 963976, 963977, 963978, 963980, 963984, 963985, 963986, 963988, 963989, 963990, 963991, 963992, 963995, 963996, 963998, 963965);
Date: 2024-05-23 19:54:16 Duration: 10s568ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 980, "write_date" = (now() at time zone 'UTC') WHERE id IN (963008, 963009, 963010, 962995, 962996, 962997, 962998, 962999, 963000, 963001, 963003, 963004, 963005, 963006, 963007);
Date: 2024-05-23 14:24:08 Duration: 8s446ms
-
UPDATE "stock_move" SET "state" = 'confirmed', "write_uid" = 1031, "write_date" = (now() at time zone 'UTC') WHERE id IN (962958, 962960, 962961, 962962, 962963, 962964, 962965, 962966, 962967, 962968, 962969, 962970);
Date: 2024-05-23 14:14:46 Duration: 6s316ms
16 397ms 1s977ms 435ms 11,429 1h22m51s 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 #16
Day Hour Count Duration Avg duration May 23 00 3 1s262ms 420ms 04 3 1s220ms 406ms 06 3 1s258ms 419ms 07 3 1s206ms 402ms 08 1,257 8m43s 416ms 09 835 5m48s 416ms 10 773 5m19s 413ms 11 1,047 7m30s 429ms 12 1,135 8m38s 456ms 13 1,144 8m38s 453ms 14 971 7m29s 462ms 15 810 5m58s 442ms 16 848 6m8s 434ms 17 341 2m32s 447ms 18 571 4m12s 442ms 19 526 3m47s 432ms 20 454 3m7s 412ms 21 362 2m30s 414ms 22 1 403ms 403ms 23 342 2m22s 415ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 17:02:44 Duration: 1s977ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 13:40:59 Duration: 1s709ms
-
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/%-169d39f/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-05-23 12:51:48 Duration: 1s550ms
17 258ms 1s157ms 311ms 770 4m 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 #17
Day Hour Count Duration Avg duration May 23 08 11 3s390ms 308ms 11 29 8s471ms 292ms 12 134 40s500ms 302ms 13 176 55s213ms 313ms 14 129 38s203ms 296ms 15 67 24s592ms 367ms 16 46 13s924ms 302ms 17 39 13s574ms 348ms 18 47 14s964ms 318ms 19 70 21s58ms 300ms 20 21 5s986ms 285ms 21 1 294ms 294ms -
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" = 1016, "write_date" = (now() at time zone 'UTC') WHERE id IN (410922, 410916, 411210, 410924);
Date: 2024-05-23 15:19:42 Duration: 1s157ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 4.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (397624, 397611, 397605, 397614);
Date: 2024-05-23 15:53:46 Duration: 1s108ms
-
UPDATE "sale_order_line" SET "invoice_status" = 'no', "open_qty_fil" = 4000.0, "qty_delivered" = '0.00', "qty_to_invoice" = '0.00', "untaxed_amount_to_invoice" = '0.00', "write_uid" = 1006, "write_date" = (now() at time zone 'UTC') WHERE id IN (407448, 345945, 407381, 407414);
Date: 2024-05-23 15:53:48 Duration: 1s101ms
18 120ms 2s226ms 277ms 35,041 2h41m57s 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 #18
Day Hour Count Duration Avg duration May 23 00 348 1m30s 260ms 01 295 1m36s 326ms 02 283 1m23s 294ms 03 387 2m8s 332ms 04 374 2m3s 331ms 05 329 1m47s 325ms 06 500 2m29s 299ms 07 259 1m44s 403ms 08 723 2m19s 193ms 09 575 1m28s 154ms 10 512 1m54s 223ms 11 1,489 5m5s 205ms 12 4,090 21m17s 312ms 13 3,864 15m5s 234ms 14 4,289 18m50s 263ms 15 2,836 13m34s 287ms 16 2,966 12m7s 245ms 17 3,644 19m 312ms 18 2,963 14m 283ms 19 2,462 11m20s 276ms 20 997 8m9s 490ms 21 340 58s752ms 172ms 22 172 43s863ms 255ms 23 344 1m16s 223ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1267"', '["pointspring_master","calendar.alarm",52604]', '["pointspring_master","res.partner",52604]', '["pointspring_master","ir.needaction",52604]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s226ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_969"', '["pointspring_master","calendar.alarm",19507]', '["pointspring_master","mail.channel",78]', '["pointspring_master","mail.channel",79]', '["pointspring_master","mail.channel",80]', '["pointspring_master","mail.channel",81]', '["pointspring_master","mail.channel",82]', '["pointspring_master","mail.channel",527]', '["pointspring_master","mail.channel",594]', '["pointspring_master","res.partner",19507]', '["pointspring_master","ir.needaction",19507]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s213ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-05-23 17:30:21') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19517]', '["pointspring_master","mail.channel",136]', '["pointspring_master","mail.channel",137]', '["pointspring_master","mail.channel",138]', '["pointspring_master","mail.channel",139]', '["pointspring_master","mail.channel",589]', '["pointspring_master","res.partner",19517]', '["pointspring_master","ir.needaction",19517]'))) ORDER BY "bus_bus"."id";
Date: 2024-05-23 17:31:13 Duration: 2s212ms
19 185ms 1s716ms 226ms 1,416 5m20s select min("sale_report".id) as id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" AS "product_id" from "sale_report" left join "product_product" AS "sale_report__product_id" on ("sale_report"."product_id" = "sale_report__product_id"."id") left join "product_template" AS "sale_report__product_id__product_tmpl_id" on ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") left join "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" on ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" and "sale_report__product_id__product_tmpl_id__name"."type" = ? and "sale_report__product_id__product_tmpl_id__name"."name" = ? and "sale_report__product_id__product_tmpl_id__name"."lang" = ? and "sale_report__product_id__product_tmpl_id__name"."value" != ?) where ((("sale_report"."state" in (...)) and ("sale_report"."product_id" in (...))) and ("sale_report"."date" >= ?)) and ("sale_report"."company_id" is null or ("sale_report"."company_id" in (...))) group by "sale_report"."product_id", "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" order by "sale_report__product_id"."default_code", coalesce("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 23 06 1 199ms 199ms 08 1 212ms 212ms 11 83 18s118ms 218ms 12 220 51s714ms 235ms 13 175 40s543ms 231ms 14 223 54s462ms 244ms 15 137 29s98ms 212ms 16 131 29s171ms 222ms 17 105 24s303ms 231ms 18 156 34s90ms 218ms 19 96 21s347ms 222ms 20 32 6s329ms 197ms 21 18 3s568ms 198ms 22 18 3s501ms 194ms 23 20 4s8ms 200ms -
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (185856))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 14:20:19 Duration: 1s716ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (265946))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 13:44:32 Duration: 1s84ms
-
SELECT min("sale_report".id) AS id, count("sale_report".id) AS "product_id_count", sum("sale_report"."product_uom_qty") AS "product_uom_qty", "sale_report"."product_id" as "product_id" FROM "sale_report" LEFT JOIN "product_product" AS "sale_report__product_id" ON ("sale_report"."product_id" = "sale_report__product_id"."id") LEFT JOIN "product_template" AS "sale_report__product_id__product_tmpl_id" ON ("sale_report__product_id"."product_tmpl_id" = "sale_report__product_id__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "sale_report__product_id__product_tmpl_id__name" ON ("sale_report__product_id__product_tmpl_id"."id" = "sale_report__product_id__product_tmpl_id__name"."res_id" AND "sale_report__product_id__product_tmpl_id__name"."type" = 'model' AND "sale_report__product_id__product_tmpl_id__name"."name" = 'product.template,name' AND "sale_report__product_id__product_tmpl_id__name"."lang" = 'en_US' AND "sale_report__product_id__product_tmpl_id__name"."value" != '') WHERE ((("sale_report"."state" in ('sale', 'done', 'paid')) AND ("sale_report"."product_id" in (206582))) AND ("sale_report"."date" >= '2023-05-24 00:00:00')) AND ("sale_report"."company_id" IS NULL OR ("sale_report"."company_id" in (1))) GROUP BY "sale_report"."product_id", "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id" ORDER BY "sale_report__product_id"."default_code", COALESCE("sale_report__product_id__product_tmpl_id__name"."value", "sale_report__product_id__product_tmpl_id"."name"), "sale_report__product_id"."id";
Date: 2024-05-23 14:32:59 Duration: 901ms
20 161ms 1s453ms 196ms 715 2m20s select count(?) from mail_tracking_value v left join mail_message m on (v.mail_message_id = m.id) join purchase_order po on (po.id = m.res_id) where m.create_date >= ? and m.model = ? and m.message_type = ? and v.old_value_char = ? and v.new_value_char = ? and po.company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 23 08 3 765ms 255ms 10 2 505ms 252ms 11 41 8s961ms 218ms 12 83 16s352ms 197ms 13 104 20s631ms 198ms 14 65 13s182ms 202ms 15 99 17s780ms 179ms 16 23 4s640ms 201ms 17 177 36s269ms 204ms 18 86 15s792ms 183ms 19 21 3s945ms 187ms 20 5 909ms 181ms 21 3 509ms 169ms 23 3 526ms 175ms -
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 17:31:11' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 17:31:12 Duration: 1s453ms
-
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 13:17:06' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 13:17:07 Duration: 608ms
-
SELECT COUNT(1) FROM mail_tracking_value v LEFT JOIN mail_message m ON (v.mail_message_id = m.id) JOIN purchase_order po ON (po.id = m.res_id) WHERE m.create_date >= '2024-05-16 14:24:39' AND m.model = 'purchase.order' AND m.message_type = 'notification' AND v.old_value_char = 'RFQ' AND v.new_value_char = 'RFQ Sent' AND po.company_id = 1;
Date: 2024-05-23 14:24:39 Duration: 327ms
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
- 109,245 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 4506 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 3,485 Max number of times the same event was reported
- 4,506 Total events found
Rank Times reported Error 1 3,485 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count May 23 01 2 03 6 05 1 06 1 08 349 09 247 10 266 11 354 12 361 13 366 14 292 15 252 16 244 17 91 18 185 19 116 20 122 21 110 23 120 - 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 (5441069) FOR NO KEY UPDATE SKIP LOCKED )
Date: 2024-05-23 11:50:05
2 930 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count May 23 00 38 01 48 02 41 03 27 04 25 05 24 06 22 07 88 08 86 09 39 10 30 11 29 12 28 13 26 14 31 15 25 16 29 17 32 18 23 19 24 20 23 21 24 22 29 23 139 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "res_partner"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-05-23 11:50:13
Statement: SELECT "customer_rank" FROM res_partner WHERE ID IN (42334) FOR UPDATE NOWAIT; UPDATE res_partner SET "customer_rank" = "customer_rank" + 1 WHERE id IN (42334)
Date: 2024-05-23 14:36:52
3 49 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #3
Day Hour Count May 23 08 6 09 2 10 3 11 2 12 13 13 3 14 5 15 4 16 2 18 3 19 3 20 1 23 2 - 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: 2024-05-23 12:12:27
4 20 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count May 23 12 5 13 4 14 6 15 1 16 1 17 1 19 1 20 1 - ERROR: process 3796092 still waiting for ShareLock on transaction 262482244 after 1000.059 ms
- ERROR: process 3800270 still waiting for ShareLock on transaction 262482276 after 1000.056 ms
- ERROR: process 3795390 still waiting for ShareLock on transaction 262482622 after 1000.050 ms
Detail: Process holding the lock: 3795197. Wait queue: 3796092.
Context: while updating tuple (19736,5) 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 != 1428012 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 != 1428012 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-23 12:40:44
Detail: Process holding the lock: 3796092. Wait queue: 3800270.
Context: while updating tuple (19732,27) 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 != 1428009 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 != 1428009 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-05-23 12:40:50
Detail: Process holding the lock: 3795710. Wait queue: 3795390.
Context: while updating tuple (19727,21) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5442259,"write_uid"=1223,"write_date"=(now() at time zone 'UTC') WHERE id IN (1428024)Date: 2024-05-23 12:42:28
5 10 ERROR: operator does not exist: integer = boolean
Times Reported Most Frequent Error / Event #5
Day Hour Count May 23 14 10 - ERROR: operator does not exist: integer = boolean at character 343
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Statement: SELECT COALESCE(SUM(pwi.max_product_uom_qty),0) AS TMQ from forecasted_data fd INNER JOIN item_supply_plan AS isp ON isp.id = fd.item_supply_plan_id INNER JOIN product_warehouse_inventory pwi ON fd.product_id = pwi.product_id AND isp.branch_id = pwi.replenish_branch_id where isp.id = 42593 and fd.product_id = falseDate: 2024-05-23 14:20:58
6 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count May 23 12 1 14 1 - ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
- ERROR: duplicate key value violates unique constraint "fleet_vehicle_vehicle_unit_no_driver_id_unique"
Detail: Key (vin_sn)=(CK012675) 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", "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'), '2024-05-23', true, 136, 0.0, 0.0, NULL, 1, NULL, 5, 34094, '2024-05-23', NULL, NULL, 0, 0.0, 'XPF5405', NULL, 953, 291, 31, NULL, 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '4308', 'CK012675') RETURNING idDate: 2024-05-23 12:12:06
Detail: Key (vehicle_unit_no, driver_id)=(., 34083) 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'), 1008, (now() at time zone 'UTC'), 1008, (now() at time zone 'UTC'), '2024-05-23', true, 103, 0.0, 0.0, NULL, 1, NULL, 5, 34083, '2024-05-23', NULL, NULL, 0, 0.0, 'zwf1893', NULL, 2, 138, 22, NULL, '3786', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '.', '1gcek14v6ye183768') RETURNING idDate: 2024-05-23 14:38:56
7 2 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count May 23 08 2 - ERROR: could not create unique index "vendor_account_master_unique_acc_no"
Detail: Key (account_number)=(0002609) is duplicated.
Statement: ALTER TABLE "vendor_account_master" ADD CONSTRAINT "vendor_account_master_unique_acc_no" unique (account_number)Date: 2024-05-23 08:19:33
8 2 ERROR: update or delete on table "..." violates foreign key constraint "..." on table "..."
Times Reported Most Frequent Error / Event #8
Day Hour Count May 23 18 2 - ERROR: update or delete on table "product_product" violates foreign key constraint "stock_inventory_line_product_id_fkey" on table "stock_inventory_line"
Detail: Key (id)=(201816) is still referenced from table "stock_inventory_line".
Statement: DELETE FROM product_template WHERE id IN (201872)Date: 2024-05-23 18:11:36
9 2 LOG: process ... still waiting for RowExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #9
Day Hour Count May 23 08 2 - ERROR: process 3795279 still waiting for RowExclusiveLock on relation 44531 of database 65946 after 1000.040 ms
- ERROR: process 3795153 still waiting for RowExclusiveLock on relation 44531 of database 65946 after 1000.048 ms
Detail: Process holding the lock: 3795857. Wait queue: 3795279.
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437347) FOR NO KEY UPDATE SKIP LOCKED )Date: 2024-05-23 08:19:45
Detail: Process holding the lock: 3795857. Wait queue: 3795279, 3795153.
Statement: DELETE FROM ir_attachment WHERE id IN ( SELECT id FROM ir_attachment WHERE id in (5437348) FOR NO KEY UPDATE SKIP LOCKED )Date: 2024-05-23 08:19:46
10 1 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #10
Day Hour Count May 23 12 1 - ERROR: process 3795151 still waiting for ExclusiveLock on tuple (19736,5) of relation 42418 of database 65946 after 1000.055 ms
Detail: Process holding the lock: 3796092. Wait queue: 3795151.
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5442204,"write_uid"=1030,"write_date"=(now() at time zone 'UTC') WHERE id IN (1428009)Date: 2024-05-23 12:40:47
11 1 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #11
Day Hour Count May 23 13 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (267745, null, 13-6014, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1280, 2024-05-23 13:15:28.926505, 1280, 2024-05-23 13:15:28.926505, manual, no-message, null, no, delivery, 0, none, null, null, null, receive, no-message, null, null, no, 0, null, null, null, null, null, null, null, null, f, null, 1, 1, null, 476550, never, 0, , 48, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-05-23, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 1280, (now() at time zone 'UTC'), 1280, (now() at time zone 'UTC'), true, false, 0.0, 48, NULL, 1, '', 'no', '2024-05-23', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '13-6014', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 476550, 1, 1) RETURNING idDate: 2024-05-23 13:15:28
12 1 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #12
Day Hour Count May 23 08 1 - ERROR: process 3795682 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.084 ms at character 34
Detail: Process holding the lock: 3795857. Wait queue: 3795682.
Statement: SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name"Date: 2024-05-23 08:20:03
13 1 LOG: process ... still waiting for ShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #13
Day Hour Count May 23 08 1 - ERROR: process 3795857 still waiting for ShareLock on relation 44482 of database 65946 after 1000.059 ms
Detail: Processes holding the lock: 3796191, 3795706. Wait queue: 3795857.
Statement: CREATE UNIQUE INDEX IF NOT EXISTS product_product_combination_unique ON product_product (product_tmpl_id, combination_indices) WHERE active is trueDate: 2024-05-23 08:20:15