-
Global information
- Generated on Mon Oct 7 20:50:11 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 756,295 log entries in 10s
- Log start from 2024-10-07 00:00:01 to 2024-10-07 23:59:58
-
Overview
Global Stats
- 1,198 Number of unique normalized queries
- 259,849 Number of queries
- 19h17m58s Total query duration
- 2024-10-07 00:00:01 First query
- 2024-10-07 23:59:58 Last query
- 75 queries/s at 2024-10-07 19:13:46 Query peak
- 19h17m58s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 19h17m58s Execute total duration
- 1,637 Number of events
- 10 Number of unique normalized events
- 1,049 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
- 259,849 Average queries per session
- 19h17m58s 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
- 75 queries/s Query Peak
- 2024-10-07 19:13:46 Date
SELECT Traffic
Key values
- 75 queries/s Query Peak
- 2024-10-07 19:13:46 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 11 queries/s Query Peak
- 2024-10-07 14:10:04 Date
Queries duration
Key values
- 19h17m58s 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) Oct 07 00 2,932 120ms 580ms 150ms 9s387ms 10s24ms 10s885ms 01 4,371 120ms 8s435ms 173ms 30s592ms 40s694ms 50s853ms 02 6,663 120ms 694ms 192ms 54s206ms 1m1s 1m3s 03 2,881 120ms 609ms 150ms 8s996ms 9s789ms 11s371ms 04 2,655 120ms 2s80ms 157ms 8s631ms 10s572ms 12s654ms 05 2,739 120ms 28s502ms 160ms 8s379ms 9s768ms 34s888ms 06 2,874 120ms 709ms 153ms 9s713ms 10s254ms 11s9ms 07 2,873 120ms 6s311ms 154ms 9s487ms 10s778ms 17s5ms 08 3,411 120ms 17s98ms 165ms 11s940ms 17s650ms 25s165ms 09 3,661 120ms 4m3s 408ms 1m11s 2m16s 4m12s 10 3,754 120ms 7s632ms 175ms 19s807ms 22s696ms 33s569ms 11 12,230 120ms 21s465ms 258ms 1m41s 1m59s 3m4s 12 20,983 120ms 2m2s 300ms 2m56s 3m28s 4m4s 13 33,249 120ms 14s72ms 343ms 5m43s 6m52s 10m33s 14 25,795 120ms 15s781ms 289ms 3m32s 4m9s 6m32s 15 21,764 120ms 11s403ms 273ms 2m18s 2m58s 3m58s 16 19,482 120ms 37s225ms 263ms 2m28s 2m33s 3m34s 17 22,456 120ms 15s918ms 259ms 2m28s 3m1s 3m22s 18 21,369 120ms 24s570ms 280ms 2m41s 3m7s 3m47s 19 18,905 120ms 23s927ms 291ms 2m36s 3m12s 5m4s 20 11,645 120ms 16s713ms 246ms 1m29s 1m32s 1m45s 21 5,302 120ms 1s993ms 179ms 27s695ms 54s919ms 1m26s 22 3,791 120ms 924ms 153ms 12s816ms 15s227ms 22s226ms 23 4,064 120ms 19s284ms 229ms 43s467ms 48s462ms 56s164ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 07 00 2,932 0 150ms 8s664ms 9s387ms 10s766ms 01 3,671 0 173ms 15s708ms 20s395ms 31s125ms 02 4,567 0 201ms 22s628ms 39s702ms 49s978ms 03 2,881 0 150ms 8s168ms 8s996ms 11s170ms 04 2,651 0 157ms 7s735ms 8s631ms 11s176ms 05 2,738 0 160ms 7s932ms 8s379ms 10s128ms 06 2,874 0 153ms 8s867ms 9s713ms 10s369ms 07 2,871 0 151ms 8s193ms 9s16ms 10s778ms 08 3,401 0 163ms 10s305ms 11s940ms 19s618ms 09 3,338 118 422ms 18s836ms 59s25ms 2m27s 10 3,675 0 175ms 12s676ms 17s106ms 27s88ms 11 9,575 0 277ms 1m3s 1m20s 2m27s 12 16,651 0 323ms 2m9s 2m34s 3m 13 24,963 0 386ms 3m53s 5m3s 6m26s 14 19,367 0 314ms 2m17s 3m5s 3m55s 15 17,528 0 290ms 1m46s 1m58s 2m48s 16 16,063 0 273ms 1m43s 2m6s 2m25s 17 17,130 0 278ms 1m39s 2m9s 2m46s 18 16,341 0 301ms 1m52s 2m12s 3m4s 19 14,526 0 316ms 1m36s 2m6s 3m6s 20 8,698 0 267ms 56s176ms 1m7s 1m33s 21 4,892 0 179ms 17s440ms 25s204ms 46s561ms 22 3,791 0 153ms 10s521ms 12s816ms 16s200ms 23 3,982 0 164ms 14s776ms 18s38ms 22s923ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 07 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 700 0 0 175ms 0ms 0ms 19s728ms 02 0 2,096 0 0 174ms 877ms 14s506ms 27s201ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 388ms 0ms 0ms 0ms 05 0 0 1 0 571ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 2 0 4s439ms 0ms 0ms 0ms 08 0 4 0 0 330ms 0ms 0ms 0ms 09 0 205 0 0 174ms 0ms 0ms 4s242ms 10 0 78 0 0 173ms 0ms 0ms 1s33ms 11 0 2,650 3 0 190ms 7s111ms 17s785ms 28s438ms 12 0 4,294 29 0 210ms 15s86ms 21s994ms 30s879ms 13 0 8,140 129 0 213ms 28s640ms 35s369ms 58s120ms 14 0 6,324 98 0 214ms 23s347ms 35s741ms 53s912ms 15 0 4,197 36 0 202ms 14s499ms 19s472ms 33s285ms 16 0 3,381 37 0 220ms 12s962ms 19s343ms 27s862ms 17 0 5,285 38 0 198ms 19s17ms 25s644ms 33s628ms 18 0 4,972 56 0 209ms 18s248ms 25s403ms 34s158ms 19 0 4,338 32 0 206ms 16s143ms 23s259ms 33s550ms 20 0 2,938 6 0 184ms 6s350ms 17s551ms 34s892ms 21 0 410 0 0 177ms 0ms 0ms 17s379ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 1 81 0 3s374ms 0ms 4s283ms 30s384ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 07 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Oct 07 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Oct 07 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Oct 07 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Oct 07 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Oct 07 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Oct 07 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Oct 07 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Oct 07 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 17 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 5 18s734ms 1s280ms 7s403ms 3s746ms 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" = 5749154, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1694913);
Date: 2024-10-07 14:17:47
2 1 14s119ms 14s119ms 14s119ms 14s119ms delete from mail_message where id in (...);-
DELETE FROM mail_message WHERE id IN (18845238);
Date: 2024-10-07 16:40:18
3 9 13s794ms 1s97ms 2s410ms 1s532ms 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 != 1630340 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 != 1630340 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-10-07 14:01:23
4 1 7s300ms 7s300ms 7s300ms 7s300ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(17.0, 0) + COALESCE(0.0, 0) - COALESCE(6.0, 0) WHERE product_id = 190563 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-07 13:50:40
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(6.0, 0) - COALESCE(2.0, 0) WHERE product_id = 199530 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 14:21:06
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 190563 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-10-07 13:50:41
5 1 3s580ms 3s580ms 3s580ms 3s580ms update "sale_order_line" set "qty_delivered_method" = ?, "state" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order_line" SET "qty_delivered_method" = 'stock_move', "state" = 'cancel', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (497821, 497822);
Date: 2024-10-07 12:40:26
Queries that waited the most
Rank Wait time Query 1 14s119ms DELETE FROM mail_message WHERE id IN (18845238);[ Date: 2024-10-07 16:40:18 ]
2 7s403ms UPDATE "account_move" SET "message_main_attachment_id" = 5748593, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1694327);[ Date: 2024-10-07 12:59:20 ]
3 7s300ms UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 270611 AND warehouse_id = 46 AND company_id = 1;[ Date: 2024-10-07 19:17:50 ]
4 5s329ms UPDATE "account_move" SET "message_main_attachment_id" = 5750758, "write_uid" = 972, "write_date" = (now() at time zone 'UTC') WHERE id IN (1696681);[ Date: 2024-10-07 19:45:52 ]
5 3s580ms UPDATE "sale_order_line" SET "qty_delivered_method" = 'stock_move', "state" = 'cancel', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (497821, 497822);[ Date: 2024-10-07 12:40:26 ]
6 2s917ms UPDATE "account_move" SET "message_main_attachment_id" = 5749296, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (1695116);[ Date: 2024-10-07 14:42:20 ]
7 2s410ms 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 != 1696732 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 != 1696732 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 19:52:22 ]
8 1s917ms 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 != 1694881 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 != 1694881 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 14:11:45 ]
9 1s865ms 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 != 1695304 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 != 1695304 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 15:17:10 ]
10 1s803ms UPDATE "account_move" SET "message_main_attachment_id" = 5750144, "write_uid" = 1295, "write_date" = (now() at time zone 'UTC') WHERE id IN (1696089);[ Date: 2024-10-07 17:35:10 ]
11 1s758ms 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 != 1696626 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 != 1696626 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 19:24:00 ]
12 1s280ms UPDATE "account_move" SET "message_main_attachment_id" = 5749154, "write_uid" = 1267, "write_date" = (now() at time zone 'UTC') WHERE id IN (1694913);[ Date: 2024-10-07 14:17:47 ]
13 1s273ms 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 != 1694291 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 != 1694291 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 12:55:22 ]
14 1s259ms 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 != 1694317 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 != 1694317 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 12:57:30 ]
15 1s209ms 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 != 1361171 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 != 1361171 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 14:19:05 ]
16 1s97ms 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 != 1630340 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 != 1630340 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 14:01:23 ]
17 1s4ms 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 != 1694048 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 != 1694048 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-07 13:12:24 ]
-
Queries
Queries by type
Key values
- 209,106 Total read queries
- 50,743 Total write queries
Queries by database
Key values
- unknown Main database
- 259,849 Requests
- 19h17m58s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 260,314 Requests
User Request type Count Duration unknown Total 260,314 19h19m9s copy to 118 14m1s cte 59 26s902ms cursor 1 268ms delete 548 19m35s select 209,571 16h7m38s update 50,017 2h37m26s Duration by user
Key values
- 19h19m9s (unknown) Main time consuming user
User Request type Count Duration unknown Total 260,314 19h19m9s copy to 118 14m1s cte 59 26s902ms cursor 1 268ms delete 548 19m35s select 209,571 16h7m38s update 50,017 2h37m26s Queries by host
Key values
- unknown Main host
- 260,314 Requests
- 19h19m9s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 259,849 Requests
- 19h17m58s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-10-07 21:59:10 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 237,380 100-500ms duration
Slowest individual queries
Rank Duration Query 1 4m3s 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-10-07 09:10:44 ]
2 2m15s 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-10-07 09:04:27 ]
3 2m2s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (270573)) ORDER BY "item_list_line"."id";[ Date: 2024-10-07 12:07:08 ]
4 1m59s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-10-07 09:06:39 ]
5 40s248ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward, reconcile_date_from_add) TO stdout;[ Date: 2024-10-07 09:01:05 ]
6 37s225ms DELETE FROM account_move_line WHERE id IN (5834472, 5834473, 5834474, 5834475, 5834476, 5834477, 5834478, 5834479, 5834480, 5834481, 5834482, 5834483, 5834484, 5834485, 5834486, 5834487);[ Date: 2024-10-07 16:47:00 ]
7 28s502ms SELECT "mail_message".id FROM "mail_message" WHERE ((((("mail_message"."id" in ( SELECT "mail_message_res_partner_needaction_rel"."mail_message_id" FROM "mail_message_res_partner_needaction_rel" WHERE ("mail_message_res_partner_needaction_rel"."notification_status" in ('bounce', 'exception')))) AND ("mail_message"."author_id" = 3)) AND ("mail_message"."res_id" != 0)) AND "mail_message"."model" IS NOT NULL) AND (("mail_message"."message_type" != 'user_notification') OR "mail_message"."message_type" IS NULL)) ORDER BY "mail_message"."id" DESC;[ Date: 2024-10-07 05:08:11 ]
8 24s616ms COPY public.sale_history_line (id, history_data_link, company_id, customer_id, product_id, invoice_id, product_name, name, product_uom_qty, price_unit, cost_price_unit, price_subtotal, cost_subtotal, gross_profit, rebate_amount, rebate_subtotal, invoice_item_no, inventory_product_categ, inventory_part_type, inventory_short_vendor_name, currency_id, core_sales_amount, core_cost_amount, labor_amount, serial_number, labor_flag, note, under_warranty, contact_reference, contact_name, selling_branch, vehicle_unit_no, vehicle_identification_number, vehicle_odometer, customer_reference_no, sales_obtain, sale_order_no, sale_order_date, invoice_number, invoice_date, user_id, exception_sale, create_uid, create_date, write_uid, write_date, product_pricelist_item_id, history_id, history_date, history_type, so_line_id, new_user_id, gross_profit_amount, is_shipping, move_options, manufacturing_usage, technician_id, inventory_vendor_id, product_type, current_branch, pricelist_id) TO stdout;[ Date: 2024-10-07 09:13:21 ]
9 24s570ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%'))))))) 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-10-07 18:58:18 ]
10 23s927ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165795x%')) 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 ('%k165795x%'))) 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 ('%k165795x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165795x%'))))))) 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-10-07 19:02:05 ]
11 23s644ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165795x%')) 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 ('%k165795x%'))) 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 ('%k165795x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165795x%'))))))) 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-10-07 19:00:19 ]
12 21s465ms DELETE FROM sale_order_line WHERE id IN (497332);[ Date: 2024-10-07 11:07:30 ]
13 21s101ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%'))))))) 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-10-07 18:59:42 ]
14 21s33ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%'))))))) 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-10-07 18:57:35 ]
15 20s303ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165795x%')) 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 ('%k165795x%'))) 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 ('%k165795x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165795x%'))))))) 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-10-07 19:01:32 ]
16 20s297ms 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 ('%k097848x%')) 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 ('%k097848x%'))) 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 ('%k097848x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097848x%'))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k097849x%')) 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 ('%k097849x%'))) 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 ('%k097849x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k097849x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098282x%')) 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 ('%k098282x%'))) 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 ('%k098282x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098282x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098283x%')) 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 ('%k098283x%'))) 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 ('%k098283x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098283x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098284x%')) 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 ('%k098284x%'))) 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 ('%k098284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k098285x%')) 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 ('%k098285x%'))) 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 ('%k098285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k098285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147135x%')) 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 ('%k147135x%'))) 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 ('%k147135x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147135x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147136x%')) 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 ('%k147136x%'))) 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 ('%k147136x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147136x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147222x%')) 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 ('%k147222x%'))) 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 ('%k147222x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147222x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147223x%')) 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 ('%k147223x%'))) 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 ('%k147223x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147223x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147224x%')) 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 ('%k147224x%'))) 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 ('%k147224x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147224x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147225x%')) 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 ('%k147225x%'))) 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 ('%k147225x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147225x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147427x%')) 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 ('%k147427x%'))) 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 ('%k147427x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147427x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147428x%')) 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 ('%k147428x%'))) 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 ('%k147428x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147428x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147429x%')) 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 ('%k147429x%'))) 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 ('%k147429x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147429x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k147430x%')) 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 ('%k147430x%'))) 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 ('%k147430x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k147430x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162284x%')) 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 ('%k162284x%'))) 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 ('%k162284x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162284x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k162285x%')) 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 ('%k162285x%'))) 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 ('%k162285x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k162285x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165794x%')) 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 ('%k165794x%'))) 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 ('%k165794x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165794x%')))) OR (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%k165795x%')) 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 ('%k165795x%'))) 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 ('%k165795x%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%k165795x%'))))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY "product_template"."default_code" ASC LIMIT 80;[ Date: 2024-10-07 19:02:40 ]
17 19s475ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."mon_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-10-07 12:24:41 ]
18 19s284ms DELETE FROM account_move_line WHERE id IN (5958564, 5958565, 5958566, 5958567, 5958568, 5958569, 5958570, 5958571, 5958572);[ Date: 2024-10-07 23:33:25 ]
19 19s237ms SELECT "sale_line_report".id FROM "sale_line_report" WHERE (("sale_line_report"."cus_part_route" = 3) AND (("sale_line_report"."id" > '0') AND (((((("sale_line_report"."branch_id" in (37)) AND "sale_line_report"."display_type" IS NULL) AND ((("sale_line_report"."open_qty_fil" > 0.0) AND (("sale_line_report"."state" not in ('draft', 'cancel')) OR "sale_line_report"."state" IS NULL)) AND ("sale_line_report"."move_options" = 'new_product'))) AND ("sale_line_report"."so_line_id" IS NULL AND (unaccent ("sale_line_report"."move_options"::text) ilike unaccent ('%new%')))) AND ("sale_line_report"."on_hand" > 0.0)) AND ("sale_line_report"."partner_id" in ( SELECT "res_partner".id FROM "res_partner" WHERE ("res_partner"."mon_deli_day" = true) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private')))))))) ORDER BY "sale_line_report"."date" DESC, "sale_line_report"."id" ASC LIMIT 80;[ Date: 2024-10-07 12:25:19 ]
20 19s167ms COPY public.base_import_import (id, res_model, file, file_name, file_type, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-10-07 09:01:33 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 7h8m31s 121,181 127ms 3s306ms 212ms 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 Oct 07 20 2,486 6m3s 146ms 21 2,651 6m21s 144ms 22 2,547 6m19s 149ms 23 2,440 5m53s 144ms 00 2,275 5m44s 151ms 01 2,393 5m50s 146ms 02 2,465 6m3s 147ms 03 2,464 5m56s 144ms 04 2,902 7m13s 149ms 05 2,754 7m9s 156ms 06 3,169 7m43s 146ms 07 5,005 14m25s 172ms 08 8,329 33m50s 243ms 09 9,373 46m10s 295ms 10 9,772 38m49s 238ms 11 9,469 37m37s 238ms 12 9,032 34m59s 232ms 13 9,231 34m41s 225ms 14 8,489 36m23s 257ms 15 7,839 35m28s 271ms 16 5,320 18m9s 204ms 17 3,977 10m14s 154ms 18 3,504 8m54s 152ms 19 3,295 8m25s 153ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"', '["pointspring_master","calendar.alarm",19549]', '["pointspring_master","mail.channel",445]', '["pointspring_master","mail.channel",446]', '["pointspring_master","mail.channel",447]', '["pointspring_master","res.partner",19549]', '["pointspring_master","ir.needaction",19549]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s306ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1006"', '["pointspring_master","calendar.alarm",19544]', '["pointspring_master","mail.channel",243]', '["pointspring_master","mail.channel",244]', '["pointspring_master","mail.channel",245]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",541]', '["pointspring_master","mail.channel",597]', '["pointspring_master","res.partner",19544]', '["pointspring_master","ir.needaction",19544]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s297ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1045"', '["pointspring_master","calendar.alarm",19583]', '["pointspring_master","res.partner",19583]', '["pointspring_master","ir.needaction",19583]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s289ms
2 57m1s 8,255 378ms 2s698ms 414ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 07 21 169 1m5s 389ms 22 465 3m1s 390ms 04 1 402ms 402ms 05 26 10s79ms 387ms 06 8 3s88ms 386ms 07 455 3m4s 404ms 08 733 5m4s 415ms 09 1,338 9m29s 425ms 10 729 5m13s 430ms 11 770 5m20s 416ms 12 634 4m23s 416ms 13 801 5m30s 412ms 14 932 6m26s 414ms 15 602 4m12s 419ms 16 470 3m6s 396ms 17 122 47s915ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 19:13:46 Duration: 2s698ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 15:56:15 Duration: 1s635ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 17:45:01 Duration: 1s478ms
3 50m52s 8,254 302ms 3s452ms 369ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 07 21 169 54s5ms 319ms 22 465 2m29s 322ms 04 1 324ms 324ms 05 26 8s319ms 319ms 06 8 2s552ms 319ms 07 455 2m33s 337ms 08 733 4m30s 369ms 09 1,338 8m49s 395ms 10 729 4m56s 407ms 11 770 4m45s 370ms 12 633 3m53s 369ms 13 801 4m54s 367ms 14 932 5m48s 374ms 15 602 3m41s 368ms 16 470 2m41s 343ms 17 122 40s361ms 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 18:16:23 Duration: 3s452ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:20:51 Duration: 2s705ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:54:54 Duration: 2s580ms
4 49m14s 3,324 698ms 2s856ms 888ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 07 07 165 2m8s 781ms 08 530 7m59s 905ms 09 417 6m43s 967ms 10 467 7m21s 946ms 11 405 5m56s 880ms 12 263 3m50s 876ms 13 309 4m26s 860ms 14 338 4m51s 862ms 15 267 3m46s 847ms 16 122 1m37s 797ms 17 41 32s190ms 785ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%654%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%6.5-4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%6.5-4%'))) AND ("product_product__product_tmpl_id"."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-10-07 13:47:10 Duration: 2s856ms
-
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 ('%%spl250%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl250%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl250%'))) 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-10-07 14:00:26 Duration: 2s828ms
-
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 ('%%spl%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl%'))) 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-10-07 13:59:27 Duration: 2s699ms
5 42m31s 2,815 365ms 2s560ms 906ms select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 07 07 264 2m19s 528ms 08 426 4m53s 689ms 09 2,013 33m18s 992ms 10 112 1m59s 1s71ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:58 Duration: 2s560ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s499ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s357ms
6 38m4s 12,197 165ms 1s397ms 187ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 07 21 341 59s501ms 174ms 22 1,000 2m53s 173ms 05 29 5s99ms 175ms 06 8 1s397ms 174ms 07 732 2m11s 179ms 08 1,100 3m26s 187ms 09 2,225 7m18s 197ms 10 933 3m1s 195ms 11 987 3m5s 188ms 12 823 2m34s 187ms 13 1,045 3m15s 186ms 14 1,159 3m39s 189ms 15 805 2m31s 187ms 16 852 2m31s 178ms 17 158 28s35ms 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(17.0, 0) + COALESCE(0.0, 0) - COALESCE(6.0, 0) WHERE product_id = 190563 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-07 13:50:40 Duration: 1s397ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(6.0, 0) - COALESCE(2.0, 0) WHERE product_id = 199530 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 14:21:06 Duration: 1s210ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 190563 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-10-07 13:50:41 Duration: 1s172ms
7 25m46s 8,327 166ms 1s25ms 185ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 07 05 41 7s135ms 174ms 06 16 2s757ms 172ms 07 661 1m58s 179ms 08 606 1m52s 186ms 09 913 2m50s 187ms 10 789 2m30s 190ms 11 655 2m3s 188ms 12 701 2m11s 186ms 13 807 2m31s 187ms 14 1,385 4m14s 184ms 15 1,259 3m54s 185ms 16 481 1m27s 182ms 17 13 2s261ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 269342 and warehouse_id = 36 and company_id = 1;
Date: 2024-10-07 12:58:41 Duration: 1s25ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((110.0 - 110.0) + (1.0 - 1.0), 0) ELSE GREATEST ((110.0 - 110.0), 0) END where product_id = 184922 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-07 15:10:17 Duration: 643ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 64.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (64.0 - 64.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 186750 and warehouse_id = 35 and company_id = 1;
Date: 2024-10-07 13:43:32 Duration: 508ms
8 24m4s 2,474 496ms 2s438ms 583ms select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 07 03 3 1s676ms 558ms 04 8 4s263ms 532ms 05 12 6s103ms 508ms 06 16 8s103ms 506ms 07 174 1m33s 538ms 08 305 2m54s 573ms 09 355 3m40s 620ms 10 302 3m7s 620ms 11 295 2m52s 583ms 12 216 2m4s 575ms 13 240 2m14s 559ms 14 271 2m40s 591ms 15 190 1m50s 584ms 16 78 41s88ms 526ms 17 3 1s524ms 508ms 18 4 2s19ms 504ms 19 2 1s35ms 517ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 13:47:12 Duration: 2s438ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 18:28:48 Duration: 2s249ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5826980/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 14:00:26 Duration: 2s145ms
9 16m36s 4,831 165ms 978ms 206ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 07 21 134 24s13ms 179ms 22 317 56s13ms 176ms 07 2 387ms 193ms 08 108 23s88ms 213ms 09 309 1m17s 252ms 10 619 2m20s 226ms 11 408 1m27s 215ms 12 757 2m35s 204ms 13 694 2m25s 209ms 14 307 1m1s 199ms 15 178 39s75ms 219ms 16 831 2m35s 187ms 17 167 30s856ms 184ms -
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 = 53253 and fd.product_id = 184587;
Date: 2024-10-07 13:54:58 Duration: 978ms
-
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 = 53077 and fd.product_id = 209272;
Date: 2024-10-07 15:03:28 Duration: 934ms
-
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 = 53077 and fd.product_id = 209227;
Date: 2024-10-07 13:46:30 Duration: 782ms
10 16m23s 1,104 721ms 2s899ms 891ms 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 Oct 07 07 120 1m37s 816ms 08 16 12s841ms 802ms 09 230 3m36s 940ms 10 133 2m9s 971ms 11 61 52s233ms 856ms 12 107 1m27s 821ms 13 196 2m47s 853ms 14 53 54s530ms 1s28ms 15 188 2m45s 881ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = '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 ('%%g34200%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g34200%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g34200%'))) 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-10-07 18:58:00 Duration: 2s899ms
-
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 ('%%PRICE%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%PRICE%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%PRICE%'))) 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-10-07 19:04:44 Duration: 2s613ms
-
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 ('%%g342000606%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g34200-0606%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g34200-0606%'))) 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-10-07 18:58:00 Duration: 2s427ms
11 16m12s 5,086 168ms 1s86ms 191ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 07 21 1 175ms 175ms 05 43 7s522ms 174ms 06 19 3s310ms 174ms 07 294 53s175ms 180ms 08 467 1m27s 188ms 09 784 2m34s 197ms 10 645 2m6s 196ms 11 541 1m42s 189ms 12 445 1m24s 188ms 13 767 2m27s 191ms 14 521 1m38s 188ms 15 450 1m27s 193ms 16 104 19s728ms 189ms 17 5 892ms 178ms -
UPDATE product_warehouse_inventory SET qty_available = 12.0 WHERE product_id = 184037 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-07 14:34:08 Duration: 1s86ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 190945 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:59 Duration: 767ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 261331 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:58 Duration: 733ms
12 15m2s 5,765 140ms 1s721ms 156ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 07 20 240 35s89ms 146ms 21 240 35s31ms 145ms 22 240 35s394ms 147ms 23 240 34s817ms 145ms 00 240 34s904ms 145ms 01 240 35s28ms 145ms 02 240 34s905ms 145ms 03 240 34s860ms 145ms 04 240 35s6ms 145ms 05 240 35s341ms 147ms 06 240 35s38ms 145ms 07 240 38s169ms 159ms 08 240 41s536ms 173ms 09 242 47s689ms 197ms 10 240 41s792ms 174ms 11 240 41s91ms 171ms 12 240 39s553ms 164ms 13 241 41s577ms 172ms 14 240 40s953ms 170ms 15 242 41s701ms 172ms 16 240 36s681ms 152ms 17 240 35s437ms 147ms 18 240 34s917ms 145ms 19 240 35s498ms 147ms -
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_rules', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_enum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_sequence', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_conversion', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequences', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_collation', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_language', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_policies', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_constraint', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_depend', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_proc', 'pg_catalog.pg_opclass', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'information_schema.routine_sequence_usage', 'information_schema.collations', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.triggered_update_columns', 'information_schema.column_options', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.user_mappings', 'information_schema.information_schema_catalog_name', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.role_routine_grants', 'information_schema.views', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.parameters', 'information_schema.sql_implementation_info', 'information_schema.data_type_privileges', 'information_schema.tables', 'information_schema.role_usage_grants', 'information_schema.collation_character_set_applicability', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routine_routine_usage', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.role_column_grants', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.element_types', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-10-07 13:50:41 Duration: 1s721ms
-
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', 'public.pg_stat_statements_info', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_subscription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_user', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_operator', 'pg_catalog.pg_amproc', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_description', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_collation', 'pg_catalog.pg_indexes', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_rules', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_roles', 'pg_catalog.pg_am', 'pg_catalog.pg_language', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_opclass', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_enum', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_views', 'information_schema.collation_character_set_applicability', 'information_schema.sequences', 'information_schema.foreign_data_wrappers', 'information_schema.column_domain_usage', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.role_routine_grants', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.columns', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.domain_constraints', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.referential_constraints', 'information_schema.parameters', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.role_column_grants', 'information_schema.table_privileges', 'information_schema.user_mappings', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.view_column_usage', 'information_schema.routine_table_usage', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.data_type_privileges', 'information_schema.applicable_roles', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges');
Date: 2024-10-07 19:30:11 Duration: 1s212ms
-
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_class', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_roles', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_settings', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policy', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_enum', 'pg_catalog.pg_range', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_index', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication', 'pg_catalog.pg_cursors', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_group', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.role_routine_grants', 'information_schema.triggers', 'information_schema.information_schema_catalog_name', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.key_column_usage', 'information_schema.tables', 'information_schema.constraint_table_usage', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.table_privileges', 'information_schema.view_column_usage', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.foreign_servers', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.applicable_roles', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mapping_options', 'information_schema.attributes', 'information_schema.routines', 'information_schema.schemata', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.column_options', 'information_schema.collation_character_set_applicability', 'information_schema.column_domain_usage', 'information_schema.table_constraints', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.domain_constraints', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_tables', 'information_schema.column_column_usage', 'information_schema.sql_sizing', 'information_schema.role_table_grants', 'information_schema.element_types', 'information_schema.routine_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.view_table_usage', 'information_schema.views', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.foreign_table_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-07 19:27:41 Duration: 932ms
13 14m26s 816 906ms 3s756ms 1s61ms 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 #13
Day Hour Count Duration Avg duration Oct 07 06 1 944ms 944ms 07 19 18s229ms 959ms 08 78 1m22s 1s55ms 09 84 1m40s 1s197ms 10 132 2m23s 1s83ms 11 97 1m41s 1s43ms 12 69 1m12s 1s55ms 13 105 1m49s 1s42ms 14 80 1m21s 1s18ms 15 117 2m3s 1s51ms 16 34 33s352ms 980ms -
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 ('%tmr674%')) 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 ('%tmr674%'))) 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 ('%tmr674%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%tmr674%')))))) 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-10-07 13:47:12 Duration: 3s756ms
-
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 ('%lfh4910%')) 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 ('%lfh4910%'))) 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 ('%lfh4910%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%lfh4910%')))))) 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-10-07 19:27:41 Duration: 2s614ms
-
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 ('%dt-albm6600%')) 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 ('%dt-albm6600%'))) 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 ('%dt-albm6600%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%dt-albm6600%')))))) 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-10-07 15:26:06 Duration: 2s385ms
14 14m3s 4,604 120ms 1s267ms 183ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 07 07 593 1m38s 165ms 08 616 1m58s 191ms 09 672 2m29s 222ms 10 280 55s763ms 199ms 11 429 1m15s 175ms 12 469 1m18s 167ms 13 410 1m17s 188ms 14 715 2m6s 176ms 15 420 1m4s 153ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 184587) 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" = '44')))))) 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-10-07 13:50:40 Duration: 1s267ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 183505) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 13:50:39 Duration: 1s135ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172573) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 16:28:48 Duration: 1s66ms
15 10m24s 3,062 169ms 1s46ms 203ms 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 #15
Day Hour Count Duration Avg duration Oct 07 08 39 7s540ms 193ms 09 751 2m46s 222ms 10 1,417 4m47s 203ms 11 27 5s252ms 194ms 13 208 39s580ms 190ms 14 142 27s79ms 190ms 15 129 25s278ms 195ms 16 331 1m1s 185ms 17 18 3s349ms 186ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209914) and warehouse_id = (36));
Date: 2024-10-07 13:51:33 Duration: 1s46ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209324) and warehouse_id = (35));
Date: 2024-10-07 13:47:12 Duration: 673ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209633) and warehouse_id = (36));
Date: 2024-10-07 13:51:32 Duration: 665ms
16 9m48s 3,365 120ms 1s18ms 174ms 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 #16
Day Hour Count Duration Avg duration Oct 07 21 93 14s567ms 156ms 22 153 28s566ms 186ms 05 1 124ms 124ms 07 254 1m37s 383ms 08 383 55s410ms 144ms 09 457 1m14s 163ms 10 535 1m32s 172ms 11 368 58s856ms 159ms 12 275 41s707ms 151ms 13 238 34s862ms 146ms 14 262 38s275ms 146ms 15 189 27s629ms 146ms 16 101 13s995ms 138ms 17 51 8s895ms 174ms 19 5 654ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (270463, 3, 257051)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 13:57:34 Duration: 1s18ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189474, 188804, 189486)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 12:58:42 Duration: 1s14ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (210041, 209612, 209857, 209230, 209497, 209326, 209309, 209668, 209360, 209227, 209357, 209323, 209382, 209334, 209384, 209329, 209344, 209253, 209339, 209199, 209226, 209231, 209195, 209188, 209220, 209324, 209565, 209367, 209493, 209340, 209313, 209511, 209502, 209347, 209311, 209391, 209403, 209527, 209251, 209528, 209221, 209525, 209507, 209436, 209266, 209568, 209566, 209310, 209280, 209464, 209252, 209302, 209506, 209225, 209457, 209480, 209200, 209487, 209571, 209317, 209556, 209447, 209515, 209196, 209299, 209485, 209573, 209389, 209342, 209328, 209558, 209479, 209264, 209545, 209273, 209212, 209176, 209537, 209415, 209182, 209242, 209372, 209366, 209437, 209435, 209554, 209451, 209559, 209185, 209538, 209207, 209398, 209327, 209529, 209862, 209518, 209512, 209279, 209321, 209209, 209572, 209446, 209425, 209483, 209173, 209343, 209262, 209189, 209191, 209555, 209346, 209392, 209413, 209303, 209526, 209521, 209306, 209261, 209219, 209174, 209203, 209503, 209256, 209315, 209277, 209276, 209474, 209567, 209228, 209318, 209359, 209270, 209563, 209314, 209469, 209206, 209322, 209179, 209494, 209442, 209281, 209250, 209267, 209471, 209470, 209325, 209298, 209243, 209520, 209304, 209316, 209319, 209424, 209365, 209472, 209214, 209232, 209345, 209331, 209183, 209268, 209177, 209434, 209441, 209456, 209194, 209462, 209484, 209358, 209423, 209496, 209495, 209513, 209180, 209229, 209412, 209193, 209488, 209519, 209492, 209278, 209284, 209524, 209187, 209338, 209307, 209505, 209201, 209190, 209332, 209286, 209211, 209482, 209259, 209272, 209440, 209501, 209258, 209265, 209247, 209282)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 11:18:06 Duration: 839ms
17 9m44s 3,136 166ms 570ms 186ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 07 21 48 8s259ms 172ms 22 126 21s882ms 173ms 05 15 2s549ms 169ms 06 6 1s31ms 171ms 07 93 16s665ms 179ms 08 271 49s596ms 183ms 09 676 2m9s 191ms 10 331 1m4s 193ms 11 295 55s208ms 187ms 12 170 31s632ms 186ms 13 295 54s873ms 186ms 14 338 1m2s 185ms 15 234 43s681ms 186ms 16 177 31s765ms 179ms 17 61 10s933ms 179ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 208652 AND warehouse_id = 35;
Date: 2024-10-07 13:46:30 Duration: 570ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 193938 AND warehouse_id = 46;
Date: 2024-10-07 14:32:34 Duration: 393ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 43;
Date: 2024-10-07 14:37:29 Duration: 381ms
18 9m27s 3,006 166ms 774ms 188ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 07 21 24 4s198ms 174ms 22 71 12s475ms 175ms 05 6 1s59ms 176ms 06 2 347ms 173ms 07 195 35s579ms 182ms 08 272 51s471ms 189ms 09 373 1m11s 192ms 10 326 1m5s 201ms 11 304 56s998ms 187ms 12 311 57s320ms 184ms 13 422 1m18s 185ms 14 270 51s38ms 189ms 15 252 49s706ms 197ms 16 158 28s79ms 177ms 17 20 3s472ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 173817 AND warehouse_id = 41;
Date: 2024-10-07 19:21:21 Duration: 774ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 247784 AND warehouse_id = 41;
Date: 2024-10-07 19:21:22 Duration: 741ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 265694 AND warehouse_id = 43;
Date: 2024-10-07 13:44:55 Duration: 684ms
19 7m55s 1,505 218ms 3s143ms 316ms 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 #19
Day Hour Count Duration Avg duration Oct 07 03 2 489ms 244ms 04 2 481ms 240ms 05 8 1s914ms 239ms 06 5 1s218ms 243ms 07 26 6s502ms 250ms 08 174 52s480ms 301ms 09 233 1m19s 341ms 10 176 1m1s 348ms 11 185 54s859ms 296ms 12 222 1m9s 314ms 13 151 47s804ms 316ms 14 131 42s695ms 325ms 15 156 47s786ms 306ms 16 32 8s228ms 257ms 17 2 490ms 245ms -
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 (1694737)) 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-10-07 13:49:00 Duration: 3s143ms
-
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 (1696215)) 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-10-07 17:50:42 Duration: 2s716ms
-
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 (1694731)) 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-10-07 13:47:09 Duration: 2s294ms
20 7m54s 2,487 170ms 1s35ms 190ms update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 07 21 8 1s392ms 174ms 22 16 2s819ms 176ms 05 1 174ms 174ms 06 1 173ms 173ms 07 226 40s618ms 179ms 08 342 1m5s 192ms 09 732 2m25s 198ms 10 146 28s987ms 198ms 11 126 23s976ms 190ms 12 120 22s653ms 188ms 13 136 25s694ms 188ms 14 203 39s393ms 194ms 15 139 25s716ms 185ms 16 279 49s759ms 178ms 17 12 2s119ms 176ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) WHERE product_id = 211762 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 13:26:04 Duration: 1s35ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(11.0, 0) + COALESCE(0.0, 0) WHERE product_id = 177857 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 18:03:15 Duration: 787ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(9.0, 0) + COALESCE(8.0, 0) WHERE product_id = 190611 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-07 13:57:32 Duration: 782ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 121,181 7h8m31s 127ms 3s306ms 212ms 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 Oct 07 20 2,486 6m3s 146ms 21 2,651 6m21s 144ms 22 2,547 6m19s 149ms 23 2,440 5m53s 144ms 00 2,275 5m44s 151ms 01 2,393 5m50s 146ms 02 2,465 6m3s 147ms 03 2,464 5m56s 144ms 04 2,902 7m13s 149ms 05 2,754 7m9s 156ms 06 3,169 7m43s 146ms 07 5,005 14m25s 172ms 08 8,329 33m50s 243ms 09 9,373 46m10s 295ms 10 9,772 38m49s 238ms 11 9,469 37m37s 238ms 12 9,032 34m59s 232ms 13 9,231 34m41s 225ms 14 8,489 36m23s 257ms 15 7,839 35m28s 271ms 16 5,320 18m9s 204ms 17 3,977 10m14s 154ms 18 3,504 8m54s 152ms 19 3,295 8m25s 153ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"', '["pointspring_master","calendar.alarm",19549]', '["pointspring_master","mail.channel",445]', '["pointspring_master","mail.channel",446]', '["pointspring_master","mail.channel",447]', '["pointspring_master","res.partner",19549]', '["pointspring_master","ir.needaction",19549]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s306ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1006"', '["pointspring_master","calendar.alarm",19544]', '["pointspring_master","mail.channel",243]', '["pointspring_master","mail.channel",244]', '["pointspring_master","mail.channel",245]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",541]', '["pointspring_master","mail.channel",597]', '["pointspring_master","res.partner",19544]', '["pointspring_master","ir.needaction",19544]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s297ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1045"', '["pointspring_master","calendar.alarm",19583]', '["pointspring_master","res.partner",19583]', '["pointspring_master","ir.needaction",19583]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s289ms
2 12,197 38m4s 165ms 1s397ms 187ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 07 21 341 59s501ms 174ms 22 1,000 2m53s 173ms 05 29 5s99ms 175ms 06 8 1s397ms 174ms 07 732 2m11s 179ms 08 1,100 3m26s 187ms 09 2,225 7m18s 197ms 10 933 3m1s 195ms 11 987 3m5s 188ms 12 823 2m34s 187ms 13 1,045 3m15s 186ms 14 1,159 3m39s 189ms 15 805 2m31s 187ms 16 852 2m31s 178ms 17 158 28s35ms 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(17.0, 0) + COALESCE(0.0, 0) - COALESCE(6.0, 0) WHERE product_id = 190563 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-07 13:50:40 Duration: 1s397ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(6.0, 0) - COALESCE(2.0, 0) WHERE product_id = 199530 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 14:21:06 Duration: 1s210ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 190563 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-10-07 13:50:41 Duration: 1s172ms
3 8,327 25m46s 166ms 1s25ms 185ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 07 05 41 7s135ms 174ms 06 16 2s757ms 172ms 07 661 1m58s 179ms 08 606 1m52s 186ms 09 913 2m50s 187ms 10 789 2m30s 190ms 11 655 2m3s 188ms 12 701 2m11s 186ms 13 807 2m31s 187ms 14 1,385 4m14s 184ms 15 1,259 3m54s 185ms 16 481 1m27s 182ms 17 13 2s261ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 269342 and warehouse_id = 36 and company_id = 1;
Date: 2024-10-07 12:58:41 Duration: 1s25ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((110.0 - 110.0) + (1.0 - 1.0), 0) ELSE GREATEST ((110.0 - 110.0), 0) END where product_id = 184922 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-07 15:10:17 Duration: 643ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 64.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (64.0 - 64.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 186750 and warehouse_id = 35 and company_id = 1;
Date: 2024-10-07 13:43:32 Duration: 508ms
4 8,255 57m1s 378ms 2s698ms 414ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 07 21 169 1m5s 389ms 22 465 3m1s 390ms 04 1 402ms 402ms 05 26 10s79ms 387ms 06 8 3s88ms 386ms 07 455 3m4s 404ms 08 733 5m4s 415ms 09 1,338 9m29s 425ms 10 729 5m13s 430ms 11 770 5m20s 416ms 12 634 4m23s 416ms 13 801 5m30s 412ms 14 932 6m26s 414ms 15 602 4m12s 419ms 16 470 3m6s 396ms 17 122 47s915ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 19:13:46 Duration: 2s698ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 15:56:15 Duration: 1s635ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 17:45:01 Duration: 1s478ms
5 8,254 50m52s 302ms 3s452ms 369ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 07 21 169 54s5ms 319ms 22 465 2m29s 322ms 04 1 324ms 324ms 05 26 8s319ms 319ms 06 8 2s552ms 319ms 07 455 2m33s 337ms 08 733 4m30s 369ms 09 1,338 8m49s 395ms 10 729 4m56s 407ms 11 770 4m45s 370ms 12 633 3m53s 369ms 13 801 4m54s 367ms 14 932 5m48s 374ms 15 602 3m41s 368ms 16 470 2m41s 343ms 17 122 40s361ms 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 18:16:23 Duration: 3s452ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:20:51 Duration: 2s705ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:54:54 Duration: 2s580ms
6 5,765 15m2s 140ms 1s721ms 156ms 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 Oct 07 20 240 35s89ms 146ms 21 240 35s31ms 145ms 22 240 35s394ms 147ms 23 240 34s817ms 145ms 00 240 34s904ms 145ms 01 240 35s28ms 145ms 02 240 34s905ms 145ms 03 240 34s860ms 145ms 04 240 35s6ms 145ms 05 240 35s341ms 147ms 06 240 35s38ms 145ms 07 240 38s169ms 159ms 08 240 41s536ms 173ms 09 242 47s689ms 197ms 10 240 41s792ms 174ms 11 240 41s91ms 171ms 12 240 39s553ms 164ms 13 241 41s577ms 172ms 14 240 40s953ms 170ms 15 242 41s701ms 172ms 16 240 36s681ms 152ms 17 240 35s437ms 147ms 18 240 34s917ms 145ms 19 240 35s498ms 147ms -
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_rules', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_enum', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_sequence', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_conversion', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_namespace', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_sequences', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_collation', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_language', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_policies', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_constraint', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_depend', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_proc', 'pg_catalog.pg_opclass', 'pg_catalog.pg_amop', 'pg_catalog.pg_cast', 'pg_catalog.pg_tables', 'pg_catalog.pg_class', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_tables', 'information_schema.routine_sequence_usage', 'information_schema.collations', 'information_schema.sql_sizing', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.foreign_table_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.column_domain_usage', 'information_schema.udt_privileges', 'information_schema.triggered_update_columns', 'information_schema.column_options', 'information_schema.view_table_usage', 'information_schema.role_udt_grants', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.user_defined_types', 'information_schema.sequences', 'information_schema.routine_table_usage', 'information_schema.user_mappings', 'information_schema.information_schema_catalog_name', 'information_schema.attributes', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.role_routine_grants', 'information_schema.views', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.routine_column_usage', 'information_schema.domain_udt_usage', 'information_schema.referential_constraints', 'information_schema.sql_features', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.column_privileges', 'information_schema.column_udt_usage', 'information_schema.parameters', 'information_schema.sql_implementation_info', 'information_schema.data_type_privileges', 'information_schema.tables', 'information_schema.role_usage_grants', 'information_schema.collation_character_set_applicability', 'information_schema.columns', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.table_privileges', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routine_routine_usage', 'information_schema.table_constraints', 'information_schema.applicable_roles', 'information_schema.role_column_grants', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.element_types', 'public.pg_stat_statements', 'public.pg_stat_statements_info');
Date: 2024-10-07 13:50:41 Duration: 1s721ms
-
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', 'public.pg_stat_statements_info', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_subscription', 'pg_catalog.pg_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_user', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_settings', 'pg_catalog.pg_operator', 'pg_catalog.pg_amproc', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_description', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_constraint', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_cast', 'pg_catalog.pg_conversion', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_collation', 'pg_catalog.pg_indexes', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_rules', 'pg_catalog.pg_group', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_type', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_depend', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_transform', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_roles', 'pg_catalog.pg_am', 'pg_catalog.pg_language', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_opclass', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_enum', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_views', 'information_schema.collation_character_set_applicability', 'information_schema.sequences', 'information_schema.foreign_data_wrappers', 'information_schema.column_domain_usage', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.role_routine_grants', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.columns', 'information_schema.routine_column_usage', 'information_schema.domains', 'information_schema.foreign_servers', 'information_schema.attributes', 'information_schema.domain_constraints', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.check_constraint_routine_usage', 'information_schema.column_column_usage', 'information_schema.column_privileges', 'information_schema.key_column_usage', 'information_schema.foreign_table_options', 'information_schema.information_schema_catalog_name', 'information_schema.check_constraints', 'information_schema.routines', 'information_schema.administrable_role_authorizations', 'information_schema.character_sets', 'information_schema.referential_constraints', 'information_schema.parameters', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_tables', 'information_schema.collations', 'information_schema.role_column_grants', 'information_schema.table_privileges', 'information_schema.user_mappings', 'information_schema.routine_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.view_column_usage', 'information_schema.routine_table_usage', 'information_schema.user_defined_types', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.enabled_roles', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.schemata', 'information_schema.role_table_grants', 'information_schema.role_udt_grants', 'information_schema.data_type_privileges', 'information_schema.applicable_roles', 'information_schema.domain_udt_usage', 'information_schema.routine_privileges');
Date: 2024-10-07 19:30:11 Duration: 1s212ms
-
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_class', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_depend', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_sequences', 'pg_catalog.pg_user', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_rules', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_roles', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_trigger', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_settings', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policy', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_attribute', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_enum', 'pg_catalog.pg_range', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_views', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_policies', 'pg_catalog.pg_indexes', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_index', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_publication', 'pg_catalog.pg_cursors', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_inherits', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_extension', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_group', 'information_schema.check_constraint_routine_usage', 'information_schema.check_constraints', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.role_routine_grants', 'information_schema.triggers', 'information_schema.information_schema_catalog_name', 'information_schema.character_sets', 'information_schema.routine_column_usage', 'information_schema.key_column_usage', 'information_schema.tables', 'information_schema.constraint_table_usage', 'information_schema.domains', 'information_schema.routine_routine_usage', 'information_schema.sequences', 'information_schema.table_privileges', 'information_schema.view_column_usage', 'information_schema.column_udt_usage', 'information_schema.routine_table_usage', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.foreign_servers', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.applicable_roles', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'information_schema.foreign_data_wrapper_options', 'information_schema.user_mapping_options', 'information_schema.attributes', 'information_schema.routines', 'information_schema.schemata', 'information_schema.triggered_update_columns', 'information_schema.usage_privileges', 'information_schema.user_defined_types', 'information_schema.column_options', 'information_schema.collation_character_set_applicability', 'information_schema.column_domain_usage', 'information_schema.table_constraints', 'information_schema.role_udt_grants', 'information_schema.administrable_role_authorizations', 'information_schema.domain_constraints', 'information_schema.domain_udt_usage', 'information_schema.enabled_roles', 'information_schema.routine_sequence_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_tables', 'information_schema.column_column_usage', 'information_schema.sql_sizing', 'information_schema.role_table_grants', 'information_schema.element_types', 'information_schema.routine_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.view_table_usage', 'information_schema.views', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.foreign_table_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-07 19:27:41 Duration: 932ms
7 5,086 16m12s 168ms 1s86ms 191ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 07 21 1 175ms 175ms 05 43 7s522ms 174ms 06 19 3s310ms 174ms 07 294 53s175ms 180ms 08 467 1m27s 188ms 09 784 2m34s 197ms 10 645 2m6s 196ms 11 541 1m42s 189ms 12 445 1m24s 188ms 13 767 2m27s 191ms 14 521 1m38s 188ms 15 450 1m27s 193ms 16 104 19s728ms 189ms 17 5 892ms 178ms -
UPDATE product_warehouse_inventory SET qty_available = 12.0 WHERE product_id = 184037 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-07 14:34:08 Duration: 1s86ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 190945 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:59 Duration: 767ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 261331 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:58 Duration: 733ms
8 4,831 16m36s 165ms 978ms 206ms 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 #8
Day Hour Count Duration Avg duration Oct 07 21 134 24s13ms 179ms 22 317 56s13ms 176ms 07 2 387ms 193ms 08 108 23s88ms 213ms 09 309 1m17s 252ms 10 619 2m20s 226ms 11 408 1m27s 215ms 12 757 2m35s 204ms 13 694 2m25s 209ms 14 307 1m1s 199ms 15 178 39s75ms 219ms 16 831 2m35s 187ms 17 167 30s856ms 184ms -
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 = 53253 and fd.product_id = 184587;
Date: 2024-10-07 13:54:58 Duration: 978ms
-
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 = 53077 and fd.product_id = 209272;
Date: 2024-10-07 15:03:28 Duration: 934ms
-
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 = 53077 and fd.product_id = 209227;
Date: 2024-10-07 13:46:30 Duration: 782ms
9 4,604 14m3s 120ms 1s267ms 183ms select "sale_order_line".id from "sale_order_line" where (((("sale_order_line"."product_id" = ?) and ("sale_order_line"."order_id" in ( select "sale_order".id from "sale_order" where ("sale_order"."branch_id" in ( select "res_branch".id from "res_branch" where ("res_branch"."id" = ?)))))) and ("sale_order_line"."open_qty_fil" > ?.?)) and (("sale_order_line"."state" not in (...)) or "sale_order_line"."state" is null)) order by "sale_order_line"."id" asc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 07 07 593 1m38s 165ms 08 616 1m58s 191ms 09 672 2m29s 222ms 10 280 55s763ms 199ms 11 429 1m15s 175ms 12 469 1m18s 167ms 13 410 1m17s 188ms 14 715 2m6s 176ms 15 420 1m4s 153ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 184587) 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" = '44')))))) 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-10-07 13:50:40 Duration: 1s267ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 183505) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 13:50:39 Duration: 1s135ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172573) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 16:28:48 Duration: 1s66ms
10 3,365 9m48s 120ms 1s18ms 174ms 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 #10
Day Hour Count Duration Avg duration Oct 07 21 93 14s567ms 156ms 22 153 28s566ms 186ms 05 1 124ms 124ms 07 254 1m37s 383ms 08 383 55s410ms 144ms 09 457 1m14s 163ms 10 535 1m32s 172ms 11 368 58s856ms 159ms 12 275 41s707ms 151ms 13 238 34s862ms 146ms 14 262 38s275ms 146ms 15 189 27s629ms 146ms 16 101 13s995ms 138ms 17 51 8s895ms 174ms 19 5 654ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (270463, 3, 257051)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 13:57:34 Duration: 1s18ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189474, 188804, 189486)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 12:58:42 Duration: 1s14ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (210041, 209612, 209857, 209230, 209497, 209326, 209309, 209668, 209360, 209227, 209357, 209323, 209382, 209334, 209384, 209329, 209344, 209253, 209339, 209199, 209226, 209231, 209195, 209188, 209220, 209324, 209565, 209367, 209493, 209340, 209313, 209511, 209502, 209347, 209311, 209391, 209403, 209527, 209251, 209528, 209221, 209525, 209507, 209436, 209266, 209568, 209566, 209310, 209280, 209464, 209252, 209302, 209506, 209225, 209457, 209480, 209200, 209487, 209571, 209317, 209556, 209447, 209515, 209196, 209299, 209485, 209573, 209389, 209342, 209328, 209558, 209479, 209264, 209545, 209273, 209212, 209176, 209537, 209415, 209182, 209242, 209372, 209366, 209437, 209435, 209554, 209451, 209559, 209185, 209538, 209207, 209398, 209327, 209529, 209862, 209518, 209512, 209279, 209321, 209209, 209572, 209446, 209425, 209483, 209173, 209343, 209262, 209189, 209191, 209555, 209346, 209392, 209413, 209303, 209526, 209521, 209306, 209261, 209219, 209174, 209203, 209503, 209256, 209315, 209277, 209276, 209474, 209567, 209228, 209318, 209359, 209270, 209563, 209314, 209469, 209206, 209322, 209179, 209494, 209442, 209281, 209250, 209267, 209471, 209470, 209325, 209298, 209243, 209520, 209304, 209316, 209319, 209424, 209365, 209472, 209214, 209232, 209345, 209331, 209183, 209268, 209177, 209434, 209441, 209456, 209194, 209462, 209484, 209358, 209423, 209496, 209495, 209513, 209180, 209229, 209412, 209193, 209488, 209519, 209492, 209278, 209284, 209524, 209187, 209338, 209307, 209505, 209201, 209190, 209332, 209286, 209211, 209482, 209259, 209272, 209440, 209501, 209258, 209265, 209247, 209282)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 11:18:06 Duration: 839ms
11 3,324 49m14s 698ms 2s856ms 888ms 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 Oct 07 07 165 2m8s 781ms 08 530 7m59s 905ms 09 417 6m43s 967ms 10 467 7m21s 946ms 11 405 5m56s 880ms 12 263 3m50s 876ms 13 309 4m26s 860ms 14 338 4m51s 862ms 15 267 3m46s 847ms 16 122 1m37s 797ms 17 41 32s190ms 785ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%654%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%6.5-4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%6.5-4%'))) AND ("product_product__product_tmpl_id"."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-10-07 13:47:10 Duration: 2s856ms
-
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 ('%%spl250%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl250%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl250%'))) 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-10-07 14:00:26 Duration: 2s828ms
-
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 ('%%spl%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl%'))) 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-10-07 13:59:27 Duration: 2s699ms
12 3,136 9m44s 166ms 570ms 186ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 07 21 48 8s259ms 172ms 22 126 21s882ms 173ms 05 15 2s549ms 169ms 06 6 1s31ms 171ms 07 93 16s665ms 179ms 08 271 49s596ms 183ms 09 676 2m9s 191ms 10 331 1m4s 193ms 11 295 55s208ms 187ms 12 170 31s632ms 186ms 13 295 54s873ms 186ms 14 338 1m2s 185ms 15 234 43s681ms 186ms 16 177 31s765ms 179ms 17 61 10s933ms 179ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 208652 AND warehouse_id = 35;
Date: 2024-10-07 13:46:30 Duration: 570ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 193938 AND warehouse_id = 46;
Date: 2024-10-07 14:32:34 Duration: 393ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 43;
Date: 2024-10-07 14:37:29 Duration: 381ms
13 3,062 10m24s 169ms 1s46ms 203ms 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 Oct 07 08 39 7s540ms 193ms 09 751 2m46s 222ms 10 1,417 4m47s 203ms 11 27 5s252ms 194ms 13 208 39s580ms 190ms 14 142 27s79ms 190ms 15 129 25s278ms 195ms 16 331 1m1s 185ms 17 18 3s349ms 186ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209914) and warehouse_id = (36));
Date: 2024-10-07 13:51:33 Duration: 1s46ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209324) and warehouse_id = (35));
Date: 2024-10-07 13:47:12 Duration: 673ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209633) and warehouse_id = (36));
Date: 2024-10-07 13:51:32 Duration: 665ms
14 3,006 9m27s 166ms 774ms 188ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 07 21 24 4s198ms 174ms 22 71 12s475ms 175ms 05 6 1s59ms 176ms 06 2 347ms 173ms 07 195 35s579ms 182ms 08 272 51s471ms 189ms 09 373 1m11s 192ms 10 326 1m5s 201ms 11 304 56s998ms 187ms 12 311 57s320ms 184ms 13 422 1m18s 185ms 14 270 51s38ms 189ms 15 252 49s706ms 197ms 16 158 28s79ms 177ms 17 20 3s472ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 173817 AND warehouse_id = 41;
Date: 2024-10-07 19:21:21 Duration: 774ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 247784 AND warehouse_id = 41;
Date: 2024-10-07 19:21:22 Duration: 741ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 265694 AND warehouse_id = 43;
Date: 2024-10-07 13:44:55 Duration: 684ms
15 2,815 42m31s 365ms 2s560ms 906ms select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 07 07 264 2m19s 528ms 08 426 4m53s 689ms 09 2,013 33m18s 992ms 10 112 1m59s 1s71ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:58 Duration: 2s560ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s499ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s357ms
16 2,487 7m54s 170ms 1s35ms 190ms update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 07 21 8 1s392ms 174ms 22 16 2s819ms 176ms 05 1 174ms 174ms 06 1 173ms 173ms 07 226 40s618ms 179ms 08 342 1m5s 192ms 09 732 2m25s 198ms 10 146 28s987ms 198ms 11 126 23s976ms 190ms 12 120 22s653ms 188ms 13 136 25s694ms 188ms 14 203 39s393ms 194ms 15 139 25s716ms 185ms 16 279 49s759ms 178ms 17 12 2s119ms 176ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) WHERE product_id = 211762 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 13:26:04 Duration: 1s35ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(11.0, 0) + COALESCE(0.0, 0) WHERE product_id = 177857 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 18:03:15 Duration: 787ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(9.0, 0) + COALESCE(8.0, 0) WHERE product_id = 190611 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-07 13:57:32 Duration: 782ms
17 2,477 6m5s 120ms 1s188ms 147ms 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 #17
Day Hour Count Duration Avg duration Oct 07 06 1 127ms 127ms 07 115 15s133ms 131ms 08 331 45s896ms 138ms 09 563 1m37s 172ms 10 193 28s2ms 145ms 11 239 33s865ms 141ms 12 199 28s754ms 144ms 13 213 28s931ms 135ms 14 384 53s683ms 139ms 15 239 33s925ms 141ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 203982)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-07 13:50:40 Duration: 1s188ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 200776)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-07 13:50:41 Duration: 671ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 35) AND ("product_warehouse_inventory"."product_id" = 198510)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-07 13:50:40 Duration: 601ms
18 2,474 24m4s 496ms 2s438ms 583ms 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 #18
Day Hour Count Duration Avg duration Oct 07 03 3 1s676ms 558ms 04 8 4s263ms 532ms 05 12 6s103ms 508ms 06 16 8s103ms 506ms 07 174 1m33s 538ms 08 305 2m54s 573ms 09 355 3m40s 620ms 10 302 3m7s 620ms 11 295 2m52s 583ms 12 216 2m4s 575ms 13 240 2m14s 559ms 14 271 2m40s 591ms 15 190 1m50s 584ms 16 78 41s88ms 526ms 17 3 1s524ms 508ms 18 4 2s19ms 504ms 19 2 1s35ms 517ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 13:47:12 Duration: 2s438ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 18:28:48 Duration: 2s249ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5826980/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 14:00:26 Duration: 2s145ms
19 2,469 6m39s 120ms 851ms 161ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 07 05 1 241ms 241ms 07 30 4s262ms 142ms 08 194 31s405ms 161ms 09 643 1m49s 170ms 10 333 52s50ms 156ms 11 208 31s191ms 149ms 12 241 36s789ms 152ms 13 252 41s562ms 164ms 14 317 51s736ms 163ms 15 226 37s449ms 165ms 16 23 3s662ms 159ms 18 1 121ms 121ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:40 Duration: 851ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-cc80a45/web.assets_frontend_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:39 Duration: 777ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-aedec04/web.assets_common_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:40 Duration: 747ms
20 2,097 5m24s 120ms 843ms 154ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 07 21 1 125ms 125ms 22 3 400ms 133ms 05 1 125ms 125ms 07 54 7s926ms 146ms 08 224 34s265ms 152ms 09 473 1m17s 164ms 10 341 54s643ms 160ms 11 200 30s219ms 151ms 12 194 27s995ms 144ms 13 217 31s886ms 146ms 14 213 32s830ms 154ms 15 150 22s885ms 152ms 16 21 2s912ms 138ms 17 5 607ms 121ms -
select id from product_warehouse_inventory where product_id = 257388 and warehouse_id = 46 and company_id = 1;
Date: 2024-10-07 19:27:41 Duration: 843ms
-
select id from product_warehouse_inventory where product_id = 176847 and warehouse_id = 44 and company_id = 1;
Date: 2024-10-07 18:18:34 Duration: 720ms
-
select id from product_warehouse_inventory where product_id = 184559 and warehouse_id = 41 and company_id = 1;
Date: 2024-10-07 14:26:03 Duration: 699ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 906ms 3s756ms 1s61ms 816 14m26s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 07 06 1 944ms 944ms 07 19 18s229ms 959ms 08 78 1m22s 1s55ms 09 84 1m40s 1s197ms 10 132 2m23s 1s83ms 11 97 1m41s 1s43ms 12 69 1m12s 1s55ms 13 105 1m49s 1s42ms 14 80 1m21s 1s18ms 15 117 2m3s 1s51ms 16 34 33s352ms 980ms -
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 ('%tmr674%')) 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 ('%tmr674%'))) 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 ('%tmr674%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%tmr674%')))))) 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-10-07 13:47:12 Duration: 3s756ms
-
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 ('%lfh4910%')) 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 ('%lfh4910%'))) 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 ('%lfh4910%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%lfh4910%')))))) 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-10-07 19:27:41 Duration: 2s614ms
-
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 ('%dt-albm6600%')) 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 ('%dt-albm6600%'))) 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 ('%dt-albm6600%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%dt-albm6600%')))))) 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-10-07 15:26:06 Duration: 2s385ms
2 365ms 2s560ms 906ms 2,815 42m31s select id from product_warehouse_inventory where coalesce(loc_check_qty, ?) < coalesce(max_product_uom_qty, ?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 07 07 264 2m19s 528ms 08 426 4m53s 689ms 09 2,013 33m18s 992ms 10 112 1m59s 1s71ms -
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:58 Duration: 2s560ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s499ms
-
select id from product_warehouse_inventory where COALESCE(loc_check_qty, 0) < COALESCE(max_product_uom_qty, 0);
Date: 2024-10-07 13:44:59 Duration: 2s357ms
3 721ms 2s899ms 891ms 1,104 16m23s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 07 07 120 1m37s 816ms 08 16 12s841ms 802ms 09 230 3m36s 940ms 10 133 2m9s 971ms 11 61 52s233ms 856ms 12 107 1m27s 821ms 13 196 2m47s 853ms 14 53 54s530ms 1s28ms 15 188 2m45s 881ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = '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 ('%%g34200%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g34200%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g34200%'))) 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-10-07 18:58:00 Duration: 2s899ms
-
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 ('%%PRICE%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%PRICE%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%PRICE%'))) 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-10-07 19:04:44 Duration: 2s613ms
-
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 ('%%g342000606%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%g34200-0606%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%g34200-0606%'))) 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-10-07 18:58:00 Duration: 2s427ms
4 698ms 2s856ms 888ms 3,324 49m14s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 07 07 165 2m8s 781ms 08 530 7m59s 905ms 09 417 6m43s 967ms 10 467 7m21s 946ms 11 405 5m56s 880ms 12 263 3m50s 876ms 13 309 4m26s 860ms 14 338 4m51s 862ms 15 267 3m46s 847ms 16 122 1m37s 797ms 17 41 32s190ms 785ms -
SELECT product_product.id FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") LEFT JOIN "ir_translation" AS "product_product__product_tmpl_id__name" ON ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" AND "product_product__product_tmpl_id__name"."type" = 'model' AND "product_product__product_tmpl_id__name"."name" = 'product.template,name' AND "product_product__product_tmpl_id__name"."lang" = 'en_US' AND "product_product__product_tmpl_id__name"."value" != '') WHERE ((("product_product"."active" = true) AND (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent ('%%654%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%6.5-4%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%6.5-4%'))) AND ("product_product__product_tmpl_id"."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-10-07 13:47:10 Duration: 2s856ms
-
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 ('%%spl250%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl250%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl250%'))) 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-10-07 14:00:26 Duration: 2s828ms
-
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 ('%%spl%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%spl%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%spl%'))) 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-10-07 13:59:27 Duration: 2s699ms
5 496ms 2s438ms 583ms 2,474 24m4s select "ir_attachment".id from "ir_attachment" where (("ir_attachment"."res_field" is null and (unaccent ("ir_attachment"."url"::text) like unaccent (?))) and (not ((unaccent ("ir_attachment"."url"::text) like unaccent (?))))) order by "ir_attachment"."id" desc;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 07 03 3 1s676ms 558ms 04 8 4s263ms 532ms 05 12 6s103ms 508ms 06 16 8s103ms 506ms 07 174 1m33s 538ms 08 305 2m54s 573ms 09 355 3m40s 620ms 10 302 3m7s 620ms 11 295 2m52s 583ms 12 216 2m4s 575ms 13 240 2m14s 559ms 14 271 2m40s 591ms 15 190 1m50s 584ms 16 78 41s88ms 526ms 17 3 1s524ms 508ms 18 4 2s19ms 504ms 19 2 1s35ms 517ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 13:47:12 Duration: 2s438ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 18:28:48 Duration: 2s249ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-5826980/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-07 14:00:26 Duration: 2s145ms
6 378ms 2s698ms 414ms 8,255 57m1s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 07 21 169 1m5s 389ms 22 465 3m1s 390ms 04 1 402ms 402ms 05 26 10s79ms 387ms 06 8 3s88ms 386ms 07 455 3m4s 404ms 08 733 5m4s 415ms 09 1,338 9m29s 425ms 10 729 5m13s 430ms 11 770 5m20s 416ms 12 634 4m23s 416ms 13 801 5m30s 412ms 14 932 6m26s 414ms 15 602 4m12s 419ms 16 470 3m6s 396ms 17 122 47s915ms 392ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 19:13:46 Duration: 2s698ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 15:56:15 Duration: 1s635ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-07 17:45:01 Duration: 1s478ms
7 302ms 3s452ms 369ms 8,254 50m52s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 07 21 169 54s5ms 319ms 22 465 2m29s 322ms 04 1 324ms 324ms 05 26 8s319ms 319ms 06 8 2s552ms 319ms 07 455 2m33s 337ms 08 733 4m30s 369ms 09 1,338 8m49s 395ms 10 729 4m56s 407ms 11 770 4m45s 370ms 12 633 3m53s 369ms 13 801 4m54s 367ms 14 932 5m48s 374ms 15 602 3m41s 368ms 16 470 2m41s 343ms 17 122 40s361ms 330ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 18:16:23 Duration: 3s452ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:20:51 Duration: 2s705ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-07 13:54:54 Duration: 2s580ms
8 218ms 3s143ms 316ms 1,505 7m55s 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 #8
Day Hour Count Duration Avg duration Oct 07 03 2 489ms 244ms 04 2 481ms 240ms 05 8 1s914ms 239ms 06 5 1s218ms 243ms 07 26 6s502ms 250ms 08 174 52s480ms 301ms 09 233 1m19s 341ms 10 176 1m1s 348ms 11 185 54s859ms 296ms 12 222 1m9s 314ms 13 151 47s804ms 316ms 14 131 42s695ms 325ms 15 156 47s786ms 306ms 16 32 8s228ms 257ms 17 2 490ms 245ms -
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 (1694737)) 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-10-07 13:49:00 Duration: 3s143ms
-
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 (1696215)) 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-10-07 17:50:42 Duration: 2s716ms
-
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 (1694731)) 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-10-07 13:47:09 Duration: 2s294ms
9 127ms 3s306ms 212ms 121,181 7h8m31s 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 #9
Day Hour Count Duration Avg duration Oct 07 20 2,486 6m3s 146ms 21 2,651 6m21s 144ms 22 2,547 6m19s 149ms 23 2,440 5m53s 144ms 00 2,275 5m44s 151ms 01 2,393 5m50s 146ms 02 2,465 6m3s 147ms 03 2,464 5m56s 144ms 04 2,902 7m13s 149ms 05 2,754 7m9s 156ms 06 3,169 7m43s 146ms 07 5,005 14m25s 172ms 08 8,329 33m50s 243ms 09 9,373 46m10s 295ms 10 9,772 38m49s 238ms 11 9,469 37m37s 238ms 12 9,032 34m59s 232ms 13 9,231 34m41s 225ms 14 8,489 36m23s 257ms 15 7,839 35m28s 271ms 16 5,320 18m9s 204ms 17 3,977 10m14s 154ms 18 3,504 8m54s 152ms 19 3,295 8m25s 153ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1011"', '["pointspring_master","calendar.alarm",19549]', '["pointspring_master","mail.channel",445]', '["pointspring_master","mail.channel",446]', '["pointspring_master","mail.channel",447]', '["pointspring_master","res.partner",19549]', '["pointspring_master","ir.needaction",19549]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s306ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1006"', '["pointspring_master","calendar.alarm",19544]', '["pointspring_master","mail.channel",243]', '["pointspring_master","mail.channel",244]', '["pointspring_master","mail.channel",245]', '["pointspring_master","mail.channel",537]', '["pointspring_master","mail.channel",541]', '["pointspring_master","mail.channel",597]', '["pointspring_master","res.partner",19544]', '["pointspring_master","ir.needaction",19544]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s297ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-07 13:49:48') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1045"', '["pointspring_master","calendar.alarm",19583]', '["pointspring_master","res.partner",19583]', '["pointspring_master","ir.needaction",19583]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-07 13:50:41 Duration: 3s289ms
10 165ms 978ms 206ms 4,831 16m36s 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 #10
Day Hour Count Duration Avg duration Oct 07 21 134 24s13ms 179ms 22 317 56s13ms 176ms 07 2 387ms 193ms 08 108 23s88ms 213ms 09 309 1m17s 252ms 10 619 2m20s 226ms 11 408 1m27s 215ms 12 757 2m35s 204ms 13 694 2m25s 209ms 14 307 1m1s 199ms 15 178 39s75ms 219ms 16 831 2m35s 187ms 17 167 30s856ms 184ms -
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 = 53253 and fd.product_id = 184587;
Date: 2024-10-07 13:54:58 Duration: 978ms
-
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 = 53077 and fd.product_id = 209272;
Date: 2024-10-07 15:03:28 Duration: 934ms
-
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 = 53077 and fd.product_id = 209227;
Date: 2024-10-07 13:46:30 Duration: 782ms
11 169ms 1s46ms 203ms 3,062 10m24s 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 #11
Day Hour Count Duration Avg duration Oct 07 08 39 7s540ms 193ms 09 751 2m46s 222ms 10 1,417 4m47s 203ms 11 27 5s252ms 194ms 13 208 39s580ms 190ms 14 142 27s79ms 190ms 15 129 25s278ms 195ms 16 331 1m1s 185ms 17 18 3s349ms 186ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209914) and warehouse_id = (36));
Date: 2024-10-07 13:51:33 Duration: 1s46ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209324) and warehouse_id = (35));
Date: 2024-10-07 13:47:12 Duration: 673ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209633) and warehouse_id = (36));
Date: 2024-10-07 13:51:32 Duration: 665ms
12 168ms 1s86ms 191ms 5,086 16m12s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 07 21 1 175ms 175ms 05 43 7s522ms 174ms 06 19 3s310ms 174ms 07 294 53s175ms 180ms 08 467 1m27s 188ms 09 784 2m34s 197ms 10 645 2m6s 196ms 11 541 1m42s 189ms 12 445 1m24s 188ms 13 767 2m27s 191ms 14 521 1m38s 188ms 15 450 1m27s 193ms 16 104 19s728ms 189ms 17 5 892ms 178ms -
UPDATE product_warehouse_inventory SET qty_available = 12.0 WHERE product_id = 184037 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-07 14:34:08 Duration: 1s86ms
-
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 190945 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:59 Duration: 767ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 261331 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 17:59:58 Duration: 733ms
13 170ms 1s35ms 190ms 2,487 7m54s update product_warehouse_inventory set rep_loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 07 21 8 1s392ms 174ms 22 16 2s819ms 176ms 05 1 174ms 174ms 06 1 173ms 173ms 07 226 40s618ms 179ms 08 342 1m5s 192ms 09 732 2m25s 198ms 10 146 28s987ms 198ms 11 126 23s976ms 190ms 12 120 22s653ms 188ms 13 136 25s694ms 188ms 14 203 39s393ms 194ms 15 139 25s716ms 185ms 16 279 49s759ms 178ms 17 12 2s119ms 176ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(7.0, 0) + COALESCE(0.0, 0) WHERE product_id = 211762 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 13:26:04 Duration: 1s35ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(11.0, 0) + COALESCE(0.0, 0) WHERE product_id = 177857 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 18:03:15 Duration: 787ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(9.0, 0) + COALESCE(8.0, 0) WHERE product_id = 190611 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-07 13:57:32 Duration: 782ms
14 166ms 774ms 188ms 3,006 9m27s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 07 21 24 4s198ms 174ms 22 71 12s475ms 175ms 05 6 1s59ms 176ms 06 2 347ms 173ms 07 195 35s579ms 182ms 08 272 51s471ms 189ms 09 373 1m11s 192ms 10 326 1m5s 201ms 11 304 56s998ms 187ms 12 311 57s320ms 184ms 13 422 1m18s 185ms 14 270 51s38ms 189ms 15 252 49s706ms 197ms 16 158 28s79ms 177ms 17 20 3s472ms 173ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 173817 AND warehouse_id = 41;
Date: 2024-10-07 19:21:21 Duration: 774ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 247784 AND warehouse_id = 41;
Date: 2024-10-07 19:21:22 Duration: 741ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 265694 AND warehouse_id = 43;
Date: 2024-10-07 13:44:55 Duration: 684ms
15 165ms 1s397ms 187ms 12,197 38m4s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 07 21 341 59s501ms 174ms 22 1,000 2m53s 173ms 05 29 5s99ms 175ms 06 8 1s397ms 174ms 07 732 2m11s 179ms 08 1,100 3m26s 187ms 09 2,225 7m18s 197ms 10 933 3m1s 195ms 11 987 3m5s 188ms 12 823 2m34s 187ms 13 1,045 3m15s 186ms 14 1,159 3m39s 189ms 15 805 2m31s 187ms 16 852 2m31s 178ms 17 158 28s35ms 177ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(17.0, 0) + COALESCE(0.0, 0) - COALESCE(6.0, 0) WHERE product_id = 190563 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-10-07 13:50:40 Duration: 1s397ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(8.0, 0) + COALESCE(6.0, 0) - COALESCE(2.0, 0) WHERE product_id = 199530 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-07 14:21:06 Duration: 1s210ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 190563 AND warehouse_id = 38 AND company_id = 1;
Date: 2024-10-07 13:50:41 Duration: 1s172ms
16 166ms 570ms 186ms 3,136 9m44s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 07 21 48 8s259ms 172ms 22 126 21s882ms 173ms 05 15 2s549ms 169ms 06 6 1s31ms 171ms 07 93 16s665ms 179ms 08 271 49s596ms 183ms 09 676 2m9s 191ms 10 331 1m4s 193ms 11 295 55s208ms 187ms 12 170 31s632ms 186ms 13 295 54s873ms 186ms 14 338 1m2s 185ms 15 234 43s681ms 186ms 16 177 31s765ms 179ms 17 61 10s933ms 179ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 208652 AND warehouse_id = 35;
Date: 2024-10-07 13:46:30 Duration: 570ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 193938 AND warehouse_id = 46;
Date: 2024-10-07 14:32:34 Duration: 393ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 43;
Date: 2024-10-07 14:37:29 Duration: 381ms
17 166ms 1s25ms 185ms 8,327 25m46s update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 07 05 41 7s135ms 174ms 06 16 2s757ms 172ms 07 661 1m58s 179ms 08 606 1m52s 186ms 09 913 2m50s 187ms 10 789 2m30s 190ms 11 655 2m3s 188ms 12 701 2m11s 186ms 13 807 2m31s 187ms 14 1,385 4m14s 184ms 15 1,259 3m54s 185ms 16 481 1m27s 182ms 17 13 2s261ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 269342 and warehouse_id = 36 and company_id = 1;
Date: 2024-10-07 12:58:41 Duration: 1s25ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1.0 IS NOT NULL THEN GREATEST ((110.0 - 110.0) + (1.0 - 1.0), 0) ELSE GREATEST ((110.0 - 110.0), 0) END where product_id = 184922 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-07 15:10:17 Duration: 643ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 64.0 IS NOT NULL THEN GREATEST ((60.0 - 60.0) + (64.0 - 64.0), 0) ELSE GREATEST ((60.0 - 60.0), 0) END where product_id = 186750 and warehouse_id = 35 and company_id = 1;
Date: 2024-10-07 13:43:32 Duration: 508ms
18 120ms 1s267ms 183ms 4,604 14m3s 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 #18
Day Hour Count Duration Avg duration Oct 07 07 593 1m38s 165ms 08 616 1m58s 191ms 09 672 2m29s 222ms 10 280 55s763ms 199ms 11 429 1m15s 175ms 12 469 1m18s 167ms 13 410 1m17s 188ms 14 715 2m6s 176ms 15 420 1m4s 153ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 184587) 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" = '44')))))) 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-10-07 13:50:40 Duration: 1s267ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 183505) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 13:50:39 Duration: 1s135ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 172573) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '40')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-07 16:28:48 Duration: 1s66ms
19 120ms 1s18ms 174ms 3,365 9m48s 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 #19
Day Hour Count Duration Avg duration Oct 07 21 93 14s567ms 156ms 22 153 28s566ms 186ms 05 1 124ms 124ms 07 254 1m37s 383ms 08 383 55s410ms 144ms 09 457 1m14s 163ms 10 535 1m32s 172ms 11 368 58s856ms 159ms 12 275 41s707ms 151ms 13 238 34s862ms 146ms 14 262 38s275ms 146ms 15 189 27s629ms 146ms 16 101 13s995ms 138ms 17 51 8s895ms 174ms 19 5 654ms 130ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (270463, 3, 257051)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 13:57:34 Duration: 1s18ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (189474, 188804, 189486)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 12:58:42 Duration: 1s14ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (210041, 209612, 209857, 209230, 209497, 209326, 209309, 209668, 209360, 209227, 209357, 209323, 209382, 209334, 209384, 209329, 209344, 209253, 209339, 209199, 209226, 209231, 209195, 209188, 209220, 209324, 209565, 209367, 209493, 209340, 209313, 209511, 209502, 209347, 209311, 209391, 209403, 209527, 209251, 209528, 209221, 209525, 209507, 209436, 209266, 209568, 209566, 209310, 209280, 209464, 209252, 209302, 209506, 209225, 209457, 209480, 209200, 209487, 209571, 209317, 209556, 209447, 209515, 209196, 209299, 209485, 209573, 209389, 209342, 209328, 209558, 209479, 209264, 209545, 209273, 209212, 209176, 209537, 209415, 209182, 209242, 209372, 209366, 209437, 209435, 209554, 209451, 209559, 209185, 209538, 209207, 209398, 209327, 209529, 209862, 209518, 209512, 209279, 209321, 209209, 209572, 209446, 209425, 209483, 209173, 209343, 209262, 209189, 209191, 209555, 209346, 209392, 209413, 209303, 209526, 209521, 209306, 209261, 209219, 209174, 209203, 209503, 209256, 209315, 209277, 209276, 209474, 209567, 209228, 209318, 209359, 209270, 209563, 209314, 209469, 209206, 209322, 209179, 209494, 209442, 209281, 209250, 209267, 209471, 209470, 209325, 209298, 209243, 209520, 209304, 209316, 209319, 209424, 209365, 209472, 209214, 209232, 209345, 209331, 209183, 209268, 209177, 209434, 209441, 209456, 209194, 209462, 209484, 209358, 209423, 209496, 209495, 209513, 209180, 209229, 209412, 209193, 209488, 209519, 209492, 209278, 209284, 209524, 209187, 209338, 209307, 209505, 209201, 209190, 209332, 209286, 209211, 209482, 209259, 209272, 209440, 209501, 209258, 209265, 209247, 209282)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-07 11:18:06 Duration: 839ms
20 120ms 851ms 161ms 2,469 6m39s select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 07 05 1 241ms 241ms 07 30 4s262ms 142ms 08 194 31s405ms 161ms 09 643 1m49s 170ms 10 333 52s50ms 156ms 11 208 31s191ms 149ms 12 241 36s789ms 152ms 13 252 41s562ms 164ms 14 317 51s736ms 163ms 15 226 37s449ms 165ms 16 23 3s662ms 159ms 18 1 121ms 121ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-8fbdc68/web.assets_common_lazy.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:40 Duration: 851ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-cc80a45/web.assets_frontend_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:39 Duration: 777ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-aedec04/web.assets_common_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-10-07 13:50:40 Duration: 747ms
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
- 263,214 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1637 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1,049 Max number of times the same event was reported
- 1,637 Total events found
Rank Times reported Error 1 1,049 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 07 20 35 21 31 22 27 23 30 00 38 01 35 02 28 03 115 04 95 05 32 06 37 07 40 08 38 09 45 10 43 11 39 12 39 13 37 14 38 15 37 16 35 17 33 18 33 19 89 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-10-07 21:50:10
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-10-07 22:00:02
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=93 FOR UPDATE NOWAIT
Date: 2024-10-07 22:19:14
2 554 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Oct 07 21 1 22 4 23 11 00 39 01 35 02 29 03 12 04 9 06 4 07 36 08 73 09 62 10 42 11 35 12 34 13 26 14 31 15 44 16 25 18 1 19 1 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-07 22:01:54',"last_presence"='2024-10-07 22:01:54.819268' WHERE id IN (24)
Date: 2024-10-07 22:01:54
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-07 08:28:50' WHERE id IN (240)
Date: 2024-10-07 08:28:50
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-07 08:29:40' WHERE id IN (240)
Date: 2024-10-07 08:29:40
3 17 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Oct 07 08 4 09 1 10 5 11 1 12 1 13 1 15 4 - ERROR: process 293755 still waiting for ShareLock on transaction 313835109 after 1000.064 ms
- ERROR: process 3804487 still waiting for ShareLock on transaction 313836371 after 1000.047 ms
- ERROR: process 246204 still waiting for ShareLock on transaction 313837143 after 1000.040 ms
Detail: Process holding the lock: 3719518. Wait queue: 293755.
Context: while updating tuple (36281,7) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1694291 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 != 1694291 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-07 12:55:21
Detail: Process holding the lock: 3801984. Wait queue: 3804487.
Context: while updating tuple (36267,20) 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 != 1694317 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 != 1694317 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-07 12:57:30
Detail: Process holding the lock: 3801984. Wait queue: 246204.
Context: while updating tuple (36264,27) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5748593,"write_uid"=1267,"write_date"=(now() at time zone 'UTC') WHERE id IN (1694327)Date: 2024-10-07 12:59:14
4 4 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #4
Day Hour Count Oct 07 03 1 08 2 12 1 - ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM monthly_statement_line WHERE id IN (1264751, 1264749, 1264750, 1264752)
Date: 2024-10-07 07:57:24
Statement: DELETE FROM mail_message WHERE id IN (18845238)
Date: 2024-10-07 16:40:18
Statement: DELETE FROM monthly_statement_line WHERE id IN (1266103, 1266096, 1266097, 1266098, 1266099, 1266101, 1266100, 1266104, 1266102)
Date: 2024-10-07 12:27:16
5 3 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Oct 07 07 2 13 1 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
Detail: Key (partner_id)=(19545) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1007, (now() at time zone 'UTC'), 1007, (now() at time zone 'UTC'), '0ed9f28c77e644a19868d70ff270dbbc', true, NULL, 1, '2024-10-07 17:48:49', 'Lynette Fisher', 19545, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-07 17:48:49
Detail: Key (partner_id)=(19495) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 957, (now() at time zone 'UTC'), 957, (now() at time zone 'UTC'), '724867eecd814550a17dfb2f1230f556', true, NULL, 1, '2024-10-07 11:04:37', 'Brian Huber', 19495, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-07 11:04:37
Detail: Key (partner_id)=(42087) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1147, (now() at time zone 'UTC'), 1147, (now() at time zone 'UTC'), '7a23aa07b8574548b7ee0629230d2f56', true, NULL, 1, '2024-10-07 11:43:32', 'Lander Enterprises LLC', 42087, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-07 11:43:32
6 3 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Oct 07 07 3 - ERROR: syntax error at or near "409" at character 104
Statement: select max(id) from sale_history_line where (product_name is not null and product_name ilike '5" X 25' 409 Stainless Flex' and inventory_short_vendor_name ='Grand Rock') or (product_id=247069) group by product_name
Date: 2024-10-07 11:59:00
7 3 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #7
Day Hour Count Oct 07 08 1 11 1 16 1 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT value FROM ir_translation WHERE lang='en_US' AND type in ('code') AND src='%s' AND md5(src)=md5('%s')
Date: 2024-10-07 15:45:40
Statement: SELECT "account_move"."id" as "id", "account_move"."name" as "name", "account_move"."date" as "date", "account_move"."ref" as "ref", "account_move"."narration" as "narration", "account_move"."posted_before" as "posted_before", "account_move"."move_type" as "move_type", "account_move"."to_check" as "to_check", "account_move"."journal_id" as "journal_id", "account_move"."company_id" as "company_id", "account_move"."currency_id" as "currency_id", "account_move"."partner_id" as "partner_id", "account_move"."is_move_sent" as "is_move_sent", "account_move"."partner_bank_id" as "partner_bank_id", "account_move"."payment_reference" as "payment_reference", "account_move"."payment_id" as "payment_id", "account_move"."statement_line_id" as "statement_line_id", "account_move"."amount_untaxed" as "amount_untaxed", "account_move"."amount_tax" as "amount_tax", "account_move"."amount_total" as "amount_total", "account_move"."amount_residual" as "amount_residual", "account_move"."amount_untaxed_signed" as "amount_untaxed_signed", "account_move"."amount_tax_signed" as "amount_tax_signed", "account_move"."amount_total_signed" as "amount_total_signed", "account_move"."amount_residual_signed" as "amount_residual_signed", "account_move"."payment_state" as "payment_state", "account_move"."tax_cash_basis_rec_id" as "tax_cash_basis_rec_id", "account_move"."tax_cash_basis_move_id" as "tax_cash_basis_move_id", "account_move"."auto_post" as "auto_post", "account_move"."reversed_entry_id" as "reversed_entry_id", "account_move"."fiscal_position_id" as "fiscal_position_id", "account_move"."invoice_user_id" as "invoice_user_id", "account_move"."invoice_date" as "invoice_date", "account_move"."invoice_date_due" as "invoice_date_due", "account_move"."invoice_origin" as "invoice_origin", "account_move"."invoice_incoterm_id" as "invoice_incoterm_id", "account_move"."qr_code_method" as "qr_code_method", "account_move"."invoice_source_email" as "invoice_source_email", "account_move"."invoice_partner_display_name" as "invoice_partner_display_name", "account_move"."invoice_cash_rounding_id" as "invoice_cash_rounding_id", "account_move"."secure_sequence_number" as "secure_sequence_number", "account_move"."inalterable_hash" as "inalterable_hash", "account_move"."payment_state_before_switch" as "payment_state_before_switch", "account_move"."preferred_payment_method_id" as "preferred_payment_method_id", "account_move"."debit_origin_id" as "debit_origin_id", "account_move"."duplicated_vendor_ref" as "duplicated_vendor_ref", "account_move"."extract_state" as "extract_state", "account_move"."extract_status_code" as "extract_status_code", "account_move"."extract_remote_id" as "extract_remote_id", "account_move"."sequence_generated" as "sequence_generated", "account_move"."stock_move_id" as "stock_move_id", "account_move"."release_to_pay" as "release_to_pay", "account_move"."release_to_pay_manual" as "release_to_pay_manual", "account_move"."force_release_to_pay" as "force_release_to_pay", "account_move"."transfer_model_id" as "transfer_model_id", "account_move"."tax_closing_end_date" as "tax_closing_end_date", "account_move"."tax_report_control_error" as "tax_report_control_error", "account_move"."team_id" as "team_id", "account_move"."partner_shipping_id" as "partner_shipping_id", "account_move"."asset_id" as "asset_id", "account_move"."asset_remaining_value" as "asset_remaining_value", "account_move"."asset_depreciated_value" as "asset_depreciated_value", "account_move"."asset_manually_modified" as "asset_manually_modified", "account_move"."asset_value_change" as "asset_value_change", "account_move"."website_id" as "website_id", "account_move"."state" as "state", "account_move"."branch_id" as "branch_id", "account_move"."auto_reconcile" as "auto_reconcile", "account_move"."branch_name" as "branch_name", "account_move"."invoice_action" as "invoice_action", "account_move"."sign_amount_total" as "sign_amount_total", "account_move"."sign_amount_residual" as "sign_amount_residual", "account_move"."sign_amount_untaxed" as "sign_amount_untaxed", "account_move"."invoice_part_id" as "invoice_part_id", "account_move"."invoice_product_qty" as "invoice_product_qty", "account_move"."balance_entry" as "balance_entry", "account_move"."to_check_negative" as "to_check_negative", "account_move"."non_inventory_entry" as "non_inventory_entry", "account_move"."direct_order" as "direct_order", "account_move"."warranty_invoice" as "warranty_invoice", "account_move"."email_send_eod" as "email_send_eod", "account_move"."email_sent" as "email_sent", "account_move"."payment_details" as "payment_details", "account_move"."payment_details_compute" as "payment_details_compute", "account_move"."carrier_id" as "carrier_id", "account_move"."order_type" as "order_type", "account_move"."paid_by_vc" as "paid_by_vc", "account_move"."expense_choice" as "expense_choice", "account_move"."cash_tendered" as "cash_tendered", "account_move"."change_amount" as "change_amount", "account_move"."open_invoice" as "open_invoice", "account_move"."commercial_partner_id" as "commercial_partner_id", "account_move"."partner_address_type" as "partner_address_type", "account_move"."from_ar" as "from_ar", "account_move"."invoice_payment_term_id" as "invoice_payment_term_id", "account_move"."related_payment_id" as "related_payment_id", "account_move"."discount_amount_applied" as "discount_amount_applied", "account_move"."invoice_origin_new" as "invoice_origin_new", "account_move"."edi_split_lock" as "edi_split_lock", "account_move"."is_edi_bill" as "is_edi_bill", "account_move"."edi_done_date" as "edi_done_date", "account_move"."edi_billed" as "edi_billed", "account_move"."edi_810_id" as "edi_810_id", "account_move"."campaign_id" as "campaign_id", "account_move"."source_id" as "source_id", "account_move"."medium_id" as "medium_id", "account_move"."message_main_attachment_id" as "message_main_attachment_id", "account_move"."access_token" as "access_token", "account_move"."sequence_prefix" as "sequence_prefix", "account_move"."sequence_number" as "sequence_number", "account_move"."create_uid" as "create_uid", "account_move"."create_date" as "create_date", "account_move"."write_uid" as "write_uid", "account_move"."write_date" as "write_date" FROM "account_move" WHERE "account_move".id IN (1696779)
Date: 2024-10-07 20:25:00
Statement: SELECT "account_move"."id" as "id", "account_move"."name" as "name", "account_move"."date" as "date", "account_move"."ref" as "ref", "account_move"."narration" as "narration", "account_move"."posted_before" as "posted_before", "account_move"."move_type" as "move_type", "account_move"."to_check" as "to_check", "account_move"."journal_id" as "journal_id", "account_move"."company_id" as "company_id", "account_move"."currency_id" as "currency_id", "account_move"."partner_id" as "partner_id", "account_move"."is_move_sent" as "is_move_sent", "account_move"."partner_bank_id" as "partner_bank_id", "account_move"."payment_reference" as "payment_reference", "account_move"."payment_id" as "payment_id", "account_move"."statement_line_id" as "statement_line_id", "account_move"."amount_untaxed" as "amount_untaxed", "account_move"."amount_tax" as "amount_tax", "account_move"."amount_total" as "amount_total", "account_move"."amount_residual" as "amount_residual", "account_move"."amount_untaxed_signed" as "amount_untaxed_signed", "account_move"."amount_tax_signed" as "amount_tax_signed", "account_move"."amount_total_signed" as "amount_total_signed", "account_move"."amount_residual_signed" as "amount_residual_signed", "account_move"."payment_state" as "payment_state", "account_move"."tax_cash_basis_rec_id" as "tax_cash_basis_rec_id", "account_move"."tax_cash_basis_move_id" as "tax_cash_basis_move_id", "account_move"."auto_post" as "auto_post", "account_move"."reversed_entry_id" as "reversed_entry_id", "account_move"."fiscal_position_id" as "fiscal_position_id", "account_move"."invoice_user_id" as "invoice_user_id", "account_move"."invoice_date" as "invoice_date", "account_move"."invoice_date_due" as "invoice_date_due", "account_move"."invoice_origin" as "invoice_origin", "account_move"."invoice_incoterm_id" as "invoice_incoterm_id", "account_move"."qr_code_method" as "qr_code_method", "account_move"."invoice_source_email" as "invoice_source_email", "account_move"."invoice_partner_display_name" as "invoice_partner_display_name", "account_move"."invoice_cash_rounding_id" as "invoice_cash_rounding_id", "account_move"."secure_sequence_number" as "secure_sequence_number", "account_move"."inalterable_hash" as "inalterable_hash", "account_move"."payment_state_before_switch" as "payment_state_before_switch", "account_move"."preferred_payment_method_id" as "preferred_payment_method_id", "account_move"."debit_origin_id" as "debit_origin_id", "account_move"."duplicated_vendor_ref" as "duplicated_vendor_ref", "account_move"."extract_state" as "extract_state", "account_move"."extract_status_code" as "extract_status_code", "account_move"."extract_remote_id" as "extract_remote_id", "account_move"."sequence_generated" as "sequence_generated", "account_move"."stock_move_id" as "stock_move_id", "account_move"."release_to_pay" as "release_to_pay", "account_move"."release_to_pay_manual" as "release_to_pay_manual", "account_move"."force_release_to_pay" as "force_release_to_pay", "account_move"."transfer_model_id" as "transfer_model_id", "account_move"."tax_closing_end_date" as "tax_closing_end_date", "account_move"."tax_report_control_error" as "tax_report_control_error", "account_move"."team_id" as "team_id", "account_move"."partner_shipping_id" as "partner_shipping_id", "account_move"."asset_id" as "asset_id", "account_move"."asset_remaining_value" as "asset_remaining_value", "account_move"."asset_depreciated_value" as "asset_depreciated_value", "account_move"."asset_manually_modified" as "asset_manually_modified", "account_move"."asset_value_change" as "asset_value_change", "account_move"."website_id" as "website_id", "account_move"."state" as "state", "account_move"."branch_id" as "branch_id", "account_move"."auto_reconcile" as "auto_reconcile", "account_move"."branch_name" as "branch_name", "account_move"."invoice_action" as "invoice_action", "account_move"."sign_amount_total" as "sign_amount_total", "account_move"."sign_amount_residual" as "sign_amount_residual", "account_move"."sign_amount_untaxed" as "sign_amount_untaxed", "account_move"."invoice_part_id" as "invoice_part_id", "account_move"."invoice_product_qty" as "invoice_product_qty", "account_move"."balance_entry" as "balance_entry", "account_move"."to_check_negative" as "to_check_negative", "account_move"."non_inventory_entry" as "non_inventory_entry", "account_move"."direct_order" as "direct_order", "account_move"."warranty_invoice" as "warranty_invoice", "account_move"."email_send_eod" as "email_send_eod", "account_move"."email_sent" as "email_sent", "account_move"."payment_details" as "payment_details", "account_move"."payment_details_compute" as "payment_details_compute", "account_move"."carrier_id" as "carrier_id", "account_move"."order_type" as "order_type", "account_move"."paid_by_vc" as "paid_by_vc", "account_move"."expense_choice" as "expense_choice", "account_move"."cash_tendered" as "cash_tendered", "account_move"."change_amount" as "change_amount", "account_move"."open_invoice" as "open_invoice", "account_move"."commercial_partner_id" as "commercial_partner_id", "account_move"."partner_address_type" as "partner_address_type", "account_move"."from_ar" as "from_ar", "account_move"."invoice_payment_term_id" as "invoice_payment_term_id", "account_move"."related_payment_id" as "related_payment_id", "account_move"."discount_amount_applied" as "discount_amount_applied", "account_move"."invoice_origin_new" as "invoice_origin_new", "account_move"."edi_split_lock" as "edi_split_lock", "account_move"."is_edi_bill" as "is_edi_bill", "account_move"."edi_done_date" as "edi_done_date", "account_move"."edi_billed" as "edi_billed", "account_move"."edi_810_id" as "edi_810_id", "account_move"."campaign_id" as "campaign_id", "account_move"."source_id" as "source_id", "account_move"."medium_id" as "medium_id", "account_move"."message_main_attachment_id" as "message_main_attachment_id", "account_move"."access_token" as "access_token", "account_move"."sequence_prefix" as "sequence_prefix", "account_move"."sequence_number" as "sequence_number", "account_move"."create_uid" as "create_uid", "account_move"."create_date" as "create_date", "account_move"."write_uid" as "write_uid", "account_move"."write_date" as "write_date" FROM "account_move" WHERE "account_move".id IN (1694047)
Date: 2024-10-07 12:26:40
8 2 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #8
Day Hour Count Oct 07 14 1 15 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (272530, null, d70865e4dzl0942077001, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 994, 2024-10-07 18:20:32.772538, 994, 2024-10-07 18:20:32.772538, 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, 497425, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-10-07, 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'), 994, (now() at time zone 'UTC'), 994, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-10-07', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'd70865e4dzl0942077001', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 497425, 1, 1) RETURNING idDate: 2024-10-07 18:20:32
Detail: Failing row contains (272535, null, trk-, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1012, 2024-10-07 19:22:57.499619, 1012, 2024-10-07 19:22:57.499619, 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, 497445, never, 0, , 45, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-10-07, 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'), 1012, (now() at time zone 'UTC'), 1012, (now() at time zone 'UTC'), true, false, 0.0, 45, NULL, 1, '', 'no', '2024-10-07', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'trk-', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 497445, 1, 1) RETURNING idDate: 2024-10-07 19:22:57
9 1 ERROR: update or delete on table "..." violates foreign key constraint "..." on table "..."
Times Reported Most Frequent Error / Event #9
Day Hour Count Oct 07 14 1 - ERROR: update or delete on table "res_partner" violates foreign key constraint "calendar_attendee_partner_id_fkey" on table "calendar_attendee"
Detail: Key (id)=(38281) is still referenced from table "calendar_attendee".
Statement: DELETE FROM res_partner WHERE id IN (38281)Date: 2024-10-07 18:05:49
10 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #10
Day Hour Count Oct 07 17 1