-
Global information
- Generated on Wed Jun 26 00:50:19 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 1,144,378 log entries in 18s
- Log start from 2024-06-25 00:00:00 to 2024-06-25 23:59:51
-
Overview
Global Stats
- 1,410 Number of unique normalized queries
- 302,996 Number of queries
- 1d16h27m10s Total query duration
- 2024-06-25 00:00:00 First query
- 2024-06-25 23:59:51 Last query
- 59 queries/s at 2024-06-25 12:46:08 Query peak
- 1d16h27m10s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1d16h27m10s Execute total duration
- 48,522 Number of events
- 11 Number of unique normalized events
- 34,790 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
- 302,996 Average queries per session
- 1d16h27m10s 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
- 59 queries/s Query Peak
- 2024-06-25 12:46:08 Date
SELECT Traffic
Key values
- 56 queries/s Query Peak
- 2024-06-25 12:46:08 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 33 queries/s Query Peak
- 2024-06-25 15:25:58 Date
Queries duration
Key values
- 1d16h27m10s 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) Jun 25 00 2,972 120ms 1s306ms 641ms 2m2s 2m2s 2m12s 01 693 120ms 903ms 232ms 9s958ms 13s792ms 21s98ms 02 775 120ms 873ms 229ms 9s822ms 13s487ms 17s816ms 03 1,035 120ms 788ms 223ms 12s947ms 16s240ms 33s416ms 04 798 120ms 1s374ms 215ms 9s1ms 13s882ms 16s163ms 05 844 120ms 789ms 182ms 3s897ms 12s588ms 16s281ms 06 1,126 120ms 878ms 196ms 11s883ms 12s571ms 17s87ms 07 1,030 120ms 804ms 168ms 4s865ms 10s380ms 15s905ms 08 1,117 120ms 3s21ms 239ms 14s637ms 17s898ms 24s926ms 09 1,458 120ms 7m19s 953ms 1m8s 2m3s 7m23s 10 1,954 120ms 58s512ms 428ms 52s35ms 1m11s 1m35s 11 11,949 120ms 2m57s 346ms 3m19s 5m20s 5m30s 12 45,076 120ms 18m47s 431ms 8m44s 10m57s 23m22s 13 51,975 120ms 24m44s 536ms 15m35s 26m30s 30m46s 14 35,991 120ms 25m45s 605ms 11m14s 13m26s 28m4s 15 29,460 120ms 23m55s 546ms 7m29s 9m45s 49m45s 16 11,451 120ms 9s656ms 285ms 2m8s 2m41s 3m49s 17 22,221 120ms 39s496ms 341ms 4m39s 6m24s 8m12s 18 27,919 120ms 25s999ms 358ms 5m21s 7m4s 7m45s 19 26,022 120ms 20s447ms 362ms 5m36s 6m1s 7m19s 20 18,783 120ms 47m27s 812ms 8m33s 15m29s 47m49s 21 5,618 120ms 42m50s 750ms 1m26s 2m1s 42m56s 22 1,398 120ms 5s722ms 242ms 19s267ms 24s423ms 32s692ms 23 1,331 120ms 52s34ms 349ms 36s426ms 44s209ms 1m4s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 25 00 2,972 0 641ms 1m11s 2m2s 2m2s 01 693 0 232ms 2s366ms 9s958ms 14s666ms 02 769 0 230ms 2s647ms 9s372ms 15s314ms 03 1,035 0 223ms 3s130ms 12s947ms 29s274ms 04 794 0 214ms 2s766ms 9s1ms 13s890ms 05 844 0 182ms 2s470ms 3s897ms 13s349ms 06 1,126 0 196ms 4s270ms 11s883ms 12s608ms 07 1,030 0 168ms 3s821ms 4s865ms 13s557ms 08 1,022 0 236ms 4s862ms 13s46ms 21s219ms 09 1,338 112 957ms 17s392ms 1m3s 2m19s 10 1,779 0 230ms 11s886ms 20s811ms 29s962ms 11 6,947 0 318ms 51s1ms 1m16s 3m9s 12 28,623 0 384ms 3m37s 5m4s 18m49s 13 35,573 0 497ms 5m1s 13m30s 26m50s 14 22,420 0 658ms 5m46s 9m9s 22m5s 15 18,705 0 607ms 3m5s 6m5s 23m56s 16 8,118 0 266ms 47s390ms 1m1s 2m1s 17 12,461 0 293ms 1m38s 1m56s 2m42s 18 15,550 0 292ms 1m46s 2m18s 3m3s 19 13,604 0 300ms 1m49s 2m33s 3m21s 20 9,215 0 871ms 1m27s 2m42s 14m52s 21 2,759 0 1s172ms 18s346ms 22s894ms 1m9s 22 1,239 0 238ms 9s336ms 13s772ms 23s50ms 23 1,257 0 173ms 6s216ms 9s451ms 19s80ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 25 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 6 0 0 149ms 0ms 0ms 151ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 4 0 0 339ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 57 0 0 170ms 0ms 0ms 905ms 09 0 8 0 0 154ms 0ms 0ms 0ms 10 1 35 65 0 3s894ms 0ms 5s577ms 57s364ms 11 1 2,406 17 0 312ms 7s381ms 25s675ms 53s799ms 12 1 8,929 45 0 387ms 1m7s 1m30s 2m17s 13 0 8,965 63 0 488ms 1m10s 1m40s 3m22s 14 0 7,582 24 0 378ms 53s210ms 1m13s 2m34s 15 0 5,536 29 0 310ms 26s987ms 47s158ms 1m18s 16 0 1,629 7 0 207ms 4s857ms 11s717ms 21s915ms 17 0 5,093 34 0 283ms 16s198ms 35s644ms 1m29s 18 0 6,236 53 0 333ms 22s733ms 57s559ms 1m49s 19 1 5,957 21 0 337ms 28s519ms 53s287ms 1m49s 20 0 4,888 9 0 945ms 34s783ms 1m50s 6m27s 21 0 1,629 2 0 227ms 1s555ms 4s883ms 40s147ms 22 0 116 1 0 200ms 0ms 0ms 2s962ms 23 0 5 69 0 3s339ms 0ms 3s716ms 34s269ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jun 25 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 Jun 25 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 Jun 25 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 Jun 25 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 Jun 25 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) Jun 25 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 Jun 25 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 Jun 25 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 Jun 25 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
- ExclusiveLock Main Lock Type
- 10,532 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 4,932 6h29s 1s3ms 1m30s 4s385ms with updated_records as ( update product_warehouse_inventory set loc_check_qty = coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ? returning id, product_id, warehouse_id ) select product_id, id as warehouse_inventory_id, warehouse_id from updated_records;-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:18
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:13
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:08
2 1,765 2h5m15s 1s2ms 39s629ms 4s258ms 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(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:41:44
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:38:53
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 179248 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-25 13:38:01
3 1,717 1h50m37s 1s 59s401ms 3s865ms 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 = ?;-
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:44:28
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:53
-
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:45
4 424 25m35s 1s5ms 23s462ms 3s622ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 254122 AND warehouse_id = 46;
Date: 2024-06-25 14:28:17
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59
5 283 21m25s 1s17ms 44s782ms 4s542ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:41:28
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:44:56
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:38:28
6 260 16m33s 1s21ms 21s977ms 3s820ms update product_warehouse_inventory set qty_mtd_sold = ?.? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 1.0 - 0 WHERE product_id = 212459 AND warehouse_id = 45;
Date: 2024-06-25 12:21:22
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 2.0 - 0 WHERE product_id = 172220 AND warehouse_id = 38;
Date: 2024-06-25 13:33:01
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 4.0 - 0 WHERE product_id = 187727 AND warehouse_id = 45;
Date: 2024-06-25 20:44:53
7 275 15m25s 1s179ms 21s768ms 3s364ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 254326 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 14:46:50
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 199592 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50
-
UPDATE product_warehouse_inventory SET qty_available = 72.0 WHERE product_id = 199562 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50
8 221 14m12s 1s20ms 25s64ms 3s856ms update product_warehouse_inventory set qty_ytd_sold = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 1.0 WHERE product_id = 212459 AND warehouse_id = 45;
Date: 2024-06-25 12:21:20
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 138.0 WHERE product_id = 191105 AND warehouse_id = 39;
Date: 2024-06-25 19:04:19
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 6.0 WHERE product_id = 172220 AND warehouse_id = 38;
Date: 2024-06-25 13:33:46
9 136 9m14s 1s538ms 20s945ms 4s74ms 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 != 1495197 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 != 1495197 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-25 12:20:14
-
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 != 1495581 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 != 1495581 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-25 13:00:52
-
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 != 1495196 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 != 1495196 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-06-25 12:19:59
10 135 8m59s 1s 19s702ms 3s994ms update product_warehouse_inventory set qty_on_order = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_on_order = 2.0 WHERE product_id = 254122 AND warehouse_id = 46;
Date: 2024-06-25 14:28:14
-
UPDATE product_warehouse_inventory SET qty_on_order = 3.0 WHERE product_id = 189315 AND warehouse_id = 46;
Date: 2024-06-25 20:45:58
-
UPDATE product_warehouse_inventory SET qty_on_order = 4.0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59
11 70 8m33s 1s374ms 35s81ms 7s333ms update product_warehouse_inventory set qty_mtd_sold = ? - ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:40:07
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:42:04
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:44:31
12 69 3m58s 1s43ms 22s490ms 3s450ms update "product_warehouse_inventory" set "last_used_date" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-25', "write_uid" = 965, "write_date" = (now() at time zone 'UTC') WHERE id IN (94400, 326849, 328354, 332037, 38487, 38503, 95848, 332038, 91269, 94827, 105292, 76506, 81490, 80887, 38519, 41145, 41146, 91294);
Date: 2024-06-25 20:36:49
-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-25', "write_uid" = 979, "write_date" = (now() at time zone 'UTC') WHERE id IN (85288, 83849, 84170, 84235, 85321, 84241, 84050, 85395, 84125, 85087, 83839);
Date: 2024-06-25 12:21:33
-
UPDATE "product_warehouse_inventory" SET "last_used_date" = '2024-06-25', "write_uid" = 1008, "write_date" = (now() at time zone 'UTC') WHERE id IN (50064, 370152, 45160, 45264);
Date: 2024-06-25 18:02:15
13 79 3m50s 1s240ms 15s854ms 2s911ms update product_warehouse_inventory set qty_available = ? where product_id = ? and warehouse_id = ? and company_id = ?;-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 237198 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-06-25 14:00:23
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 238883 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 19:17:25
-
UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 232332 AND warehouse_id = 42 AND company_id = 1;
Date: 2024-06-25 18:40:05
14 47 3m 11s762ms 13s786ms 3s837ms update product_warehouse_inventory set qty_on_order = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 199634 AND warehouse_id = 43;
Date: 2024-06-25 12:48:50
-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 205618 AND warehouse_id = 41;
Date: 2024-06-25 17:09:51
-
UPDATE product_warehouse_inventory SET qty_on_order = 0 WHERE product_id = 187646 AND warehouse_id = 41;
Date: 2024-06-25 14:41:29
15 22 1m24s 2s469ms 8s286ms 3s846ms 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" = 5524762, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (1496054);
Date: 2024-06-25 13:54:46
-
UPDATE "account_move" SET "message_main_attachment_id" = 5523750, "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (1495114);
Date: 2024-06-25 12:12:09
-
UPDATE "account_move" SET "message_main_attachment_id" = 5526173, "write_uid" = 972, "write_date" = (now() at time zone 'UTC') WHERE id IN (1497144);
Date: 2024-06-25 17:37:56
16 18 1m22s 2s375ms 17s9ms 4s582ms update product_warehouse_inventory set qty_mtd_sold = ? - ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 4.0 WHERE product_id = 237099 AND warehouse_id = 43;
Date: 2024-06-25 18:32:03
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 4.0 WHERE product_id = 237099 AND warehouse_id = 35;
Date: 2024-06-25 14:17:42
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 4.0 WHERE product_id = 237099 AND warehouse_id = 35;
Date: 2024-06-25 14:17:21
17 2 1m21s 1s731ms 1m19s 40s793ms update "product_template" set "can_image_1024_be_zoomed" = false, "cat_part_type" = ?, "cat_prod_type" = ?, "cat_vendor" = ?, "has_configurable_attributes" = false, "inventory_vendor_short_name" = ?, "raise_core_warning" = false, "rating_last_value" = ?.?, "volume" = ?, "weight" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_template" SET "can_image_1024_be_zoomed" = false, "cat_part_type" = 'Miscellaneous', "cat_prod_type" = 'Parts', "cat_vendor" = 'Automann', "has_configurable_attributes" = false, "inventory_vendor_short_name" = 'Automann', "raise_core_warning" = false, "rating_last_value" = 0.0, "volume" = '0.00', "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (268979);
Date: 2024-06-25 11:49:07
-
UPDATE "product_template" SET "can_image_1024_be_zoomed" = false, "cat_part_type" = 'Miscellaneous', "cat_prod_type" = 'Parts', "cat_vendor" = 'Automann', "has_configurable_attributes" = false, "inventory_vendor_short_name" = 'Automann', "raise_core_warning" = false, "rating_last_value" = 0.0, "volume" = '0.00', "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (268979);
Date: 2024-06-25 11:49:07
18 26 1m21s 1s21ms 13s31ms 3s132ms update product_warehouse_inventory set qty_in_transist = ?.? - ?.?, last_intra_company_receipt_date = ?::timestamp, last_intra_company_qty = ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_in_transist = 1.0 - 1.0, last_intra_company_receipt_date = '2024-06-25T13:09:14'::timestamp, last_intra_company_qty = 1.0 WHERE product_id = 196735 AND warehouse_id = 39;
Date: 2024-06-25 13:09:36
-
UPDATE product_warehouse_inventory SET qty_in_transist = 2.0 - 2.0, last_intra_company_receipt_date = '2024-06-25T14:48:40'::timestamp, last_intra_company_qty = 2.0 WHERE product_id = 217442 AND warehouse_id = 44;
Date: 2024-06-25 14:49:22
-
UPDATE product_warehouse_inventory SET qty_in_transist = 33.0 - 33.0, last_intra_company_receipt_date = '2024-06-25T17:26:27'::timestamp, last_intra_company_qty = 1.0 WHERE product_id = 171861 AND warehouse_id = 41;
Date: 2024-06-25 17:26:49
19 22 50s516ms 1s70ms 10s215ms 2s296ms 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(-521.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 237223 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-06-25 19:10:09
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(-521.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 237223 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-06-25 19:10:42
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(-195.0, 0) + COALESCE(8.0, 0) - COALESCE(33.0, 0) WHERE product_id = 237125 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-06-25 18:49:06
20 13 41s162ms 2s210ms 10s397ms 3s166ms update product_warehouse_inventory set qty_mtd_sold = ?.? - ?.? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 156.0 - 16.0 WHERE product_id = 213564 AND warehouse_id = 42;
Date: 2024-06-25 15:54:07
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 18.0 - 3.0 WHERE product_id = 191096 AND warehouse_id = 45;
Date: 2024-06-25 12:33:00
-
UPDATE product_warehouse_inventory SET qty_mtd_sold = 178.0 - 16.0 WHERE product_id = 215661 AND warehouse_id = 42;
Date: 2024-06-25 14:17:04
21 1 26s746ms 26s746ms 26s746ms 26s746ms insert into "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), ?, ?, ?, ?, ?, true, ?, ?, ?, false, false, false, false, null, ?, null, null, ?, ?) returning id;-
INSERT INTO "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") VALUES (nextval('sale_advance_payment_inv_id_seq'), 979, (now() at time zone 'UTC'), 979, (now() at time zone 'UTC'), 'delivered', '0.00', '0.00', 1, 2, true, 1417, '2848.05', '0.00', false, false, false, false, NULL, 42187, NULL, NULL, 94, 171436) RETURNING id;
Date: 2024-06-25 12:21:33
22 1 11s873ms 11s873ms 11s873ms 11s873ms insert into "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") values (nextval(?), ?, (now() at time zone ?), ?, (now() at time zone ?), ?, ?, ?, ?, ?, true, ?, ?, ?, false, true, false, false, ?, ?, null, ?, ?, ?) returning id;-
INSERT INTO "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") VALUES (nextval('sale_advance_payment_inv_id_seq'), 979, (now() at time zone 'UTC'), 979, (now() at time zone 'UTC'), 'delivered', '0.00', '500.00', 1, 2, true, 1417, '468.10', '0.00', false, true, false, false, 7, 47959, NULL, 6, 112, 171436) RETURNING id;
Date: 2024-06-25 19:19:06
-
INSERT INTO "sale_advance_payment_inv" ("id", "create_uid", "create_date", "write_uid", "write_date", "advance_payment_method", "amount", "amount_taken", "count", "currency_id", "deduct_down_payments", "deposit_account_id", "due_amount", "fixed_amount", "has_down_payments", "is_cash_sale_order", "is_immediate_payment", "is_self_used", "journal_id", "partner_id", "payment_details", "payment_method_id", "payment_term_id", "product_id") VALUES (nextval('sale_advance_payment_inv_id_seq'), 979, (now() at time zone 'UTC'), 979, (now() at time zone 'UTC'), 'delivered', '0.00', '500.00', 1, 2, true, 1417, '468.10', '0.00', false, true, false, false, 7, 47959, NULL, 6, 112, 171436) RETURNING id;
Date: 2024-06-25 19:19:06
23 1 7s827ms 7s827ms 7s827ms 7s827ms update "account_move" set "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = 5523826, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (1495197);
Date: 2024-06-25 12:20:31
-
UPDATE "account_move" SET "email_send_eod" = false, "email_sent" = true, "message_main_attachment_id" = 5523826, "write_uid" = 994, "write_date" = (now() at time zone 'UTC') WHERE id IN (1495197);
Date: 2024-06-25 12:20:31
24 4 7s114ms 1s114ms 2s480ms 1s778ms update product_warehouse_inventory set qty_ytd_sold = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 0 WHERE product_id = 237158 AND warehouse_id = 45;
Date: 2024-06-25 19:18:14
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 0 WHERE product_id = 237158 AND warehouse_id = 45;
Date: 2024-06-25 19:18:02
-
UPDATE product_warehouse_inventory SET qty_ytd_sold = 0 WHERE product_id = 237158 AND warehouse_id = 45;
Date: 2024-06-25 19:17:26
25 1 6s534ms 6s534ms 6s534ms 6s534ms update "product_template" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "product_template" SET "write_uid" = 992, "write_date" = (now() at time zone 'UTC') WHERE id IN (3);
Date: 2024-06-25 12:33:41
-
UPDATE "product_template" SET "write_uid" = 992, "write_date" = (now() at time zone 'UTC') WHERE id IN (3);
Date: 2024-06-25 12:33:41
26 3 5s519ms 1s869ms 1s869ms 1s839ms update "account_move" set "access_token" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_move" SET "access_token" = 'fed8d87a-a5d9-45da-8318-a5324a35fa0c', "write_uid" = 1307, "write_date" = (now() at time zone 'UTC') WHERE id IN (1495583);
Date: 2024-06-25 13:01:16
-
UPDATE "account_move" SET "access_token" = 'ad73b4af-a646-4d14-a9f5-cdc86db5d6a5', "write_uid" = 953, "write_date" = (now() at time zone 'UTC') WHERE id IN (1496777);
Date: 2024-06-25 15:51:28
-
UPDATE "account_move" SET "access_token" = '9b63e636-f4bc-4823-939c-8d3cfd0ecbc9', "write_uid" = 953, "write_date" = (now() at time zone 'UTC') WHERE id IN (1496241);
Date: 2024-06-25 14:24:22
27 1 5s476ms 5s476ms 5s476ms 5s476ms update product_warehouse_inventory set qty_in_transist = ?.? - ?, last_intra_company_receipt_date = ?, last_intra_company_qty = ? where product_id = ? and warehouse_id = ?;-
UPDATE product_warehouse_inventory SET qty_in_transist = 6.0 - 0, last_intra_company_receipt_date = NULL, last_intra_company_qty = 0 WHERE product_id = 193111 AND warehouse_id = 38;
Date: 2024-06-25 12:20:17
-
UPDATE product_warehouse_inventory SET qty_in_transist = 4.0 - 0, last_intra_company_receipt_date = NULL, last_intra_company_qty = 0 WHERE product_id = 196095 AND warehouse_id = 38;
Date: 2024-06-25 13:44:48
-
UPDATE product_warehouse_inventory SET qty_in_transist = 1.0 - 0, last_intra_company_receipt_date = NULL, last_intra_company_qty = 0 WHERE product_id = 249077 AND warehouse_id = 39;
Date: 2024-06-25 12:50:23
28 2 4s233ms 1s211ms 3s21ms 2s116ms select "ir_model_fields".id from "ir_model_fields" where ("ir_model_fields"."model" = ?) order by "ir_model_fields"."name";-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'psd_custom.inventory_vendor') ORDER BY "ir_model_fields"."name";
Date: 2024-06-25 08:17:00
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'psd_custom.inventory_vendor') ORDER BY "ir_model_fields"."name";
Date: 2024-06-25 08:14:08
-
SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'product.template') ORDER BY "ir_model_fields"."name";
Date: 2024-06-25 08:17:00
29 1 3s320ms 3s320ms 3s320ms 3s320ms update account_bank_statement_line set is_processed = false where statement_id = ?;-
UPDATE account_bank_statement_line SET is_processed = False where statement_id = 170;
Date: 2024-06-25 17:13:28
30 1 1s230ms 1s230ms 1s230ms 1s230ms select name, id from ir_model_fields where model = ?;-
SELECT name, id FROM ir_model_fields WHERE model = 'sale.order';
Date: 2024-06-25 08:14:08
-
SELECT name, id FROM ir_model_fields WHERE model = 'sale.order';
Date: 2024-06-25 08:14:08
Queries that waited the most
Rank Wait time Query 1 1m30s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
2 1m30s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
3 1m30s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
4 1m27s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
5 1m26s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
6 1m24s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
7 1m22s WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 21:03:21 ]
8 1m19s UPDATE "product_template" SET "can_image_1024_be_zoomed" = false, "cat_part_type" = 'Miscellaneous', "cat_prod_type" = 'Parts', "cat_vendor" = 'Automann', "has_configurable_attributes" = false, "inventory_vendor_short_name" = 'Automann', "raise_core_warning" = false, "rating_last_value" = 0.0, "volume" = '0.00', "weight" = '0.00', "write_uid" = 990, "write_date" = (now() at time zone 'UTC') WHERE id IN (268979);[ Date: 2024-06-25 11:49:07 ]
9 59s401ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;[ Date: 2024-06-25 20:38:52 ]
10 59s167ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;[ Date: 2024-06-25 20:44:31 ]
11 58s593ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;[ Date: 2024-06-25 20:41:27 ]
12 56s569ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;[ Date: 2024-06-25 20:40:07 ]
13 48s345ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
14 48s214ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
15 47s901ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
16 46s765ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
17 45s911ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
18 45s582ms WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;[ Date: 2024-06-25 13:47:37 ]
19 44s782ms UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;[ Date: 2024-06-25 20:41:20 ]
20 43s619ms update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;[ Date: 2024-06-25 20:43:17 ]
-
Queries
Queries by type
Key values
- 189,873 Total read queries
- 113,123 Total write queries
Queries by database
Key values
- unknown Main database
- 302,996 Requests
- 1d16h27m10s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 304,577 Requests
User Request type Count Duration unknown Total 304,577 1d16h47m55s copy to 112 19m25s cte 53,300 8h56m51s delete 439 24m52s insert 4 12s342ms select 191,453 1d36m59s tcl 187 44s450ms update 59,082 6h28m49s Duration by user
Key values
- 1d16h47m55s (unknown) Main time consuming user
User Request type Count Duration unknown Total 304,577 1d16h47m55s copy to 112 19m25s cte 53,300 8h56m51s delete 439 24m52s insert 4 12s342ms select 191,453 1d36m59s tcl 187 44s450ms update 59,082 6h28m49s Queries by host
Key values
- unknown Main host
- 304,577 Requests
- 1d16h47m55s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 302,996 Requests
- 1d16h27m10s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-06-25 17:54:31 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 252,250 100-500ms duration
Slowest individual queries
Rank Duration Query 1 47m27s SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 20:53:10 ]
2 42m50s SELECT count(1) FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-06-25 21:36:01 ]
3 25m45s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "inventory_vendor_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id" LIMIT 80;[ Date: 2024-06-25 14:37:04 ]
4 24m44s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 80;[ Date: 2024-06-25 13:47:05 ]
5 23m55s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id", "sale_history_line"."selling_branch" as "selling_branch" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") LEFT JOIN "res_branch" AS "sale_history_line__selling_branch" ON ("sale_history_line"."selling_branch" = "sale_history_line__selling_branch"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line"."selling_branch", "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id";[ Date: 2024-06-25 15:53:39 ]
6 23m46s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id";[ Date: 2024-06-25 15:53:31 ]
7 23m23s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 80;[ Date: 2024-06-25 13:22:20 ]
8 22m19s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal" FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%')))));[ Date: 2024-06-25 15:29:44 ]
9 20m52s SELECT count(1) FROM "sale_history_line" WHERE (((((((("sale_history_line"."invoice_date" >= '2022-01-01') AND ("sale_history_line"."invoice_date" <= '2022-12-31')) OR (("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31'))) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-06-25 14:01:49 ]
10 20m16s SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((((("sale_history_line"."invoice_date" >= '2022-01-01') AND ("sale_history_line"."invoice_date" <= '2022-12-31')) OR (("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31'))) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 13:40:56 ]
11 18m47s SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))));[ Date: 2024-06-25 12:48:34 ]
12 16m58s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 12:29:47 ]
13 14m16s SELECT count(1) FROM "sale_history_line" WHERE ((((("sale_history_line"."invoice_date" > '2021-12-31') AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-06-25 20:18:01 ]
14 13m45s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((("sale_history_line"."invoice_date" > '2021-12-31') AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 20:03:44 ]
15 13m14s SELECT count(1) FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-06-25 13:49:46 ]
16 13m4s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 13:56:20 ]
17 11m18s SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-06-25 13:36:32 ]
18 10m36s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 80;[ Date: 2024-06-25 14:21:34 ]
19 10m29s SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 80;[ Date: 2024-06-25 14:10:57 ]
20 9m44s SELECT count(1) FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL));[ Date: 2024-06-25 14:06:05 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 5h12m11s 69,122 120ms 2s350ms 270ms 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 Jun 25 00 815 2m18s 170ms 01 430 1m58s 275ms 02 478 1m57s 245ms 03 588 2m16s 232ms 04 538 2m10s 241ms 05 574 1m52s 195ms 06 864 3m 209ms 07 722 2m1s 168ms 08 665 2m39s 240ms 09 1,078 2m54s 161ms 10 831 2m58s 215ms 11 2,882 9m46s 203ms 12 8,258 42m36s 309ms 13 9,431 54m42s 348ms 14 8,639 45m23s 315ms 15 8,024 37m26s 279ms 16 4,677 17m38s 226ms 17 5,229 24m22s 279ms 18 5,597 23m10s 248ms 19 4,748 17m45s 224ms 20 2,421 8m29s 210ms 21 935 2m45s 177ms 22 362 1m2s 172ms 23 336 52s903ms 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1013"', '["pointspring_master","calendar.alarm",19551]', '["pointspring_master","mail.channel",94]', '["pointspring_master","mail.channel",95]', '["pointspring_master","mail.channel",96]', '["pointspring_master","mail.channel",97]', '["pointspring_master","mail.channel",98]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",594]', '["pointspring_master","mail.channel",595]', '["pointspring_master","mail.channel",606]', '["pointspring_master","res.partner",19551]', '["pointspring_master","ir.needaction",19551]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s350ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19584]', '["pointspring_master","mail.channel",140]', '["pointspring_master","mail.channel",247]', '["pointspring_master","mail.channel",336]', '["pointspring_master","mail.channel",433]', '["pointspring_master","mail.channel",498]', '["pointspring_master","res.partner",19584]', '["pointspring_master","ir.needaction",19584]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s343ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 14:02:28') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 14:03:20 Duration: 2s323ms
2 4h42m1s 26,624 264ms 3s553ms 635ms with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 25 08 18 6s59ms 336ms 10 37 13s801ms 373ms 11 1,267 10m25s 493ms 12 3,660 43m40s 715ms 13 3,683 53m14s 867ms 14 2,980 33m50s 681ms 15 2,592 26m49s 621ms 16 846 6m38s 471ms 17 2,316 21m 544ms 18 3,038 28m44s 567ms 19 3,217 29m34s 551ms 20 2,335 22m33s 579ms 21 614 4m56s 483ms 22 21 11s212ms 533ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:39:39 Duration: 3s553ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:58:02 Duration: 3s310ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 14:03:21 Duration: 3s211ms
3 4h14m23s 26,617 314ms 40s27ms 573ms with updated_records as ( update product_warehouse_inventory set loc_check_qty = coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ? returning id, product_id, warehouse_id ) select product_id, id as warehouse_inventory_id, warehouse_id from updated_records;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 25 08 17 5s928ms 348ms 10 37 20s444ms 552ms 11 1,267 8m57s 424ms 12 3,659 38m36s 633ms 13 3,678 43m23s 707ms 14 2,979 35m1s 705ms 15 2,592 23m5s 534ms 16 846 5m57s 422ms 17 2,316 20m8s 521ms 18 3,038 27m5s 535ms 19 3,217 25m37s 477ms 20 2,336 20m41s 531ms 21 614 5m14s 511ms 22 21 8s644ms 411ms -
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:18 Duration: 40s27ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:13 Duration: 37s556ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:08 Duration: 36s180ms
4 2h2m46s 19,194 141ms 42s533ms 383ms 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 #4
Day Hour Count Duration Avg duration Jun 25 08 13 1s992ms 153ms 10 18 2s811ms 156ms 11 902 3m52s 257ms 12 2,720 16m21s 360ms 13 2,676 20m5s 450ms 14 2,410 12m11s 303ms 15 1,741 10m3s 346ms 16 522 1m41s 194ms 17 1,805 8m3s 267ms 18 1,963 8m52s 271ms 19 1,904 9m33s 301ms 20 1,820 29m41s 978ms 21 690 2m12s 191ms 22 10 1s662ms 166ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:41:44 Duration: 42s533ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 42s414ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 179248 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-25 13:38:01 Duration: 39s805ms
5 1h30m6s 10,435 138ms 1m 518ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 25 02 6 899ms 149ms 08 10 1s671ms 167ms 10 8 1s276ms 159ms 11 357 1m42s 287ms 12 1,880 12m18s 392ms 13 2,217 23m59s 649ms 14 1,105 6m48s 369ms 15 759 4m26s 350ms 16 244 51s731ms 212ms 17 469 1m48s 231ms 18 1,204 8m20s 415ms 19 1,200 9m32s 477ms 20 965 20m11s 1s255ms 21 4 792ms 198ms 22 3 445ms 148ms 23 4 601ms 150ms -
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:44:28 Duration: 1m
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 59s601ms
-
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:45 Duration: 59s574ms
6 1h21m31s 24,289 120ms 1s23ms 201ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 25 08 4 874ms 218ms 10 16 2s858ms 178ms 11 669 2m2s 182ms 12 4,163 14m18s 206ms 13 5,092 18m45s 220ms 14 3,155 10m53s 207ms 15 2,447 8m3s 197ms 16 452 1m24s 187ms 17 1,697 5m16s 186ms 18 2,496 7m50s 188ms 19 2,257 7m11s 191ms 20 1,530 4m43s 185ms 21 289 54s246ms 187ms 22 22 4s60ms 184ms -
select id from product_warehouse_inventory where product_id = 231433 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 14:03:20 Duration: 1s23ms
-
select id from product_warehouse_inventory where product_id = 214176 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 14:03:20 Duration: 1s15ms
-
select id from product_warehouse_inventory where product_id = 197868 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 13:09:24 Duration: 929ms
7 48m26s 2,798 677ms 3s630ms 1s38ms 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 #7
Day Hour Count Duration Avg duration Jun 25 02 26 18s543ms 713ms 08 8 5s804ms 725ms 10 15 10s938ms 729ms 11 171 2m30s 878ms 12 491 8m46s 1s72ms 13 493 11m31s 1s401ms 14 130 2m38s 1s217ms 15 276 4m34s 993ms 16 91 1m12s 792ms 17 252 3m45s 895ms 18 377 5m52s 934ms 19 254 3m55s 926ms 20 195 2m51s 878ms 23 19 13s507ms 710ms -
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 ('%%at06%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%at06%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%at06%'))) 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-06-25 12:39:39 Duration: 3s630ms
-
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 ('%%280gdfjpb%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%280gdfjp-b%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%280gdfjp-b%'))) 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-06-25 13:00:37 Duration: 3s598ms
-
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 ('%%12x1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1/2x1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1/2x1%'))) 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-06-25 13:44:29 Duration: 3s288ms
8 47m27s 1 47m27s 47m27s 47m27s select "sale_history_line".id from "sale_history_line" where (((("sale_history_line"."user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?))))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 25 20 1 47m27s 47m27s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 20:53:10 Duration: 47m27s
9 42m50s 1 42m50s 42m50s 42m50s select count(?) from "sale_history_line" where (((("sale_history_line"."user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?))))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 25 21 1 42m50s 42m50s -
SELECT count(1) FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-06-25 21:36:01 Duration: 42m50s
10 34m51s 8,695 120ms 1s185ms 240ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 25 08 1 134ms 134ms 10 4 651ms 162ms 11 176 36s360ms 206ms 12 1,639 6m49s 249ms 13 2,514 11m8s 265ms 14 1,113 4m27s 239ms 15 752 3m2s 242ms 16 116 22s517ms 194ms 17 309 1m2s 202ms 18 867 3m7s 216ms 19 799 2m57s 221ms 20 402 1m16s 191ms 21 3 444ms 148ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 215703 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:17:21 Duration: 1s185ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 234076 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:49:59 Duration: 1s106ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 188603 and sol.warehouse_id = 44 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 13:30:53 Duration: 1s69ms
11 31m22s 3,042 424ms 2s17ms 618ms 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 #11
Day Hour Count Duration Avg duration Jun 25 00 3 1s291ms 430ms 01 9 3s885ms 431ms 02 6 2s564ms 427ms 05 3 1s335ms 445ms 06 6 2s570ms 428ms 07 12 5s339ms 444ms 08 16 7s207ms 450ms 10 10 4s338ms 433ms 11 207 1m43s 501ms 12 466 5m19s 686ms 13 496 6m22s 770ms 14 427 4m38s 652ms 15 367 3m42s 607ms 16 174 1m25s 492ms 17 284 2m28s 523ms 18 272 2m34s 567ms 19 191 1m48s 570ms 20 63 35s780ms 567ms 21 24 10s781ms 449ms 23 6 2s586ms 431ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 15:38:12 Duration: 2s17ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 14:49:57 Duration: 1s880ms
-
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.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d496922/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 13:53:35 Duration: 1s828ms
12 28m33s 1,891 885ms 1s306ms 906ms select "sale_history_line".id from "sale_history_line" where (((((("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" < ?)) and ("sale_history_line"."user_id" = ?)) and ("sale_history_line"."customer_id" = ?)) and ("sale_history_line"."inventory_vendor_id" = ?)) and (((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and "sale_history_line"."product_name" is not null)) order by "sale_history_line"."invoice_date" desc;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 25 00 1,891 28m33s 906ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-11-01') AND ("sale_history_line"."invoice_date" < '2016-12-01')) AND ("sale_history_line"."user_id" = 954)) AND ("sale_history_line"."customer_id" = 33392)) AND ("sale_history_line"."inventory_vendor_id" = 3035)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:16:28 Duration: 1s306ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-10-01') AND ("sale_history_line"."invoice_date" < '2016-11-01')) AND ("sale_history_line"."user_id" = 1041)) AND ("sale_history_line"."customer_id" = 38469)) AND ("sale_history_line"."inventory_vendor_id" = 3019)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:13:02 Duration: 1s299ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-10-01') AND ("sale_history_line"."invoice_date" < '2016-11-01')) AND ("sale_history_line"."user_id" = 1027)) AND ("sale_history_line"."customer_id" = 44447)) AND ("sale_history_line"."inventory_vendor_id" = 2915)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:06:08 Duration: 1s281ms
13 27m15s 3,957 138ms 23s836ms 413ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 25 08 2 313ms 156ms 09 1 145ms 145ms 11 154 41s305ms 268ms 12 521 3m28s 399ms 13 564 3m46s 401ms 14 572 5m41s 597ms 15 355 1m38s 276ms 16 98 21s128ms 215ms 17 415 2m18s 333ms 18 425 2m34s 364ms 19 341 1m33s 275ms 20 360 4m20s 724ms 21 149 50s49ms 335ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 254122 AND warehouse_id = 46;
Date: 2024-06-25 14:28:17 Duration: 23s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 19s352ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 18s33ms
14 26m27s 3,233 136ms 52s361ms 491ms 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 Jun 25 08 2 357ms 178ms 09 6 893ms 148ms 10 3 641ms 213ms 11 235 1m27s 372ms 12 427 3m10s 445ms 13 392 3m9s 484ms 14 344 2m15s 392ms 15 288 2m21s 489ms 16 94 19s246ms 204ms 17 254 1m17s 305ms 18 351 2m9s 367ms 19 434 2m28s 342ms 20 325 7m18s 1s348ms 21 76 28s371ms 373ms 22 2 380ms 190ms -
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:41:28 Duration: 52s361ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:44:56 Duration: 52s153ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:38:28 Duration: 50s557ms
15 25m45s 1 25m45s 25m45s 25m45s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "inventory_vendor_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" order by "sale_history_line__inventory_vendor_id"."id" limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 25 14 1 25m45s 25m45s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "inventory_vendor_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id" LIMIT 80;
Date: 2024-06-25 14:37:04 Duration: 25m45s
16 24m44s 1 24m44s 24m44s 24m44s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" AS "customer_id" from "sale_history_line" left join "res_partner" AS "sale_history_line__customer_id" on ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) group by "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" order by "sale_history_line__customer_id"."display_name" limit ? offset ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 25 13 1 24m44s 24m44s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 80;
Date: 2024-06-25 13:47:05 Duration: 24m44s
17 24m23s 2 11m18s 13m4s 12m11s select "sale_history_line".id from "sale_history_line" where ((((((("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" <= ?)) or (("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" <= ?))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 25 13 2 24m23s 12m11s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 13:56:20 Duration: 13m4s
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 13:36:32 Duration: 11m18s
18 23m55s 1 23m55s 23m55s 23m55s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id", "sale_history_line"."selling_branch" AS "selling_branch" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") left join "res_branch" AS "sale_history_line__selling_branch" on ("sale_history_line"."selling_branch" = "sale_history_line__selling_branch"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line"."selling_branch", "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id" order by "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 25 15 1 23m55s 23m55s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id", "sale_history_line"."selling_branch" as "selling_branch" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") LEFT JOIN "res_branch" AS "sale_history_line__selling_branch" ON ("sale_history_line"."selling_branch" = "sale_history_line__selling_branch"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line"."selling_branch", "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id";
Date: 2024-06-25 15:53:39 Duration: 23m55s
19 23m46s 1 23m46s 23m46s 23m46s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" order by "sale_history_line__inventory_vendor_id"."id";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 25 15 1 23m46s 23m46s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id";
Date: 2024-06-25 15:53:31 Duration: 23m46s
20 23m23s 1 23m23s 23m23s 23m23s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" AS "customer_id" from "sale_history_line" left join "res_partner" AS "sale_history_line__customer_id" on ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) group by "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" order by "sale_history_line__customer_id"."display_name" limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 25 13 1 23m23s 23m23s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 80;
Date: 2024-06-25 13:22:20 Duration: 23m23s
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 69,122 5h12m11s 120ms 2s350ms 270ms 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 Jun 25 00 815 2m18s 170ms 01 430 1m58s 275ms 02 478 1m57s 245ms 03 588 2m16s 232ms 04 538 2m10s 241ms 05 574 1m52s 195ms 06 864 3m 209ms 07 722 2m1s 168ms 08 665 2m39s 240ms 09 1,078 2m54s 161ms 10 831 2m58s 215ms 11 2,882 9m46s 203ms 12 8,258 42m36s 309ms 13 9,431 54m42s 348ms 14 8,639 45m23s 315ms 15 8,024 37m26s 279ms 16 4,677 17m38s 226ms 17 5,229 24m22s 279ms 18 5,597 23m10s 248ms 19 4,748 17m45s 224ms 20 2,421 8m29s 210ms 21 935 2m45s 177ms 22 362 1m2s 172ms 23 336 52s903ms 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1013"', '["pointspring_master","calendar.alarm",19551]', '["pointspring_master","mail.channel",94]', '["pointspring_master","mail.channel",95]', '["pointspring_master","mail.channel",96]', '["pointspring_master","mail.channel",97]', '["pointspring_master","mail.channel",98]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",594]', '["pointspring_master","mail.channel",595]', '["pointspring_master","mail.channel",606]', '["pointspring_master","res.partner",19551]', '["pointspring_master","ir.needaction",19551]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s350ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19584]', '["pointspring_master","mail.channel",140]', '["pointspring_master","mail.channel",247]', '["pointspring_master","mail.channel",336]', '["pointspring_master","mail.channel",433]', '["pointspring_master","mail.channel",498]', '["pointspring_master","res.partner",19584]', '["pointspring_master","ir.needaction",19584]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s343ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 14:02:28') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 14:03:20 Duration: 2s323ms
2 26,624 4h42m1s 264ms 3s553ms 635ms with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 25 08 18 6s59ms 336ms 10 37 13s801ms 373ms 11 1,267 10m25s 493ms 12 3,660 43m40s 715ms 13 3,683 53m14s 867ms 14 2,980 33m50s 681ms 15 2,592 26m49s 621ms 16 846 6m38s 471ms 17 2,316 21m 544ms 18 3,038 28m44s 567ms 19 3,217 29m34s 551ms 20 2,335 22m33s 579ms 21 614 4m56s 483ms 22 21 11s212ms 533ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:39:39 Duration: 3s553ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:58:02 Duration: 3s310ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 14:03:21 Duration: 3s211ms
3 26,617 4h14m23s 314ms 40s27ms 573ms with updated_records as ( update product_warehouse_inventory set loc_check_qty = coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ? returning id, product_id, warehouse_id ) select product_id, id as warehouse_inventory_id, warehouse_id from updated_records;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 25 08 17 5s928ms 348ms 10 37 20s444ms 552ms 11 1,267 8m57s 424ms 12 3,659 38m36s 633ms 13 3,678 43m23s 707ms 14 2,979 35m1s 705ms 15 2,592 23m5s 534ms 16 846 5m57s 422ms 17 2,316 20m8s 521ms 18 3,038 27m5s 535ms 19 3,217 25m37s 477ms 20 2,336 20m41s 531ms 21 614 5m14s 511ms 22 21 8s644ms 411ms -
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:18 Duration: 40s27ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:13 Duration: 37s556ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:08 Duration: 36s180ms
4 24,289 1h21m31s 120ms 1s23ms 201ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 25 08 4 874ms 218ms 10 16 2s858ms 178ms 11 669 2m2s 182ms 12 4,163 14m18s 206ms 13 5,092 18m45s 220ms 14 3,155 10m53s 207ms 15 2,447 8m3s 197ms 16 452 1m24s 187ms 17 1,697 5m16s 186ms 18 2,496 7m50s 188ms 19 2,257 7m11s 191ms 20 1,530 4m43s 185ms 21 289 54s246ms 187ms 22 22 4s60ms 184ms -
select id from product_warehouse_inventory where product_id = 231433 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 14:03:20 Duration: 1s23ms
-
select id from product_warehouse_inventory where product_id = 214176 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 14:03:20 Duration: 1s15ms
-
select id from product_warehouse_inventory where product_id = 197868 and warehouse_id = 43 and company_id = 1;
Date: 2024-06-25 13:09:24 Duration: 929ms
5 19,194 2h2m46s 141ms 42s533ms 383ms 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 #5
Day Hour Count Duration Avg duration Jun 25 08 13 1s992ms 153ms 10 18 2s811ms 156ms 11 902 3m52s 257ms 12 2,720 16m21s 360ms 13 2,676 20m5s 450ms 14 2,410 12m11s 303ms 15 1,741 10m3s 346ms 16 522 1m41s 194ms 17 1,805 8m3s 267ms 18 1,963 8m52s 271ms 19 1,904 9m33s 301ms 20 1,820 29m41s 978ms 21 690 2m12s 191ms 22 10 1s662ms 166ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:41:44 Duration: 42s533ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 42s414ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 179248 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-25 13:38:01 Duration: 39s805ms
6 10,435 1h30m6s 138ms 1m 518ms 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 #6
Day Hour Count Duration Avg duration Jun 25 02 6 899ms 149ms 08 10 1s671ms 167ms 10 8 1s276ms 159ms 11 357 1m42s 287ms 12 1,880 12m18s 392ms 13 2,217 23m59s 649ms 14 1,105 6m48s 369ms 15 759 4m26s 350ms 16 244 51s731ms 212ms 17 469 1m48s 231ms 18 1,204 8m20s 415ms 19 1,200 9m32s 477ms 20 965 20m11s 1s255ms 21 4 792ms 198ms 22 3 445ms 148ms 23 4 601ms 150ms -
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:44:28 Duration: 1m
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 59s601ms
-
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:45 Duration: 59s574ms
7 8,695 34m51s 120ms 1s185ms 240ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 25 08 1 134ms 134ms 10 4 651ms 162ms 11 176 36s360ms 206ms 12 1,639 6m49s 249ms 13 2,514 11m8s 265ms 14 1,113 4m27s 239ms 15 752 3m2s 242ms 16 116 22s517ms 194ms 17 309 1m2s 202ms 18 867 3m7s 216ms 19 799 2m57s 221ms 20 402 1m16s 191ms 21 3 444ms 148ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 215703 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:17:21 Duration: 1s185ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 234076 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:49:59 Duration: 1s106ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 188603 and sol.warehouse_id = 44 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 13:30:53 Duration: 1s69ms
8 5,934 22m49s 149ms 1s409ms 230ms 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 Jun 25 11 111 19s47ms 171ms 12 437 2m2s 280ms 13 879 4m34s 311ms 14 1,074 4m17s 239ms 15 867 3m16s 226ms 16 72 12s125ms 168ms 17 236 49s672ms 210ms 18 468 1m46s 228ms 19 449 1m37s 217ms 20 438 1m23s 189ms 21 525 1m30s 172ms 22 378 1m 159ms -
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 = 44452 and fd.product_id = 215194;
Date: 2024-06-25 12:56:17 Duration: 1s409ms
-
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 = 45111 and fd.product_id = 210150;
Date: 2024-06-25 13:45:40 Duration: 1s287ms
-
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 = 44894 and fd.product_id = 186481;
Date: 2024-06-25 13:39:36 Duration: 1s251ms
9 5,758 15m42s 137ms 775ms 163ms 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 #9
Day Hour Count Duration Avg duration Jun 25 00 240 34s686ms 144ms 01 239 33s913ms 141ms 02 240 34s215ms 142ms 03 240 34s684ms 144ms 04 240 34s83ms 142ms 05 240 33s970ms 141ms 06 240 34s211ms 142ms 07 240 34s272ms 142ms 08 240 34s348ms 143ms 09 240 34s636ms 144ms 10 240 34s343ms 143ms 11 240 38s183ms 159ms 12 240 54s702ms 227ms 13 240 1m2s 262ms 14 239 50s875ms 212ms 15 240 48s318ms 201ms 16 240 37s613ms 156ms 17 240 41s214ms 171ms 18 240 43s704ms 182ms 19 240 41s614ms 173ms 20 240 42s261ms 176ms 21 240 35s490ms 147ms 22 240 34s55ms 141ms 23 240 34s469ms 143ms -
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_cursors', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_trigger', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_operator', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_depend', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_matviews', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_am', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_index', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_policies', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_subscription', 'pg_catalog.pg_amproc', 'pg_catalog.pg_proc', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_settings', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_language', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_enum', 'pg_catalog.pg_rules', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_type', 'pg_catalog.pg_cast', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_group', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_range', 'pg_catalog.pg_sequences', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_policy', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_inherits', 'pg_catalog.pg_transform', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_conversion', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_sys_indexes', 'information_schema.routine_column_usage', 'information_schema.constraint_table_usage', 'information_schema.parameters', 'information_schema.role_udt_grants', 'information_schema.role_usage_grants', 'information_schema.check_constraint_routine_usage', 'information_schema.foreign_table_options', 'information_schema.character_sets', 'information_schema.columns', 'information_schema.domains', 'information_schema.schemata', 'information_schema.role_routine_grants', 'information_schema.user_mappings', 'information_schema.triggers', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.check_constraints', 'information_schema.role_column_grants', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.foreign_servers', 'information_schema.routine_privileges', 'information_schema.sql_features', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.routines', 'information_schema.usage_privileges', 'information_schema.column_options', 'information_schema.foreign_server_options', 'information_schema.constraint_column_usage', 'information_schema.referential_constraints', 'information_schema.routine_table_usage', 'information_schema.element_types', 'information_schema.view_routine_usage', 'information_schema.column_udt_usage', 'information_schema.routine_routine_usage', 'information_schema.enabled_roles', 'information_schema.sequences', 'information_schema.table_privileges', 'information_schema.triggered_update_columns', 'information_schema.user_mapping_options', 'information_schema.collation_character_set_applicability', 'information_schema.sql_implementation_info', 'information_schema.view_table_usage', 'information_schema.udt_privileges', 'information_schema.applicable_roles', 'information_schema.routine_sequence_usage', 'information_schema.column_column_usage', 'information_schema.domain_constraints', 'information_schema.key_column_usage', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.tables', 'information_schema.information_schema_catalog_name', 'information_schema.attributes', 'information_schema.column_domain_usage', 'information_schema.domain_udt_usage', 'information_schema.views', 'information_schema.data_type_privileges', 'information_schema.view_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-06-25 15:36:02 Duration: 775ms
-
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_policies', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_constraint', 'pg_catalog.pg_amproc', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_matviews', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_cursors', 'pg_catalog.pg_settings', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_cast', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_extension', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_class', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_index', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_sequence', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_policy', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_subscription', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_trigger', 'pg_catalog.pg_user', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_range', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_opclass', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_conversion', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_proc', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_database', 'pg_catalog.pg_description', 'pg_catalog.pg_indexes', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_depend', 'pg_catalog.pg_publication', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_rules', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_enum', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_language', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_transform', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_replication_origin', 'information_schema.routine_routine_usage', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.element_types', 'information_schema.column_options', 'information_schema.columns', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.foreign_servers', 'information_schema.collations', 'information_schema.domain_constraints', 'information_schema.column_udt_usage', 'information_schema.sql_implementation_info', 'information_schema.routine_table_usage', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.column_column_usage', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.views', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.column_domain_usage', 'information_schema.enabled_roles', 'information_schema.referential_constraints', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.user_mapping_options', 'information_schema.user_defined_types', 'information_schema.foreign_server_options', 'information_schema.information_schema_catalog_name', 'information_schema.role_column_grants', 'information_schema.view_routine_usage', 'information_schema.role_routine_grants', 'information_schema.sequences', 'information_schema.tables', 'information_schema.constraint_table_usage', 'information_schema.table_privileges', 'information_schema.view_table_usage', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.routine_column_usage', 'information_schema.key_column_usage', 'information_schema.triggers', 'information_schema.usage_privileges', 'information_schema.character_sets', 'information_schema.user_mappings', 'information_schema.routines', 'information_schema.sql_sizing', 'information_schema.check_constraint_routine_usage', 'information_schema.collation_character_set_applicability', 'information_schema.view_column_usage', 'information_schema.column_privileges', 'information_schema.role_table_grants', 'information_schema.domain_udt_usage', 'information_schema.parameters', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.table_constraints', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-06-25 12:56:17 Duration: 748ms
-
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_aggregate', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_extension', 'pg_catalog.pg_matviews', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_enum', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_conversion', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_amop', 'pg_catalog.pg_stats', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_operator', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_inherits', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_database', 'pg_catalog.pg_rules', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_attribute', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_am', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_amproc', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_description', 'pg_catalog.pg_publication', 'pg_catalog.pg_locks', 'pg_catalog.pg_index', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_trigger', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_group', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_tables', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_settings', 'pg_catalog.pg_proc', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_views', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_collation', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_constraint', 'pg_catalog.pg_depend', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_type', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_stat_slru', 'information_schema.applicable_roles', 'information_schema.columns', 'information_schema.routine_table_usage', 'information_schema.sql_sizing', 'information_schema.user_defined_types', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.role_column_grants', 'information_schema.schemata', 'information_schema.role_table_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.referential_constraints', 'information_schema.user_mappings', 'information_schema.foreign_table_options', 'information_schema.foreign_tables', 'information_schema.routines', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.information_schema_catalog_name', 'information_schema.constraint_table_usage', 'information_schema.sequences', 'information_schema.column_udt_usage', 'information_schema.routine_routine_usage', 'information_schema.view_table_usage', 'information_schema.data_type_privileges', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.udt_privileges', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.triggered_update_columns', 'information_schema.triggers', 'information_schema.check_constraints', 'information_schema.routine_column_usage', 'information_schema.domain_constraints', 'information_schema.role_routine_grants', 'information_schema.table_constraints', 'information_schema.column_column_usage', 'information_schema.column_domain_usage', 'information_schema.domains', 'information_schema.role_udt_grants', 'information_schema.foreign_servers', 'information_schema.column_privileges', 'information_schema.routine_sequence_usage', 'information_schema.sql_features', 'information_schema.element_types', 'information_schema.administrable_role_authorizations', 'information_schema.key_column_usage', 'information_schema.tables', 'information_schema.foreign_data_wrappers', 'information_schema.constraint_column_usage', 'information_schema.views', 'information_schema.collation_character_set_applicability', 'information_schema.domain_udt_usage', 'information_schema.usage_privileges', 'information_schema.collations', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-06-25 15:48:17 Duration: 732ms
10 5,646 16m58s 120ms 1s127ms 180ms 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 Jun 25 02 7 949ms 135ms 08 1 127ms 127ms 09 2 290ms 145ms 10 3 405ms 135ms 11 42 7s180ms 170ms 12 810 2m34s 190ms 13 2,253 7m13s 192ms 14 406 1m15s 185ms 15 392 1m10s 179ms 16 66 11s109ms 168ms 17 175 28s849ms 164ms 18 276 46s364ms 167ms 19 179 31s582ms 176ms 20 917 2m21s 154ms 21 116 17s227ms 148ms 22 1 153ms 153ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (198537)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-25 14:52:29 Duration: 1s127ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (174247)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-25 13:09:24 Duration: 962ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (238885, 237191, 190593)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-06-25 13:02:55 Duration: 917ms
11 5,636 14m45s 120ms 650ms 157ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 25 11 110 16s906ms 153ms 12 1,263 3m17s 156ms 13 1,891 5m3s 160ms 14 884 2m21s 160ms 15 508 1m19s 155ms 16 70 11s405ms 162ms 17 226 32s869ms 145ms 18 330 48s851ms 148ms 19 260 38s581ms 148ms 20 89 13s946ms 156ms 21 5 752ms 150ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-fa1ab69/web.assets_frontend.css' GROUP BY name ORDER BY name;
Date: 2024-06-25 13:09:24 Duration: 650ms
-
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-06-25 14:59:23 Duration: 515ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-7eb3f27/web.assets_common.css' GROUP BY name ORDER BY name;
Date: 2024-06-25 12:39:37 Duration: 505ms
12 4,732 14m27s 144ms 772ms 183ms 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 #12
Day Hour Count Duration Avg duration Jun 25 08 11 1s647ms 149ms 11 222 37s473ms 168ms 12 922 3m 195ms 13 602 2m6s 209ms 14 526 1m42s 194ms 15 304 53s593ms 176ms 16 147 25s227ms 171ms 17 452 1m15s 166ms 18 495 1m24s 170ms 19 378 1m5s 172ms 20 374 1m7s 180ms 21 299 48s597ms 162ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((10.0), 0) + COALESCE((1.0), 0) WHERE product_id = 193595 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 13:02:54 Duration: 772ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((138.0), 0) + COALESCE((2.0), 0) WHERE product_id = 188854 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-06-25 13:15:41 Duration: 743ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE((37.0), 0) + COALESCE((47.0), 0) WHERE product_id = 238904 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-06-25 12:36:19 Duration: 614ms
13 4,350 14m32s 120ms 865ms 200ms 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 #13
Day Hour Count Duration Avg duration Jun 25 11 207 33s704ms 162ms 12 790 2m58s 225ms 13 1,013 3m51s 228ms 14 563 1m42s 182ms 15 287 1m2s 216ms 16 315 54s503ms 173ms 17 537 1m28s 163ms 18 493 1m37s 198ms 19 132 23s560ms 178ms 20 13 1s624ms 124ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 206014) 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-06-25 13:09:24 Duration: 865ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 226426) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '45')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-06-25 17:02:43 Duration: 776ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 196255) 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" = '50')))))) 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-06-25 15:23:43 Duration: 665ms
14 4,221 21m41s 134ms 13s433ms 308ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 25 08 7 1s326ms 189ms 10 1 199ms 199ms 11 138 29s540ms 214ms 12 697 4m37s 397ms 13 746 4m26s 357ms 14 570 3m11s 335ms 15 449 1m56s 259ms 16 155 32s248ms 208ms 17 439 1m34s 215ms 18 482 2m24s 300ms 19 356 1m32s 258ms 20 170 53s700ms 315ms 21 10 2s8ms 200ms 22 1 171ms 171ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 254326 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 14:46:50 Duration: 13s433ms
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 199592 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50 Duration: 10s21ms
-
UPDATE product_warehouse_inventory SET qty_available = 72.0 WHERE product_id = 199562 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50 Duration: 9s710ms
15 3,957 27m15s 138ms 23s836ms 413ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 25 08 2 313ms 156ms 09 1 145ms 145ms 11 154 41s305ms 268ms 12 521 3m28s 399ms 13 564 3m46s 401ms 14 572 5m41s 597ms 15 355 1m38s 276ms 16 98 21s128ms 215ms 17 415 2m18s 333ms 18 425 2m34s 364ms 19 341 1m33s 275ms 20 360 4m20s 724ms 21 149 50s49ms 335ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 254122 AND warehouse_id = 46;
Date: 2024-06-25 14:28:17 Duration: 23s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 19s352ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 18s33ms
16 3,750 14m30s 153ms 1s294ms 232ms select "account_move".id from "account_move" where ((("account_move"."journal_id" in ( select "account_journal".id from "account_journal" where ("account_journal"."type" in (...)))) and ("account_move"."state" in (...))) and ("account_move"."partner_id" in (...))) order by "account_move"."invoice_date_due";Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 25 08 12 2s119ms 176ms 10 235 39s200ms 166ms 11 158 33s776ms 213ms 12 596 2m33s 258ms 13 474 2m23s 303ms 14 416 1m46s 256ms 15 338 1m20s 237ms 16 180 34s351ms 190ms 17 253 53s170ms 210ms 18 376 1m25s 227ms 19 310 1m7s 218ms 20 116 23s46ms 198ms 21 3 507ms 169ms 22 1 200ms 200ms 23 282 46s656ms 165ms -
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (51854))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-25 14:30:05 Duration: 1s294ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (32769))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-25 12:46:08 Duration: 987ms
-
SELECT "account_move".id FROM "account_move" WHERE ((("account_move"."journal_id" in ( SELECT "account_journal".id FROM "account_journal" WHERE ("account_journal"."type" in ('sale', 'cash', 'bank')))) AND ("account_move"."state" in ('posted'))) AND ("account_move"."partner_id" in (39154))) ORDER BY "account_move"."invoice_date_due";
Date: 2024-06-25 14:00:41 Duration: 812ms
17 3,233 26m27s 136ms 52s361ms 491ms 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 Jun 25 08 2 357ms 178ms 09 6 893ms 148ms 10 3 641ms 213ms 11 235 1m27s 372ms 12 427 3m10s 445ms 13 392 3m9s 484ms 14 344 2m15s 392ms 15 288 2m21s 489ms 16 94 19s246ms 204ms 17 254 1m17s 305ms 18 351 2m9s 367ms 19 434 2m28s 342ms 20 325 7m18s 1s348ms 21 76 28s371ms 373ms 22 2 380ms 190ms -
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:41:28 Duration: 52s361ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:44:56 Duration: 52s153ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:38:28 Duration: 50s557ms
18 3,042 31m22s 424ms 2s17ms 618ms 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 Jun 25 00 3 1s291ms 430ms 01 9 3s885ms 431ms 02 6 2s564ms 427ms 05 3 1s335ms 445ms 06 6 2s570ms 428ms 07 12 5s339ms 444ms 08 16 7s207ms 450ms 10 10 4s338ms 433ms 11 207 1m43s 501ms 12 466 5m19s 686ms 13 496 6m22s 770ms 14 427 4m38s 652ms 15 367 3m42s 607ms 16 174 1m25s 492ms 17 284 2m28s 523ms 18 272 2m34s 567ms 19 191 1m48s 570ms 20 63 35s780ms 567ms 21 24 10s781ms 449ms 23 6 2s586ms 431ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 15:38:12 Duration: 2s17ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 14:49:57 Duration: 1s880ms
-
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.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d496922/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 13:53:35 Duration: 1s828ms
19 2,881 8m6s 120ms 620ms 168ms 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 #19
Day Hour Count Duration Avg duration Jun 25 11 59 8s392ms 142ms 12 715 2m4s 174ms 13 860 2m28s 172ms 14 406 1m12s 177ms 15 228 39s602ms 173ms 16 75 11s237ms 149ms 17 209 31s54ms 148ms 18 264 41s698ms 157ms 19 65 9s119ms 140ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 227384)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-25 13:21:15 Duration: 620ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 199590)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-25 15:39:02 Duration: 542ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 36) AND ("product_warehouse_inventory"."product_id" = 198452)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-06-25 12:40:34 Duration: 538ms
20 2,798 48m26s 677ms 3s630ms 1s38ms 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 #20
Day Hour Count Duration Avg duration Jun 25 02 26 18s543ms 713ms 08 8 5s804ms 725ms 10 15 10s938ms 729ms 11 171 2m30s 878ms 12 491 8m46s 1s72ms 13 493 11m31s 1s401ms 14 130 2m38s 1s217ms 15 276 4m34s 993ms 16 91 1m12s 792ms 17 252 3m45s 895ms 18 377 5m52s 934ms 19 254 3m55s 926ms 20 195 2m51s 878ms 23 19 13s507ms 710ms -
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 ('%%at06%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%at06%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%at06%'))) 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-06-25 12:39:39 Duration: 3s630ms
-
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 ('%%280gdfjpb%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%280gdfjp-b%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%280gdfjp-b%'))) 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-06-25 13:00:37 Duration: 3s598ms
-
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 ('%%12x1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1/2x1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1/2x1%'))) 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-06-25 13:44:29 Duration: 3s288ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 47m27s 47m27s 47m27s 1 47m27s select "sale_history_line".id from "sale_history_line" where (((("sale_history_line"."user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?))))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 25 20 1 47m27s 47m27s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 20:53:10 Duration: 47m27s
2 42m50s 42m50s 42m50s 1 42m50s select count(?) from "sale_history_line" where (((("sale_history_line"."user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?))))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 25 21 1 42m50s 42m50s -
SELECT count(1) FROM "sale_history_line" WHERE (((("sale_history_line"."user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stiglich%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private'))))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL));
Date: 2024-06-25 21:36:01 Duration: 42m50s
3 25m45s 25m45s 25m45s 1 25m45s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "inventory_vendor_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" order by "sale_history_line__inventory_vendor_id"."id" limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 25 14 1 25m45s 25m45s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "inventory_vendor_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id" LIMIT 80;
Date: 2024-06-25 14:37:04 Duration: 25m45s
4 24m44s 24m44s 24m44s 1 24m44s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" AS "customer_id" from "sale_history_line" left join "res_partner" AS "sale_history_line__customer_id" on ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) group by "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" order by "sale_history_line__customer_id"."display_name" limit ? offset ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 25 13 1 24m44s 24m44s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 100000 OFFSET 80;
Date: 2024-06-25 13:47:05 Duration: 24m44s
5 23m55s 23m55s 23m55s 1 23m55s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id", "sale_history_line"."selling_branch" AS "selling_branch" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") left join "res_branch" AS "sale_history_line__selling_branch" on ("sale_history_line"."selling_branch" = "sale_history_line__selling_branch"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line"."selling_branch", "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id" order by "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id";Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 25 15 1 23m55s 23m55s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id", "sale_history_line"."selling_branch" as "selling_branch" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") LEFT JOIN "res_branch" AS "sale_history_line__selling_branch" ON ("sale_history_line"."selling_branch" = "sale_history_line__selling_branch"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line"."selling_branch", "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id", "sale_history_line__selling_branch"."id";
Date: 2024-06-25 15:53:39 Duration: 23m55s
6 23m46s 23m46s 23m46s 1 23m46s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" AS "inventory_vendor_id" from "sale_history_line" left join "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" on ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ("sale_history_line"."manufacturing_usage" is null or "sale_history_line"."manufacturing_usage" = false)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."inventory_vendor_id" in ( select "psd_custom_inventory_vendor".id from "psd_custom_inventory_vendor" where (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent (?))))) group by "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" order by "sale_history_line__inventory_vendor_id"."id";Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 25 15 1 23m46s 23m46s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "__count", sum("sale_history_line"."price_subtotal") AS "price_subtotal", "sale_history_line"."inventory_vendor_id" as "inventory_vendor_id" FROM "sale_history_line" LEFT JOIN "psd_custom_inventory_vendor" AS "sale_history_line__inventory_vendor_id" ON ("sale_history_line"."inventory_vendor_id" = "sale_history_line__inventory_vendor_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ("sale_history_line"."manufacturing_usage" IS NULL or "sale_history_line"."manufacturing_usage" = false)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."inventory_vendor_id" in ( SELECT "psd_custom_inventory_vendor".id FROM "psd_custom_inventory_vendor" WHERE (unaccent ("psd_custom_inventory_vendor"."name"::text) ilike unaccent ('%bendix%'))))) GROUP BY "sale_history_line"."inventory_vendor_id", "sale_history_line__inventory_vendor_id"."id" ORDER BY "sale_history_line__inventory_vendor_id"."id";
Date: 2024-06-25 15:53:31 Duration: 23m46s
7 23m23s 23m23s 23m23s 1 23m23s select min("sale_history_line".id) as id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" AS "customer_id" from "sale_history_line" left join "res_partner" AS "sale_history_line__customer_id" on ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") where ((((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ("sale_history_line"."invoice_date" > ?)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) group by "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" order by "sale_history_line__customer_id"."display_name" limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 25 13 1 23m23s 23m23s -
SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "customer_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."customer_id" as "customer_id" FROM "sale_history_line" LEFT JOIN "res_partner" AS "sale_history_line__customer_id" ON ("sale_history_line"."customer_id" = "sale_history_line__customer_id"."id") WHERE ((((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ("sale_history_line"."invoice_date" > '2021-11-30')) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) GROUP BY "sale_history_line"."customer_id", "sale_history_line__customer_id"."display_name" ORDER BY "sale_history_line__customer_id"."display_name" LIMIT 80;
Date: 2024-06-25 13:22:20 Duration: 23m23s
8 11m18s 13m4s 12m11s 2 24m23s select "sale_history_line".id from "sale_history_line" where ((((((("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" <= ?)) or (("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" <= ?))) and ("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false)) and ("sale_history_line"."new_user_id" in ( select "res_users".id from "res_users" left join "res_partner" AS "res_users__partner_id" on ("res_users"."partner_id" = "res_users__partner_id"."id") where (unaccent ("res_users__partner_id"."name"::text) ilike unaccent (?)) and (("res_users"."share" is null or "res_users"."share" = false) or exists ( select ? from "res_company_users_rel" AS "res_users__company_ids" where "res_users__company_ids"."user_id" = "res_users".id and "res_users__company_ids"."cid" in (...))) and (((("res_users__partner_id"."partner_share" is null or "res_users__partner_id"."partner_share" = false) or ("res_users__partner_id"."company_id" in (...))) or "res_users__partner_id"."company_id" is null) and (((("res_users__partner_id"."type" != ?) or "res_users__partner_id"."type" is null) or "res_users__partner_id"."type" is null) or ("res_users__partner_id"."type" = ?)))))) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 25 13 2 24m23s 12m11s -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 13:56:20 Duration: 13m4s
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ((((((("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')) OR (("sale_history_line"."invoice_date" >= '2024-01-01') AND ("sale_history_line"."invoice_date" <= '2024-12-31'))) AND ("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false)) AND ("sale_history_line"."new_user_id" in ( SELECT "res_users".id FROM "res_users" LEFT JOIN "res_partner" AS "res_users__partner_id" ON ("res_users"."partner_id" = "res_users__partner_id"."id") WHERE (unaccent ("res_users__partner_id"."name"::text) ilike unaccent ('%stigl%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;
Date: 2024-06-25 13:36:32 Duration: 11m18s
9 677ms 3s630ms 1s38ms 2,798 48m26s 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 #9
Day Hour Count Duration Avg duration Jun 25 02 26 18s543ms 713ms 08 8 5s804ms 725ms 10 15 10s938ms 729ms 11 171 2m30s 878ms 12 491 8m46s 1s72ms 13 493 11m31s 1s401ms 14 130 2m38s 1s217ms 15 276 4m34s 993ms 16 91 1m12s 792ms 17 252 3m45s 895ms 18 377 5m52s 934ms 19 254 3m55s 926ms 20 195 2m51s 878ms 23 19 13s507ms 710ms -
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 ('%%at06%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%at06%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%at06%'))) 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-06-25 12:39:39 Duration: 3s630ms
-
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 ('%%280gdfjpb%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%280gdfjp-b%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%280gdfjp-b%'))) 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-06-25 13:00:37 Duration: 3s598ms
-
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 ('%%12x1%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%1/2x1%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%1/2x1%'))) 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-06-25 13:44:29 Duration: 3s288ms
10 885ms 1s306ms 906ms 1,891 28m33s select "sale_history_line".id from "sale_history_line" where (((((("sale_history_line"."invoice_date" >= ?) and ("sale_history_line"."invoice_date" < ?)) and ("sale_history_line"."user_id" = ?)) and ("sale_history_line"."customer_id" = ?)) and ("sale_history_line"."inventory_vendor_id" = ?)) and (((("sale_history_line"."is_shipping" is null or "sale_history_line"."is_shipping" = false) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent (?)) or "sale_history_line"."invoice_number" is null)) and "sale_history_line"."product_name" is not null)) order by "sale_history_line"."invoice_date" desc;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 25 00 1,891 28m33s 906ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-11-01') AND ("sale_history_line"."invoice_date" < '2016-12-01')) AND ("sale_history_line"."user_id" = 954)) AND ("sale_history_line"."customer_id" = 33392)) AND ("sale_history_line"."inventory_vendor_id" = 3035)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:16:28 Duration: 1s306ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-10-01') AND ("sale_history_line"."invoice_date" < '2016-11-01')) AND ("sale_history_line"."user_id" = 1041)) AND ("sale_history_line"."customer_id" = 38469)) AND ("sale_history_line"."inventory_vendor_id" = 3019)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:13:02 Duration: 1s299ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE (((((("sale_history_line"."invoice_date" >= '2016-10-01') AND ("sale_history_line"."invoice_date" < '2016-11-01')) AND ("sale_history_line"."user_id" = 1027)) AND ("sale_history_line"."customer_id" = 44447)) AND ("sale_history_line"."inventory_vendor_id" = 2915)) AND (((("sale_history_line"."is_shipping" IS NULL or "sale_history_line"."is_shipping" = false) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) AND ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%q%')) OR "sale_history_line"."invoice_number" IS NULL)) AND "sale_history_line"."product_name" IS NOT NULL)) ORDER BY "sale_history_line"."invoice_date" DESC;
Date: 2024-06-25 00:06:08 Duration: 1s281ms
11 264ms 3s553ms 635ms 26,624 4h42m1s with pwi_data as ( select pwi.id as pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id as replenish_wh_id from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id where pwi.replenish_branch_id is not null ), rep_loc_data as ( select pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from pwi_data left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = pwi_data.replenish_wh_id and rep_pwi.product_id = pwi_data.product_id ) select rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty from rep_loc_data where rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 25 08 18 6s59ms 336ms 10 37 13s801ms 373ms 11 1,267 10m25s 493ms 12 3,660 43m40s 715ms 13 3,683 53m14s 867ms 14 2,980 33m50s 681ms 15 2,592 26m49s 621ms 16 846 6m38s 471ms 17 2,316 21m 544ms 18 3,038 28m44s 567ms 19 3,217 29m34s 551ms 20 2,335 22m33s 579ms 21 614 4m56s 483ms 22 21 11s212ms 533ms -
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:39:39 Duration: 3s553ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 12:58:02 Duration: 3s310ms
-
WITH pwi_data AS ( SELECT pwi.id AS pwi_id, pwi.warehouse_id, pwi.product_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, pwi.replenish_branch_id, sw.id AS replenish_wh_id FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id WHERE pwi.replenish_branch_id IS NOT NULL ), rep_loc_data AS ( SELECT pwi_data.pwi_id, pwi_data.src_loc_check_qty, pwi_data.ex_rep_loc_check_qty, pwi_data.replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM pwi_data LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = pwi_data.replenish_wh_id AND rep_pwi.product_id = pwi_data.product_id ) SELECT rep_loc_data.pwi_id, rep_loc_data.ex_rep_loc_check_qty, (rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty) as new_rep_loc_check_qty FROM rep_loc_data WHERE rep_loc_data.ex_rep_loc_check_qty != rep_loc_data.src_loc_check_qty + rep_loc_data.rep_loc_check_qty;
Date: 2024-06-25 14:03:21 Duration: 3s211ms
12 424ms 2s17ms 618ms 3,042 31m22s 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 #12
Day Hour Count Duration Avg duration Jun 25 00 3 1s291ms 430ms 01 9 3s885ms 431ms 02 6 2s564ms 427ms 05 3 1s335ms 445ms 06 6 2s570ms 428ms 07 12 5s339ms 444ms 08 16 7s207ms 450ms 10 10 4s338ms 433ms 11 207 1m43s 501ms 12 466 5m19s 686ms 13 496 6m22s 770ms 14 427 4m38s 652ms 15 367 3m42s 607ms 16 174 1m25s 492ms 17 284 2m28s 523ms 18 272 2m34s 567ms 19 191 1m48s 570ms 20 63 35s780ms 567ms 21 24 10s781ms 449ms 23 6 2s586ms 431ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 15:38:12 Duration: 2s17ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-fb6cd24/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 14:49:57 Duration: 1s880ms
-
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.css'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-d496922/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-06-25 13:53:35 Duration: 1s828ms
13 314ms 40s27ms 573ms 26,617 4h14m23s with updated_records as ( update product_warehouse_inventory set loc_check_qty = coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ? returning id, product_id, warehouse_id ) select product_id, id as warehouse_inventory_id, warehouse_id from updated_records;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 25 08 17 5s928ms 348ms 10 37 20s444ms 552ms 11 1,267 8m57s 424ms 12 3,659 38m36s 633ms 13 3,678 43m23s 707ms 14 2,979 35m1s 705ms 15 2,592 23m5s 534ms 16 846 5m57s 422ms 17 2,316 20m8s 521ms 18 3,038 27m5s 535ms 19 3,217 25m37s 477ms 20 2,336 20m41s 531ms 21 614 5m14s 511ms 22 21 8s644ms 411ms -
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:18 Duration: 40s27ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:13 Duration: 37s556ms
-
WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;
Date: 2024-06-25 14:26:08 Duration: 36s180ms
14 138ms 1m 518ms 10,435 1h30m6s 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 #14
Day Hour Count Duration Avg duration Jun 25 02 6 899ms 149ms 08 10 1s671ms 167ms 10 8 1s276ms 159ms 11 357 1m42s 287ms 12 1,880 12m18s 392ms 13 2,217 23m59s 649ms 14 1,105 6m48s 369ms 15 759 4m26s 350ms 16 244 51s731ms 212ms 17 469 1m48s 231ms 18 1,204 8m20s 415ms 19 1,200 9m32s 477ms 20 965 20m11s 1s255ms 21 4 792ms 198ms 22 3 445ms 148ms 23 4 601ms 150ms -
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:44:28 Duration: 1m
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((32.0 - 32.0) + (0.0 - 0.0), 0) ELSE GREATEST ((32.0 - 32.0), 0) END where product_id = 209373 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 59s601ms
-
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 = 188473 and warehouse_id = 45 and company_id = 1;
Date: 2024-06-25 20:38:45 Duration: 59s574ms
15 136ms 52s361ms 491ms 3,233 26m27s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 25 08 2 357ms 178ms 09 6 893ms 148ms 10 3 641ms 213ms 11 235 1m27s 372ms 12 427 3m10s 445ms 13 392 3m9s 484ms 14 344 2m15s 392ms 15 288 2m21s 489ms 16 94 19s246ms 204ms 17 254 1m17s 305ms 18 351 2m9s 367ms 19 434 2m28s 342ms 20 325 7m18s 1s348ms 21 76 28s371ms 373ms 22 2 380ms 190ms -
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:41:28 Duration: 52s361ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:44:56 Duration: 52s153ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 10.0 WHERE product_id = 188473 AND warehouse_id = 45;
Date: 2024-06-25 20:38:28 Duration: 50s557ms
16 138ms 23s836ms 413ms 3,957 27m15s 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 Jun 25 08 2 313ms 156ms 09 1 145ms 145ms 11 154 41s305ms 268ms 12 521 3m28s 399ms 13 564 3m46s 401ms 14 572 5m41s 597ms 15 355 1m38s 276ms 16 98 21s128ms 215ms 17 415 2m18s 333ms 18 425 2m34s 364ms 19 341 1m33s 275ms 20 360 4m20s 724ms 21 149 50s49ms 335ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 254122 AND warehouse_id = 46;
Date: 2024-06-25 14:28:17 Duration: 23s836ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 19s352ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 186215 AND warehouse_id = 46;
Date: 2024-06-25 14:28:59 Duration: 18s33ms
17 141ms 42s533ms 383ms 19,194 2h2m46s update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 25 08 13 1s992ms 153ms 10 18 2s811ms 156ms 11 902 3m52s 257ms 12 2,720 16m21s 360ms 13 2,676 20m5s 450ms 14 2,410 12m11s 303ms 15 1,741 10m3s 346ms 16 522 1m41s 194ms 17 1,805 8m3s 267ms 18 1,963 8m52s 271ms 19 1,904 9m33s 301ms 20 1,820 29m41s 978ms 21 690 2m12s 191ms 22 10 1s662ms 166ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:41:44 Duration: 42s533ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 188473 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-06-25 20:38:53 Duration: 42s414ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(4.0, 0) WHERE product_id = 179248 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-06-25 13:38:01 Duration: 39s805ms
18 134ms 13s433ms 308ms 4,221 21m41s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 25 08 7 1s326ms 189ms 10 1 199ms 199ms 11 138 29s540ms 214ms 12 697 4m37s 397ms 13 746 4m26s 357ms 14 570 3m11s 335ms 15 449 1m56s 259ms 16 155 32s248ms 208ms 17 439 1m34s 215ms 18 482 2m24s 300ms 19 356 1m32s 258ms 20 170 53s700ms 315ms 21 10 2s8ms 200ms 22 1 171ms 171ms -
UPDATE product_warehouse_inventory SET qty_available = 3.0 WHERE product_id = 254326 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 14:46:50 Duration: 13s433ms
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 199592 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50 Duration: 10s21ms
-
UPDATE product_warehouse_inventory SET qty_available = 72.0 WHERE product_id = 199562 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-06-25 12:48:50 Duration: 9s710ms
19 120ms 2s350ms 270ms 69,122 5h12m11s 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 #19
Day Hour Count Duration Avg duration Jun 25 00 815 2m18s 170ms 01 430 1m58s 275ms 02 478 1m57s 245ms 03 588 2m16s 232ms 04 538 2m10s 241ms 05 574 1m52s 195ms 06 864 3m 209ms 07 722 2m1s 168ms 08 665 2m39s 240ms 09 1,078 2m54s 161ms 10 831 2m58s 215ms 11 2,882 9m46s 203ms 12 8,258 42m36s 309ms 13 9,431 54m42s 348ms 14 8,639 45m23s 315ms 15 8,024 37m26s 279ms 16 4,677 17m38s 226ms 17 5,229 24m22s 279ms 18 5,597 23m10s 248ms 19 4,748 17m45s 224ms 20 2,421 8m29s 210ms 21 935 2m45s 177ms 22 362 1m2s 172ms 23 336 52s903ms 157ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1013"', '["pointspring_master","calendar.alarm",19551]', '["pointspring_master","mail.channel",94]', '["pointspring_master","mail.channel",95]', '["pointspring_master","mail.channel",96]', '["pointspring_master","mail.channel",97]', '["pointspring_master","mail.channel",98]', '["pointspring_master","mail.channel",338]', '["pointspring_master","mail.channel",576]', '["pointspring_master","mail.channel",594]', '["pointspring_master","mail.channel",595]', '["pointspring_master","mail.channel",606]', '["pointspring_master","res.partner",19551]', '["pointspring_master","ir.needaction",19551]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s350ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 12:38:45') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19584]', '["pointspring_master","mail.channel",140]', '["pointspring_master","mail.channel",247]', '["pointspring_master","mail.channel",336]', '["pointspring_master","mail.channel",433]', '["pointspring_master","mail.channel",498]', '["pointspring_master","res.partner",19584]', '["pointspring_master","ir.needaction",19584]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 12:39:37 Duration: 2s343ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-06-25 14:02:28') AND ("bus_bus"."channel" in ('["pointspring_master","calendar.alarm",19513]', '["pointspring_master","mail.channel",482]', '["pointspring_master","mail.channel",498]', '["pointspring_master","mail.channel",554]', '["pointspring_master","res.partner",19513]', '["pointspring_master","ir.needaction",19513]'))) ORDER BY "bus_bus"."id";
Date: 2024-06-25 14:03:20 Duration: 2s323ms
20 120ms 1s185ms 240ms 8,695 34m51s select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 25 08 1 134ms 134ms 10 4 651ms 162ms 11 176 36s360ms 206ms 12 1,639 6m49s 249ms 13 2,514 11m8s 265ms 14 1,113 4m27s 239ms 15 752 3m2s 242ms 16 116 22s517ms 194ms 17 309 1m2s 202ms 18 867 3m7s 216ms 19 799 2m57s 221ms 20 402 1m16s 191ms 21 3 444ms 148ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 215703 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:17:21 Duration: 1s185ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 234076 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 14:49:59 Duration: 1s106ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 188603 and sol.warehouse_id = 44 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-06-25 13:30:53 Duration: 1s69ms
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
- 453,609 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 48522 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 34,790 Max number of times the same event was reported
- 48,522 Total events found
Rank Times reported Error 1 34,790 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 25 04 1 08 71 10 37 11 1,362 12 4,968 13 5,145 14 3,586 15 3,508 16 1,613 17 3,890 18 4,464 19 4,064 20 1,616 21 436 22 29 - 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-06-25 08:54:04' WHERE id IN (95)
Date: 2024-06-25 08:54:04
Statement: UPDATE "bus_presence" SET "last_poll"='2024-06-25 15:50:03',"last_presence"='2024-06-25 15:43:53.330242' WHERE id IN (56)
Date: 2024-06-25 15:50:03
Statement: UPDATE "bus_presence" SET "last_poll"='2024-06-25 15:50:03',"last_presence"='2024-06-25 15:37:07.496203' WHERE id IN (238)
Date: 2024-06-25 15:50:03
2 6,087 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #2
Day Hour Count Jun 25 08 1 10 2 11 178 12 1,080 13 1,162 14 725 15 465 16 94 17 486 18 689 19 659 20 456 21 90 - ERROR: process 3243834 still waiting for ExclusiveLock on tuple (5643,13) of relation 65213 of database 65946 after 1000.053 ms
- ERROR: process 3393017 still waiting for ExclusiveLock on tuple (5692,10) of relation 65213 of database 65946 after 1000.052 ms
- ERROR: process 3222145 still waiting for ExclusiveLock on tuple (5694,4) of relation 65213 of database 65946 after 1000.054 ms
Detail: Process holding the lock: 3243157. Wait queue: 3243834, 3243158, 3243186, 3393017, 3243185, 3222143.
Statement: WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;Date: 2024-06-25 15:50:02
Detail: Process holding the lock: 3243184. Wait queue: 3393017.
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267316 AND warehouse_id = 46Date: 2024-06-25 15:50:55
Detail: Process holding the lock: 3243184. Wait queue: 3222145.
Statement: UPDATE product_warehouse_inventory SET qty_available = 0 WHERE product_id = 267317 AND warehouse_id = 46 AND company_id = 1Date: 2024-06-25 15:51:17
3 4,442 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Jun 25 08 1 10 4 11 151 12 773 13 787 14 584 15 335 16 66 17 296 18 452 19 429 20 509 21 55 - ERROR: process 3243157 still waiting for ShareLock on transaction 279287916 after 1000.065 ms
- ERROR: process 3243186 still waiting for ShareLock on transaction 279288174 after 1000.052 ms
- ERROR: process 3243185 still waiting for ShareLock on transaction 279288453 after 1000.051 ms
Detail: Process holding the lock: 3222144. Wait queue: 3243157.
Context: while updating tuple (5643,13) in relation "product_warehouse_inventory"
Statement: WITH updated_records AS ( UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) WHERE loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1 RETURNING id, product_id, warehouse_id ) SELECT product_id, id AS warehouse_inventory_id, warehouse_id FROM updated_records;Date: 2024-06-25 15:50:02
Detail: Process holding the lock: 3243185. Wait queue: 3222145, 3243186.
Context: while updating tuple (5684,13) in relation "product_warehouse_inventory"
Statement: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((70.0 - 66.0) + (0.0 - 0.0), 0) ELSE GREATEST((70.0 - 66.0),0) END where product_id=183885 and warehouse_id=42 and company_id=1Date: 2024-06-25 15:50:22
Detail: Process holding the lock: 3243186. Wait queue: 3243185.
Context: while updating tuple (5689,5) in relation "product_warehouse_inventory"
Statement: UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(2.0, 0) WHERE product_id = 215784 AND warehouse_id = 43 AND company_id = 1Date: 2024-06-25 15:50:35
4 2,070 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #4
Day Hour Count Jun 25 10 1 11 70 12 404 13 294 14 296 15 108 16 43 17 95 18 221 19 179 20 338 21 21 - ERROR: deadlock detected
- ERROR: deadlock detected
- ERROR: deadlock detected
Detail: Process 3331859 waits for ShareLock on transaction 279289019; blocked by process 3243166. Process 3243166 waits for ShareLock on transaction 279289022; blocked by process 3393017. Process 3393017 waits for ExclusiveLock on tuple (5692,10) of relation 65213 of database 65946; blocked by process 3331859. Process 3331859: UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 267316 AND warehouse_id = 46 AND company_id = 1 Process 3243166: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267317 AND warehouse_id = 46 Process 3393017: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267316 AND warehouse_id = 46
Context: while updating tuple (5692,10) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 267316 AND warehouse_id = 46 AND company_id = 1Date: 2024-06-25 15:50:55
Detail: Process 3243166 waits for ShareLock on transaction 279289022; blocked by process 3393017. Process 3393017 waits for ExclusiveLock on tuple (5692,10) of relation 65213 of database 65946; blocked by process 3222143. Process 3222143 waits for ShareLock on transaction 279289019; blocked by process 3243166. Process 3243166: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267317 AND warehouse_id = 46 Process 3393017: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267316 AND warehouse_id = 46 Process 3222143: UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 267316 AND warehouse_id = 46
Context: while updating tuple (3527,20) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267317 AND warehouse_id = 46Date: 2024-06-25 15:50:55
Detail: Process 3243184 waits for ShareLock on transaction 279289021; blocked by process 3222143. Process 3222143 waits for ShareLock on transaction 279289022; blocked by process 3393017. Process 3393017 waits for ExclusiveLock on tuple (5692,10) of relation 65213 of database 65946; blocked by process 3243184. Process 3243184: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST((0.0 - 0.0),0) END where product_id=267316 and warehouse_id=46 and company_id=1 Process 3222143: UPDATE product_warehouse_inventory SET qty_mtd_sold = 0 - 0 WHERE product_id = 267317 AND warehouse_id = 46 Process 3393017: UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 267316 AND warehouse_id = 46
Context: while updating tuple (5692,10) in relation "product_warehouse_inventory"
Hint: See server log for query details.
Statement: update product_warehouse_inventory set qty_shipped_not_invoiced=CASE WHEN 0.0 IS NOT NULL THEN GREATEST((0.0 - 0.0) + (0.0 - 0.0), 0) ELSE GREATEST((0.0 - 0.0),0) END where product_id=267316 and warehouse_id=46 and company_id=1Date: 2024-06-25 15:50:56
5 1,116 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Jun 25 00 43 01 68 02 44 03 32 04 24 05 23 06 29 07 96 08 53 09 28 10 89 11 31 12 41 13 57 14 41 15 39 16 35 17 44 18 37 19 80 20 40 21 27 22 26 23 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-06-25 08:50:28
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-06-25 09:00:06
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=89 FOR UPDATE NOWAIT
Date: 2024-06-25 09:19:11
6 6 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #6
Day Hour Count Jun 25 15 5 18 1 - ERROR: null value in column "name" of relation "sale_order_line" violates not-null constraint
- ERROR: null value in column "name" of relation "sale_order_line" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (432637, 148633, null, 2, no, 0.00, null, null, null, null, null, null, 0.00, null, 0.00, null, null, 0.00, 0.00, null, null, null, null, null, null, null, null, null, null, draft, 0, line_note, 1035, 2024-06-25 15:06:15.875638, 1035, 2024-06-25 15:06:15.875638, null, null, null, null, null, null, null, null, null, 0.00, f, null, f, new_product, 0, f, 0.00, t, f, null, null, null, null, null, null, null, null, null, f, null, null, null, null, null, null, null, null, null, null, 0, f, f, null, null, null, f, null, null, null, null).
Statement: INSERT INTO "sale_order_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "core_bank_transaction", "core_qty", "customer_lead", "discount", "display_type", "exception_sale", "invoice_status", "is_call_for_price_prod", "is_delivery", "is_legacy", "is_visible_in_report", "manual_price_changed", "move_options", "name", "open_qty_fil", "order_id", "price_unit", "product_id", "product_packaging", "product_pricelist_item_id", "product_uom", "product_uom_qty", "purchase_price", "qty_delivered", "qty_delivered_manual", "rebate_amount", "return_rule_skiped", "route_id", "sequence", "so_line_id", "state", "tick") VALUES (nextval('sale_order_line_id_seq'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), false, 0.0, 0.0, '0.00', 'line_note', false, 'no', false, false, false, true, false, 'new_product', NULL, 0.0, 148633, '0.00', NULL, NULL, NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', false, NULL, 2, NULL, 'draft', false) RETURNING idDate: 2024-06-25 15:06:15
Detail: Failing row contains (432641, 148633, null, 2, no, 0.00, null, null, null, null, null, null, 0.00, null, 0.00, null, null, 0.00, 0.00, null, null, null, null, null, null, null, null, null, null, draft, 0, line_note, 1035, 2024-06-25 15:10:17.283751, 1035, 2024-06-25 15:10:17.283751, null, null, null, null, null, null, null, null, null, 0.00, f, null, f, new_product, 0, f, 0.00, f, f, null, null, null, null, null, null, null, null, null, f, null, null, null, null, null, null, null, null, null, null, 0, f, f, null, null, null, f, null, null, null, null).
Statement: INSERT INTO "sale_order_line" ("id", "create_uid", "create_date", "write_uid", "write_date", "core_bank_transaction", "core_qty", "customer_lead", "discount", "display_type", "exception_sale", "invoice_status", "is_call_for_price_prod", "is_delivery", "is_legacy", "is_visible_in_report", "manual_price_changed", "move_options", "name", "open_qty_fil", "order_id", "price_unit", "product_id", "product_packaging", "product_pricelist_item_id", "product_uom", "product_uom_qty", "purchase_price", "qty_delivered", "qty_delivered_manual", "rebate_amount", "return_rule_skiped", "route_id", "sequence", "so_line_id", "state", "tick") VALUES (nextval('sale_order_line_id_seq'), 1035, (now() at time zone 'UTC'), 1035, (now() at time zone 'UTC'), false, 0.0, 0.0, '0.00', 'line_note', false, 'no', false, false, false, false, false, 'new_product', NULL, 0.0, 148633, '0.00', NULL, NULL, NULL, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', false, NULL, 2, NULL, 'draft', false) RETURNING idDate: 2024-06-25 15:10:17
Detail: Failing row contains (269043, null, A4692QEXN, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 982, 2024-06-25 18:59:40.311232, 982, 2024-06-25 18:59:40.311232, 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, 482275, never, 0, , 42, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-06-25, null, E, 1, null, null, f, f, no, null, 1, null, null, null, null, null, null, null, null, null, none, null, null, null, f, f, null, null, null, f, rfq, null, null, null, null, null).
Statement: INSERT INTO "product_template" ("id", "create_uid", "create_date", "write_uid", "write_date", "active", "allow_journal", "available_threshold", "branch_id", "categ_id", "core_qty", "custom_message", "expense_policy", "first_active_date", "global_class_code", "inventory_availability", "invoice_policy", "is_core", "is_direct_order_product", "is_mo_product", "is_published", "is_transmission", "linked_with_existing_core", "list_price", "name", "produce_delay", "purchase_line_warn", "purchase_method", "purchase_ok", "purchase_requisition", "sale_delay", "sale_line_warn", "sale_ok", "sequence", "service_form_type", "service_tracking", "service_type", "standard_carton_quanity", "tracking", "type", "uom_id", "uom_po_id", "website_sequence", "website_size_x", "website_size_y") VALUES (nextval('product_template_id_seq'), 982, (now() at time zone 'UTC'), 982, (now() at time zone 'UTC'), true, false, 0.0, 42, NULL, 1, '', 'no', '2024-06-25', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'A4692QEXN', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 482275, 1, 1) RETURNING idDate: 2024-06-25 18:59:40
7 4 ERROR: could not create unique index "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Jun 25 08 4 - ERROR: could not create unique index "vendor_account_master_unique_acc_no"
Detail: Key (account_number)=(0002609) is duplicated.
Statement: ALTER TABLE "vendor_account_master" ADD CONSTRAINT "vendor_account_master_unique_acc_no" unique (account_number)Date: 2024-06-25 08:13:41
8 3 LOG: process ... still waiting for AccessShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #8
Day Hour Count Jun 25 08 3 - ERROR: process 3222215 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.043 ms at character 22
- ERROR: process 3222362 still waiting for AccessShareLock on relation 43699 of database 65946 after 1000.042 ms at character 34
Detail: Process holding the lock: 3222632. Wait queue: 3222215, 3222362.
Statement: SELECT name, id FROM ir_model_fields WHERE model='sale.order'Date: 2024-06-25 08:14:08
Detail: Process holding the lock: 3222632. Wait queue: 3222215, 3222362.
Statement: SELECT "ir_model_fields".id FROM "ir_model_fields" WHERE ("ir_model_fields"."model" = 'psd_custom.inventory_vendor') ORDER BY "ir_model_fields"."name"Date: 2024-06-25 08:14:08
9 2 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #9
Day Hour Count Jun 25 00 2 10 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #10
Day Hour Count Jun 25 11 1 - ERROR: duplicate key value violates unique constraint "product_template_cat_vendor_default_code_unique"
Detail: Key (cat_vendor, default_code)=(Automann, KP0372A) already exists.
Statement: UPDATE "product_template" SET "can_image_1024_be_zoomed"=false,"cat_part_type"='Miscellaneous',"cat_prod_type"='Parts',"cat_vendor"='Automann',"has_configurable_attributes"=false,"inventory_vendor_short_name"='Automann',"raise_core_warning"=false,"rating_last_value"=0.0,"volume"='0.00',"weight"='0.00',"write_uid"=990,"write_date"=(now() at time zone 'UTC') WHERE id IN (268980)Date: 2024-06-25 11:49:10
11 1 ERROR: invalid input syntax for type integer: ...
Times Reported Most Frequent Error / Event #11
Day Hour Count Jun 25 16 1 - ERROR: invalid input syntax for type integer: "virtual_1024" at character 3534
Statement: SELECT "sale_order"."id" as "id", "sale_order"."carrier_id" as "carrier_id", "sale_order"."is_cash_sale_order" as "is_cash_sale_order", "sale_order"."special_instructions" as "special_instructions", "sale_order"."require_payment" as "require_payment", "sale_order"."analytic_account_id" as "analytic_account_id", "sale_order"."marked_as_lost" as "marked_as_lost", "sale_order"."team_id" as "team_id", "sale_order"."margin_percent" as "margin_percent", "sale_order"."margin" as "margin", "sale_order"."currency_id" as "currency_id", "sale_order"."show_update_pricelist" as "show_update_pricelist", "sale_order"."company_id" as "company_id", "sale_order"."is_core_sale" as "is_core_sale", "sale_order"."is_order_unlock" as "is_order_unlock", "sale_order"."signed_by" as "signed_by", "sale_order"."override_return_rule" as "override_return_rule", "sale_order"."date_order" as "date_order", "sale_order"."amount_total" as "amount_total", "sale_order"."state" as "state", "sale_order"."order_type" as "order_type", "sale_order"."incoterm" as "incoterm", "sale_order"."opportunity_id" as "opportunity_id", "sale_order"."fiscal_position_id" as "fiscal_position_id", "sale_order"."project_id" as "project_id", "sale_order"."reference" as "reference", "sale_order"."medium_id" as "medium_id", "sale_order"."payment_term_need_password" as "payment_term_need_password", "sale_order"."sale_action" as "sale_action", "sale_order"."partner_id" as "partner_id", "sale_order"."write_date" as "write_date", "sale_order"."unpaid_amount_total" as "unpaid_amount_total", "sale_order"."create_date" as "create_date", "sale_order"."invoice_status" as "invoice_status", "sale_order"."return_count" as "return_count", "sale_order"."effective_date" as "effective_date", "sale_order"."name" as "name", "sale_order"."expense_choice" as "expense_choice", "sale_order"."amount_tax" as "amount_tax", "sale_order"."payment_term_id" as "payment_term_id", "sale_order"."pricelist_id" as "pricelist_id", "sale_order"."signed_on" as "signed_on", "sale_order"."validity_date" as "validity_date", "sale_order"."partner_payment_term_id" as "partner_payment_term_id", "sale_order"."cod_flag" as "cod_flag", "sale_order"."user_id" as "user_id", "sale_order"."commitment_date" as "commitment_date", "sale_order"."is_self_used" as "is_self_used", "sale_order"."require_signature" as "require_signature", "sale_order"."core_bank_transaction" as "core_bank_transaction", "sale_order"."branch_id" as "branch_id", "sale_order"."partner_invoice_id" as "partner_invoice_id", "sale_order"."delivery" as "delivery", "sale_order"."sale_product_qty" as "sale_product_qty", "sale_order"."recompute_delivery_price" as "recompute_delivery_price", "sale_order"."origin" as "origin", "sale_order"."note" as "note", "sale_order"."exception_sale" as "exception_sale", "sale_order"."amount_untaxed" as "amount_untaxed", "sale_order"."picking_policy" as "picking_policy", "sale_order"."procurement_group_id" as "procurement_group_id", "sale_order"."sale_part_id" as "sale_part_id", "sale_order"."client_order_ref" as "client_order_ref", "sale_order"."warehouse_id" as "warehouse_id", "sale_order"."website_id" as "website_id", "sale_order"."campaign_id" as "campaign_id", "sale_order"."source_id" as "source_id", "sale_order"."sale_order_template_id" as "sale_order_template_id", "sale_order"."partner_shipping_id" as "partner_shipping_id", "sale_order"."cart_recovery_email_sent" as "cart_recovery_email_sent" FROM "sale_order" WHERE ("sale_order"."company_id" in (1)) AND "sale_order".id IN ('virtual_1024')
Date: 2024-06-25 16:09:01