-
Global information
- Generated on Sat Sep 14 00:50:27 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 622,381 log entries in 26s
- Log start from 2024-09-13 00:00:01 to 2024-09-13 23:59:55
-
Overview
Global Stats
- 1,134 Number of unique normalized queries
- 213,422 Number of queries
- 15h54m47s Total query duration
- 2024-09-13 00:00:01 First query
- 2024-09-13 23:59:55 Last query
- 69 queries/s at 2024-09-13 14:10:14 Query peak
- 15h54m47s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 15h54m47s Execute total duration
- 1,493 Number of events
- 7 Number of unique normalized events
- 995 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
- 213,422 Average queries per session
- 15h54m47s 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
- 69 queries/s Query Peak
- 2024-09-13 14:10:14 Date
SELECT Traffic
Key values
- 69 queries/s Query Peak
- 2024-09-13 14:10:14 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 10 queries/s Query Peak
- 2024-09-13 19:24:58 Date
Queries duration
Key values
- 15h54m47s 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) Sep 13 00 3,084 120ms 711ms 142ms 8s860ms 9s119ms 13s176ms 01 3,955 120ms 1s353ms 152ms 19s669ms 24s434ms 41s626ms 02 3,782 120ms 6s433ms 179ms 20s972ms 21s829ms 27s951ms 03 3,002 120ms 762ms 155ms 10s857ms 15s809ms 17s58ms 04 3,016 121ms 1s262ms 146ms 8s859ms 12s567ms 16s150ms 05 3,001 120ms 751ms 142ms 8s472ms 9s554ms 17s765ms 06 2,967 120ms 649ms 141ms 8s171ms 11s426ms 12s900ms 07 3,085 123ms 1s299ms 148ms 9s779ms 13s410ms 17s189ms 08 3,420 122ms 918ms 147ms 12s650ms 14s768ms 17s526ms 09 3,299 120ms 4m9s 407ms 1m10s 2m13s 4m21s 10 3,690 120ms 28s651ms 181ms 16s807ms 23s632ms 1m 11 10,239 120ms 28s506ms 268ms 1m20s 2m22s 2m36s 12 21,684 120ms 9m41s 408ms 5m30s 8m33s 12m23s 13 22,728 120ms 29s240ms 296ms 2m50s 3m40s 6m4s 14 18,900 120ms 51s431ms 304ms 2m54s 3m42s 6m18s 15 17,029 120ms 25s239ms 262ms 2m9s 2m40s 3m20s 16 18,451 120ms 31s969ms 284ms 2m16s 2m54s 3m50s 17 17,747 120ms 11s231ms 281ms 2m18s 2m54s 3m52s 18 16,728 120ms 10s450ms 278ms 2m18s 2m41s 4m17s 19 15,042 120ms 8s445ms 242ms 1m52s 2m16s 2m29s 20 8,111 120ms 7s112ms 221ms 59s645ms 1m7s 1m14s 21 4,623 120ms 1s892ms 175ms 29s51ms 1m1s 1m19s 22 2,740 120ms 632ms 146ms 8s545ms 11s97ms 13s687ms 23 3,099 120ms 39s666ms 216ms 34s847ms 39s962ms 56s460ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 13 00 3,084 0 142ms 7s919ms 8s860ms 12s557ms 01 3,954 0 152ms 11s176ms 19s669ms 37s542ms 02 3,659 0 176ms 13s684ms 15s626ms 21s829ms 03 3,002 0 155ms 9s170ms 10s857ms 16s36ms 04 3,014 0 146ms 8s39ms 8s859ms 13s309ms 05 3,001 0 142ms 8s125ms 8s472ms 12s710ms 06 2,967 0 141ms 7s601ms 8s171ms 11s434ms 07 3,083 0 148ms 8s513ms 9s779ms 14s302ms 08 3,310 0 146ms 9s259ms 10s602ms 14s767ms 09 3,135 118 409ms 16s688ms 1m1s 2m29s 10 3,642 0 173ms 12s85ms 16s807ms 30s445ms 11 8,655 0 282ms 59s446ms 1m9s 2m21s 12 16,628 0 455ms 2m25s 3m56s 10m26s 13 16,792 0 329ms 1m57s 2m26s 3m26s 14 15,052 0 323ms 1m43s 2m31s 3m25s 15 13,222 0 279ms 1m18s 1m45s 2m27s 16 14,583 0 302ms 1m40s 1m55s 3m 17 13,593 0 306ms 1m29s 1m57s 3m24s 18 13,634 0 296ms 1m31s 1m57s 3m54s 19 11,715 0 253ms 1m13s 1m24s 2m 20 6,612 0 228ms 37s768ms 48s706ms 1m11s 21 3,885 0 176ms 15s463ms 23s228ms 43s296ms 22 2,740 0 146ms 7s637ms 8s545ms 12s463ms 23 3,050 0 147ms 8s720ms 10s465ms 16s617ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Sep 13 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 420ms 0ms 0ms 0ms 02 0 121 2 0 273ms 0ms 173ms 6s331ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 2 0 0 396ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 2 0 0 382ms 0ms 0ms 0ms 08 0 110 0 0 178ms 0ms 0ms 2s887ms 09 0 40 0 0 173ms 0ms 0ms 0ms 10 0 43 5 0 823ms 0ms 0ms 2s194ms 11 0 1,563 20 0 195ms 5s873ms 10s17ms 13s953ms 12 0 5,017 34 0 257ms 19s376ms 22s886ms 31s166ms 13 0 5,877 54 0 201ms 21s196ms 27s501ms 33s580ms 14 0 3,806 31 0 227ms 15s248ms 21s69ms 37s237ms 15 0 3,782 18 0 204ms 12s424ms 22s846ms 32s141ms 16 0 3,821 45 0 218ms 12s814ms 22s820ms 32s240ms 17 0 4,131 22 0 199ms 12s542ms 23s764ms 35s533ms 18 0 3,057 27 0 198ms 9s681ms 18s405ms 27s835ms 19 0 3,290 36 0 204ms 9s809ms 19s302ms 33s356ms 20 0 1,493 6 0 187ms 4s747ms 7s207ms 15s76ms 21 0 738 0 0 171ms 0ms 1s359ms 21s257ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 49 0 4s475ms 0ms 0ms 25s860ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Sep 13 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 Sep 13 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 Sep 13 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 Sep 13 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 Sep 13 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) Sep 13 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 Sep 13 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 Sep 13 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 Sep 13 00 0 0 01 0 0 02 0 0 03 0 0 04 0 0 05 0 0 06 0 0 07 0 0 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 0 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 0 0 20 0 0 21 0 0 22 0 0 23 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 16 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 1m40s 1m40s 1m40s 1m40s update "bus_presence" set "last_poll" = ?, "last_presence" = ? where id in (...);-
UPDATE "bus_presence" SET "last_poll" = '2024-09-13 17:01:29', "last_presence" = '2024-09-13 16:59:40.787302' WHERE id IN (62);
Date: 2024-09-13 17:03:09
2 9 37s716ms 10s565ms 10s565ms 4s190ms 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 != 1657147 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 != 1657147 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-09-13 17:31:02
3 1 26s349ms 26s349ms 26s349ms 26s349ms delete from stock_inventory_line where id in (...);-
DELETE FROM stock_inventory_line WHERE id IN (3081091, 3081092, 3081093, 3081094, 3081095, 3081096, 3081097, 3081098, 3081099, 3081100, 3081101, 3081102, 3081103, 3081104, 3081105, 3081106, 3081107, 3081108, 3081109, 3081110, 3081111, 3081112, 3081113, 3081114, 3081115, 3081116, 3081117, 3081118, 3081119, 3081120, 3081121, 3081122, 3081123, 3081124, 3081025, 3081026, 3081125, 3081126, 3081127, 3081128, 3081129, 3081130, 3081131, 3081132, 3081133, 3081134, 3081135, 3081136, 3081137, 3081138, 3081139, 3081140, 3081141, 3081142, 3081143, 3081144, 3081145, 3081146, 3081147, 3081148, 3081149, 3081150, 3081151, 3081152, 3081153, 3081154, 3081045, 3080985, 3081081, 3081155, 3081156, 3081157, 3081158, 3081159, 3081160, 3081161, 3081162, 3081163, 3081164, 3081016, 3081165, 3081166, 3081167, 3081168, 3081169, 3081170, 3081171, 3081172, 3081173, 3081174, 3081175, 3081176, 3081177, 3081178, 3081179, 3081180, 3081181, 3081182, 3081183, 3081184, 3081077, 3081185, 3081186, 3081187, 3081188, 3081189, 3081190, 3081191, 3081192, 3081193, 3081194, 3081195, 3081196, 3081197, 3081198, 3081199, 3081200, 3081201, 3081202, 3081203, 3080986, 3080987, 3080988, 3081204, 3081205, 3081206, 3081207, 3081208, 3081209, 3080989, 3081210, 3080990, 3081211, 3081212, 3081213, 3081214, 3081215, 3081058, 3080991, 3081216, 3081056, 3081217, 3081218, 3081219, 3081220, 3081221, 3081222, 3081223, 3080992, 3081049, 3081030, 3080993, 3081037, 3081224, 3081225, 3081226, 3081227, 3081067, 3080994, 3081228, 3081229, 3081059, 3081230, 3080995, 3081231, 3081232, 3081233, 3081234, 3081235, 3081236, 3081237, 3081238, 3081038, 3081239, 3081240, 3081073, 3081241, 3081242, 3081243, 3081244, 3081245, 3081246, 3081247, 3081248, 3081074, 3081249, 3081250, 3081251, 3081252, 3081253, 3081254, 3081255, 3081256, 3081257, 3081258, 3081259, 3081260, 3081261, 3081262, 3081263, 3081264, 3081265, 3081266, 3081267, 3081268, 3081269, 3081270, 3081271, 3081032, 3081068, 3081076, 3081272, 3081273, 3081274, 3081275, 3081276, 3081277, 3081278, 3081279, 3081280, 3081033, 3081281, 3081282, 3081283, 3081284, 3081048, 3081285, 3081286, 3081287, 3081288, 3081289, 3081290, 3081291, 3081292, 3081293, 3081294, 3081295, 3081296, 3081297, 3081298, 3081299, 3081300, 3081301, 3081302, 3081303, 3081304, 3081305, 3081306, 3081307, 3081308, 3081309, 3081310, 3081311, 3081312, 3081313, 3081314, 3081315, 3081316, 3081317, 3081318, 3081319, 3081320, 3081321, 3081322, 3081323, 3081324, 3081060, 3081325, 3081326, 3081327, 3081328, 3081329, 3081330, 3081331, 3081332, 3081333, 3081334, 3081335, 3081336, 3080996, 3081031, 3081337, 3081338, 3081339, 3081340, 3081036, 3081341, 3081065, 3081061, 3081342, 3081040, 3081029, 3081343, 3081344, 3081345, 3081346, 3081347, 3081348, 3081349, 3081350, 3081062, 3081351, 3081352, 3081353, 3081354, 3081355, 3081356, 3081357, 3081358, 3081359, 3081360, 3081361, 3081362, 3081363, 3081364, 3081064, 3081365, 3081366, 3081367, 3081368, 3081369, 3081017, 3081370, 3081371, 3081372, 3081373, 3081374, 3081375, 3081376, 3081377, 3081378, 3081379, 3081380, 3081381, 3081382, 3081383, 3081384, 3081385, 3081386, 3081387, 3081088, 3081388, 3081389, 3081390, 3081391, 3081392, 3081393, 3081394, 3081395, 3081396, 3081397, 3081398, 3081399, 3081400, 3081401, 3081402, 3081403, 3081404, 3081405, 3081406, 3081407, 3081408, 3081409, 3081410, 3081411, 3081086, 3081412, 3081413, 3081414, 3081415, 3081416, 3081417, 3081418, 3081419, 3081420, 3081421, 3081422, 3081423, 3081424, 3081425, 3081426, 3081427, 3081428, 3081429, 3081430, 3081431, 3081432, 3081433, 3081434, 3081435, 3081436, 3081437, 3081438, 3081439, 3081440, 3081441, 3081442, 3081443, 3081444, 3081445, 3081051, 3081446, 3081447, 3081448, 3081449, 3081450, 3081451, 3081452, 3081453, 3081454, 3081455, 3081456, 3081457, 3081458, 3081459, 3081460, 3081461, 3081462, 3081463, 3081464, 3081465, 3081466, 3081467, 3081468, 3081469, 3081470, 3081471, 3081472, 3081473, 3081474, 3081475, 3081072, 3081476, 3081477, 3081478, 3081479, 3081480, 3081481, 3081482, 3081483, 3081484, 3081485, 3081486, 3081487, 3081488, 3081489, 3081490, 3081491, 3081492, 3081493, 3081494, 3081495, 3081496, 3081497, 3081498, 3081499, 3081500, 3081075, 3081501, 3081502, 3081503, 3081504, 3081505, 3081506, 3081507, 3081508, 3081509, 3081087, 3081510, 3081511, 3081512, 3081513, 3081514, 3081515, 3081516, 3081517, 3081518, 3081519, 3081520, 3081521, 3081522, 3081523, 3081524, 3081084, 3081525, 3081526, 3081527, 3081528, 3081529, 3081055, 3081530, 3081531, 3081532, 3081533, 3081534, 3081535, 3081536, 3081537, 3081538, 3081539, 3081540, 3081541, 3081082, 3081542, 3081543, 3081544, 3081545, 3081546, 3081089, 3081547, 3081548, 3081549, 3081550, 3081078, 3081551, 3081552, 3081553, 3081554, 3081555, 3081066, 3081556, 3081557, 3081558, 3081559, 3081560, 3081561, 3081562, 3081563, 3081564, 3081565, 3081566, 3081567, 3081568, 3081569, 3081570, 3081571, 3081572, 3081573, 3081574, 3081575, 3081576, 3081577, 3081578, 3081579, 3081580, 3081581, 3081582, 3081583, 3081584, 3081585, 3081586, 3081587, 3081588, 3081589, 3081590, 3081591, 3081592, 3081024, 3081593, 3081594, 3081595, 3081596, 3081597, 3081598, 3081053, 3081599, 3081600, 3081601, 3081602, 3081603, 3081604, 3081052, 3081605, 3081606, 3081607, 3081608, 3081609, 3081610, 3081611, 3081612, 3081613, 3081614, 3081615, 3081616, 3081617, 3081618, 3081619, 3081620, 3081621, 3081028, 3081054, 3081622, 3081623, 3081624, 3081625, 3081090, 3081046, 3080997, 3081626, 3081627, 3081021, 3080998, 3081628, 3081629, 3081630, 3081631, 3081632, 3081633, 3081634, 3081635, 3081636, 3081637, 3081638, 3081639, 3081640, 3081641, 3081642, 3081643, 3081644, 3080999, 3081000, 3081645, 3081646, 3081647, 3081648, 3081649, 3081650, 3081651, 3081001, 3081652, 3081002, 3081653, 3081654, 3081655, 3081656, 3081035, 3081657, 3081658, 3081003, 3081659, 3081660, 3081661, 3081662, 3081663, 3081664, 3081044, 3081665, 3081666, 3081667, 3081668, 3081669, 3081670, 3081671, 3081672, 3081673, 3081019, 3081674, 3081675, 3081676, 3081677, 3081678, 3081679, 3081680, 3081681, 3081682, 3081683, 3081684, 3081685, 3081686, 3081687, 3081688, 3081689, 3081690, 3081691, 3081692, 3081693, 3081694, 3081695, 3081696, 3081697, 3081698, 3081699, 3081700, 3081701, 3081702, 3081703, 3081704, 3081705, 3081063, 3081706, 3081707, 3081708, 3081004, 3081005, 3081709, 3081710, 3081711, 3081712, 3081713, 3081714, 3081715, 3081716, 3081717, 3081718, 3081719, 3081720, 3081721, 3081722, 3081723, 3081724, 3081069, 3081070, 3081725, 3081726, 3081727, 3081728, 3081729, 3081730, 3081731, 3081732, 3081733, 3081734, 3081735, 3081736, 3081737, 3081738, 3081739, 3081740, 3081741, 3081742, 3081743, 3081744, 3081745, 3081746, 3081747, 3081748, 3081749, 3081750, 3081751, 3081752, 3081753, 3081754, 3081755, 3081756, 3081757, 3081758, 3081759, 3081760, 3081761, 3081762, 3081763, 3081764, 3081027, 3081765, 3081766, 3081767, 3081768, 3081769, 3081047, 3081071, 3081770, 3081771, 3081772, 3081773, 3081774, 3081775, 3081776, 3081777, 3081778, 3081779, 3081780, 3081781, 3081034, 3081782, 3081783, 3081784, 3081785, 3081786, 3081787, 3081788, 3081789, 3081020, 3081790, 3081791, 3081792, 3081793, 3081794, 3081795, 3081796, 3081797, 3081798, 3081799, 3081800, 3081801, 3081802, 3081803, 3081804, 3081805, 3081806, 3081807, 3081808, 3081809, 3081810, 3081811, 3081812, 3081813, 3081050, 3081814, 3081815, 3081816, 3081817, 3081818, 3081819, 3081820, 3081821, 3081822, 3081823, 3081824, 3081825, 3081826, 3081827, 3081828, 3081829, 3081830, 3081831, 3081832, 3081833, 3081834, 3081835, 3081836, 3081837, 3081838, 3081839, 3081840, 3081841, 3081842, 3081843, 3081844, 3081845, 3081846, 3081847, 3081848, 3081849, 3081850, 3081851, 3081852, 3081853, 3081854, 3081855, 3081856, 3081857, 3081858, 3081859, 3081860, 3081861, 3081862, 3081863, 3081864, 3081865, 3081866, 3081867, 3081868, 3081869, 3081870, 3081871, 3081872, 3081873, 3081874, 3081875, 3081006, 3081876, 3081877, 3081878, 3081879, 3081080, 3081880, 3081881, 3081882, 3081883, 3081884, 3081885, 3081886, 3081023, 3081887, 3081888, 3081889, 3081890, 3081891, 3081892, 3081893, 3081894, 3081895, 3081896, 3081897, 3081898, 3081899, 3081007, 3081008, 3081009, 3081900, 3081901, 3081902, 3081903, 3081904, 3081905, 3081041, 3081906, 3081010, 3081042, 3081018, 3081083, 3081022, 3081907, 3081043, 3081908, 3081909, 3081910, 3081911, 3081912, 3081913, 3081914, 3081915, 3081916, 3081917, 3081918, 3081011, 3081012, 3081013, 3081919, 3081014, 3081920, 3081921, 3081922, 3081923, 3081924, 3081925, 3081926, 3081927, 3081928, 3081929, 3081015, 3081930, 3081931, 3081079, 3081932, 3081933, 3081934, 3081935, 3081936, 3081937, 3081057, 3081938, 3081939, 3081940, 3081941, 3081942, 3081943, 3081944, 3081945, 3081946, 3081947, 3081948, 3081949, 3081950, 3081951, 3081952, 3081953, 3081954, 3081955, 3081956, 3081085, 3081957, 3081039, 3081958, 3081959, 3081960, 3081961, 3081962, 3081963, 3081964, 3081965, 3081966, 3081967, 3081968, 3081969, 3081970, 3081971, 3081972, 3081973, 3081974, 3081975, 3081976, 3081977, 3081978, 3081979, 3081980, 3081981);
Date: 2024-09-13 12:37:18
-
DELETE FROM stock_inventory_line WHERE id IN (3082236, 3082282, 3082241, 3082270, 3082292, 3082182, 3082183, 3082255, 3082254, 3082240, 3082184, 3082185, 3082259, 3082269, 3082250, 3082275, 3082186, 3082268, 3082272, 3082187, 3082243, 3082271, 3082256, 3082276, 3082274, 3082273, 3082239, 3082188, 3082290, 3082289, 3082251, 3082189, 3082257, 3082190, 3082246, 3082258, 3082191, 3082287, 3082248, 3082260, 3082267, 3082234, 3082233, 3082192, 3082193, 3082264, 3082194, 3082195, 3082196, 3082197, 3082266, 3082198, 3082199, 3082235, 3082238, 3082249, 3082245, 3082284, 3082200, 3082252, 3082201, 3082202, 3082203, 3082204, 3082205, 3082206, 3082207, 3082237, 3082208, 3082262, 3082209, 3082210, 3082211, 3082212, 3082213, 3082214, 3082215, 3082216, 3082217, 3082218, 3082219, 3082220, 3082221, 3082222, 3082223, 3082295, 3082224, 3082225, 3082226, 3082227, 3082228, 3082247, 3082261, 3082286, 3082229, 3082263, 3082294, 3082279, 3082293, 3082242, 3082253, 3082230, 3082288, 3082277, 3082265, 3082291, 3082231, 3082232, 3082244, 3082280, 3082281, 3082278, 3082283, 3082285);
Date: 2024-09-13 16:27:43
-
DELETE FROM stock_inventory_line WHERE id IN (3082091, 3082092, 3082093, 3082144, 3082150, 3082166, 3082167, 3082094, 3082095, 3082157, 3082096, 3082097, 3082098, 3082178, 3082134, 3082180, 3082154, 3082168, 3082127, 3082145, 3082162, 3082161, 3082179, 3082099, 3082174, 3082100, 3082101, 3082102, 3082138, 3082163, 3082164, 3082153, 3082103, 3082104, 3082165, 3082131, 3082105, 3082106, 3082107, 3082126, 3082139, 3082128, 3082160, 3082140, 3082108, 3082149, 3082109, 3082110, 3082111, 3082175, 3082112, 3082151, 3082113, 3082171, 3082141, 3082172, 3082176, 3082177, 3082143, 3082152, 3082114, 3082135, 3082147, 3082129, 3082155, 3082156, 3082148, 3082115, 3082142, 3082181, 3082116, 3082117, 3082118, 3082119, 3082120, 3082158, 3082121, 3082122, 3082137, 3082173, 3082123, 3082169, 3082133, 3082124, 3082132, 3082170, 3082136, 3082146, 3082125, 3082130, 3082159);
Date: 2024-09-13 14:10:03
4 5 10s849ms 4s573ms 4s573ms 2s169ms 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" = 5701042, "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (1656273);
Date: 2024-09-13 13:56:44
Queries that waited the most
Rank Wait time Query 1 1m40s UPDATE "bus_presence" SET "last_poll" = '2024-09-13 17:01:29', "last_presence" = '2024-09-13 16:59:40.787302' WHERE id IN (62);[ Date: 2024-09-13 17:03:09 ]
2 26s349ms DELETE FROM stock_inventory_line WHERE id IN (3082091, 3082092, 3082093, 3082144, 3082150, 3082166, 3082167, 3082094, 3082095, 3082157, 3082096, 3082097, 3082098, 3082178, 3082134, 3082180, 3082154, 3082168, 3082127, 3082145, 3082162, 3082161, 3082179, 3082099, 3082174, 3082100, 3082101, 3082102, 3082138, 3082163, 3082164, 3082153, 3082103, 3082104, 3082165, 3082131, 3082105, 3082106, 3082107, 3082126, 3082139, 3082128, 3082160, 3082140, 3082108, 3082149, 3082109, 3082110, 3082111, 3082175, 3082112, 3082151, 3082113, 3082171, 3082141, 3082172, 3082176, 3082177, 3082143, 3082152, 3082114, 3082135, 3082147, 3082129, 3082155, 3082156, 3082148, 3082115, 3082142, 3082181, 3082116, 3082117, 3082118, 3082119, 3082120, 3082158, 3082121, 3082122, 3082137, 3082173, 3082123, 3082169, 3082133, 3082124, 3082132, 3082170, 3082136, 3082146, 3082125, 3082130, 3082159);[ Date: 2024-09-13 14:10:04 ]
3 10s565ms 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 != 1657147 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 != 1657147 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 17:31:02 ]
4 7s634ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1656314 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1656314 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 14:01:44 ]
5 6s657ms UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1656963 AND sequence_prefix = ( SELECT sequence_prefix FROM account_move WHERE journal_id = 2 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1656963 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 16:43:00 ]
6 4s573ms UPDATE "account_move" SET "message_main_attachment_id" = 5701042, "write_uid" = 999, "write_date" = (now() at time zone 'UTC') WHERE id IN (1656273);[ Date: 2024-09-13 13:56:44 ]
7 3s89ms 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 != 1656407 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 != 1656407 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 14:21:14 ]
8 2s649ms 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 != 1655657 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 != 1655657 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 14:43:45 ]
9 2s432ms UPDATE "account_move" SET "message_main_attachment_id" = 5700098, "write_uid" = 1041, "write_date" = (now() at time zone 'UTC') WHERE id IN (1655606);[ Date: 2024-09-13 12:06:52 ]
10 2s341ms 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 != 1250093 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 != 1250093 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 17:56:55 ]
11 1s869ms 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 != 1656308 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 != 1656308 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 13:59:17 ]
12 1s831ms 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 != 1655657 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 != 1655657 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 14:43:42 ]
13 1s416ms UPDATE "account_move" SET "message_main_attachment_id" = 5700722, "write_uid" = 1005, "write_date" = (now() at time zone 'UTC') WHERE id IN (1655948);[ Date: 2024-09-13 13:14:08 ]
14 1s244ms UPDATE "account_move" SET "message_main_attachment_id" = 5700766, "write_uid" = 1018, "write_date" = (now() at time zone 'UTC') WHERE id IN (1656004);[ Date: 2024-09-13 13:18:35 ]
15 1s182ms UPDATE "account_move" SET "message_main_attachment_id" = 5702253, "write_uid" = 951, "write_date" = (now() at time zone 'UTC') WHERE id IN (1657404);[ Date: 2024-09-13 18:20:47 ]
16 1s76ms 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 != 1656151 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 != 1656151 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-09-13 13:49:16 ]
-
Queries
Queries by type
Key values
- 176,012 Total read queries
- 37,410 Total write queries
Queries by database
Key values
- unknown Main database
- 213,422 Requests
- 15h54m47s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 213,974 Requests
User Request type Count Duration unknown Total 213,974 15h56m9s copy to 118 14m15s cte 49 19s282ms delete 349 22m56s select 176,563 13h25m45s update 36,895 1h52m53s Duration by user
Key values
- 15h56m9s (unknown) Main time consuming user
User Request type Count Duration unknown Total 213,974 15h56m9s copy to 118 14m15s cte 49 19s282ms delete 349 22m56s select 176,563 13h25m45s update 36,895 1h52m53s Queries by host
Key values
- unknown Main host
- 213,974 Requests
- 15h56m9s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 213,422 Requests
- 15h54m47s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-09-13 11:20:54 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 195,852 100-500ms duration
Slowest individual queries
Rank Duration Query 1 9m41s 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 ((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) 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 ('%mitch%')) 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-09-13 12:18:21 ]
2 9m28s 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 ((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) 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 ('%mitch%')) 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-09-13 12:27:49 ]
3 5m37s 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 ((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) 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 ('%mitch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND (("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31')));[ Date: 2024-09-13 12:22:30 ]
4 5m34s 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 ((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) 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 ('%mitch%')) AND (("res_users"."share" IS NULL or "res_users"."share" = false) OR EXISTS ( SELECT 1 FROM "res_company_users_rel" AS "res_users__company_ids" WHERE "res_users__company_ids"."user_id" = "res_users".id AND "res_users__company_ids"."cid" IN (1))) AND (((("res_users__partner_id"."partner_share" IS NULL or "res_users__partner_id"."partner_share" = false) OR ("res_users__partner_id"."company_id" in (1))) OR "res_users__partner_id"."company_id" IS NULL) AND (((("res_users__partner_id"."type" != 'private') OR "res_users__partner_id"."type" IS NULL) OR "res_users__partner_id"."type" IS NULL) OR ("res_users__partner_id"."type" = 'private')))))) AND (("sale_history_line"."invoice_date" >= '2023-01-01') AND ("sale_history_line"."invoice_date" <= '2023-12-31'))) ORDER BY "sale_history_line"."invoice_date" DESC LIMIT 80;[ Date: 2024-09-13 12:16:53 ]
5 4m49s DELETE FROM stock_inventory_line WHERE id IN (3081091, 3081092, 3081093, 3081094, 3081095, 3081096, 3081097, 3081098, 3081099, 3081100, 3081101, 3081102, 3081103, 3081104, 3081105, 3081106, 3081107, 3081108, 3081109, 3081110, 3081111, 3081112, 3081113, 3081114, 3081115, 3081116, 3081117, 3081118, 3081119, 3081120, 3081121, 3081122, 3081123, 3081124, 3081025, 3081026, 3081125, 3081126, 3081127, 3081128, 3081129, 3081130, 3081131, 3081132, 3081133, 3081134, 3081135, 3081136, 3081137, 3081138, 3081139, 3081140, 3081141, 3081142, 3081143, 3081144, 3081145, 3081146, 3081147, 3081148, 3081149, 3081150, 3081151, 3081152, 3081153, 3081154, 3081045, 3080985, 3081081, 3081155, 3081156, 3081157, 3081158, 3081159, 3081160, 3081161, 3081162, 3081163, 3081164, 3081016, 3081165, 3081166, 3081167, 3081168, 3081169, 3081170, 3081171, 3081172, 3081173, 3081174, 3081175, 3081176, 3081177, 3081178, 3081179, 3081180, 3081181, 3081182, 3081183, 3081184, 3081077, 3081185, 3081186, 3081187, 3081188, 3081189, 3081190, 3081191, 3081192, 3081193, 3081194, 3081195, 3081196, 3081197, 3081198, 3081199, 3081200, 3081201, 3081202, 3081203, 3080986, 3080987, 3080988, 3081204, 3081205, 3081206, 3081207, 3081208, 3081209, 3080989, 3081210, 3080990, 3081211, 3081212, 3081213, 3081214, 3081215, 3081058, 3080991, 3081216, 3081056, 3081217, 3081218, 3081219, 3081220, 3081221, 3081222, 3081223, 3080992, 3081049, 3081030, 3080993, 3081037, 3081224, 3081225, 3081226, 3081227, 3081067, 3080994, 3081228, 3081229, 3081059, 3081230, 3080995, 3081231, 3081232, 3081233, 3081234, 3081235, 3081236, 3081237, 3081238, 3081038, 3081239, 3081240, 3081073, 3081241, 3081242, 3081243, 3081244, 3081245, 3081246, 3081247, 3081248, 3081074, 3081249, 3081250, 3081251, 3081252, 3081253, 3081254, 3081255, 3081256, 3081257, 3081258, 3081259, 3081260, 3081261, 3081262, 3081263, 3081264, 3081265, 3081266, 3081267, 3081268, 3081269, 3081270, 3081271, 3081032, 3081068, 3081076, 3081272, 3081273, 3081274, 3081275, 3081276, 3081277, 3081278, 3081279, 3081280, 3081033, 3081281, 3081282, 3081283, 3081284, 3081048, 3081285, 3081286, 3081287, 3081288, 3081289, 3081290, 3081291, 3081292, 3081293, 3081294, 3081295, 3081296, 3081297, 3081298, 3081299, 3081300, 3081301, 3081302, 3081303, 3081304, 3081305, 3081306, 3081307, 3081308, 3081309, 3081310, 3081311, 3081312, 3081313, 3081314, 3081315, 3081316, 3081317, 3081318, 3081319, 3081320, 3081321, 3081322, 3081323, 3081324, 3081060, 3081325, 3081326, 3081327, 3081328, 3081329, 3081330, 3081331, 3081332, 3081333, 3081334, 3081335, 3081336, 3080996, 3081031, 3081337, 3081338, 3081339, 3081340, 3081036, 3081341, 3081065, 3081061, 3081342, 3081040, 3081029, 3081343, 3081344, 3081345, 3081346, 3081347, 3081348, 3081349, 3081350, 3081062, 3081351, 3081352, 3081353, 3081354, 3081355, 3081356, 3081357, 3081358, 3081359, 3081360, 3081361, 3081362, 3081363, 3081364, 3081064, 3081365, 3081366, 3081367, 3081368, 3081369, 3081017, 3081370, 3081371, 3081372, 3081373, 3081374, 3081375, 3081376, 3081377, 3081378, 3081379, 3081380, 3081381, 3081382, 3081383, 3081384, 3081385, 3081386, 3081387, 3081088, 3081388, 3081389, 3081390, 3081391, 3081392, 3081393, 3081394, 3081395, 3081396, 3081397, 3081398, 3081399, 3081400, 3081401, 3081402, 3081403, 3081404, 3081405, 3081406, 3081407, 3081408, 3081409, 3081410, 3081411, 3081086, 3081412, 3081413, 3081414, 3081415, 3081416, 3081417, 3081418, 3081419, 3081420, 3081421, 3081422, 3081423, 3081424, 3081425, 3081426, 3081427, 3081428, 3081429, 3081430, 3081431, 3081432, 3081433, 3081434, 3081435, 3081436, 3081437, 3081438, 3081439, 3081440, 3081441, 3081442, 3081443, 3081444, 3081445, 3081051, 3081446, 3081447, 3081448, 3081449, 3081450, 3081451, 3081452, 3081453, 3081454, 3081455, 3081456, 3081457, 3081458, 3081459, 3081460, 3081461, 3081462, 3081463, 3081464, 3081465, 3081466, 3081467, 3081468, 3081469, 3081470, 3081471, 3081472, 3081473, 3081474, 3081475, 3081072, 3081476, 3081477, 3081478, 3081479, 3081480, 3081481, 3081482, 3081483, 3081484, 3081485, 3081486, 3081487, 3081488, 3081489, 3081490, 3081491, 3081492, 3081493, 3081494, 3081495, 3081496, 3081497, 3081498, 3081499, 3081500, 3081075, 3081501, 3081502, 3081503, 3081504, 3081505, 3081506, 3081507, 3081508, 3081509, 3081087, 3081510, 3081511, 3081512, 3081513, 3081514, 3081515, 3081516, 3081517, 3081518, 3081519, 3081520, 3081521, 3081522, 3081523, 3081524, 3081084, 3081525, 3081526, 3081527, 3081528, 3081529, 3081055, 3081530, 3081531, 3081532, 3081533, 3081534, 3081535, 3081536, 3081537, 3081538, 3081539, 3081540, 3081541, 3081082, 3081542, 3081543, 3081544, 3081545, 3081546, 3081089, 3081547, 3081548, 3081549, 3081550, 3081078, 3081551, 3081552, 3081553, 3081554, 3081555, 3081066, 3081556, 3081557, 3081558, 3081559, 3081560, 3081561, 3081562, 3081563, 3081564, 3081565, 3081566, 3081567, 3081568, 3081569, 3081570, 3081571, 3081572, 3081573, 3081574, 3081575, 3081576, 3081577, 3081578, 3081579, 3081580, 3081581, 3081582, 3081583, 3081584, 3081585, 3081586, 3081587, 3081588, 3081589, 3081590, 3081591, 3081592, 3081024, 3081593, 3081594, 3081595, 3081596, 3081597, 3081598, 3081053, 3081599, 3081600, 3081601, 3081602, 3081603, 3081604, 3081052, 3081605, 3081606, 3081607, 3081608, 3081609, 3081610, 3081611, 3081612, 3081613, 3081614, 3081615, 3081616, 3081617, 3081618, 3081619, 3081620, 3081621, 3081028, 3081054, 3081622, 3081623, 3081624, 3081625, 3081090, 3081046, 3080997, 3081626, 3081627, 3081021, 3080998, 3081628, 3081629, 3081630, 3081631, 3081632, 3081633, 3081634, 3081635, 3081636, 3081637, 3081638, 3081639, 3081640, 3081641, 3081642, 3081643, 3081644, 3080999, 3081000, 3081645, 3081646, 3081647, 3081648, 3081649, 3081650, 3081651, 3081001, 3081652, 3081002, 3081653, 3081654, 3081655, 3081656, 3081035, 3081657, 3081658, 3081003, 3081659, 3081660, 3081661, 3081662, 3081663, 3081664, 3081044, 3081665, 3081666, 3081667, 3081668, 3081669, 3081670, 3081671, 3081672, 3081673, 3081019, 3081674, 3081675, 3081676, 3081677, 3081678, 3081679, 3081680, 3081681, 3081682, 3081683, 3081684, 3081685, 3081686, 3081687, 3081688, 3081689, 3081690, 3081691, 3081692, 3081693, 3081694, 3081695, 3081696, 3081697, 3081698, 3081699, 3081700, 3081701, 3081702, 3081703, 3081704, 3081705, 3081063, 3081706, 3081707, 3081708, 3081004, 3081005, 3081709, 3081710, 3081711, 3081712, 3081713, 3081714, 3081715, 3081716, 3081717, 3081718, 3081719, 3081720, 3081721, 3081722, 3081723, 3081724, 3081069, 3081070, 3081725, 3081726, 3081727, 3081728, 3081729, 3081730, 3081731, 3081732, 3081733, 3081734, 3081735, 3081736, 3081737, 3081738, 3081739, 3081740, 3081741, 3081742, 3081743, 3081744, 3081745, 3081746, 3081747, 3081748, 3081749, 3081750, 3081751, 3081752, 3081753, 3081754, 3081755, 3081756, 3081757, 3081758, 3081759, 3081760, 3081761, 3081762, 3081763, 3081764, 3081027, 3081765, 3081766, 3081767, 3081768, 3081769, 3081047, 3081071, 3081770, 3081771, 3081772, 3081773, 3081774, 3081775, 3081776, 3081777, 3081778, 3081779, 3081780, 3081781, 3081034, 3081782, 3081783, 3081784, 3081785, 3081786, 3081787, 3081788, 3081789, 3081020, 3081790, 3081791, 3081792, 3081793, 3081794, 3081795, 3081796, 3081797, 3081798, 3081799, 3081800, 3081801, 3081802, 3081803, 3081804, 3081805, 3081806, 3081807, 3081808, 3081809, 3081810, 3081811, 3081812, 3081813, 3081050, 3081814, 3081815, 3081816, 3081817, 3081818, 3081819, 3081820, 3081821, 3081822, 3081823, 3081824, 3081825, 3081826, 3081827, 3081828, 3081829, 3081830, 3081831, 3081832, 3081833, 3081834, 3081835, 3081836, 3081837, 3081838, 3081839, 3081840, 3081841, 3081842, 3081843, 3081844, 3081845, 3081846, 3081847, 3081848, 3081849, 3081850, 3081851, 3081852, 3081853, 3081854, 3081855, 3081856, 3081857, 3081858, 3081859, 3081860, 3081861, 3081862, 3081863, 3081864, 3081865, 3081866, 3081867, 3081868, 3081869, 3081870, 3081871, 3081872, 3081873, 3081874, 3081875, 3081006, 3081876, 3081877, 3081878, 3081879, 3081080, 3081880, 3081881, 3081882, 3081883, 3081884, 3081885, 3081886, 3081023, 3081887, 3081888, 3081889, 3081890, 3081891, 3081892, 3081893, 3081894, 3081895, 3081896, 3081897, 3081898, 3081899, 3081007, 3081008, 3081009, 3081900, 3081901, 3081902, 3081903, 3081904, 3081905, 3081041, 3081906, 3081010, 3081042, 3081018, 3081083, 3081022, 3081907, 3081043, 3081908, 3081909, 3081910, 3081911, 3081912, 3081913, 3081914, 3081915, 3081916, 3081917, 3081918, 3081011, 3081012, 3081013, 3081919, 3081014, 3081920, 3081921, 3081922, 3081923, 3081924, 3081925, 3081926, 3081927, 3081928, 3081929, 3081015, 3081930, 3081931, 3081079, 3081932, 3081933, 3081934, 3081935, 3081936, 3081937, 3081057, 3081938, 3081939, 3081940, 3081941, 3081942, 3081943, 3081944, 3081945, 3081946, 3081947, 3081948, 3081949, 3081950, 3081951, 3081952, 3081953, 3081954, 3081955, 3081956, 3081085, 3081957, 3081039, 3081958, 3081959, 3081960, 3081961, 3081962, 3081963, 3081964, 3081965, 3081966, 3081967, 3081968, 3081969, 3081970, 3081971, 3081972, 3081973, 3081974, 3081975, 3081976, 3081977, 3081978, 3081979, 3081980, 3081981);[ Date: 2024-09-13 12:37:18 ]
6 4m9s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-09-13 09:10:51 ]
7 2m11s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-09-13 09:04:18 ]
8 2m3s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-09-13 09:06:40 ]
9 1m50s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (269812)) ORDER BY "item_list_line"."id";[ Date: 2024-09-13 12:45:11 ]
10 51s431ms DELETE FROM account_move_line WHERE id IN (5832992, 5832993, 5832994, 5832996, 5832997, 5832998, 5832999, 5833000, 5833001, 5833002, 5833003, 5833004, 5833005, 5833006, 5833007, 5833008, 5833009, 5833010, 5833011, 5833012, 5833013, 5833014, 5833015);[ Date: 2024-09-13 14:05:52 ]
11 39s666ms DELETE FROM account_move_line WHERE id IN (5799650, 5799651, 5799652, 5799653, 5799654, 5799655, 5799656, 5799657, 5799658, 5799659, 5799660, 5799661, 5799662, 5799663, 5799664, 5799665, 5799666, 5826827, 5826828);[ Date: 2024-09-13 23:43:38 ]
12 38s846ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward) TO stdout;[ Date: 2024-09-13 09:01:02 ]
13 31s969ms DELETE FROM stock_inventory_line WHERE id IN (3082236, 3082282, 3082241, 3082270, 3082292, 3082182, 3082183, 3082255, 3082254, 3082240, 3082184, 3082185, 3082259, 3082269, 3082250, 3082275, 3082186, 3082268, 3082272, 3082187, 3082243, 3082271, 3082256, 3082276, 3082274, 3082273, 3082239, 3082188, 3082290, 3082289, 3082251, 3082189, 3082257, 3082190, 3082246, 3082258, 3082191, 3082287, 3082248, 3082260, 3082267, 3082234, 3082233, 3082192, 3082193, 3082264, 3082194, 3082195, 3082196, 3082197, 3082266, 3082198, 3082199, 3082235, 3082238, 3082249, 3082245, 3082284, 3082200, 3082252, 3082201, 3082202, 3082203, 3082204, 3082205, 3082206, 3082207, 3082237, 3082208, 3082262, 3082209, 3082210, 3082211, 3082212, 3082213, 3082214, 3082215, 3082216, 3082217, 3082218, 3082219, 3082220, 3082221, 3082222, 3082223, 3082295, 3082224, 3082225, 3082226, 3082227, 3082228, 3082247, 3082261, 3082286, 3082229, 3082263, 3082294, 3082279, 3082293, 3082242, 3082253, 3082230, 3082288, 3082277, 3082265, 3082291, 3082231, 3082232, 3082244, 3082280, 3082281, 3082278, 3082283, 3082285);[ Date: 2024-09-13 16:27:43 ]
14 29s240ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-09-30')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-13 13:36:53 ]
15 28s651ms DELETE FROM sale_order_line WHERE id IN (321301, 321330);[ Date: 2024-09-13 10:28:13 ]
16 28s506ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-12-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-13 11:50:31 ]
17 28s302ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-12-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id;[ Date: 2024-09-13 11:50:28 ]
18 28s1ms DELETE FROM stock_inventory_line WHERE id IN (3082091, 3082092, 3082093, 3082144, 3082150, 3082166, 3082167, 3082094, 3082095, 3082157, 3082096, 3082097, 3082098, 3082178, 3082134, 3082180, 3082154, 3082168, 3082127, 3082145, 3082162, 3082161, 3082179, 3082099, 3082174, 3082100, 3082101, 3082102, 3082138, 3082163, 3082164, 3082153, 3082103, 3082104, 3082165, 3082131, 3082105, 3082106, 3082107, 3082126, 3082139, 3082128, 3082160, 3082140, 3082108, 3082149, 3082109, 3082110, 3082111, 3082175, 3082112, 3082151, 3082113, 3082171, 3082141, 3082172, 3082176, 3082177, 3082143, 3082152, 3082114, 3082135, 3082147, 3082129, 3082155, 3082156, 3082148, 3082115, 3082142, 3082181, 3082116, 3082117, 3082118, 3082119, 3082120, 3082158, 3082121, 3082122, 3082137, 3082173, 3082123, 3082169, 3082133, 3082124, 3082132, 3082170, 3082136, 3082146, 3082125, 3082130, 3082159);[ Date: 2024-09-13 14:10:03 ]
19 27s241ms 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 ((unaccent ("sale_history_line"."invoice_number"::text) not ilike unaccent ('%x%')) OR "sale_history_line"."invoice_number" IS NULL)) 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 ('%mitch%')) 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-09-13 12:15:58 ]
20 26s754ms SELECT account_move_line.account_id AS groupby, 'sum' AS key, MAX(account_move_line.date) AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2024-12-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id UNION ALL SELECT account_move_line.company_id AS groupby, 'unaffected_earnings' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE (((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" IS NULL or "account_account_type"."include_initial_balance" = false))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1)))))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.company_id UNION ALL SELECT account_move_line.account_id AS groupby, 'initial_balance' AS key, NULL AS max_date, 0 AS period_number, COALESCE(SUM(account_move_line.amount_currency), 0.0) AS amount_currency, SUM(ROUND(account_move_line.debit * currency_table.rate, currency_table.precision)) AS debit, SUM(ROUND(account_move_line.credit * currency_table.rate, currency_table.precision)) AS credit, SUM(ROUND(account_move_line.balance * currency_table.rate, currency_table.precision)) AS balance FROM "account_move_line" LEFT JOIN "account_move" AS "account_move_line__move_id" ON ("account_move_line"."move_id" = "account_move_line__move_id"."id") LEFT JOIN ( VALUES (1, 1.0, 2)) AS currency_table (company_id, rate, precision) ON currency_table.company_id = account_move_line.company_id WHERE ((((((((("account_move_line"."display_type" not in ('line_section', 'line_note')) OR "account_move_line"."display_type" IS NULL) AND (("account_move_line__move_id"."state" != 'cancel') OR "account_move_line__move_id"."state" IS NULL)) AND ("account_move_line"."company_id" = 1)) AND ("account_move_line"."date" <= '2023-12-31')) AND (("account_move_line"."date" >= '2024-01-01') OR ("account_move_line"."account_id" in ( SELECT "account_account".id FROM "account_account" WHERE ("account_account"."user_type_id" in ( SELECT "account_account_type".id FROM "account_account_type" WHERE ("account_account_type"."include_initial_balance" = true))) AND ("account_account"."company_id" IS NULL OR ("account_account"."company_id" in (1))))))) AND ("account_move_line__move_id"."state" = 'posted')) AND ((unaccent ("account_move_line"."account_id"::text) ilike unaccent ('%%')) OR "account_move_line"."account_id" IS NULL)) AND ("account_move_line"."account_id" in (1538))) AND ("account_move_line"."company_id" IS NULL OR ("account_move_line"."company_id" in (1))) GROUP BY account_move_line.account_id;[ Date: 2024-09-13 12:45:38 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 6h23m1s 110,223 121ms 3s531ms 208ms 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 Sep 13 00 2,780 6m26s 139ms 01 2,859 6m35s 138ms 02 2,751 6m36s 144ms 03 2,531 6m15s 148ms 04 2,699 6m25s 142ms 05 2,713 6m20s 140ms 06 2,680 6m13s 139ms 07 2,754 6m35s 143ms 08 2,946 6m53s 140ms 09 2,824 6m56s 147ms 10 3,248 7m45s 143ms 11 5,214 15m33s 179ms 12 8,281 37m7s 268ms 13 8,091 40m4s 297ms 14 7,913 36m37s 277ms 15 7,824 28m33s 219ms 16 7,592 30m14s 238ms 17 7,594 32m28s 256ms 18 8,164 35m39s 262ms 19 7,066 24m35s 208ms 20 4,227 11m27s 162ms 21 2,563 6m4s 142ms 22 2,417 5m44s 142ms 23 2,492 5m45s 138ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1046"', '["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-09-13 13:42:27 Duration: 3s531ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s530ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s501ms
2 49m13s 3,475 705ms 3s273ms 849ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 13 02 76 55s631ms 731ms 11 323 4m16s 793ms 12 690 10m3s 874ms 13 434 6m39s 919ms 14 446 6m23s 859ms 15 297 4m12s 850ms 16 421 5m52s 837ms 17 235 3m20s 854ms 18 240 3m19s 833ms 19 186 2m33s 826ms 20 127 1m36s 757ms -
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 ('%%r810%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r810%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r810%'))) 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-09-13 13:02:06 Duration: 3s273ms
-
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 ('%%35001y%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%35001y%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%35001y%'))) 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-09-13 13:33:21 Duration: 3s120ms
-
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 ('%%r8100%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r8100%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r8100%'))) 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-09-13 13:02:06 Duration: 3s117ms
3 40m32s 5,948 375ms 2s819ms 408ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 13 02 30 11s489ms 382ms 08 9 3s553ms 394ms 09 1 385ms 385ms 10 4 1s527ms 381ms 11 308 2m2s 396ms 12 865 6m1s 417ms 13 937 6m32s 419ms 14 547 3m47s 416ms 15 419 2m51s 410ms 16 698 4m45s 408ms 17 673 4m33s 406ms 18 537 3m37s 405ms 19 420 2m47s 399ms 20 304 1m58s 391ms 21 196 1m15s 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 14:10:14 Duration: 2s819ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 12:59:46 Duration: 2s34ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 13:59:29 Duration: 1s594ms
4 35m41s 5,947 299ms 3s47ms 360ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 13 02 30 9s493ms 316ms 08 9 2s827ms 314ms 09 1 316ms 316ms 10 4 1s243ms 310ms 11 308 1m44s 338ms 12 865 5m26s 377ms 13 936 5m46s 370ms 14 547 3m25s 376ms 15 419 2m30s 358ms 16 698 4m14s 364ms 17 672 3m58s 355ms 18 538 3m12s 357ms 19 420 2m25s 346ms 20 304 1m39s 327ms 21 196 1m3s 325ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 14:31:10 Duration: 3s47ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 18:01:06 Duration: 2s605ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 12:14:55 Duration: 2s127ms
5 25m43s 8,411 160ms 979ms 183ms 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 Sep 13 02 49 8s403ms 171ms 08 9 1s545ms 171ms 09 16 2s723ms 170ms 10 6 1s21ms 170ms 11 442 1m18s 176ms 12 1,210 3m46s 186ms 13 1,235 3m51s 187ms 14 773 2m23s 185ms 15 617 1m53s 183ms 16 995 3m2s 183ms 17 910 2m46s 183ms 18 978 2m59s 183ms 19 569 1m42s 180ms 20 346 1m1s 176ms 21 256 44s423ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(3.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225903 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-13 13:28:16 Duration: 979ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 265267 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 15:12:14 Duration: 668ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(20.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 205970 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 16:41:26 Duration: 639ms
6 25m8s 8,261 165ms 1s931ms 182ms 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 Sep 13 02 32 5s497ms 171ms 08 35 5s983ms 170ms 10 11 1s876ms 170ms 11 286 51s236ms 179ms 12 1,273 3m52s 182ms 13 1,364 4m12s 185ms 14 926 2m49s 183ms 15 935 2m52s 184ms 16 629 1m54s 182ms 17 806 2m26s 182ms 18 438 1m18s 180ms 19 1,295 3m55s 181ms 20 201 35s631ms 177ms 21 30 5s199ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1943.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (1943.0 - 1925.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 191046 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 13:42:27 Duration: 1s931ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 4.0 IS NOT NULL THEN GREATEST ((31.0 - 31.0) + (4.0 - 4.0), 0) ELSE GREATEST ((31.0 - 31.0), 0) END where product_id = 194661 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 16:34:47 Duration: 1s76ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 61.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (61.0 - 61.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191043 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 19:14:09 Duration: 697ms
7 19m56s 2,155 482ms 2s410ms 555ms 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 #7
Day Hour Count Duration Avg duration Sep 13 00 3 1s453ms 484ms 01 9 4s711ms 523ms 02 6 2s927ms 487ms 06 3 1s457ms 485ms 07 6 2s911ms 485ms 08 14 6s833ms 488ms 09 5 2s426ms 485ms 10 16 7s904ms 494ms 11 139 1m12s 520ms 12 289 2m46s 575ms 13 331 3m15s 591ms 14 238 2m17s 576ms 15 224 2m3s 550ms 16 201 1m50s 549ms 17 298 2m43s 548ms 18 162 1m28s 545ms 19 106 56s36ms 528ms 20 93 47s12ms 505ms 21 9 4s376ms 486ms 23 3 1s457ms 485ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 14:31:10 Duration: 2s410ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:33:20 Duration: 2s316ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:47:35 Duration: 2s7ms
8 14m36s 5,762 139ms 917ms 152ms 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 #8
Day Hour Count Duration Avg duration Sep 13 00 240 35s31ms 145ms 01 240 34s680ms 144ms 02 240 34s748ms 144ms 03 240 34s763ms 144ms 04 240 34s516ms 143ms 05 240 34s460ms 143ms 06 240 34s526ms 143ms 07 240 34s665ms 144ms 08 240 34s786ms 144ms 09 240 34s996ms 145ms 10 240 34s614ms 144ms 11 240 36s108ms 150ms 12 240 41s207ms 171ms 13 240 41s823ms 174ms 14 240 40s463ms 168ms 15 241 39s33ms 161ms 16 240 39s203ms 163ms 17 241 39s794ms 165ms 18 240 38s379ms 159ms 19 240 38s401ms 160ms 20 240 36s111ms 150ms 21 240 34s748ms 144ms 22 240 34s655ms 144ms 23 240 34s598ms 144ms -
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_seclabel', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_operator', 'pg_catalog.pg_locks', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_group', 'pg_catalog.pg_proc', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_inherits', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_enum', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rules', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_transform', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_extension', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_namespace', 'pg_catalog.pg_cursors', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_trigger', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'information_schema.column_domain_usage', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.sequences', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.foreign_tables', 'information_schema.routine_sequence_usage', 'information_schema.domain_constraints', 'information_schema.table_constraints', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.triggers', 'information_schema.user_mappings', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.parameters', 'information_schema.role_table_grants', 'information_schema.columns', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_column_usage', 'information_schema.routine_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.collation_character_set_applicability', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.role_routine_grants', 'information_schema.character_sets', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.user_defined_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 17:54:37 Duration: 917ms
-
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_stat_bgwriter', 'pg_catalog.pg_cast', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_language', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_database', 'pg_catalog.pg_constraint', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_sequence', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_index', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_description', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_conversion', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_extension', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_group', 'pg_catalog.pg_amproc', 'pg_catalog.pg_depend', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_roles', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.user_mappings', 'information_schema.character_sets', 'information_schema.collation_character_set_applicability', 'information_schema.routine_column_usage', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routine_routine_usage', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.administrable_role_authorizations', 'information_schema.column_column_usage', 'information_schema.column_udt_usage', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.foreign_table_options', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.domain_constraints', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.view_table_usage', 'information_schema.routine_privileges', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.foreign_servers', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.column_options', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.routines', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.routine_sequence_usage', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.role_column_grants', 'information_schema.parameters', 'information_schema.referential_constraints', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.sequences', 'information_schema.table_constraints', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 15:15:37 Duration: 468ms
-
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_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_language', 'pg_catalog.pg_conversion', 'pg_catalog.pg_rules', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_views', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_group', 'pg_catalog.pg_constraint', 'pg_catalog.pg_index', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_settings', 'pg_catalog.pg_inherits', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_transform', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_proc', 'pg_catalog.pg_sequence', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_trigger', 'information_schema.column_privileges', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.view_column_usage', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.view_table_usage', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.data_type_privileges', 'information_schema.routine_routine_usage', 'information_schema.foreign_server_options', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.user_mappings', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.column_column_usage', 'information_schema.triggers', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.sql_implementation_info', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.role_udt_grants', 'information_schema.foreign_servers', 'information_schema.routine_table_usage', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.routine_sequence_usage', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.udt_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 13:00:36 Duration: 437ms
9 12m40s 4,058 164ms 714ms 187ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 13 02 10 1s737ms 173ms 08 8 1s406ms 175ms 10 9 1s543ms 171ms 11 189 34s83ms 180ms 12 622 1m59s 191ms 13 822 2m36s 190ms 14 347 1m5s 187ms 15 405 1m15s 185ms 16 413 1m18s 189ms 17 541 1m40s 186ms 18 252 47s584ms 188ms 19 266 48s447ms 182ms 20 151 26s568ms 175ms 21 23 4s66ms 176ms -
UPDATE product_warehouse_inventory SET qty_available = 5.0 WHERE product_id = 238645 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-13 12:11:16 Duration: 714ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216745 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-09-13 17:49:21 Duration: 629ms
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 204930 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-13 14:13:11 Duration: 607ms
10 12m28s 739 894ms 2s537ms 1s12ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 13 01 1 910ms 910ms 02 1 924ms 924ms 11 37 35s666ms 963ms 12 95 1m40s 1s60ms 13 103 1m45s 1s20ms 14 67 1m7s 1s12ms 15 92 1m33s 1s14ms 16 82 1m22s 1s5ms 17 93 1m33s 1s5ms 18 84 1m25s 1s19ms 19 67 1m5s 982ms 20 16 15s191ms 949ms 21 1 938ms 938ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%300-a-al%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%300-a-al%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%300-a-al%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%300-a-al%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 18:27:00 Duration: 2s537ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%CMK140A-I6-6%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CMK140A-I6-6%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%CMK140A-I6-6%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%CMK140A-I6-6%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 14:12:20 Duration: 2s350ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%20501701%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%20501701%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%20501701%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%20501701%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 12:59:45 Duration: 2s329ms
11 10m55s 777 712ms 1s911ms 843ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 13 11 26 20s752ms 798ms 12 80 1m20s 1s11ms 13 103 1m28s 855ms 14 89 1m13s 829ms 15 17 16s254ms 956ms 16 72 59s720ms 829ms 17 150 2m4s 831ms 18 95 1m17s 813ms 19 114 1m30s 791ms 20 31 23s393ms 754ms -
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 ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) 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-09-13 16:00:03 Duration: 1s911ms
-
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 ('%%3382544%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%338-2544%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%338-2544%'))) 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-09-13 12:51:55 Duration: 1s613ms
-
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 ('%%n6583%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n6.5-83-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n6.5-83-%'))) 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-09-13 12:06:21 Duration: 1s592ms
12 9m41s 1 9m41s 9m41s 9m41s 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 ((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) 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" = ?)))))) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 13 12 1 9m41s 9m41s -
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 ((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) 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 ('%mitch%')) 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-09-13 12:18:21 Duration: 9m41s
13 9m41s 693 701ms 2s495ms 838ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Sep 13 11 10 7s875ms 787ms 12 8 6s440ms 805ms 13 45 37s871ms 841ms 14 77 1m8s 893ms 15 148 2m5s 845ms 16 103 1m30s 882ms 17 28 23s955ms 855ms 18 209 2m47s 799ms 19 56 46s348ms 827ms 20 9 7s38ms 782ms -
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 ('%%441030%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%441030%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%441030%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 2s495ms
-
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 ('%%44103090%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%44103090%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%44103090%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 2s159ms
-
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 ('%%4410309092%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%4410309092%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%4410309092%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 1s811ms
14 9m28s 1 9m28s 9m28s 9m28s select count(?) 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 ((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) 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" = ?))))));Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Sep 13 12 1 9m28s 9m28s -
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 ((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) 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 ('%mitch%')) 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-09-13 12:27:49 Duration: 9m28s
15 7m46s 2,299 171ms 1s69ms 202ms 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 #15
Day Hour Count Duration Avg duration Sep 13 12 89 19s758ms 222ms 13 5 1s662ms 332ms 14 137 28s808ms 210ms 15 317 1m9s 218ms 16 756 2m36s 207ms 17 114 24s945ms 218ms 18 48 9s711ms 202ms 19 226 43s513ms 192ms 20 242 45s752ms 189ms 21 365 1m6s 182ms -
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 = 51038 and fd.product_id = 203735;
Date: 2024-09-13 15:46:35 Duration: 1s69ms
-
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 = 51038 and fd.product_id = 203750;
Date: 2024-09-13 15:46:33 Duration: 897ms
-
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 = 51038 and fd.product_id = 203794;
Date: 2024-09-13 15:46:33 Duration: 869ms
16 7m18s 2,393 159ms 847ms 183ms 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 Sep 13 08 8 1s365ms 170ms 10 4 697ms 174ms 11 105 18s528ms 176ms 12 308 58s177ms 188ms 13 415 1m17s 187ms 14 216 40s258ms 186ms 15 245 43s809ms 178ms 16 249 45s918ms 184ms 17 255 46s849ms 183ms 18 216 39s872ms 184ms 19 158 28s617ms 181ms 20 148 25s628ms 173ms 21 66 11s126ms 168ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 178300 AND warehouse_id = 38;
Date: 2024-09-13 14:54:17 Duration: 847ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238645 AND warehouse_id = 45;
Date: 2024-09-13 12:11:17 Duration: 798ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239164 AND warehouse_id = 36;
Date: 2024-09-13 13:50:09 Duration: 320ms
17 7m6s 2,320 159ms 1s40ms 183ms 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 Sep 13 02 20 3s395ms 169ms 08 1 165ms 165ms 09 6 1s35ms 172ms 11 110 19s263ms 175ms 12 368 1m10s 190ms 13 331 1m2s 188ms 14 215 39s735ms 184ms 15 194 35s294ms 181ms 16 269 50s377ms 187ms 17 284 51s929ms 182ms 18 205 37s2ms 180ms 19 188 33s383ms 177ms 20 65 11s415ms 175ms 21 64 10s875ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189331 AND warehouse_id = 37;
Date: 2024-09-13 12:44:22 Duration: 1s40ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 221847 AND warehouse_id = 43;
Date: 2024-09-13 13:26:38 Duration: 842ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 183954 AND warehouse_id = 35;
Date: 2024-09-13 16:09:25 Duration: 735ms
18 7m5s 1,519 200ms 2s393ms 280ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 13 08 14 3s53ms 218ms 11 61 14s887ms 244ms 12 143 45s442ms 317ms 13 196 57s921ms 295ms 14 259 1m12s 281ms 15 156 43s957ms 281ms 16 233 1m3s 272ms 17 203 53s414ms 263ms 18 142 42s833ms 301ms 19 78 19s939ms 255ms 20 32 7s538ms 235ms 21 2 489ms 244ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1656307)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 13:59:30 Duration: 2s393ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1289369)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 18:26:59 Duration: 2s381ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1655727)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 12:28:18 Duration: 2s271ms
19 6m32s 48 6s407ms 28s651ms 8s167ms delete from sale_order_line where id in (...);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 13 02 2 12s840ms 6s420ms 10 1 28s651ms 28s651ms 11 3 20s212ms 6s737ms 12 6 47s790ms 7s965ms 13 4 42s454ms 10s613ms 14 5 51s383ms 10s276ms 15 4 27s83ms 6s770ms 16 8 56s925ms 7s115ms 17 7 50s248ms 7s178ms 18 3 20s819ms 6s939ms 19 3 20s718ms 6s906ms 20 2 12s926ms 6s463ms -
DELETE FROM sale_order_line WHERE id IN (321301, 321330);
Date: 2024-09-13 10:28:13 Duration: 28s651ms
-
DELETE FROM sale_order_line WHERE id IN (483989, 483995);
Date: 2024-09-13 14:31:14 Duration: 17s178ms
-
DELETE FROM sale_order_line WHERE id IN (483920, 483922);
Date: 2024-09-13 14:43:01 Duration: 13s780ms
20 6m25s 80 2s64ms 51s431ms 4s815ms delete from account_move_line where id in (...);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 13 12 4 9s391ms 2s347ms 13 2 8s944ms 4s472ms 14 5 1m5s 13s100ms 15 3 18s91ms 6s30ms 16 6 29s558ms 4s926ms 17 1 9s326ms 9s326ms 18 1 9s681ms 9s681ms 19 14 36s312ms 2s593ms 20 1 4s274ms 4s274ms 23 43 3m14s 4s515ms -
DELETE FROM account_move_line WHERE id IN (5832992, 5832993, 5832994, 5832996, 5832997, 5832998, 5832999, 5833000, 5833001, 5833002, 5833003, 5833004, 5833005, 5833006, 5833007, 5833008, 5833009, 5833010, 5833011, 5833012, 5833013, 5833014, 5833015);
Date: 2024-09-13 14:05:52 Duration: 51s431ms
-
DELETE FROM account_move_line WHERE id IN (5799650, 5799651, 5799652, 5799653, 5799654, 5799655, 5799656, 5799657, 5799658, 5799659, 5799660, 5799661, 5799662, 5799663, 5799664, 5799665, 5799666, 5826827, 5826828);
Date: 2024-09-13 23:43:38 Duration: 39s666ms
-
DELETE FROM account_move_line WHERE id IN (5826855, 5826856, 5826857, 5826858, 5836851, 5836852, 5836853, 5836854, 5836855, 5836856, 5836857);
Date: 2024-09-13 23:01:21 Duration: 23s16ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 110,223 6h23m1s 121ms 3s531ms 208ms 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 Sep 13 00 2,780 6m26s 139ms 01 2,859 6m35s 138ms 02 2,751 6m36s 144ms 03 2,531 6m15s 148ms 04 2,699 6m25s 142ms 05 2,713 6m20s 140ms 06 2,680 6m13s 139ms 07 2,754 6m35s 143ms 08 2,946 6m53s 140ms 09 2,824 6m56s 147ms 10 3,248 7m45s 143ms 11 5,214 15m33s 179ms 12 8,281 37m7s 268ms 13 8,091 40m4s 297ms 14 7,913 36m37s 277ms 15 7,824 28m33s 219ms 16 7,592 30m14s 238ms 17 7,594 32m28s 256ms 18 8,164 35m39s 262ms 19 7,066 24m35s 208ms 20 4,227 11m27s 162ms 21 2,563 6m4s 142ms 22 2,417 5m44s 142ms 23 2,492 5m45s 138ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1046"', '["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-09-13 13:42:27 Duration: 3s531ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s530ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s501ms
2 8,411 25m43s 160ms 979ms 183ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 13 02 49 8s403ms 171ms 08 9 1s545ms 171ms 09 16 2s723ms 170ms 10 6 1s21ms 170ms 11 442 1m18s 176ms 12 1,210 3m46s 186ms 13 1,235 3m51s 187ms 14 773 2m23s 185ms 15 617 1m53s 183ms 16 995 3m2s 183ms 17 910 2m46s 183ms 18 978 2m59s 183ms 19 569 1m42s 180ms 20 346 1m1s 176ms 21 256 44s423ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(3.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225903 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-13 13:28:16 Duration: 979ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 265267 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 15:12:14 Duration: 668ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(20.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 205970 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 16:41:26 Duration: 639ms
3 8,261 25m8s 165ms 1s931ms 182ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 13 02 32 5s497ms 171ms 08 35 5s983ms 170ms 10 11 1s876ms 170ms 11 286 51s236ms 179ms 12 1,273 3m52s 182ms 13 1,364 4m12s 185ms 14 926 2m49s 183ms 15 935 2m52s 184ms 16 629 1m54s 182ms 17 806 2m26s 182ms 18 438 1m18s 180ms 19 1,295 3m55s 181ms 20 201 35s631ms 177ms 21 30 5s199ms 173ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 1943.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (1943.0 - 1925.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 191046 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 13:42:27 Duration: 1s931ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 4.0 IS NOT NULL THEN GREATEST ((31.0 - 31.0) + (4.0 - 4.0), 0) ELSE GREATEST ((31.0 - 31.0), 0) END where product_id = 194661 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 16:34:47 Duration: 1s76ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 61.0 IS NOT NULL THEN GREATEST ((0.0 - 0.0) + (61.0 - 61.0), 0) ELSE GREATEST ((0.0 - 0.0), 0) END where product_id = 191043 and warehouse_id = 35 and company_id = 1;
Date: 2024-09-13 19:14:09 Duration: 697ms
4 5,948 40m32s 375ms 2s819ms 408ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 13 02 30 11s489ms 382ms 08 9 3s553ms 394ms 09 1 385ms 385ms 10 4 1s527ms 381ms 11 308 2m2s 396ms 12 865 6m1s 417ms 13 937 6m32s 419ms 14 547 3m47s 416ms 15 419 2m51s 410ms 16 698 4m45s 408ms 17 673 4m33s 406ms 18 537 3m37s 405ms 19 420 2m47s 399ms 20 304 1m58s 391ms 21 196 1m15s 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 14:10:14 Duration: 2s819ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 12:59:46 Duration: 2s34ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 13:59:29 Duration: 1s594ms
5 5,947 35m41s 299ms 3s47ms 360ms select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 13 02 30 9s493ms 316ms 08 9 2s827ms 314ms 09 1 316ms 316ms 10 4 1s243ms 310ms 11 308 1m44s 338ms 12 865 5m26s 377ms 13 936 5m46s 370ms 14 547 3m25s 376ms 15 419 2m30s 358ms 16 698 4m14s 364ms 17 672 3m58s 355ms 18 538 3m12s 357ms 19 420 2m25s 346ms 20 304 1m39s 327ms 21 196 1m3s 325ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 14:31:10 Duration: 3s47ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 18:01:06 Duration: 2s605ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 12:14:55 Duration: 2s127ms
6 5,762 14m36s 139ms 917ms 152ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Sep 13 00 240 35s31ms 145ms 01 240 34s680ms 144ms 02 240 34s748ms 144ms 03 240 34s763ms 144ms 04 240 34s516ms 143ms 05 240 34s460ms 143ms 06 240 34s526ms 143ms 07 240 34s665ms 144ms 08 240 34s786ms 144ms 09 240 34s996ms 145ms 10 240 34s614ms 144ms 11 240 36s108ms 150ms 12 240 41s207ms 171ms 13 240 41s823ms 174ms 14 240 40s463ms 168ms 15 241 39s33ms 161ms 16 240 39s203ms 163ms 17 241 39s794ms 165ms 18 240 38s379ms 159ms 19 240 38s401ms 160ms 20 240 36s111ms 150ms 21 240 34s748ms 144ms 22 240 34s655ms 144ms 23 240 34s598ms 144ms -
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_seclabel', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_subscription', 'pg_catalog.pg_operator', 'pg_catalog.pg_locks', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_language', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_description', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_group', 'pg_catalog.pg_proc', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_inherits', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_conversion', 'pg_catalog.pg_am', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_opclass', 'pg_catalog.pg_enum', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_amproc', 'pg_catalog.pg_rules', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_attribute', 'pg_catalog.pg_transform', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_cast', 'pg_catalog.pg_extension', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_constraint', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_matviews', 'pg_catalog.pg_sequences', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_namespace', 'pg_catalog.pg_cursors', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_trigger', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_index', 'pg_catalog.pg_depend', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_class', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_views', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_range', 'pg_catalog.pg_publication', 'information_schema.column_domain_usage', 'information_schema.routine_table_usage', 'information_schema.foreign_data_wrappers', 'information_schema.sequences', 'information_schema.view_routine_usage', 'information_schema.foreign_server_options', 'information_schema.applicable_roles', 'information_schema.administrable_role_authorizations', 'information_schema.collations', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.foreign_tables', 'information_schema.routine_sequence_usage', 'information_schema.domain_constraints', 'information_schema.table_constraints', 'information_schema.view_table_usage', 'information_schema.tables', 'information_schema.triggers', 'information_schema.user_mappings', 'information_schema.view_column_usage', 'information_schema.column_column_usage', 'information_schema.role_column_grants', 'information_schema.column_udt_usage', 'information_schema.constraint_table_usage', 'information_schema.parameters', 'information_schema.role_table_grants', 'information_schema.columns', 'information_schema.data_type_privileges', 'information_schema.usage_privileges', 'information_schema.enabled_roles', 'information_schema.attributes', 'information_schema.schemata', 'information_schema.key_column_usage', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.routine_column_usage', 'information_schema.routine_routine_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_servers', 'information_schema.check_constraints', 'information_schema.views', 'information_schema.role_usage_grants', 'information_schema.foreign_table_options', 'information_schema.element_types', 'information_schema.user_mapping_options', 'information_schema.domain_udt_usage', 'information_schema.domains', 'information_schema.referential_constraints', 'information_schema.sql_sizing', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.collation_character_set_applicability', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.routines', 'information_schema.column_privileges', 'information_schema.role_routine_grants', 'information_schema.character_sets', 'information_schema.constraint_column_usage', 'information_schema.routine_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.user_defined_types', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 17:54:37 Duration: 917ms
-
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_stat_bgwriter', 'pg_catalog.pg_cast', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_language', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_database', 'pg_catalog.pg_constraint', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_user', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_type', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_subscription', 'pg_catalog.pg_policies', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_sequence', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_policy', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_cursors', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_index', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_settings', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_description', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_inherits', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_conversion', 'pg_catalog.pg_rules', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_trigger', 'pg_catalog.pg_namespace', 'pg_catalog.pg_extension', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_tables', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_collation', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_group', 'pg_catalog.pg_amproc', 'pg_catalog.pg_depend', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_proc', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_attribute', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_roles', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_sys_sequences', 'information_schema.key_column_usage', 'information_schema.view_routine_usage', 'information_schema.user_mappings', 'information_schema.character_sets', 'information_schema.collation_character_set_applicability', 'information_schema.routine_column_usage', 'information_schema.data_type_privileges', 'information_schema.element_types', 'information_schema.foreign_data_wrappers', 'information_schema.domains', 'information_schema.enabled_roles', 'information_schema.routine_routine_usage', 'information_schema.role_usage_grants', 'information_schema.user_mapping_options', 'information_schema.administrable_role_authorizations', 'information_schema.column_column_usage', 'information_schema.column_udt_usage', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.foreign_table_options', 'information_schema.triggered_update_columns', 'information_schema.udt_privileges', 'information_schema.role_udt_grants', 'information_schema.view_column_usage', 'information_schema.attributes', 'information_schema.constraint_column_usage', 'information_schema.tables', 'information_schema.foreign_data_wrapper_options', 'information_schema.domain_constraints', 'information_schema.role_table_grants', 'information_schema.triggers', 'information_schema.view_table_usage', 'information_schema.routine_privileges', 'information_schema.sql_sizing', 'information_schema.table_privileges', 'information_schema.foreign_servers', 'information_schema.applicable_roles', 'information_schema.column_privileges', 'information_schema.column_options', 'information_schema.schemata', 'information_schema.foreign_server_options', 'information_schema.routines', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.routine_sequence_usage', 'information_schema.routine_table_usage', 'information_schema.usage_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.role_column_grants', 'information_schema.parameters', 'information_schema.referential_constraints', 'information_schema.views', 'information_schema.user_defined_types', 'information_schema.domain_udt_usage', 'information_schema.role_routine_grants', 'information_schema.sequences', 'information_schema.table_constraints', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.sql_implementation_info', 'information_schema.sql_features', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 15:15:37 Duration: 468ms
-
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_stat_all_indexes', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_operator', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_language', 'pg_catalog.pg_conversion', 'pg_catalog.pg_rules', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_views', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_collation', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_user', 'pg_catalog.pg_group', 'pg_catalog.pg_constraint', 'pg_catalog.pg_index', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_attribute', 'pg_catalog.pg_amop', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_database', 'pg_catalog.pg_settings', 'pg_catalog.pg_inherits', 'pg_catalog.pg_am', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_cast', 'pg_catalog.pg_namespace', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_transform', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_subscription', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_extension', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_depend', 'pg_catalog.pg_locks', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_policy', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_description', 'pg_catalog.pg_enum', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_class', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_sequences', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_proc', 'pg_catalog.pg_sequence', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_publication', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_type', 'pg_catalog.pg_roles', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_range', 'pg_catalog.pg_policies', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_opclass', 'pg_catalog.pg_trigger', 'information_schema.column_privileges', 'information_schema.sql_features', 'information_schema.triggered_update_columns', 'information_schema.view_column_usage', 'information_schema.character_sets', 'information_schema.routines', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.view_table_usage', 'information_schema.role_usage_grants', 'information_schema.user_defined_types', 'information_schema.element_types', 'information_schema.check_constraint_routine_usage', 'information_schema.tables', 'information_schema.views', 'information_schema.data_type_privileges', 'information_schema.routine_routine_usage', 'information_schema.foreign_server_options', 'information_schema.constraint_column_usage', 'information_schema.constraint_table_usage', 'information_schema.user_mappings', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.foreign_data_wrappers', 'information_schema.usage_privileges', 'information_schema.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.view_routine_usage', 'information_schema.foreign_table_options', 'information_schema.domains', 'information_schema.key_column_usage', 'information_schema.parameters', 'information_schema.column_column_usage', 'information_schema.triggers', 'information_schema.column_options', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.routine_privileges', 'information_schema.enabled_roles', 'information_schema.schemata', 'information_schema.table_privileges', 'information_schema.sql_implementation_info', 'information_schema.sql_sizing', 'information_schema.table_constraints', 'information_schema.information_schema_catalog_name', 'information_schema.collations', 'information_schema.column_domain_usage', 'information_schema.columns', 'information_schema.domain_udt_usage', 'information_schema.sequences', 'information_schema.role_udt_grants', 'information_schema.foreign_servers', 'information_schema.routine_table_usage', 'information_schema.role_table_grants', 'information_schema.attributes', 'information_schema.routine_sequence_usage', 'information_schema.applicable_roles', 'information_schema.check_constraints', 'information_schema.collation_character_set_applicability', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.udt_privileges', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-09-13 13:00:36 Duration: 437ms
7 4,058 12m40s 164ms 714ms 187ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 13 02 10 1s737ms 173ms 08 8 1s406ms 175ms 10 9 1s543ms 171ms 11 189 34s83ms 180ms 12 622 1m59s 191ms 13 822 2m36s 190ms 14 347 1m5s 187ms 15 405 1m15s 185ms 16 413 1m18s 189ms 17 541 1m40s 186ms 18 252 47s584ms 188ms 19 266 48s447ms 182ms 20 151 26s568ms 175ms 21 23 4s66ms 176ms -
UPDATE product_warehouse_inventory SET qty_available = 5.0 WHERE product_id = 238645 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-13 12:11:16 Duration: 714ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216745 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-09-13 17:49:21 Duration: 629ms
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 204930 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-13 14:13:11 Duration: 607ms
8 3,475 49m13s 705ms 3s273ms 849ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 13 02 76 55s631ms 731ms 11 323 4m16s 793ms 12 690 10m3s 874ms 13 434 6m39s 919ms 14 446 6m23s 859ms 15 297 4m12s 850ms 16 421 5m52s 837ms 17 235 3m20s 854ms 18 240 3m19s 833ms 19 186 2m33s 826ms 20 127 1m36s 757ms -
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 ('%%r810%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r810%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r810%'))) 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-09-13 13:02:06 Duration: 3s273ms
-
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 ('%%35001y%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%35001y%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%35001y%'))) 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-09-13 13:33:21 Duration: 3s120ms
-
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 ('%%r8100%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r8100%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r8100%'))) 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-09-13 13:02:06 Duration: 3s117ms
9 2,393 7m18s 159ms 847ms 183ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Sep 13 08 8 1s365ms 170ms 10 4 697ms 174ms 11 105 18s528ms 176ms 12 308 58s177ms 188ms 13 415 1m17s 187ms 14 216 40s258ms 186ms 15 245 43s809ms 178ms 16 249 45s918ms 184ms 17 255 46s849ms 183ms 18 216 39s872ms 184ms 19 158 28s617ms 181ms 20 148 25s628ms 173ms 21 66 11s126ms 168ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 178300 AND warehouse_id = 38;
Date: 2024-09-13 14:54:17 Duration: 847ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238645 AND warehouse_id = 45;
Date: 2024-09-13 12:11:17 Duration: 798ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239164 AND warehouse_id = 36;
Date: 2024-09-13 13:50:09 Duration: 320ms
10 2,347 5m44s 120ms 1s349ms 146ms 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 Sep 13 02 3 381ms 127ms 08 2 260ms 130ms 10 2 272ms 136ms 11 124 17s261ms 139ms 12 424 1m5s 153ms 13 346 51s604ms 149ms 14 284 40s409ms 142ms 15 197 29s938ms 151ms 16 282 40s376ms 143ms 17 201 28s797ms 143ms 18 166 23s66ms 138ms 19 163 22s620ms 138ms 20 67 9s94ms 135ms 21 86 15s93ms 175ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (225903)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-13 13:28:16 Duration: 1s349ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (199562, 209430, 189181, 189114, 195667)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-13 12:59:45 Duration: 1s150ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (208813)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-09-13 12:59:45 Duration: 1s118ms
11 2,320 7m6s 159ms 1s40ms 183ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 13 02 20 3s395ms 169ms 08 1 165ms 165ms 09 6 1s35ms 172ms 11 110 19s263ms 175ms 12 368 1m10s 190ms 13 331 1m2s 188ms 14 215 39s735ms 184ms 15 194 35s294ms 181ms 16 269 50s377ms 187ms 17 284 51s929ms 182ms 18 205 37s2ms 180ms 19 188 33s383ms 177ms 20 65 11s415ms 175ms 21 64 10s875ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189331 AND warehouse_id = 37;
Date: 2024-09-13 12:44:22 Duration: 1s40ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 221847 AND warehouse_id = 43;
Date: 2024-09-13 13:26:38 Duration: 842ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 183954 AND warehouse_id = 35;
Date: 2024-09-13 16:09:25 Duration: 735ms
12 2,299 7m46s 171ms 1s69ms 202ms 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 #12
Day Hour Count Duration Avg duration Sep 13 12 89 19s758ms 222ms 13 5 1s662ms 332ms 14 137 28s808ms 210ms 15 317 1m9s 218ms 16 756 2m36s 207ms 17 114 24s945ms 218ms 18 48 9s711ms 202ms 19 226 43s513ms 192ms 20 242 45s752ms 189ms 21 365 1m6s 182ms -
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 = 51038 and fd.product_id = 203735;
Date: 2024-09-13 15:46:35 Duration: 1s69ms
-
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 = 51038 and fd.product_id = 203750;
Date: 2024-09-13 15:46:33 Duration: 897ms
-
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 = 51038 and fd.product_id = 203794;
Date: 2024-09-13 15:46:33 Duration: 869ms
13 2,168 5m49s 120ms 1s36ms 161ms 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 Sep 13 11 113 16s61ms 142ms 12 271 40s779ms 150ms 13 203 32s35ms 157ms 14 343 49s577ms 144ms 15 63 9s153ms 145ms 16 160 23s721ms 148ms 17 180 33s307ms 185ms 18 204 33s713ms 165ms 19 472 1m24s 178ms 20 159 27s69ms 170ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 181348) 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" = '37')))))) 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-09-13 17:54:38 Duration: 1s36ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 210147) 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" = '37')))))) 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-09-13 17:54:39 Duration: 917ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 265700) 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" = '37')))))) 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-09-13 17:54:37 Duration: 786ms
14 2,155 19m56s 482ms 2s410ms 555ms 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 #14
Day Hour Count Duration Avg duration Sep 13 00 3 1s453ms 484ms 01 9 4s711ms 523ms 02 6 2s927ms 487ms 06 3 1s457ms 485ms 07 6 2s911ms 485ms 08 14 6s833ms 488ms 09 5 2s426ms 485ms 10 16 7s904ms 494ms 11 139 1m12s 520ms 12 289 2m46s 575ms 13 331 3m15s 591ms 14 238 2m17s 576ms 15 224 2m3s 550ms 16 201 1m50s 549ms 17 298 2m43s 548ms 18 162 1m28s 545ms 19 106 56s36ms 528ms 20 93 47s12ms 505ms 21 9 4s376ms 486ms 23 3 1s457ms 485ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 14:31:10 Duration: 2s410ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:33:20 Duration: 2s316ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:47:35 Duration: 2s7ms
15 1,830 5m41s 167ms 1s205ms 186ms 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 #15
Day Hour Count Duration Avg duration Sep 13 02 9 1s560ms 173ms 08 5 868ms 173ms 10 1 171ms 171ms 11 102 18s277ms 179ms 12 254 49s733ms 195ms 13 292 54s762ms 187ms 14 131 25s156ms 192ms 15 103 18s950ms 183ms 16 192 35s642ms 185ms 17 184 33s446ms 181ms 18 402 1m15s 187ms 19 116 21s143ms 182ms 20 33 5s761ms 174ms 21 6 1s50ms 175ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(4.0, 0) + COALESCE(0.0, 0) WHERE product_id = 180802 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-13 12:51:15 Duration: 1s205ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(32.0, 0) + COALESCE(5.0, 0) WHERE product_id = 188518 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-13 14:12:20 Duration: 575ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) WHERE product_id = 268147 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-13 13:18:59 Duration: 496ms
16 1,728 4m8s 120ms 644ms 143ms 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 #16
Day Hour Count Duration Avg duration Sep 13 11 153 20s558ms 134ms 12 370 52s166ms 140ms 13 231 37s639ms 162ms 14 248 34s966ms 140ms 15 38 5s372ms 141ms 16 157 23s514ms 149ms 17 139 19s736ms 141ms 18 186 26s17ms 139ms 19 199 27s654ms 138ms 20 7 927ms 132ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 197871)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-13 13:59:28 Duration: 644ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 172633)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-13 13:59:29 Duration: 624ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 43) AND ("product_warehouse_inventory"."product_id" = 181348)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-09-13 13:59:27 Duration: 497ms
17 1,709 4m41s 120ms 959ms 164ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Sep 13 01 2 276ms 138ms 02 1 150ms 150ms 11 48 7s272ms 151ms 12 224 35s373ms 157ms 13 525 1m25s 162ms 14 261 43s622ms 167ms 15 162 27s629ms 170ms 16 130 19s830ms 152ms 17 176 32s820ms 186ms 18 106 16s190ms 152ms 19 54 9s108ms 168ms 20 19 3s354ms 176ms 21 1 123ms 123ms -
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-09-13 13:42:26 Duration: 959ms
-
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-09-13 14:10:14 Duration: 647ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-904d16a/web.report_assets_common.js' GROUP BY name ORDER BY name;
Date: 2024-09-13 13:28:17 Duration: 612ms
18 1,525 4m54s 160ms 1s604ms 193ms select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 13 02 2 322ms 161ms 08 6 1s8ms 168ms 10 5 815ms 163ms 11 62 12s56ms 194ms 12 110 23s686ms 215ms 13 213 42s58ms 197ms 14 244 47s618ms 195ms 15 255 47s664ms 186ms 16 246 46s2ms 187ms 17 103 19s493ms 189ms 18 132 26s481ms 200ms 19 71 14s31ms 197ms 20 62 11s207ms 180ms 21 14 2s398ms 171ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%lakeland dai%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%lakeland dai%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%lakeland dai%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.display_name) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.ref) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.vat) ilike unaccent ('lakelanddai')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%lakeland dai%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 12:51:15 Duration: 1s604ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%N-05612%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%N-05612%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%N-05612%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%N-05612%') OR unaccent (res_partner.display_name) ilike unaccent ('%N-05612%') OR unaccent (res_partner.ref) ilike unaccent ('%N-05612%') OR unaccent (res_partner.vat) ilike unaccent ('N-05612')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%N-05612%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 18:04:50 Duration: 1s443ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%west pen%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%west pen%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%west pen%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%west pen%') OR unaccent (res_partner.display_name) ilike unaccent ('%west pen%') OR unaccent (res_partner.ref) ilike unaccent ('%west pen%') OR unaccent (res_partner.vat) ilike unaccent ('westpen')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%west pen%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 11:49:02 Duration: 1s97ms
19 1,519 7m5s 200ms 2s393ms 280ms select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Sep 13 08 14 3s53ms 218ms 11 61 14s887ms 244ms 12 143 45s442ms 317ms 13 196 57s921ms 295ms 14 259 1m12s 281ms 15 156 43s957ms 281ms 16 233 1m3s 272ms 17 203 53s414ms 263ms 18 142 42s833ms 301ms 19 78 19s939ms 255ms 20 32 7s538ms 235ms 21 2 489ms 244ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1656307)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 13:59:30 Duration: 2s393ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1289369)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 18:26:59 Duration: 2s381ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1655727)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 12:28:18 Duration: 2s271ms
20 1,334 3m25s 138ms 544ms 153ms select "sale_history_line".id from "sale_history_line" where ("sale_history_line"."customer_id" in (...)) order by "sale_history_line"."id";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 13 01 648 1m34s 145ms 02 314 46s353ms 147ms 11 46 7s737ms 168ms 12 96 16s718ms 174ms 13 52 9s57ms 174ms 14 36 5s861ms 162ms 15 22 4s283ms 194ms 16 18 2s735ms 151ms 17 36 6s451ms 179ms 18 44 7s839ms 178ms 19 22 3s443ms 156ms -
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (33587)) ORDER BY "sale_history_line"."id";
Date: 2024-09-13 15:14:35 Duration: 544ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (33393)) ORDER BY "sale_history_line"."id";
Date: 2024-09-13 13:00:59 Duration: 544ms
-
SELECT "sale_history_line".id FROM "sale_history_line" WHERE ("sale_history_line"."customer_id" in (40633)) ORDER BY "sale_history_line"."id";
Date: 2024-09-13 11:50:01 Duration: 523ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9m41s 9m41s 9m41s 1 9m41s 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 ((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) 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" = ?)))))) order by "sale_history_line"."invoice_date" desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Sep 13 12 1 9m41s 9m41s -
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 ((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) 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 ('%mitch%')) 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-09-13 12:18:21 Duration: 9m41s
2 9m28s 9m28s 9m28s 1 9m28s select count(?) 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 ((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) 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" = ?))))));Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Sep 13 12 1 9m28s 9m28s -
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 ((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) 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 ('%mitch%')) 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-09-13 12:27:49 Duration: 9m28s
3 6s407ms 28s651ms 8s167ms 48 6m32s delete from sale_order_line where id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Sep 13 02 2 12s840ms 6s420ms 10 1 28s651ms 28s651ms 11 3 20s212ms 6s737ms 12 6 47s790ms 7s965ms 13 4 42s454ms 10s613ms 14 5 51s383ms 10s276ms 15 4 27s83ms 6s770ms 16 8 56s925ms 7s115ms 17 7 50s248ms 7s178ms 18 3 20s819ms 6s939ms 19 3 20s718ms 6s906ms 20 2 12s926ms 6s463ms -
DELETE FROM sale_order_line WHERE id IN (321301, 321330);
Date: 2024-09-13 10:28:13 Duration: 28s651ms
-
DELETE FROM sale_order_line WHERE id IN (483989, 483995);
Date: 2024-09-13 14:31:14 Duration: 17s178ms
-
DELETE FROM sale_order_line WHERE id IN (483920, 483922);
Date: 2024-09-13 14:43:01 Duration: 13s780ms
4 2s64ms 51s431ms 4s815ms 80 6m25s delete from account_move_line where id in (...);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Sep 13 12 4 9s391ms 2s347ms 13 2 8s944ms 4s472ms 14 5 1m5s 13s100ms 15 3 18s91ms 6s30ms 16 6 29s558ms 4s926ms 17 1 9s326ms 9s326ms 18 1 9s681ms 9s681ms 19 14 36s312ms 2s593ms 20 1 4s274ms 4s274ms 23 43 3m14s 4s515ms -
DELETE FROM account_move_line WHERE id IN (5832992, 5832993, 5832994, 5832996, 5832997, 5832998, 5832999, 5833000, 5833001, 5833002, 5833003, 5833004, 5833005, 5833006, 5833007, 5833008, 5833009, 5833010, 5833011, 5833012, 5833013, 5833014, 5833015);
Date: 2024-09-13 14:05:52 Duration: 51s431ms
-
DELETE FROM account_move_line WHERE id IN (5799650, 5799651, 5799652, 5799653, 5799654, 5799655, 5799656, 5799657, 5799658, 5799659, 5799660, 5799661, 5799662, 5799663, 5799664, 5799665, 5799666, 5826827, 5826828);
Date: 2024-09-13 23:43:38 Duration: 39s666ms
-
DELETE FROM account_move_line WHERE id IN (5826855, 5826856, 5826857, 5826858, 5836851, 5836852, 5836853, 5836854, 5836855, 5836856, 5836857);
Date: 2024-09-13 23:01:21 Duration: 23s16ms
5 894ms 2s537ms 1s12ms 739 12m28s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Sep 13 01 1 910ms 910ms 02 1 924ms 924ms 11 37 35s666ms 963ms 12 95 1m40s 1s60ms 13 103 1m45s 1s20ms 14 67 1m7s 1s12ms 15 92 1m33s 1s14ms 16 82 1m22s 1s5ms 17 93 1m33s 1s5ms 18 84 1m25s 1s19ms 19 67 1m5s 982ms 20 16 15s191ms 949ms 21 1 938ms 938ms -
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%300-a-al%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%300-a-al%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%300-a-al%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%300-a-al%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 18:27:00 Duration: 2s537ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%CMK140A-I6-6%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CMK140A-I6-6%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%CMK140A-I6-6%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%CMK140A-I6-6%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 14:12:20 Duration: 2s350ms
-
SELECT "product_template".id FROM "product_template" LEFT JOIN "ir_translation" AS "product_template__name" ON ("product_template"."id" = "product_template__name"."res_id" AND "product_template__name"."type" = 'model' AND "product_template__name"."name" = 'product.template,name' AND "product_template__name"."lang" = 'en_US' AND "product_template__name"."value" != '') WHERE (("product_template"."active" = true) AND (("product_template"."is_core" IS NULL or "product_template"."is_core" = false) AND (("product_template"."type" in ('consu', 'product')) AND (((((unaccent ("product_template"."default_code"::text) ilike unaccent ('%20501701%')) OR ("product_template"."id" IN ( SELECT "product_product"."product_tmpl_id" FROM "product_product" LEFT JOIN "product_template" AS "product_product__product_tmpl_id" ON ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") WHERE (("product_product"."active" = true) AND (unaccent ("product_product"."default_code"::text) ilike unaccent ('%20501701%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL)))) OR unaccent (COALESCE("product_template__name"."value", "product_template"."name")) ilike unaccent ('%20501701%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%20501701%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-09-13 12:59:45 Duration: 2s329ms
6 705ms 3s273ms 849ms 3,475 49m13s 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 #6
Day Hour Count Duration Avg duration Sep 13 02 76 55s631ms 731ms 11 323 4m16s 793ms 12 690 10m3s 874ms 13 434 6m39s 919ms 14 446 6m23s 859ms 15 297 4m12s 850ms 16 421 5m52s 837ms 17 235 3m20s 854ms 18 240 3m19s 833ms 19 186 2m33s 826ms 20 127 1m36s 757ms -
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 ('%%r810%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r810%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r810%'))) 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-09-13 13:02:06 Duration: 3s273ms
-
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 ('%%35001y%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%35001y%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%35001y%'))) 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-09-13 13:33:21 Duration: 3s120ms
-
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 ('%%r8100%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%r8100%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%r8100%'))) 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-09-13 13:02:06 Duration: 3s117ms
7 712ms 1s911ms 843ms 777 10m55s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Sep 13 11 26 20s752ms 798ms 12 80 1m20s 1s11ms 13 103 1m28s 855ms 14 89 1m13s 829ms 15 17 16s254ms 956ms 16 72 59s720ms 829ms 17 150 2m4s 831ms 18 95 1m17s 813ms 19 114 1m30s 791ms 20 31 23s393ms 754ms -
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 ('%%SHIPP%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%SHIPP%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%SHIPP%'))) 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-09-13 16:00:03 Duration: 1s911ms
-
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 ('%%3382544%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%338-2544%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%338-2544%'))) 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-09-13 12:51:55 Duration: 1s613ms
-
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 ('%%n6583%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n6.5-83-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n6.5-83-%'))) 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-09-13 12:06:21 Duration: 1s592ms
8 701ms 2s495ms 838ms 693 9m41s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."purchase_ok" is not null and "product_product__product_tmpl_id"."purchase_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Sep 13 11 10 7s875ms 787ms 12 8 6s440ms 805ms 13 45 37s871ms 841ms 14 77 1m8s 893ms 15 148 2m5s 845ms 16 103 1m30s 882ms 17 28 23s955ms 855ms 18 209 2m47s 799ms 19 56 46s348ms 827ms 20 9 7s38ms 782ms -
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 ('%%441030%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%441030%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%441030%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 2s495ms
-
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 ('%%44103090%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%44103090%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%44103090%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 2s159ms
-
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 ('%%4410309092%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%4410309092%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%4410309092%'))) AND ("product_product__product_tmpl_id"."purchase_ok" IS NOT NULL and "product_product__product_tmpl_id"."purchase_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-09-13 18:41:14 Duration: 1s811ms
9 482ms 2s410ms 555ms 2,155 19m56s 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 #9
Day Hour Count Duration Avg duration Sep 13 00 3 1s453ms 484ms 01 9 4s711ms 523ms 02 6 2s927ms 487ms 06 3 1s457ms 485ms 07 6 2s911ms 485ms 08 14 6s833ms 488ms 09 5 2s426ms 485ms 10 16 7s904ms 494ms 11 139 1m12s 520ms 12 289 2m46s 575ms 13 331 3m15s 591ms 14 238 2m17s 576ms 15 224 2m3s 550ms 16 201 1m50s 549ms 17 298 2m43s 548ms 18 162 1m28s 545ms 19 106 56s36ms 528ms 20 93 47s12ms 505ms 21 9 4s376ms 486ms 23 3 1s457ms 485ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-9ded8a0/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 14:31:10 Duration: 2s410ms
-
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/%-7eb3f27/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:33:20 Duration: 2s316ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-c69205e/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-09-13 13:47:35 Duration: 2s7ms
10 375ms 2s819ms 408ms 5,948 40m32s select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Sep 13 02 30 11s489ms 382ms 08 9 3s553ms 394ms 09 1 385ms 385ms 10 4 1s527ms 381ms 11 308 2m2s 396ms 12 865 6m1s 417ms 13 937 6m32s 419ms 14 547 3m47s 416ms 15 419 2m51s 410ms 16 698 4m45s 408ms 17 673 4m33s 406ms 18 537 3m37s 405ms 19 420 2m47s 399ms 20 304 1m58s 391ms 21 196 1m15s 386ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 14:10:14 Duration: 2s819ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 12:59:46 Duration: 2s34ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-09-13 13:59:29 Duration: 1s594ms
11 299ms 3s47ms 360ms 5,947 35m41s select pwi.id as pwi_id, pwi.loc_check_qty as src_loc_check_qty, pwi.rep_loc_check_qty as ex_rep_loc_check_qty, sw.id as replenish_wh_id, coalesce(rep_pwi.loc_check_qty, ?) as rep_loc_check_qty from product_warehouse_inventory pwi join stock_warehouse sw on sw.branch_id = pwi.replenish_branch_id left join product_warehouse_inventory rep_pwi on rep_pwi.warehouse_id = sw.id and rep_pwi.product_id = pwi.product_id where pwi.replenish_branch_id is not null and pwi.rep_loc_check_qty != (pwi.loc_check_qty + coalesce(rep_pwi.loc_check_qty, ?));Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Sep 13 02 30 9s493ms 316ms 08 9 2s827ms 314ms 09 1 316ms 316ms 10 4 1s243ms 310ms 11 308 1m44s 338ms 12 865 5m26s 377ms 13 936 5m46s 370ms 14 547 3m25s 376ms 15 419 2m30s 358ms 16 698 4m14s 364ms 17 672 3m58s 355ms 18 538 3m12s 357ms 19 420 2m25s 346ms 20 304 1m39s 327ms 21 196 1m3s 325ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 14:31:10 Duration: 3s47ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 18:01:06 Duration: 2s605ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-09-13 12:14:55 Duration: 2s127ms
12 200ms 2s393ms 280ms 1,519 7m5s select min("account_move".id) as id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" AS "debit_origin_id" from "account_move" left join "account_move" AS "account_move__debit_origin_id" on ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") where ("account_move"."debit_origin_id" in (...)) and ("account_move"."company_id" is null or ("account_move"."company_id" in (...))) group by "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" order by "account_move__debit_origin_id"."invoice_date_due";Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Sep 13 08 14 3s53ms 218ms 11 61 14s887ms 244ms 12 143 45s442ms 317ms 13 196 57s921ms 295ms 14 259 1m12s 281ms 15 156 43s957ms 281ms 16 233 1m3s 272ms 17 203 53s414ms 263ms 18 142 42s833ms 301ms 19 78 19s939ms 255ms 20 32 7s538ms 235ms 21 2 489ms 244ms -
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1656307)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 13:59:30 Duration: 2s393ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1289369)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 18:26:59 Duration: 2s381ms
-
SELECT min("account_move".id) AS id, count("account_move".id) AS "debit_origin_id_count", "account_move"."debit_origin_id" as "debit_origin_id" FROM "account_move" LEFT JOIN "account_move" AS "account_move__debit_origin_id" ON ("account_move"."debit_origin_id" = "account_move__debit_origin_id"."id") WHERE ("account_move"."debit_origin_id" in (1655727)) AND ("account_move"."company_id" IS NULL OR ("account_move"."company_id" in (1))) GROUP BY "account_move"."debit_origin_id", "account_move__debit_origin_id"."invoice_date_due" ORDER BY "account_move__debit_origin_id"."invoice_date_due";
Date: 2024-09-13 12:28:18 Duration: 2s271ms
13 121ms 3s531ms 208ms 110,223 6h23m1s 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 #13
Day Hour Count Duration Avg duration Sep 13 00 2,780 6m26s 139ms 01 2,859 6m35s 138ms 02 2,751 6m36s 144ms 03 2,531 6m15s 148ms 04 2,699 6m25s 142ms 05 2,713 6m20s 140ms 06 2,680 6m13s 139ms 07 2,754 6m35s 143ms 08 2,946 6m53s 140ms 09 2,824 6m56s 147ms 10 3,248 7m45s 143ms 11 5,214 15m33s 179ms 12 8,281 37m7s 268ms 13 8,091 40m4s 297ms 14 7,913 36m37s 277ms 15 7,824 28m33s 219ms 16 7,592 30m14s 238ms 17 7,594 32m28s 256ms 18 8,164 35m39s 262ms 19 7,066 24m35s 208ms 20 4,227 11m27s 162ms 21 2,563 6m4s 142ms 22 2,417 5m44s 142ms 23 2,492 5m45s 138ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1046"', '["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-09-13 13:42:27 Duration: 3s531ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1035"', '["pointspring_master","calendar.alarm",19573]', '["pointspring_master","mail.channel",66]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",476]', '["pointspring_master","mail.channel",570]', '["pointspring_master","mail.channel",637]', '["pointspring_master","mail.channel",640]', '["pointspring_master","mail.channel",652]', '["pointspring_master","res.partner",19573]', '["pointspring_master","ir.needaction",19573]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s530ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-09-13 13:41:34') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_1137"', '["pointspring_master","calendar.alarm",50224]', '["pointspring_master","res.partner",50224]', '["pointspring_master","ir.needaction",50224]'))) ORDER BY "bus_bus"."id";
Date: 2024-09-13 13:42:27 Duration: 3s501ms
14 171ms 1s69ms 202ms 2,299 7m46s 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 #14
Day Hour Count Duration Avg duration Sep 13 12 89 19s758ms 222ms 13 5 1s662ms 332ms 14 137 28s808ms 210ms 15 317 1m9s 218ms 16 756 2m36s 207ms 17 114 24s945ms 218ms 18 48 9s711ms 202ms 19 226 43s513ms 192ms 20 242 45s752ms 189ms 21 365 1m6s 182ms -
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 = 51038 and fd.product_id = 203735;
Date: 2024-09-13 15:46:35 Duration: 1s69ms
-
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 = 51038 and fd.product_id = 203750;
Date: 2024-09-13 15:46:33 Duration: 897ms
-
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 = 51038 and fd.product_id = 203794;
Date: 2024-09-13 15:46:33 Duration: 869ms
15 160ms 1s604ms 193ms 1,525 4m54s select res_partner.id from "res_partner" where (("res_partner"."active" = true) and (((unaccent ("res_partner"."name"::text) ilike unaccent (?)) or (unaccent ("res_partner"."ref"::text) ilike unaccent (?))) or (unaccent ("res_partner"."display_name"::text) ilike unaccent (?)))) and (((("res_partner"."partner_share" is null or "res_partner"."partner_share" = false) or ("res_partner"."company_id" in (...))) or "res_partner"."company_id" is null) and (((("res_partner"."type" != ?) or "res_partner"."type" is null) or "res_partner"."type" is null) or ("res_partner"."type" = ?))) and (unaccent (res_partner.email) ilike unaccent (?) or unaccent (res_partner.display_name) ilike unaccent (?) or unaccent (res_partner.ref) ilike unaccent (?) or unaccent (res_partner.vat) ilike unaccent (?)) unaccent (res_partner.display_name);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Sep 13 02 2 322ms 161ms 08 6 1s8ms 168ms 10 5 815ms 163ms 11 62 12s56ms 194ms 12 110 23s686ms 215ms 13 213 42s58ms 197ms 14 244 47s618ms 195ms 15 255 47s664ms 186ms 16 246 46s2ms 187ms 17 103 19s493ms 189ms 18 132 26s481ms 200ms 19 71 14s31ms 197ms 20 62 11s207ms 180ms 21 14 2s398ms 171ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%lakeland dai%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%lakeland dai%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%lakeland dai%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.display_name) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.ref) ilike unaccent ('%lakeland dai%') OR unaccent (res_partner.vat) ilike unaccent ('lakelanddai')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%lakeland dai%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 12:51:15 Duration: 1s604ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%N-05612%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%N-05612%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%N-05612%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%N-05612%') OR unaccent (res_partner.display_name) ilike unaccent ('%N-05612%') OR unaccent (res_partner.ref) ilike unaccent ('%N-05612%') OR unaccent (res_partner.vat) ilike unaccent ('N-05612')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%N-05612%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 18:04:50 Duration: 1s443ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%west pen%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%west pen%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%west pen%')))) AND (((("res_partner"."partner_share" IS NULL or "res_partner"."partner_share" = false) OR ("res_partner"."company_id" in (1))) OR "res_partner"."company_id" IS NULL) AND (((("res_partner"."type" != 'private') OR "res_partner"."type" IS NULL) OR "res_partner"."type" IS NULL) OR ("res_partner"."type" = 'private'))) AND (unaccent (res_partner.email) ilike unaccent ('%west pen%') OR unaccent (res_partner.display_name) ilike unaccent ('%west pen%') OR unaccent (res_partner.ref) ilike unaccent ('%west pen%') OR unaccent (res_partner.vat) ilike unaccent ('westpen')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%west pen%') desc, unaccent (res_partner.display_name);
Date: 2024-09-13 11:49:02 Duration: 1s97ms
16 164ms 714ms 187ms 4,058 12m40s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Sep 13 02 10 1s737ms 173ms 08 8 1s406ms 175ms 10 9 1s543ms 171ms 11 189 34s83ms 180ms 12 622 1m59s 191ms 13 822 2m36s 190ms 14 347 1m5s 187ms 15 405 1m15s 185ms 16 413 1m18s 189ms 17 541 1m40s 186ms 18 252 47s584ms 188ms 19 266 48s447ms 182ms 20 151 26s568ms 175ms 21 23 4s66ms 176ms -
UPDATE product_warehouse_inventory SET qty_available = 5.0 WHERE product_id = 238645 AND warehouse_id = 45 AND company_id = 1;
Date: 2024-09-13 12:11:16 Duration: 714ms
-
UPDATE product_warehouse_inventory SET qty_available = 4.0 WHERE product_id = 216745 AND warehouse_id = 37 AND company_id = 1;
Date: 2024-09-13 17:49:21 Duration: 629ms
-
UPDATE product_warehouse_inventory SET qty_available = 6.0 WHERE product_id = 204930 AND warehouse_id = 43 AND company_id = 1;
Date: 2024-09-13 14:13:11 Duration: 607ms
17 167ms 1s205ms 186ms 1,830 5m41s 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 #17
Day Hour Count Duration Avg duration Sep 13 02 9 1s560ms 173ms 08 5 868ms 173ms 10 1 171ms 171ms 11 102 18s277ms 179ms 12 254 49s733ms 195ms 13 292 54s762ms 187ms 14 131 25s156ms 192ms 15 103 18s950ms 183ms 16 192 35s642ms 185ms 17 184 33s446ms 181ms 18 402 1m15s 187ms 19 116 21s143ms 182ms 20 33 5s761ms 174ms 21 6 1s50ms 175ms -
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(4.0, 0) + COALESCE(0.0, 0) WHERE product_id = 180802 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-13 12:51:15 Duration: 1s205ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(32.0, 0) + COALESCE(5.0, 0) WHERE product_id = 188518 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-13 14:12:20 Duration: 575ms
-
UPDATE product_warehouse_inventory SET rep_loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) WHERE product_id = 268147 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-09-13 13:18:59 Duration: 496ms
18 159ms 1s40ms 183ms 2,320 7m6s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Sep 13 02 20 3s395ms 169ms 08 1 165ms 165ms 09 6 1s35ms 172ms 11 110 19s263ms 175ms 12 368 1m10s 190ms 13 331 1m2s 188ms 14 215 39s735ms 184ms 15 194 35s294ms 181ms 16 269 50s377ms 187ms 17 284 51s929ms 182ms 18 205 37s2ms 180ms 19 188 33s383ms 177ms 20 65 11s415ms 175ms 21 64 10s875ms 169ms -
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 189331 AND warehouse_id = 37;
Date: 2024-09-13 12:44:22 Duration: 1s40ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 221847 AND warehouse_id = 43;
Date: 2024-09-13 13:26:38 Duration: 842ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 1.0 WHERE product_id = 183954 AND warehouse_id = 35;
Date: 2024-09-13 16:09:25 Duration: 735ms
19 160ms 979ms 183ms 8,411 25m43s 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 #19
Day Hour Count Duration Avg duration Sep 13 02 49 8s403ms 171ms 08 9 1s545ms 171ms 09 16 2s723ms 170ms 10 6 1s21ms 170ms 11 442 1m18s 176ms 12 1,210 3m46s 186ms 13 1,235 3m51s 187ms 14 773 2m23s 185ms 15 617 1m53s 183ms 16 995 3m2s 183ms 17 910 2m46s 183ms 18 978 2m59s 183ms 19 569 1m42s 180ms 20 346 1m1s 176ms 21 256 44s423ms 173ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(3.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 225903 AND warehouse_id = 44 AND company_id = 1;
Date: 2024-09-13 13:28:16 Duration: 979ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(0.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 265267 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 15:12:14 Duration: 668ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(20.0, 0) + COALESCE(0.0, 0) - COALESCE(0.0, 0) WHERE product_id = 205970 AND warehouse_id = 46 AND company_id = 1;
Date: 2024-09-13 16:41:26 Duration: 639ms
20 159ms 847ms 183ms 2,393 7m18s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Sep 13 08 8 1s365ms 170ms 10 4 697ms 174ms 11 105 18s528ms 176ms 12 308 58s177ms 188ms 13 415 1m17s 187ms 14 216 40s258ms 186ms 15 245 43s809ms 178ms 16 249 45s918ms 184ms 17 255 46s849ms 183ms 18 216 39s872ms 184ms 19 158 28s617ms 181ms 20 148 25s628ms 173ms 21 66 11s126ms 168ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 178300 AND warehouse_id = 38;
Date: 2024-09-13 14:54:17 Duration: 847ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 238645 AND warehouse_id = 45;
Date: 2024-09-13 12:11:17 Duration: 798ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 239164 AND warehouse_id = 36;
Date: 2024-09-13 13:50:09 Duration: 320ms
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
- 216,497 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1493 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 995 Max number of times the same event was reported
- 1,493 Total events found
Rank Times reported Error 1 995 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Sep 13 00 33 01 31 02 36 03 36 04 30 05 30 06 30 07 102 08 102 09 28 10 30 11 42 12 40 13 46 14 36 15 35 16 36 17 34 18 38 19 36 20 32 21 34 22 30 23 68 - 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-09-13 01:50:22
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-09-13 02:00:10
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=65 FOR UPDATE NOWAIT
Date: 2024-09-13 02:10:05
2 471 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Sep 13 01 3 02 4 07 1 09 1 10 8 11 41 12 84 13 60 14 63 15 37 16 48 17 57 18 36 19 17 20 10 21 1 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-13 02:24:43',"last_presence"='2024-09-13 02:24:42.948875' WHERE id IN (115)
Date: 2024-09-13 02:24:43
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-13 02:30:24',"last_presence"='2024-09-12 20:08:02.032905' WHERE id IN (203)
Date: 2024-09-13 02:30:24
Statement: UPDATE "bus_presence" SET "last_poll"='2024-09-13 02:37:16',"last_presence"='2024-09-13 02:37:15.975798' WHERE id IN (115)
Date: 2024-09-13 02:37:16
3 16 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Sep 13 12 1 13 5 14 5 16 1 17 3 18 1 - ERROR: process 759689 still waiting for ShareLock on transaction 305708778 after 1000.057 ms
- ERROR: process 1239956 still waiting for ShareLock on transaction 305883486 after 1000.064 ms
- ERROR: process 1347165 still waiting for ShareLock on transaction 305893030 after 1000.050 ms
Detail: Process holding the lock: 646714. Wait queue: 759689.
Context: while updating tuple (35617,33) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5700098,"write_uid"=1041,"write_date"=(now() at time zone 'UTC') WHERE id IN (1655606)Date: 2024-09-13 12:06:51
Detail: Process holding the lock: 1283672. Wait queue: 1239956.
Context: while updating tuple (596,25) in relation "account_move"
Statement: UPDATE account_move SET write_date = write_date WHERE id = ( SELECT id FROM account_move WHERE journal_id = 1 AND name != '/' AND sequence_prefix !~ '^(?:.*?)(?:((?<=\D)|(?<=^))((19|20|21)?\d{2}))(?:\D+?)$' AND move_type NOT IN ('out_refund', 'in_refund') AND id != 1250093 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 != 1250093 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-09-13 17:56:53
Detail: Process holding the lock: 1252831. Wait queue: 1347165.
Context: while updating tuple (791,10) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5702253,"write_uid"=951,"write_date"=(now() at time zone 'UTC') WHERE id IN (1657404)Date: 2024-09-13 18:20:47
4 6 ERROR: null value in column "..." of relation "..." violates not-null constraint
Times Reported Most Frequent Error / Event #4
Day Hour Count Sep 13 12 1 14 2 17 1 18 1 20 1 - ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
- ERROR: null value in column "categ_id" of relation "product_template" violates not-null constraint
Detail: Failing row contains (271663, null, exp4707k-u, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 980, 2024-09-13 12:46:27.889177, 980, 2024-09-13 12:46:27.889177, 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, 493760, never, 0, , 39, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-13, 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'), 980, (now() at time zone 'UTC'), 980, (now() at time zone 'UTC'), true, false, 0.0, 39, NULL, 1, '', 'no', '2024-09-13', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'exp4707k-u', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 493760, 1, 1) RETURNING idDate: 2024-09-13 12:46:27
Detail: Failing row contains (271712, null, 12G-12MB, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 978, 2024-09-13 18:46:13.998981, 978, 2024-09-13 18:46:13.998981, 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, 493935, never, 0, , 46, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-13, 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'), 978, (now() at time zone 'UTC'), 978, (now() at time zone 'UTC'), true, false, 0.0, 46, NULL, 1, '', 'no', '2024-09-13', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', '12G-12MB', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 493935, 1, 1) RETURNING idDate: 2024-09-13 18:46:14
Detail: Failing row contains (271670, null, indm-2, 1, null, null, null, product, null, 1.00, null, null, t, t, 1, 1, null, t, null, null, null, null, 1282, 2024-09-13 14:21:04.847116, 1282, 2024-09-13 14:21:04.847116, 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, 493790, never, 0, , 38, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2024-09-13, 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'), 1282, (now() at time zone 'UTC'), 1282, (now() at time zone 'UTC'), true, false, 0.0, 38, NULL, 1, '', 'no', '2024-09-13', 'E', 'never', 'delivery', false, false, false, false, false, 'no', '1.00', 'indm-2', 0.0, 'no-message', 'receive', true, 'rfq', 0.0, 'no-message', true, 1, 'none', 'no', 'manual', 1, 'none', 'product', 1, 1, 493790, 1, 1) RETURNING idDate: 2024-09-13 14:21:04
5 2 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #5
Day Hour Count Sep 13 12 1 14 1 - ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: SELECT value FROM ir_translation WHERE lang='en_US' AND type in ('code') AND src='%s' AND md5(src)=md5('%s')
Date: 2024-09-13 12:07:08
6 2 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Sep 13 11 1 13 1 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
Detail: Key (partner_id)=(52509) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1266, (now() at time zone 'UTC'), 1266, (now() at time zone 'UTC'), 'cf6aabe2444d44589139856808a63480', true, NULL, 1, '2024-09-13 13:14:08', 'Carter Beck', 52509, 'America/New_York', 1, 1) RETURNING idDate: 2024-09-13 13:14:08
Detail: Key (partner_id)=(19564) already exists.
Statement: INSERT INTO "website_visitor" ("id", "create_uid", "create_date", "write_uid", "write_date", "access_token", "active", "country_id", "lang_id", "last_connection_datetime", "name", "partner_id", "timezone", "visit_count", "website_id") VALUES (nextval('website_visitor_id_seq'), 1026, (now() at time zone 'UTC'), 1026, (now() at time zone 'UTC'), 'cc52f27200de463eb7c43bf4c3fafacf', true, NULL, 1, '2024-09-13 11:49:59', 'Scott Jenkin', 19564, 'America/New_York', 1, 1) RETURNING idDate: 2024-09-13 11:49:59
7 1 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #7
Day Hour Count Sep 13 14 1 - ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM stock_inventory_line WHERE id IN (3082091, 3082092, 3082093, 3082144, 3082150, 3082166, 3082167, 3082094, 3082095, 3082157, 3082096, 3082097, 3082098, 3082178, 3082134, 3082180, 3082154, 3082168, 3082127, 3082145, 3082162, 3082161, 3082179, 3082099, 3082174, 3082100, 3082101, 3082102, 3082138, 3082163, 3082164, 3082153, 3082103, 3082104, 3082165, 3082131, 3082105, 3082106, 3082107, 3082126, 3082139, 3082128, 3082160, 3082140, 3082108, 3082149, 3082109, 3082110, 3082111, 3082175, 3082112, 3082151, 3082113, 3082171, 3082141, 3082172, 3082176, 3082177, 3082143, 3082152, 3082114, 3082135, 3082147, 3082129, 3082155, 3082156, 3082148, 3082115, 3082142, 3082181, 3082116, 3082117, 3082118, 3082119, 3082120, 3082158, 3082121, 3082122, 3082137, 3082173, 3082123, 3082169, 3082133, 3082124, 3082132, 3082170, 3082136, 3082146, 3082125, 3082130, 3082159)
Date: 2024-09-13 14:10:04