-
Global information
- Generated on Mon Oct 14 20:50:10 2024
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 731,884 log entries in 9s
- Log start from 2024-10-14 00:00:00 to 2024-10-14 23:59:59
-
Overview
Global Stats
- 1,138 Number of unique normalized queries
- 250,594 Number of queries
- 18h26m30s Total query duration
- 2024-10-14 00:00:00 First query
- 2024-10-14 23:59:59 Last query
- 55 queries/s at 2024-10-14 14:23:10 Query peak
- 18h26m30s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 18h26m30s Execute total duration
- 1,761 Number of events
- 12 Number of unique normalized events
- 1,306 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
- 250,594 Average queries per session
- 18h26m30s Average queries duration per session
- n/a Average idle time per session
- 0 Total number of connections
- 1 Total number of databases
SQL Traffic
Key values
- 55 queries/s Query Peak
- 2024-10-14 14:23:10 Date
SELECT Traffic
Key values
- 55 queries/s Query Peak
- 2024-10-14 14:23:10 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 12 queries/s Query Peak
- 2024-10-14 19:39:08 Date
Queries duration
Key values
- 18h26m30s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
Day Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 14 00 2,508 120ms 605ms 150ms 7s952ms 8s859ms 9s670ms 01 2,682 120ms 1s175ms 153ms 8s632ms 9s458ms 14s706ms 02 4,100 120ms 725ms 178ms 29s452ms 37s558ms 40s172ms 03 4,280 120ms 6s509ms 187ms 43s69ms 53s475ms 57s717ms 04 2,556 121ms 2s308ms 151ms 8s13ms 8s645ms 12s137ms 05 2,500 120ms 572ms 157ms 8s882ms 9s128ms 11s431ms 06 2,671 120ms 531ms 164ms 9s162ms 9s857ms 12s325ms 07 2,809 120ms 1s653ms 171ms 10s495ms 12s996ms 14s593ms 08 2,803 130ms 3s194ms 165ms 11s128ms 12s418ms 17s178ms 09 3,076 120ms 4m6s 436ms 1m9s 2m10s 4m17s 10 3,474 120ms 6s24ms 180ms 17s62ms 24s555ms 37s78ms 11 8,899 120ms 38s912ms 236ms 1m2s 1m18s 2m25s 12 23,800 120ms 2m58s 319ms 3m40s 4m27s 5m58s 13 28,161 120ms 47s540ms 283ms 3m 3m26s 4m45s 14 27,266 120ms 20s735ms 278ms 2m54s 3m23s 4m35s 15 23,681 120ms 14s469ms 269ms 2m45s 3m14s 4m6s 16 17,250 120ms 7s942ms 266ms 2m 2m30s 3m6s 17 21,023 120ms 14s900ms 286ms 2m31s 2m57s 3m35s 18 22,438 120ms 29s630ms 272ms 2m46s 3m6s 4m33s 19 19,233 120ms 30s297ms 278ms 2m16s 2m28s 4m5s 20 11,008 120ms 13s276ms 250ms 1m28s 2m8s 2m25s 21 5,812 120ms 6s155ms 207ms 39s545ms 48s113ms 1m4s 22 4,196 120ms 1s458ms 162ms 15s667ms 22s202ms 27s52ms 23 4,368 120ms 54s361ms 348ms 1m4s 1m13s 1m26s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 14 00 2,508 0 150ms 7s169ms 7s952ms 9s118ms 01 2,682 0 153ms 7s976ms 8s632ms 9s470ms 02 3,362 0 178ms 13s150ms 20s53ms 24s56ms 03 3,315 0 187ms 13s815ms 22s565ms 36s383ms 04 2,552 0 150ms 7s7ms 7s870ms 9s619ms 05 2,499 0 157ms 8s300ms 8s882ms 10s161ms 06 2,671 0 164ms 8s382ms 9s162ms 10s281ms 07 2,809 0 171ms 9s712ms 10s495ms 13s809ms 08 2,783 0 163ms 8s574ms 10s297ms 12s278ms 09 2,958 118 436ms 13s407ms 1m2s 2m32s 10 3,311 0 181ms 12s853ms 17s62ms 25s856ms 11 7,823 0 238ms 40s929ms 54s207ms 1m54s 12 18,789 0 343ms 2m13s 3m14s 5m24s 13 21,039 0 303ms 2m13s 2m41s 3m38s 14 20,332 0 300ms 2m12s 2m23s 2m54s 15 19,582 0 282ms 1m59s 2m23s 3m21s 16 14,850 0 277ms 1m38s 1m50s 2m19s 17 16,525 0 301ms 1m46s 2m4s 2m42s 18 17,728 0 287ms 1m58s 2m26s 2m51s 19 15,095 0 298ms 1m38s 1m54s 2m19s 20 9,065 0 256ms 54s46ms 1m10s 1m46s 21 5,122 0 211ms 24s676ms 30s358ms 43s502ms 22 4,194 0 162ms 12s108ms 15s667ms 22s944ms 23 4,194 0 183ms 17s40ms 21s979ms 26s569ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Oct 14 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 0 0 0 0ms 0ms 0ms 0ms 02 0 731 7 0 178ms 0ms 4s953ms 17s505ms 03 0 963 2 0 186ms 0ms 6s610ms 22s587ms 04 0 4 0 0 388ms 0ms 0ms 0ms 05 0 0 1 0 495ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 16 0 0 222ms 0ms 0ms 342ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 161 1 0 176ms 0ms 173ms 5s79ms 11 1 1,067 8 0 216ms 3s564ms 6s957ms 15s192ms 12 0 4,945 59 0 231ms 18s872ms 25s272ms 37s130ms 13 0 7,054 59 0 222ms 25s657ms 34s797ms 55s814ms 14 0 6,880 50 0 214ms 25s801ms 30s481ms 39s290ms 15 0 4,059 30 0 208ms 15s170ms 24s95ms 29s376ms 16 0 2,379 18 0 201ms 7s128ms 12s363ms 23s895ms 17 0 4,406 88 0 233ms 16s392ms 24s977ms 29s303ms 18 0 4,632 71 0 213ms 16s717ms 24s698ms 35s801ms 19 0 4,100 32 0 205ms 12s814ms 21s757ms 30s407ms 20 0 1,910 31 0 219ms 6s865ms 11s405ms 20s244ms 21 0 687 1 0 176ms 0ms 2s268ms 12s829ms 22 0 2 0 0 178ms 0ms 0ms 0ms 23 0 60 114 0 4s325ms 3s449ms 33s315ms 55s44ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Oct 14 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Oct 14 00 0 0.00/s 01 0 0.00/s 02 0 0.00/s 03 0 0.00/s 04 0 0.00/s 05 0 0.00/s 06 0 0.00/s 07 0 0.00/s 08 0 0.00/s 09 0 0.00/s 10 0 0.00/s 11 0 0.00/s 12 0 0.00/s 13 0 0.00/s 14 0 0.00/s 15 0 0.00/s 16 0 0.00/s 17 0 0.00/s 18 0 0.00/s 19 0 0.00/s 20 0 0.00/s 21 0 0.00/s 22 0 0.00/s 23 0 0.00/s Day Hour Count Average Duration Average idle time Oct 14 00 0 0ms 0ms 01 0 0ms 0ms 02 0 0ms 0ms 03 0 0ms 0ms 04 0 0ms 0ms 05 0 0ms 0ms 06 0 0ms 0ms 07 0 0ms 0ms 08 0 0ms 0ms 09 0 0ms 0ms 10 0 0ms 0ms 11 0 0ms 0ms 12 0 0ms 0ms 13 0 0ms 0ms 14 0 0ms 0ms 15 0 0ms 0ms 16 0 0ms 0ms 17 0 0ms 0ms 18 0 0ms 0ms 19 0 0ms 0ms 20 0 0ms 0ms 21 0 0ms 0ms 22 0 0ms 0ms 23 0 0ms 0ms -
Connections
Established Connections
Key values
- 0 connections Connection Peak
- Date
Connections per database
Key values
- unknown Main Database
- 0 connections Total
Connections per user
Key values
- unknown Main User
- 0 connections Total
-
Sessions
Simultaneous sessions
Key values
- 0 sessions Session Peak
- Date
Histogram of session times
Key values
- duration
Sessions per database
Key values
- unknown Main Database
- 0 sessions Total
Sessions per user
Key values
- unknown Main User
- 0 sessions Total
Sessions per host
Key values
- unknown Main Host
- 0 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 0 buffers Checkpoint Peak
- Date
- seconds Highest write time
- seconds Sync time
Checkpoint write buffers (5 minutes period)
NO DATASET
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- Date
Checkpoint Wal files usage (5 minutes period)
NO DATASET
Checkpoints distance
Key values
- 0 Mo Distance Peak
- Date
Checkpoints Activity
Day Hour Written buffers Write time Sync time Total time Oct 14 00 0 0s 0s 0s 01 0 0s 0s 0s 02 0 0s 0s 0s 03 0 0s 0s 0s 04 0 0s 0s 0s 05 0 0s 0s 0s 06 0 0s 0s 0s 07 0 0s 0s 0s 08 0 0s 0s 0s 09 0 0s 0s 0s 10 0 0s 0s 0s 11 0 0s 0s 0s 12 0 0s 0s 0s 13 0 0s 0s 0s 14 0 0s 0s 0s 15 0 0s 0s 0s 16 0 0s 0s 0s 17 0 0s 0s 0s 18 0 0s 0s 0s 19 0 0s 0s 0s 20 0 0s 0s 0s 21 0 0s 0s 0s 22 0 0s 0s 0s 23 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Oct 14 00 0 0 0 0 0s 0s 01 0 0 0 0 0s 0s 02 0 0 0 0 0s 0s 03 0 0 0 0 0s 0s 04 0 0 0 0 0s 0s 05 0 0 0 0 0s 0s 06 0 0 0 0 0s 0s 07 0 0 0 0 0s 0s 08 0 0 0 0 0s 0s 09 0 0 0 0 0s 0s 10 0 0 0 0 0s 0s 11 0 0 0 0 0s 0s 12 0 0 0 0 0s 0s 13 0 0 0 0 0s 0s 14 0 0 0 0 0s 0s 15 0 0 0 0 0s 0s 16 0 0 0 0 0s 0s 17 0 0 0 0 0s 0s 18 0 0 0 0 0s 0s 19 0 0 0 0 0s 0s 20 0 0 0 0 0s 0s 21 0 0 0 0 0s 0s 22 0 0 0 0 0s 0s 23 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Oct 14 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Oct 14 00 0.00 kB 0.00 kB 01 0.00 kB 0.00 kB 02 0.00 kB 0.00 kB 03 0.00 kB 0.00 kB 04 0.00 kB 0.00 kB 05 0.00 kB 0.00 kB 06 0.00 kB 0.00 kB 07 0.00 kB 0.00 kB 08 0.00 kB 0.00 kB 09 0.00 kB 0.00 kB 10 0.00 kB 0.00 kB 11 0.00 kB 0.00 kB 12 0.00 kB 0.00 kB 13 0.00 kB 0.00 kB 14 0.00 kB 0.00 kB 15 0.00 kB 0.00 kB 16 0.00 kB 0.00 kB 17 0.00 kB 0.00 kB 18 0.00 kB 0.00 kB 19 0.00 kB 0.00 kB 20 0.00 kB 0.00 kB 21 0.00 kB 0.00 kB 22 0.00 kB 0.00 kB 23 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
Day Hour Count Total size Average size Oct 14 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Autovacuum actions (5 minutes period)
NO DATASET
Average Autovacuum Duration
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
Average Autovacuum Duration (5 minutes average)
NO DATASET
Analyzes per table
Key values
- unknown (0) Main table analyzed (database )
- 0 analyzes Total
Vacuums per table
Key values
- unknown (0) Main table vacuumed on database
- 0 vacuums Total
Tuples removed per table
Key values
- unknown (0) Main table with removed tuples on database
- 0 tuples Total removed
Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Autovacuum Activity
Day Hour VACUUMs ANALYZEs Oct 14 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
- 26 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 13 53s667ms 3s971ms 10s210ms 4s128ms 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 != 1527509 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 != 1527509 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;
Date: 2024-10-14 18:09:23
2 1 7s225ms 7s225ms 7s225ms 7s225ms update "sale_order" set "amount_tax" = ?, "amount_total" = ?, "carrier_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order" SET "amount_tax" = '4.83', "amount_total" = '89.22', "carrier_id" = 1, "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (171267);
Date: 2024-10-14 11:38:30
3 5 6s531ms 1s552ms 1s552ms 1s306ms 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" = 5765588, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (1710689);
Date: 2024-10-14 18:33:25
4 1 5s607ms 5s607ms 5s607ms 5s607ms insert into account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) values (?, ?) on conflict do nothing;-
INSERT INTO account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) VALUES (497689, 2121) ON CONFLICT DO NOTHING;
Date: 2024-10-14 11:38:21
-
INSERT INTO account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) VALUES (497689, 2121) ON CONFLICT DO NOTHING;
Date: 2024-10-14 11:38:21
5 1 4s902ms 4s902ms 4s902ms 4s902ms delete from mail_message where id in (...);-
DELETE FROM mail_message WHERE id IN (18910516, 18910515);
Date: 2024-10-14 16:20:30
6 1 4s738ms 4s738ms 4s738ms 4s738ms update "sale_order_line" set "price_tax" = ?.?, "price_total" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order_line" SET "price_tax" = 0.0, "price_total" = '64.88', "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (497689);
Date: 2024-10-14 11:38:13
-
UPDATE "sale_order_line" SET "price_tax" = 0.0, "price_total" = '64.88', "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (497689);
Date: 2024-10-14 11:38:13
7 1 2s794ms 2s794ms 2s794ms 2s794ms delete from stock_inventory_line where id in (...);-
DELETE FROM stock_inventory_line WHERE id IN (3087786, 3087749, 3087772, 3087750, 3087751, 3087782, 3087780, 3087781, 3087752, 3087753, 3087754, 3087755, 3087756, 3087792, 3087779, 3087787, 3087790, 3087783, 3087757, 3087758, 3087759, 3087760, 3087761, 3087775, 3087773, 3087785, 3087762, 3087763, 3087778, 3087784, 3087764, 3087765, 3087774, 3087789, 3087788, 3087791, 3087766, 3087767, 3087777, 3087768, 3087769, 3087770, 3087793, 3087771, 3087776);
Date: 2024-10-14 14:31:35
-
DELETE FROM stock_inventory_line WHERE id IN (3087721, 3087722, 3087730, 3087723, 3087736, 3087747, 3087731, 3087729, 3087739, 3087740, 3087741, 3087738, 3087742, 3087743, 3087744, 3087732, 3087733, 3087728, 3087735, 3087724, 3087725, 3087737, 3087726, 3087727, 3087734, 3087748, 3087745, 3087746);
Date: 2024-10-14 14:13:47
-
DELETE FROM stock_inventory_line WHERE id IN (3087714, 3087715, 3087704, 3087710, 3087703, 3087716, 3087700, 3087701, 3087707, 3087711, 3087709, 3087708, 3087706, 3087717, 3087702, 3087705, 3087713, 3087712);
Date: 2024-10-14 14:31:42
8 1 2s267ms 2s267ms 2s267ms 2s267ms update account_bank_statement_line set is_processed = false where statement_id = ?;-
UPDATE account_bank_statement_line SET is_processed = False where statement_id = 210;
Date: 2024-10-14 19:07:15
9 1 2s57ms 2s57ms 2s57ms 2s57ms update "account_bank_statement_line" set "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "account_bank_statement_line" SET "write_uid" = 1254, "write_date" = (now() at time zone 'UTC') WHERE id IN (30427);
Date: 2024-10-14 17:07:08
10 1 1s77ms 1s77ms 1s77ms 1s77ms update "sale_order" set "carrier_id" = ?, "write_uid" = ?, "write_date" = (now() at time zone ?) where id in (...);-
UPDATE "sale_order" SET "carrier_id" = NULL, "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (171267);
Date: 2024-10-14 11:38:05
Queries that waited the most
Rank Wait time Query 1 10s210ms 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 != 1708616 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 != 1708616 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 12:47:08 ]
2 7s225ms UPDATE "sale_order" SET "amount_tax" = '4.83', "amount_total" = '89.22', "carrier_id" = 1, "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (171267);[ Date: 2024-10-14 11:38:30 ]
3 6s564ms 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 != 1708617 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 != 1708617 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 12:47:08 ]
4 5s918ms 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 != 1710966 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 != 1710966 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 19:44:35 ]
5 5s861ms 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 != 370544 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 != 370544 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 13:54:05 ]
6 5s607ms INSERT INTO account_tax_sale_order_line_rel (sale_order_line_id, account_tax_id) VALUES (497689, 2121) ON CONFLICT DO NOTHING;[ Date: 2024-10-14 11:38:21 ]
7 5s497ms 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 != 1708478 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 != 1708478 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 12:32:48 ]
8 4s902ms DELETE FROM mail_message WHERE id IN (18910516, 18910515);[ Date: 2024-10-14 16:20:30 ]
9 4s738ms UPDATE "sale_order_line" SET "price_tax" = 0.0, "price_total" = '64.88', "write_uid" = 1151, "write_date" = (now() at time zone 'UTC') WHERE id IN (497689);[ Date: 2024-10-14 11:38:13 ]
10 3s971ms 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 != 1527509 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 != 1527509 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 18:09:23 ]
11 3s94ms 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 != 1708528 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 != 1708528 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 12:40:05 ]
12 2s831ms 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 != 1709356 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 != 1709356 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 14:17:41 ]
13 2s794ms DELETE FROM stock_inventory_line WHERE id IN (3087714, 3087715, 3087704, 3087710, 3087703, 3087716, 3087700, 3087701, 3087707, 3087711, 3087709, 3087708, 3087706, 3087717, 3087702, 3087705, 3087713, 3087712);[ Date: 2024-10-14 14:31:42 ]
14 2s267ms UPDATE account_bank_statement_line SET is_processed = False where statement_id = 210;[ Date: 2024-10-14 19:07:15 ]
15 2s188ms 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 != 1709552 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 != 1709552 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 14:37:55 ]
16 2s133ms 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 != 1711050 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 != 1711050 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 20:05:47 ]
17 2s90ms 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 != 1709550 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 != 1709550 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 14:37:49 ]
18 2s57ms UPDATE "account_bank_statement_line" SET "write_uid" = 1254, "write_date" = (now() at time zone 'UTC') WHERE id IN (30427);[ Date: 2024-10-14 17:07:08 ]
19 1s936ms 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 != 1709553 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 != 1709553 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1) RETURNING name;[ Date: 2024-10-14 14:47:22 ]
20 1s552ms UPDATE "account_move" SET "message_main_attachment_id" = 5765588, "write_uid" = 964, "write_date" = (now() at time zone 'UTC') WHERE id IN (1710689);[ Date: 2024-10-14 18:33:25 ]
-
Queries
Queries by type
Key values
- 205,788 Total read queries
- 44,805 Total write queries
Queries by database
Key values
- unknown Main database
- 250,594 Requests
- 18h26m30s (unknown)
- Main time consuming database
Queries by user
Key values
- unknown Main user
- 250,955 Requests
User Request type Count Duration unknown Total 250,955 18h27m29s copy to 118 14m2s cte 56 24s662ms delete 572 33m14s insert 1 5s608ms others 1 248ms select 206,149 15h20m33s tcl 2 254ms update 44,056 2h19m8s Duration by user
Key values
- 18h27m29s (unknown) Main time consuming user
User Request type Count Duration unknown Total 250,955 18h27m29s copy to 118 14m2s cte 56 24s662ms delete 572 33m14s insert 1 5s608ms others 1 248ms select 206,149 15h20m33s tcl 2 254ms update 44,056 2h19m8s Queries by host
Key values
- unknown Main host
- 250,955 Requests
- 18h27m29s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 250,594 Requests
- 18h26m30s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2024-10-14 07:02:47 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 230,177 100-500ms duration
Slowest individual queries
Rank Duration Query 1 4m6s COPY public.mail_tracking_value (id, field, field_desc, field_type, old_value_integer, old_value_float, old_value_monetary, old_value_char, old_value_text, old_value_datetime, new_value_integer, new_value_float, new_value_monetary, new_value_char, new_value_text, new_value_datetime, mail_message_id, tracking_sequence, create_uid, create_date, write_uid, write_date) TO stdout;[ Date: 2024-10-14 09:10:54 ]
2 2m58s SELECT "item_list_line".id FROM "item_list_line" WHERE ("item_list_line"."product_id" in (270808)) ORDER BY "item_list_line"."id";[ Date: 2024-10-14 12:52:56 ]
3 2m15s COPY public.item_list_line (id, item_demand_plan_id, product_id, selling_branch, product_uom_qty, invoice_date, warehouse_id, method, inventory_vendor_id, create_uid, create_date, write_uid, write_date, active, min_product_len_1, min_product_len_2, min_baseline_size, seasonal_period, supercede_product_id, superceded, campaign_id, source_id, medium_id, message_main_attachment_id, access_token, ref_id, ref) TO stdout;[ Date: 2024-10-14 09:04:27 ]
4 2m2s COPY public.mail_message (id, subject, date, body, parent_id, model, res_id, record_name, message_type, subtype_id, mail_activity_type_id, is_internal, email_from, author_id, no_auto_thread, message_id, reply_to, mail_server_id, moderation_status, moderator_id, email_layout_xmlid, add_sign, create_uid, create_date, write_uid, write_date, email_cc, email_bcc, email_to, ks_email_cc_string, ks_email_bcc_string, ks_cc_partners, ks_bcc_partners) TO stdout;[ Date: 2024-10-14 09:06:46 ]
5 54s361ms DELETE FROM account_move_line WHERE id IN (5998881, 5998882, 5998883, 5998884, 5998885, 5998886, 5998887, 5998888, 5998889, 5998890, 5998891, 5998892, 5998893, 5998894, 5998895, 5998896, 5998897, 5998898, 5998899, 5998900, 5998901, 5998902, 5998903, 6000353, 6000354);[ Date: 2024-10-14 23:47:21 ]
6 47s540ms DELETE FROM account_move_line WHERE id IN (5983441, 5983442, 5983443, 5996106, 5996107, 5997002, 5997003, 5997004, 5997005, 5997006, 5997007, 5997008, 5997009, 5997010, 5997011, 5997012, 5997013, 5997014, 5997015, 5997016, 5997017);[ Date: 2024-10-14 13:04:39 ]
7 47s478ms DELETE FROM account_move_line WHERE id IN (6011129, 6011130, 6011131, 6011132, 6011133, 6011134, 6011135, 6011136, 6011137, 6011138, 6011139, 6011140, 6011141, 6011142, 6011143, 6011144, 6011145, 6011146, 6011147, 6011148, 6011149, 6011150);[ Date: 2024-10-14 23:45:09 ]
8 45s368ms DELETE FROM account_move_line WHERE id IN (6000053, 6000054, 6000055, 6000056, 6000057, 6000058, 6000059, 6000060, 6000061, 6000062, 6000063, 6000064, 6000065, 6000066, 6000067, 6000068, 6000069, 6000070, 6000071, 6000072, 6000073);[ Date: 2024-10-14 23:40:27 ]
9 45s259ms DELETE FROM account_move_line WHERE id IN (6011192, 6011193, 6011194, 6011195, 6011196, 6011197, 6011198, 6011199, 6011200, 6011201, 6011202, 6011203, 6011204, 6011205, 6011206, 6011207, 6011208, 6011209, 6011210, 6011211, 6011212);[ Date: 2024-10-14 23:46:02 ]
10 40s338ms COPY public.account_move_line (id, move_id, move_name, date, ref, parent_state, journal_id, company_id, company_currency_id, account_id, account_root_id, sequence, name, quantity, price_unit, discount, debit, credit, balance, amount_currency, price_subtotal, price_total, reconciled, blocked, date_maturity, currency_id, partner_id, product_uom_id, product_id, reconcile_model_id, payment_id, statement_line_id, statement_id, tax_line_id, tax_group_id, tax_base_amount, tax_exigible, tax_repartition_line_id, tax_audit, amount_residual, amount_residual_currency, full_reconcile_id, matching_number, analytic_account_id, display_type, is_rounding_line, exclude_from_invoice_tab, create_uid, create_date, write_uid, write_date, expected_pay_date, internal_note, next_action_date, followup_line_id, followup_date, is_anglo_saxon_line, purchase_line_id, branch_id, branch_name, vehicle_id, move_options, sign_product_qty, sign_price_subtotal, new_product_qty, sale_line_id, child_sale_line_id, main_invoice_line_id, core_bank_transaction, is_rtv_line, core_qty, rebate_amount, cost_price, is_visible_in_report, is_labour, can_be_paid, bal_core_bank_id, repair_line_id, inv_back_order_qty, sale_back_order_qty, product_pricelist_item_id, is_discount, is_sale_tax, auto_reconcile, is_writeoff, is_extra_line, is_carry_forward, reconcile_date_from_add) TO stdout;[ Date: 2024-10-14 09:01:04 ]
11 38s912ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-10-01') AND ("sale_history_line"."invoice_date" <= '2024-10-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)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-10-14 11:44:51 ]
12 37s218ms SELECT min("sale_history_line".id) AS id, count("sale_history_line".id) AS "user_id_count", sum("sale_history_line"."product_uom_qty") AS "product_uom_qty", sum("sale_history_line"."cost_price_unit") AS "cost_price_unit", sum("sale_history_line"."cost_subtotal") AS "cost_subtotal", sum("sale_history_line"."price_unit") AS "price_unit", sum("sale_history_line"."price_subtotal") AS "price_subtotal", sum("sale_history_line"."gross_profit") AS "gross_profit", "sale_history_line"."user_id" as "user_id" FROM "sale_history_line" LEFT JOIN "res_users" AS "sale_history_line__user_id" ON ("sale_history_line"."user_id" = "sale_history_line__user_id"."id") LEFT JOIN "res_partner" AS "sale_history_line__user_id__partner_id" ON ("sale_history_line__user_id"."partner_id" = "sale_history_line__user_id__partner_id"."id") WHERE (((("sale_history_line"."invoice_date" >= '2024-10-01') AND ("sale_history_line"."invoice_date" <= '2024-10-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)) GROUP BY "sale_history_line"."user_id", "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" ORDER BY "sale_history_line__user_id__partner_id"."name", "sale_history_line__user_id"."login" LIMIT 80;[ Date: 2024-10-14 11:44:12 ]
13 37s130ms DELETE FROM account_move_line WHERE id IN (6000474, 6000475, 6000476, 6000477, 6000478, 6000479, 6000480, 6000481, 6000482, 6000483, 6000484, 6000485, 6000486, 6000487, 6000488);[ Date: 2024-10-14 12:47:01 ]
14 35s109ms DELETE FROM account_move_line WHERE id IN (6000844, 6000845, 6000846, 6007857, 6007858, 6007859, 6007860, 6007861, 6007862, 6007863, 6007864, 6007865, 6007866, 6000862, 6000863, 6000864);[ Date: 2024-10-14 23:27:36 ]
15 31s279ms DELETE FROM account_move_line WHERE id IN (6007654, 6007655, 6007656, 6007657, 6007658, 6007659, 6007660, 6007661, 6007662, 6010311, 6010312, 6010313, 6010314, 6010315);[ Date: 2024-10-14 23:49:11 ]
16 30s297ms 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-10-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-10-14 19:07:26 ]
17 30s255ms DELETE FROM account_move_line WHERE id IN (5998571, 5998572, 5998573, 5998574, 5998575, 5998576, 5998577, 5998578, 5998579, 5998580, 5998581, 5998582, 5998583);[ Date: 2024-10-14 12:15:06 ]
18 29s630ms 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-08-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-10-14 18:50:47 ]
19 28s870ms 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-08-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-10-14 18:50:49 ]
20 28s183ms 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-10-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-10-14 18:47:04 ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 6h46m9s 118,101 127ms 2s293ms 206ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 14 20 2,182 5m17s 145ms 21 2,291 5m32s 145ms 22 2,326 5m53s 152ms 23 2,149 5m30s 153ms 00 2,226 5m19s 143ms 01 2,118 5m15s 149ms 02 2,120 5m13s 147ms 03 2,158 5m20s 148ms 04 2,341 5m50s 149ms 05 2,530 6m24s 152ms 06 2,723 6m57s 153ms 07 4,913 13m14s 161ms 08 8,236 35m34s 259ms 09 9,266 35m30s 229ms 10 9,340 39m10s 251ms 11 9,297 34m25s 222ms 12 9,000 37m36s 250ms 13 8,977 33m59s 227ms 14 9,072 32m36s 215ms 15 8,251 33m31s 243ms 16 5,506 18m10s 197ms 17 3,933 10m37s 161ms 18 3,827 9m47s 153ms 19 3,319 9m18s 168ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","mail.channel",639]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s293ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 14:22:17') 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-10-14 14:23:10 Duration: 2s262ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_964"', '["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s261ms
2 51m27s 7,351 378ms 1s890ms 420ms select id, product_id, warehouse_id, loc_check_qty, coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (coalesce(qty_available, ?) + coalesce(qty_on_order, ?) - coalesce(qty_reserve, ?)) and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 14 22 171 1m6s 391ms 23 213 1m24s 394ms 04 2 831ms 415ms 06 40 15s754ms 393ms 07 207 1m23s 401ms 08 871 6m14s 430ms 09 780 5m42s 439ms 10 977 6m59s 429ms 11 666 4m47s 431ms 12 535 3m40s 411ms 13 763 5m19s 418ms 14 772 5m21s 417ms 15 824 5m36s 408ms 16 382 2m35s 407ms 17 133 52s817ms 397ms 19 15 5s869ms 391ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 12:56:26 Duration: 1s890ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 19:07:09 Duration: 1s838ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 15:22:53 Duration: 1s711ms
3 48m25s 3,317 698ms 2s473ms 875ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 14 05 10 7s371ms 737ms 06 39 28s948ms 742ms 07 164 2m6s 773ms 08 444 6m41s 903ms 09 478 7m30s 942ms 10 436 6m31s 896ms 11 431 6m38s 924ms 12 195 2m37s 808ms 13 318 4m30s 850ms 14 298 4m21s 876ms 15 248 3m29s 844ms 16 196 2m37s 802ms 17 18 13s528ms 751ms 18 8 6s232ms 779ms 19 34 25s652ms 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 ('%%nt3030st%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030st%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030st%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s473ms
-
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 ('%%th8rj%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%th8-r-j%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%th8-r-j%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 17:26:26 Duration: 2s425ms
-
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 ('%%nt3030std%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030std-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030std-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s356ms
4 46m10s 7,353 298ms 2s551ms 376ms 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 Oct 14 22 171 55s263ms 323ms 23 213 1m9s 324ms 04 2 674ms 337ms 06 40 12s969ms 324ms 07 207 1m10s 339ms 08 871 5m45s 396ms 09 780 5m22s 413ms 10 977 6m22s 391ms 11 667 4m22s 394ms 12 535 3m11s 358ms 13 764 4m46s 375ms 14 772 4m52s 378ms 15 824 4m53s 355ms 16 382 2m15s 355ms 17 133 43s824ms 329ms 19 15 4s978ms 331ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 12:46:17 Duration: 2s551ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 19:10:34 Duration: 1s555ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 20:10:27 Duration: 1s529ms
5 31m44s 10,156 166ms 958ms 187ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 14 22 381 1m6s 175ms 23 503 1m28s 176ms 04 1 177ms 177ms 06 51 8s915ms 174ms 07 258 46s763ms 181ms 08 1,156 3m41s 191ms 09 1,019 3m18s 195ms 10 1,271 4m3s 191ms 11 861 2m45s 192ms 12 686 2m8s 187ms 13 923 2m53s 188ms 14 1,175 3m38s 186ms 15 1,169 3m34s 183ms 16 501 1m31s 182ms 17 176 31s334ms 178ms 19 25 4s386ms 175ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(42.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 187676 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:26 Duration: 958ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 199858 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-14 12:42:08 Duration: 813ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(55.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 239344 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:25 Duration: 804ms
6 24m59s 2,535 487ms 1s753ms 591ms 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 #6
Day Hour Count Duration Avg duration Oct 14 21 1 503ms 503ms 03 10 5s169ms 516ms 04 6 3s58ms 509ms 05 4 2s92ms 523ms 06 20 10s113ms 505ms 07 177 1m34s 534ms 08 401 4m3s 606ms 09 366 3m51s 633ms 10 297 3m7s 630ms 11 256 2m37s 615ms 12 181 1m44s 577ms 13 284 2m43s 577ms 14 231 2m11s 567ms 15 125 1m10s 567ms 16 131 1m10s 536ms 17 41 20s793ms 507ms 18 4 2s20ms 505ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 17:19:17 Duration: 1s753ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 16:24:49 Duration: 1s653ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 14:13:45 Duration: 1s585ms
7 24m 7,648 168ms 854ms 188ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Oct 14 04 6 1s41ms 173ms 06 46 8s71ms 175ms 07 202 36s245ms 179ms 08 870 2m44s 188ms 09 1,230 3m57s 192ms 10 1,932 6m5s 189ms 11 711 2m15s 190ms 12 289 53s265ms 184ms 13 628 1m57s 186ms 14 609 1m54s 187ms 15 748 2m19s 186ms 16 260 47s202ms 181ms 17 100 17s637ms 176ms 18 2 356ms 178ms 19 15 2s631ms 175ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 375.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (375.0 - 374.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 191079 and warehouse_id = 37 and company_id = 1;
Date: 2024-10-14 19:48:34 Duration: 854ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 262499 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-14 14:07:28 Duration: 825ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 3.0 IS NOT NULL THEN GREATEST ((7.0 - 7.0) + (3.0 - 3.0), 0) ELSE GREATEST ((7.0 - 7.0), 0) END where product_id = 177857 and warehouse_id = 43 and company_id = 1;
Date: 2024-10-14 12:13:42 Duration: 666ms
8 19m27s 5,190 168ms 2s 224ms select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Oct 14 21 36 6s551ms 181ms 22 145 26s239ms 180ms 23 132 23s637ms 179ms 08 165 40s987ms 248ms 09 809 3m14s 240ms 10 358 1m23s 232ms 11 1,168 4m31s 232ms 12 324 1m10s 217ms 13 255 56s968ms 223ms 14 647 2m26s 226ms 15 623 2m16s 219ms 16 507 1m46s 209ms 17 21 3s988ms 189ms -
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 = 53739 and fd.product_id = 209279;
Date: 2024-10-14 14:44:54 Duration: 2s
-
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 = 53643 and fd.product_id = 257839;
Date: 2024-10-14 19:39:17 Duration: 1s179ms
-
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 = 53633 and fd.product_id = 210051;
Date: 2024-10-14 16:00:19 Duration: 1s82ms
9 19m4s 209 2s129ms 54s361ms 5s477ms delete from account_move_line where id in (...);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Oct 14 23 1 6s509ms 6s509ms 08 34 2m33s 4s520ms 09 5 1m54s 22s868ms 10 3 11s401ms 3s800ms 12 1 2s958ms 2s958ms 13 45 1m56s 2s598ms 14 12 36s216ms 3s18ms 15 11 33s384ms 3s34ms 16 2 8s615ms 4s307ms 19 95 11m 6s955ms -
DELETE FROM account_move_line WHERE id IN (5998881, 5998882, 5998883, 5998884, 5998885, 5998886, 5998887, 5998888, 5998889, 5998890, 5998891, 5998892, 5998893, 5998894, 5998895, 5998896, 5998897, 5998898, 5998899, 5998900, 5998901, 5998902, 5998903, 6000353, 6000354);
Date: 2024-10-14 23:47:21 Duration: 54s361ms
-
DELETE FROM account_move_line WHERE id IN (5983441, 5983442, 5983443, 5996106, 5996107, 5997002, 5997003, 5997004, 5997005, 5997006, 5997007, 5997008, 5997009, 5997010, 5997011, 5997012, 5997013, 5997014, 5997015, 5997016, 5997017);
Date: 2024-10-14 13:04:39 Duration: 47s540ms
-
DELETE FROM account_move_line WHERE id IN (6011129, 6011130, 6011131, 6011132, 6011133, 6011134, 6011135, 6011136, 6011137, 6011138, 6011139, 6011140, 6011141, 6011142, 6011143, 6011144, 6011145, 6011146, 6011147, 6011148, 6011149, 6011150);
Date: 2024-10-14 23:45:09 Duration: 47s478ms
10 16m9s 4,951 169ms 928ms 195ms update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 14 23 2 370ms 185ms 04 3 542ms 180ms 06 10 1s765ms 176ms 07 149 26s989ms 181ms 08 585 1m55s 197ms 09 875 2m57s 202ms 10 731 2m22s 195ms 11 556 1m53s 204ms 12 252 47s956ms 190ms 13 666 2m8s 192ms 14 465 1m31s 197ms 15 363 1m8s 189ms 16 231 43s147ms 186ms 17 58 10s205ms 175ms 19 5 886ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269438 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:51 Duration: 928ms
-
UPDATE product_warehouse_inventory SET qty_available = 434.0 WHERE product_id = 237202 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-10-14 18:54:30 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 270774 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:50 Duration: 833ms
11 15m4s 5,758 139ms 840ms 157ms 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 #11
Day Hour Count Duration Avg duration Oct 14 20 240 35s372ms 147ms 21 240 35s412ms 147ms 22 240 35s672ms 148ms 23 240 35s675ms 148ms 00 240 35s255ms 146ms 01 240 35s226ms 146ms 02 240 35s203ms 146ms 03 240 35s301ms 147ms 04 240 35s341ms 147ms 05 240 35s313ms 147ms 06 240 35s359ms 147ms 07 240 37s288ms 155ms 08 239 42s906ms 179ms 09 240 43s343ms 180ms 10 240 42s786ms 178ms 11 239 42s121ms 176ms 12 240 40s420ms 168ms 13 240 41s660ms 173ms 14 240 40s415ms 168ms 15 240 40s83ms 167ms 16 240 37s308ms 155ms 17 240 35s753ms 148ms 18 240 35s515ms 147ms 19 240 36s114ms 150ms -
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_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_cast', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_opclass', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_am', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_index', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_operator', 'pg_catalog.pg_language', 'pg_catalog.pg_views', 'pg_catalog.pg_stats', 'pg_catalog.pg_user', 'pg_catalog.pg_attribute', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_enum', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_constraint', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_depend', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_namespace', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_group', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_type', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'information_schema.enabled_roles', 'information_schema.tables', 'information_schema.character_sets', 'information_schema.foreign_table_options', 'information_schema.usage_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.table_constraints', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.role_table_grants', 'information_schema.collations', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.role_udt_grants', 'information_schema.user_defined_types', 'information_schema.role_routine_grants', 'information_schema.foreign_servers', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.triggered_update_columns', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.check_constraints', 'information_schema.schemata', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.columns', 'information_schema.routine_routine_usage', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.role_column_grants', 'information_schema.routine_sequence_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.domain_constraints', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.sql_sizing', 'information_schema.role_usage_grants', 'information_schema.applicable_roles', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.data_type_privileges', 'information_schema.information_schema_catalog_name', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-14 16:24:48 Duration: 840ms
-
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 ('information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.triggered_update_columns', 'information_schema.character_sets', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.foreign_table_options', 'information_schema.enabled_roles', 'information_schema.role_table_grants', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.sequences', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.parameters', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.schemata', 'information_schema.table_constraints', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.user_mappings', 'information_schema.view_table_usage', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.column_privileges', 'information_schema.domain_udt_usage', 'information_schema.triggers', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.foreign_server_options', 'information_schema.constraint_column_usage', 'information_schema.foreign_servers', 'information_schema.administrable_role_authorizations', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.routine_privileges', 'information_schema.applicable_roles', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_subscription', 'pg_catalog.pg_conversion', 'pg_catalog.pg_cast', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_indexes', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_database', 'pg_catalog.pg_collation', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_rules', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_policies', 'pg_catalog.pg_amproc', 'pg_catalog.pg_cursors', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_language', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_views', 'pg_catalog.pg_user', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_range', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_tables', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policy', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_sequences');
Date: 2024-10-14 18:36:03 Duration: 553ms
-
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_shseclabel', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_conversion', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_type', 'pg_catalog.pg_depend', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_proc', 'pg_catalog.pg_constraint', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_subscription', 'pg_catalog.pg_namespace', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_language', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_settings', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_index', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_trigger', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication', 'pg_catalog.pg_group', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_collation', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_locks', 'pg_catalog.pg_user', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_am', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_rules', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_statio_user_indexes', 'information_schema.applicable_roles', 'information_schema.foreign_table_options', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.usage_privileges', 'information_schema.column_domain_usage', 'information_schema.sql_sizing', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.view_routine_usage', 'information_schema.element_types', 'information_schema.enabled_roles', 'information_schema.role_udt_grants', 'information_schema.routine_table_usage', 'information_schema.table_constraints', 'information_schema.domain_udt_usage', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.attributes', 'information_schema.check_constraints', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.routine_sequence_usage', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.view_table_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.routines', 'information_schema.key_column_usage', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.collation_character_set_applicability', 'information_schema.column_column_usage', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-14 20:01:33 Duration: 548ms
12 14m39s 5,115 120ms 639ms 171ms 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 #12
Day Hour Count Duration Avg duration Oct 14 07 397 55s431ms 139ms 08 471 1m14s 158ms 09 472 1m38s 208ms 10 800 2m28s 185ms 11 836 2m14s 161ms 12 545 1m24s 155ms 13 431 1m11s 166ms 14 793 2m20s 177ms 15 234 41s403ms 176ms 16 136 28s786ms 211ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 208407) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '48')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 12:46:18 Duration: 639ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237355) 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-10-14 13:51:00 Duration: 611ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 199957) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 13:53:41 Duration: 572ms
13 14m26s 810 885ms 2s446ms 1s69ms select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 14 06 22 20s617ms 937ms 07 18 17s246ms 958ms 08 128 2m24s 1s132ms 09 89 1m44s 1s179ms 10 119 2m10s 1s95ms 11 127 2m19s 1s94ms 12 82 1m23s 1s21ms 13 71 1m11s 1s12ms 14 55 54s827ms 996ms 15 68 1m9s 1s15ms 16 24 22s804ms 950ms 17 6 5s593ms 932ms 18 1 927ms 927ms -
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 ('%281GCFJP-B5XD%')) 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 ('%281GCFJP-B5XD%'))) 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 ('%281GCFJP-B5XD%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%281GCFJP-B5XD%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 12:13:42 Duration: 2s446ms
-
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 ('%n10270%')) 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 ('%n10270%'))) 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 ('%n10270%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%n10270%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 12:46:18 Duration: 2s361ms
-
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 ('%A3102Y3873%')) 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 ('%A3102Y3873%'))) 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 ('%A3102Y3873%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%A3102Y3873%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 13:20:01 Duration: 2s107ms
14 11m56s 810 710ms 1s832ms 884ms 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 #14
Day Hour Count Duration Avg duration Oct 14 07 3 2s287ms 762ms 08 259 3m45s 872ms 09 152 2m16s 899ms 10 60 53s377ms 889ms 11 110 1m48s 989ms 12 19 15s197ms 799ms 13 39 33s497ms 858ms 14 56 48s511ms 866ms 15 112 1m32s 826ms -
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 ('%%CRT%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CRT%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%CRT%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 12:53:17 Duration: 1s832ms
-
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 ('%%n2505531x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n250-55-31x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n250-55-31x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 15:52:25 Duration: 1s673ms
-
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 ('%%47697%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%47697%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%47697%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 13:01:15 Duration: 1s620ms
15 10m14s 3,533 120ms 880ms 173ms 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 #15
Day Hour Count Duration Avg duration Oct 14 21 1 154ms 154ms 22 139 23s33ms 165ms 23 100 18s189ms 181ms 06 6 770ms 128ms 07 52 6s698ms 128ms 08 572 2m37s 275ms 09 532 1m27s 164ms 10 472 1m13s 156ms 11 407 1m1s 151ms 12 197 27s702ms 140ms 13 308 44s875ms 145ms 14 340 50s508ms 148ms 15 254 40s740ms 160ms 16 139 19s402ms 139ms 17 8 1s110ms 138ms 18 1 120ms 120ms 19 5 637ms 127ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (224106, 223692, 223590, 223589, 222772, 222715, 222520, 222321, 222110, 222050, 221925, 221906, 221847, 221732, 221338, 221336, 221332, 247837, 264378, 224063, 249608, 222057, 221002, 223543, 220988, 222697, 222698, 220794, 222018, 221903)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:13 Duration: 880ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209168, 210101, 210087, 210073, 209276, 263357)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:15 Duration: 877ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (182965, 182889, 182182, 182171, 181845, 181553, 182161, 182160, 182154)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 19:34:58 Duration: 854ms
16 10m4s 3,182 166ms 967ms 189ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 14 22 48 8s498ms 177ms 23 56 9s902ms 176ms 04 1 172ms 172ms 06 5 877ms 175ms 07 62 11s197ms 180ms 08 313 1m1s 196ms 09 527 1m44s 198ms 10 416 1m20s 193ms 11 280 53s418ms 190ms 12 120 22s275ms 185ms 13 368 1m9s 188ms 14 418 1m17s 184ms 15 311 57s3ms 183ms 16 175 33s314ms 190ms 17 82 14s347ms 174ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219680 AND warehouse_id = 42;
Date: 2024-10-14 20:01:33 Duration: 967ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 36;
Date: 2024-10-14 12:52:25 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 174050 AND warehouse_id = 41;
Date: 2024-10-14 13:16:34 Duration: 718ms
17 9m19s 647 697ms 2s470ms 864ms 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 #17
Day Hour Count Duration Avg duration Oct 14 07 2 1s502ms 751ms 08 12 11s162ms 930ms 09 41 42s717ms 1s41ms 10 83 1m26s 1s39ms 11 132 1m58s 894ms 12 6 4s471ms 745ms 13 120 1m37s 811ms 14 40 35s578ms 889ms 15 50 40s449ms 808ms 16 31 24s476ms 789ms 17 130 1m37s 751ms -
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 ('%%tledp%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%tled-p%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%tled-p%'))) 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-10-14 17:16:31 Duration: 2s470ms
-
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 ('%%tledpc%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%tled-pc%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%tled-pc%'))) 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-10-14 17:16:32 Duration: 2s330ms
-
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 ('%%500%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%500%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%500%'))) 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-10-14 14:23:12 Duration: 2s164ms
18 8m27s 57 6s508ms 21s757ms 8s904ms delete from sale_order_line where id in (...);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 14 07 4 27s420ms 6s855ms 08 4 32s360ms 8s90ms 09 6 44s969ms 7s494ms 10 10 1m50s 11s32ms 11 4 45s998ms 11s499ms 12 3 22s47ms 7s349ms 13 9 1m14s 8s275ms 14 7 57s598ms 8s228ms 15 4 42s569ms 10s642ms 16 6 49s774ms 8s295ms -
DELETE FROM sale_order_line WHERE id IN (503065, 503066, 503067);
Date: 2024-10-14 19:41:08 Duration: 21s757ms
-
DELETE FROM sale_order_line WHERE id IN (502600, 502601, 502603);
Date: 2024-10-14 14:21:49 Duration: 20s735ms
-
DELETE FROM sale_order_line WHERE id IN (502612, 502613);
Date: 2024-10-14 14:29:01 Duration: 15s777ms
19 8m10s 2,410 167ms 1s106ms 203ms 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 #19
Day Hour Count Duration Avg duration Oct 14 04 1 196ms 196ms 06 7 1s216ms 173ms 07 80 14s991ms 187ms 08 191 41s106ms 215ms 09 211 47s826ms 226ms 10 317 1m7s 212ms 11 340 1m12s 211ms 12 471 1m32s 195ms 13 230 46s45ms 200ms 14 384 1m13s 190ms 15 93 18s910ms 203ms 16 48 9s144ms 190ms 17 29 5s130ms 176ms 18 8 1s381ms 172ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%715%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%715%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%715%')))) 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 ('%715%') OR unaccent (res_partner.display_name) ilike unaccent ('%715%') OR unaccent (res_partner.ref) ilike unaccent ('%715%') OR unaccent (res_partner.vat) ilike unaccent ('715')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%715%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:04:27 Duration: 1s106ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%I-RTV00136%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%I-RTV00136%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%I-RTV00136%')))) 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 ('%I-RTV00136%') OR unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.ref) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.vat) ilike unaccent ('I-RTV00136')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:24:48 Duration: 1s43ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%30454%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%30454%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%30454%')))) 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 ('%30454%') OR unaccent (res_partner.display_name) ilike unaccent ('%30454%') OR unaccent (res_partner.ref) ilike unaccent ('%30454%') OR unaccent (res_partner.vat) ilike unaccent ('30454')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%30454%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 19:35:50 Duration: 595ms
20 8m8s 2,585 167ms 863ms 189ms 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 Oct 14 22 25 4s562ms 182ms 23 33 5s913ms 179ms 06 22 3s825ms 173ms 07 92 16s560ms 180ms 08 323 1m2s 192ms 09 275 54s235ms 197ms 10 352 1m8s 193ms 11 308 59s470ms 193ms 12 250 46s318ms 185ms 13 260 48s626ms 187ms 14 296 55s107ms 186ms 15 214 39s316ms 183ms 16 108 19s942ms 184ms 17 18 3s152ms 175ms 19 9 1s694ms 188ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 239137 AND warehouse_id = 36;
Date: 2024-10-14 12:52:24 Duration: 863ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:36 Duration: 772ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:37 Duration: 716ms
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 118,101 6h46m9s 127ms 2s293ms 206ms select "bus_bus".id from "bus_bus" where (("bus_bus"."create_date" > ?) and ("bus_bus"."channel" in (...))) order by "bus_bus"."id";Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 14 20 2,182 5m17s 145ms 21 2,291 5m32s 145ms 22 2,326 5m53s 152ms 23 2,149 5m30s 153ms 00 2,226 5m19s 143ms 01 2,118 5m15s 149ms 02 2,120 5m13s 147ms 03 2,158 5m20s 148ms 04 2,341 5m50s 149ms 05 2,530 6m24s 152ms 06 2,723 6m57s 153ms 07 4,913 13m14s 161ms 08 8,236 35m34s 259ms 09 9,266 35m30s 229ms 10 9,340 39m10s 251ms 11 9,297 34m25s 222ms 12 9,000 37m36s 250ms 13 8,977 33m59s 227ms 14 9,072 32m36s 215ms 15 8,251 33m31s 243ms 16 5,506 18m10s 197ms 17 3,933 10m37s 161ms 18 3,827 9m47s 153ms 19 3,319 9m18s 168ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","mail.channel",639]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s293ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 14:22:17') 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-10-14 14:23:10 Duration: 2s262ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_964"', '["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s261ms
2 10,156 31m44s 166ms 958ms 187ms update product_warehouse_inventory set loc_check_qty = coalesce(?.?, ?) + coalesce(?.?, ?) - coalesce(?.?, ?) where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 14 22 381 1m6s 175ms 23 503 1m28s 176ms 04 1 177ms 177ms 06 51 8s915ms 174ms 07 258 46s763ms 181ms 08 1,156 3m41s 191ms 09 1,019 3m18s 195ms 10 1,271 4m3s 191ms 11 861 2m45s 192ms 12 686 2m8s 187ms 13 923 2m53s 188ms 14 1,175 3m38s 186ms 15 1,169 3m34s 183ms 16 501 1m31s 182ms 17 176 31s334ms 178ms 19 25 4s386ms 175ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(42.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 187676 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:26 Duration: 958ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 199858 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-14 12:42:08 Duration: 813ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(55.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 239344 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:25 Duration: 804ms
3 7,648 24m 168ms 854ms 188ms update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 14 04 6 1s41ms 173ms 06 46 8s71ms 175ms 07 202 36s245ms 179ms 08 870 2m44s 188ms 09 1,230 3m57s 192ms 10 1,932 6m5s 189ms 11 711 2m15s 190ms 12 289 53s265ms 184ms 13 628 1m57s 186ms 14 609 1m54s 187ms 15 748 2m19s 186ms 16 260 47s202ms 181ms 17 100 17s637ms 176ms 18 2 356ms 178ms 19 15 2s631ms 175ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 375.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (375.0 - 374.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 191079 and warehouse_id = 37 and company_id = 1;
Date: 2024-10-14 19:48:34 Duration: 854ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 262499 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-14 14:07:28 Duration: 825ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 3.0 IS NOT NULL THEN GREATEST ((7.0 - 7.0) + (3.0 - 3.0), 0) ELSE GREATEST ((7.0 - 7.0), 0) END where product_id = 177857 and warehouse_id = 43 and company_id = 1;
Date: 2024-10-14 12:13:42 Duration: 666ms
4 7,353 46m10s 298ms 2s551ms 376ms 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 Oct 14 22 171 55s263ms 323ms 23 213 1m9s 324ms 04 2 674ms 337ms 06 40 12s969ms 324ms 07 207 1m10s 339ms 08 871 5m45s 396ms 09 780 5m22s 413ms 10 977 6m22s 391ms 11 667 4m22s 394ms 12 535 3m11s 358ms 13 764 4m46s 375ms 14 772 4m52s 378ms 15 824 4m53s 355ms 16 382 2m15s 355ms 17 133 43s824ms 329ms 19 15 4s978ms 331ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 12:46:17 Duration: 2s551ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 19:10:34 Duration: 1s555ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 20:10:27 Duration: 1s529ms
5 7,351 51m27s 378ms 1s890ms 420ms 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 #5
Day Hour Count Duration Avg duration Oct 14 22 171 1m6s 391ms 23 213 1m24s 394ms 04 2 831ms 415ms 06 40 15s754ms 393ms 07 207 1m23s 401ms 08 871 6m14s 430ms 09 780 5m42s 439ms 10 977 6m59s 429ms 11 666 4m47s 431ms 12 535 3m40s 411ms 13 763 5m19s 418ms 14 772 5m21s 417ms 15 824 5m36s 408ms 16 382 2m35s 407ms 17 133 52s817ms 397ms 19 15 5s869ms 391ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 12:56:26 Duration: 1s890ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 19:07:09 Duration: 1s838ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 15:22:53 Duration: 1s711ms
6 5,758 15m4s 139ms 840ms 157ms select current_database() as database, schemaname as schema_name, tblname as table_name, bs * tblpages as real_size, (tblpages - est_tblpages_ff) * bs as bloat_size, case when tblpages - est_tblpages_ff > ? then ? * (tblpages - est_tblpages_ff) / tblpages::float else ? end as bloat_ratio from ( select ceil(reltuples / ((bs - page_hdr) / tpl_size)) + ceil(toasttuples / ?) as est_tblpages, ceil(reltuples / ((bs - page_hdr) * fillfactor / (tpl_size * ?))) + ceil(toasttuples / ?) as est_tblpages_ff, tblpages, fillfactor, bs, tblid, schemaname, tblname, heappages, toastpages, is_na from ( select (? + tpl_hdr_size + tpl_data_size + (? * ma) - case when tpl_hdr_size % ma = ? then ma else tpl_hdr_size % ma end - case when ceil(tpl_data_size)::int % ma = ? then ma else ceil(tpl_data_size)::int % ma end) as tpl_size, bs - page_hdr as size_per_block, (heappages + toastpages) as tblpages, heappages, toastpages, reltuples, toasttuples, bs, page_hdr, tblid, schemaname, tblname, fillfactor, is_na from ( select tbl.oid as tblid, ns.nspname as schemaname, tbl.relname as tblname, tbl.reltuples, tbl.relpages as heappages, coalesce(toast.relpages, ?) as toastpages, coalesce(toast.reltuples, ?) as toasttuples, coalesce(substring(array_to_string(tbl.reloptions, ?) from ?)::smallint, ?) as fillfactor, current_setting(?)::numeric as bs, case when version() ~ ? or version() ~ ? then ? else ? end as ma, ? as page_hdr, case when current_setting(?)::integer < ? then ? else ? end + case when max(coalesce(null_frac, ?)) > ? then (? + count(*)) / ? else ?::int end + ? as tpl_hdr_size, sum((? - coalesce(s.null_frac, ?)) * coalesce(s.avg_width, ?)) as tpl_data_size, bool_or(att.atttypid = ?::regtype) or count(att.attname) <> count(s.attname) as is_na from pg_attribute as att join pg_class as tbl on att.attrelid = tbl.oid join pg_namespace as ns on ns.oid = tbl.relnamespace left join pg_stats as s on s.schemaname = ns.nspname and s.tablename = tbl.relname and s.attname = att.attname left join pg_class as toast on tbl.reltoastrelid = toast.oid where att.attnum > ? and not att.attisdropped and tbl.relkind = ? group by ?, ?, ?, ?, ?, ?, ?, ?, ?, ? order by ?, ?) as s) as s2) as s3 where not is_na and schemaname || ? || tblname in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Oct 14 20 240 35s372ms 147ms 21 240 35s412ms 147ms 22 240 35s672ms 148ms 23 240 35s675ms 148ms 00 240 35s255ms 146ms 01 240 35s226ms 146ms 02 240 35s203ms 146ms 03 240 35s301ms 147ms 04 240 35s341ms 147ms 05 240 35s313ms 147ms 06 240 35s359ms 147ms 07 240 37s288ms 155ms 08 239 42s906ms 179ms 09 240 43s343ms 180ms 10 240 42s786ms 178ms 11 239 42s121ms 176ms 12 240 40s420ms 168ms 13 240 41s660ms 173ms 14 240 40s415ms 168ms 15 240 40s83ms 167ms 16 240 37s308ms 155ms 17 240 35s753ms 148ms 18 240 35s515ms 147ms 19 240 36s114ms 150ms -
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_rewrite', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_proc', 'pg_catalog.pg_cast', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_opclass', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_am', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_range', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_locks', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_inherits', 'pg_catalog.pg_index', 'pg_catalog.pg_amop', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_indexes', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_operator', 'pg_catalog.pg_language', 'pg_catalog.pg_views', 'pg_catalog.pg_stats', 'pg_catalog.pg_user', 'pg_catalog.pg_attribute', 'pg_catalog.pg_tables', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_roles', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_enum', 'pg_catalog.pg_sequence', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_policy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_policies', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_settings', 'pg_catalog.pg_constraint', 'pg_catalog.pg_conversion', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_collation', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_extension', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_trigger', 'pg_catalog.pg_description', 'pg_catalog.pg_depend', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_namespace', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_cursors', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_amproc', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_group', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_subscription', 'pg_catalog.pg_class', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_type', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_publication', 'pg_catalog.pg_rules', 'information_schema.enabled_roles', 'information_schema.tables', 'information_schema.character_sets', 'information_schema.foreign_table_options', 'information_schema.usage_privileges', 'information_schema.check_constraint_routine_usage', 'information_schema.column_privileges', 'information_schema.table_constraints', 'information_schema.administrable_role_authorizations', 'information_schema.routines', 'information_schema.role_table_grants', 'information_schema.collations', 'information_schema.sql_implementation_info', 'information_schema.column_options', 'information_schema.foreign_server_options', 'information_schema.column_column_usage', 'information_schema.domain_udt_usage', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.constraint_table_usage', 'information_schema.referential_constraints', 'information_schema.role_udt_grants', 'information_schema.user_defined_types', 'information_schema.role_routine_grants', 'information_schema.foreign_servers', 'information_schema.constraint_column_usage', 'information_schema.parameters', 'information_schema.triggered_update_columns', 'information_schema.attributes', 'information_schema.collation_character_set_applicability', 'information_schema.domains', 'information_schema.user_mappings', 'information_schema.check_constraints', 'information_schema.schemata', 'information_schema.sql_features', 'information_schema.view_table_usage', 'information_schema.view_column_usage', 'information_schema.user_mapping_options', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.foreign_data_wrappers', 'information_schema.element_types', 'information_schema.columns', 'information_schema.routine_routine_usage', 'information_schema.triggers', 'information_schema.view_routine_usage', 'information_schema.role_column_grants', 'information_schema.routine_sequence_usage', 'information_schema.routine_table_usage', 'information_schema.table_privileges', 'information_schema.domain_constraints', 'information_schema.column_domain_usage', 'information_schema.sequences', 'information_schema.sql_sizing', 'information_schema.role_usage_grants', 'information_schema.applicable_roles', 'information_schema.routine_privileges', 'information_schema.key_column_usage', 'information_schema.data_type_privileges', 'information_schema.information_schema_catalog_name', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-14 16:24:48 Duration: 840ms
-
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 ('information_schema.column_domain_usage', 'information_schema.sql_implementation_info', 'information_schema.routines', 'information_schema.constraint_table_usage', 'information_schema.triggered_update_columns', 'information_schema.character_sets', 'information_schema.routine_routine_usage', 'information_schema.sql_features', 'information_schema.role_udt_grants', 'information_schema.foreign_table_options', 'information_schema.enabled_roles', 'information_schema.role_table_grants', 'information_schema.udt_privileges', 'information_schema.element_types', 'information_schema.foreign_data_wrapper_options', 'information_schema.foreign_tables', 'information_schema.check_constraints', 'information_schema.column_column_usage', 'information_schema.sequences', 'information_schema.column_options', 'information_schema.attributes', 'information_schema.parameters', 'information_schema.routine_table_usage', 'information_schema.views', 'information_schema.domain_constraints', 'information_schema.domains', 'information_schema.schemata', 'information_schema.table_constraints', 'information_schema.collations', 'information_schema.collation_character_set_applicability', 'information_schema.role_column_grants', 'information_schema.columns', 'information_schema.user_mappings', 'information_schema.view_table_usage', 'information_schema.usage_privileges', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrappers', 'information_schema.data_type_privileges', 'information_schema.key_column_usage', 'information_schema.role_routine_grants', 'information_schema.referential_constraints', 'information_schema.table_privileges', 'information_schema.information_schema_catalog_name', 'information_schema.column_privileges', 'information_schema.domain_udt_usage', 'information_schema.triggers', 'information_schema.check_constraint_routine_usage', 'information_schema.routine_sequence_usage', 'information_schema.sql_sizing', 'information_schema.foreign_server_options', 'information_schema.constraint_column_usage', 'information_schema.foreign_servers', 'information_schema.administrable_role_authorizations', 'information_schema.column_udt_usage', 'information_schema.routine_column_usage', 'information_schema.routine_privileges', 'information_schema.applicable_roles', 'information_schema.tables', 'information_schema.view_routine_usage', 'information_schema.user_mapping_options', 'information_schema.user_defined_types', 'information_schema.view_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements', 'pg_catalog.pg_subscription', 'pg_catalog.pg_conversion', 'pg_catalog.pg_cast', 'pg_catalog.pg_matviews', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_proc', 'pg_catalog.pg_class', 'pg_catalog.pg_indexes', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_database', 'pg_catalog.pg_collation', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_settings', 'pg_catalog.pg_amop', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_rules', 'pg_catalog.pg_inherits', 'pg_catalog.pg_opclass', 'pg_catalog.pg_namespace', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_sequences', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_depend', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_sequence', 'pg_catalog.pg_policies', 'pg_catalog.pg_amproc', 'pg_catalog.pg_cursors', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_language', 'pg_catalog.pg_shseclabel', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_index', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_constraint', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_transform', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_group', 'pg_catalog.pg_type', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_publication', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_am', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_description', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_operator', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_locks', 'pg_catalog.pg_statio_user_indexes', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_views', 'pg_catalog.pg_user', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_range', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_tables', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_policy', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_extension', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_trigger', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_statio_sys_sequences');
Date: 2024-10-14 18:36:03 Duration: 553ms
-
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_shseclabel', 'pg_catalog.pg_stat_xact_user_functions', 'pg_catalog.pg_operator', 'pg_catalog.pg_stat_wal', 'pg_catalog.pg_init_privs', 'pg_catalog.pg_statio_user_sequences', 'pg_catalog.pg_stat_subscription', 'pg_catalog.pg_attrdef', 'pg_catalog.pg_statistic_ext', 'pg_catalog.pg_conversion', 'pg_catalog.pg_subscription_rel', 'pg_catalog.pg_stat_sys_indexes', 'pg_catalog.pg_stat_progress_create_index', 'pg_catalog.pg_policy', 'pg_catalog.pg_stat_wal_receiver', 'pg_catalog.pg_stat_replication', 'pg_catalog.pg_stat_archiver', 'pg_catalog.pg_stat_progress_vacuum', 'pg_catalog.pg_description', 'pg_catalog.pg_stat_activity', 'pg_catalog.pg_available_extension_versions', 'pg_catalog.pg_event_trigger', 'pg_catalog.pg_ts_config_map', 'pg_catalog.pg_tables', 'pg_catalog.pg_stats_ext_exprs', 'pg_catalog.pg_publication_tables', 'pg_catalog.pg_prepared_statements', 'pg_catalog.pg_statio_sys_sequences', 'pg_catalog.pg_stat_user_functions', 'pg_catalog.pg_type', 'pg_catalog.pg_depend', 'pg_catalog.pg_range', 'pg_catalog.pg_indexes', 'pg_catalog.pg_seclabel', 'pg_catalog.pg_proc', 'pg_catalog.pg_constraint', 'pg_catalog.pg_cast', 'pg_catalog.pg_ts_dict', 'pg_catalog.pg_shdescription', 'pg_catalog.pg_opclass', 'pg_catalog.pg_stat_bgwriter', 'pg_catalog.pg_statio_all_tables', 'pg_catalog.pg_stat_ssl', 'pg_catalog.pg_subscription', 'pg_catalog.pg_namespace', 'pg_catalog.pg_policies', 'pg_catalog.pg_sequences', 'pg_catalog.pg_attribute', 'pg_catalog.pg_stat_progress_copy', 'pg_catalog.pg_partitioned_table', 'pg_catalog.pg_stats', 'pg_catalog.pg_ts_template', 'pg_catalog.pg_statio_all_indexes', 'pg_catalog.pg_stat_xact_user_tables', 'pg_catalog.pg_statio_all_sequences', 'pg_catalog.pg_class', 'pg_catalog.pg_language', 'pg_catalog.pg_foreign_data_wrapper', 'pg_catalog.pg_stats_ext', 'pg_catalog.pg_timezone_abbrevs', 'pg_catalog.pg_settings', 'pg_catalog.pg_db_role_setting', 'pg_catalog.pg_publication_rel', 'pg_catalog.pg_matviews', 'pg_catalog.pg_stat_progress_cluster', 'pg_catalog.pg_available_extensions', 'pg_catalog.pg_seclabels', 'pg_catalog.pg_stat_xact_all_tables', 'pg_catalog.pg_amop', 'pg_catalog.pg_user_mappings', 'pg_catalog.pg_stat_database', 'pg_catalog.pg_index', 'pg_catalog.pg_auth_members', 'pg_catalog.pg_stat_user_indexes', 'pg_catalog.pg_stat_replication_slots', 'pg_catalog.pg_transform', 'pg_catalog.pg_statio_sys_tables', 'pg_catalog.pg_statio_sys_indexes', 'pg_catalog.pg_stat_gssapi', 'pg_catalog.pg_trigger', 'pg_catalog.pg_sequence', 'pg_catalog.pg_publication', 'pg_catalog.pg_group', 'pg_catalog.pg_cursors', 'pg_catalog.pg_timezone_names', 'pg_catalog.pg_stat_all_indexes', 'pg_catalog.pg_tablespace', 'pg_catalog.pg_extension', 'pg_catalog.pg_foreign_server', 'pg_catalog.pg_collation', 'pg_catalog.pg_views', 'pg_catalog.pg_stat_progress_basebackup', 'pg_catalog.pg_prepared_xacts', 'pg_catalog.pg_stat_all_tables', 'pg_catalog.pg_stat_user_tables', 'pg_catalog.pg_foreign_table', 'pg_catalog.pg_amproc', 'pg_catalog.pg_aggregate', 'pg_catalog.pg_statio_user_tables', 'pg_catalog.pg_roles', 'pg_catalog.pg_replication_origin', 'pg_catalog.pg_locks', 'pg_catalog.pg_user', 'pg_catalog.pg_enum', 'pg_catalog.pg_stat_sys_tables', 'pg_catalog.pg_stat_slru', 'pg_catalog.pg_inherits', 'pg_catalog.pg_stat_progress_analyze', 'pg_catalog.pg_rewrite', 'pg_catalog.pg_ts_parser', 'pg_catalog.pg_am', 'pg_catalog.pg_database', 'pg_catalog.pg_stat_xact_sys_tables', 'pg_catalog.pg_replication_slots', 'pg_catalog.pg_stat_database_conflicts', 'pg_catalog.pg_largeobject_metadata', 'pg_catalog.pg_shdepend', 'pg_catalog.pg_default_acl', 'pg_catalog.pg_rules', 'pg_catalog.pg_opfamily', 'pg_catalog.pg_ts_config', 'pg_catalog.pg_statio_user_indexes', 'information_schema.applicable_roles', 'information_schema.foreign_table_options', 'information_schema.role_column_grants', 'information_schema.domain_constraints', 'information_schema.routine_routine_usage', 'information_schema.role_table_grants', 'information_schema.data_type_privileges', 'information_schema.foreign_server_options', 'information_schema.collations', 'information_schema.column_privileges', 'information_schema.usage_privileges', 'information_schema.column_domain_usage', 'information_schema.sql_sizing', 'information_schema.sql_implementation_info', 'information_schema.user_mappings', 'information_schema.view_routine_usage', 'information_schema.element_types', 'information_schema.enabled_roles', 'information_schema.role_udt_grants', 'information_schema.routine_table_usage', 'information_schema.table_constraints', 'information_schema.domain_udt_usage', 'information_schema.referential_constraints', 'information_schema.foreign_data_wrappers', 'information_schema.user_defined_types', 'information_schema.attributes', 'information_schema.check_constraints', 'information_schema.views', 'information_schema.udt_privileges', 'information_schema.role_usage_grants', 'information_schema.foreign_data_wrapper_options', 'information_schema.check_constraint_routine_usage', 'information_schema.character_sets', 'information_schema.routine_sequence_usage', 'information_schema.column_options', 'information_schema.information_schema_catalog_name', 'information_schema.view_table_usage', 'information_schema.domains', 'information_schema.role_routine_grants', 'information_schema.parameters', 'information_schema.table_privileges', 'information_schema.foreign_tables', 'information_schema.administrable_role_authorizations', 'information_schema.routine_column_usage', 'information_schema.triggered_update_columns', 'information_schema.foreign_servers', 'information_schema.user_mapping_options', 'information_schema.routines', 'information_schema.key_column_usage', 'information_schema.columns', 'information_schema.constraint_table_usage', 'information_schema.sql_features', 'information_schema.tables', 'information_schema.view_column_usage', 'information_schema.collation_character_set_applicability', 'information_schema.column_column_usage', 'information_schema.routine_privileges', 'information_schema.schemata', 'information_schema.sequences', 'information_schema.triggers', 'information_schema.column_udt_usage', 'information_schema.constraint_column_usage', 'public.pg_stat_statements_info', 'public.pg_stat_statements');
Date: 2024-10-14 20:01:33 Duration: 548ms
7 5,190 19m27s 168ms 2s 224ms 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 #7
Day Hour Count Duration Avg duration Oct 14 21 36 6s551ms 181ms 22 145 26s239ms 180ms 23 132 23s637ms 179ms 08 165 40s987ms 248ms 09 809 3m14s 240ms 10 358 1m23s 232ms 11 1,168 4m31s 232ms 12 324 1m10s 217ms 13 255 56s968ms 223ms 14 647 2m26s 226ms 15 623 2m16s 219ms 16 507 1m46s 209ms 17 21 3s988ms 189ms -
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 = 53739 and fd.product_id = 209279;
Date: 2024-10-14 14:44:54 Duration: 2s
-
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 = 53643 and fd.product_id = 257839;
Date: 2024-10-14 19:39:17 Duration: 1s179ms
-
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 = 53633 and fd.product_id = 210051;
Date: 2024-10-14 16:00:19 Duration: 1s82ms
8 5,115 14m39s 120ms 639ms 171ms 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 #8
Day Hour Count Duration Avg duration Oct 14 07 397 55s431ms 139ms 08 471 1m14s 158ms 09 472 1m38s 208ms 10 800 2m28s 185ms 11 836 2m14s 161ms 12 545 1m24s 155ms 13 431 1m11s 166ms 14 793 2m20s 177ms 15 234 41s403ms 176ms 16 136 28s786ms 211ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 208407) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '48')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 12:46:18 Duration: 639ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237355) 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-10-14 13:51:00 Duration: 611ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 199957) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 13:53:41 Duration: 572ms
9 4,951 16m9s 169ms 928ms 195ms 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 Oct 14 23 2 370ms 185ms 04 3 542ms 180ms 06 10 1s765ms 176ms 07 149 26s989ms 181ms 08 585 1m55s 197ms 09 875 2m57s 202ms 10 731 2m22s 195ms 11 556 1m53s 204ms 12 252 47s956ms 190ms 13 666 2m8s 192ms 14 465 1m31s 197ms 15 363 1m8s 189ms 16 231 43s147ms 186ms 17 58 10s205ms 175ms 19 5 886ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269438 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:51 Duration: 928ms
-
UPDATE product_warehouse_inventory SET qty_available = 434.0 WHERE product_id = 237202 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-10-14 18:54:30 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 270774 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:50 Duration: 833ms
10 3,533 10m14s 120ms 880ms 173ms select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 14 21 1 154ms 154ms 22 139 23s33ms 165ms 23 100 18s189ms 181ms 06 6 770ms 128ms 07 52 6s698ms 128ms 08 572 2m37s 275ms 09 532 1m27s 164ms 10 472 1m13s 156ms 11 407 1m1s 151ms 12 197 27s702ms 140ms 13 308 44s875ms 145ms 14 340 50s508ms 148ms 15 254 40s740ms 160ms 16 139 19s402ms 139ms 17 8 1s110ms 138ms 18 1 120ms 120ms 19 5 637ms 127ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (224106, 223692, 223590, 223589, 222772, 222715, 222520, 222321, 222110, 222050, 221925, 221906, 221847, 221732, 221338, 221336, 221332, 247837, 264378, 224063, 249608, 222057, 221002, 223543, 220988, 222697, 222698, 220794, 222018, 221903)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:13 Duration: 880ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209168, 210101, 210087, 210073, 209276, 263357)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:15 Duration: 877ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (182965, 182889, 182182, 182171, 181845, 181553, 182161, 182160, 182154)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 19:34:58 Duration: 854ms
11 3,317 48m25s 698ms 2s473ms 875ms select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Oct 14 05 10 7s371ms 737ms 06 39 28s948ms 742ms 07 164 2m6s 773ms 08 444 6m41s 903ms 09 478 7m30s 942ms 10 436 6m31s 896ms 11 431 6m38s 924ms 12 195 2m37s 808ms 13 318 4m30s 850ms 14 298 4m21s 876ms 15 248 3m29s 844ms 16 196 2m37s 802ms 17 18 13s528ms 751ms 18 8 6s232ms 779ms 19 34 25s652ms 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 ('%%nt3030st%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030st%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030st%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s473ms
-
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 ('%%th8rj%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%th8-r-j%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%th8-r-j%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 17:26:26 Duration: 2s425ms
-
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 ('%%nt3030std%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030std-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030std-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s356ms
12 3,182 10m4s 166ms 967ms 189ms update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Oct 14 22 48 8s498ms 177ms 23 56 9s902ms 176ms 04 1 172ms 172ms 06 5 877ms 175ms 07 62 11s197ms 180ms 08 313 1m1s 196ms 09 527 1m44s 198ms 10 416 1m20s 193ms 11 280 53s418ms 190ms 12 120 22s275ms 185ms 13 368 1m9s 188ms 14 418 1m17s 184ms 15 311 57s3ms 183ms 16 175 33s314ms 190ms 17 82 14s347ms 174ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219680 AND warehouse_id = 42;
Date: 2024-10-14 20:01:33 Duration: 967ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 36;
Date: 2024-10-14 12:52:25 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 174050 AND warehouse_id = 41;
Date: 2024-10-14 13:16:34 Duration: 718ms
13 3,067 7m17s 120ms 404ms 142ms 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 #13
Day Hour Count Duration Avg duration Oct 14 07 118 15s250ms 129ms 08 361 51s956ms 143ms 09 397 58s656ms 147ms 10 579 1m23s 144ms 11 495 1m10s 143ms 12 236 32s748ms 138ms 13 289 40s685ms 140ms 14 445 1m3s 143ms 15 128 17s188ms 134ms 16 19 2s491ms 131ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 42) AND ("product_warehouse_inventory"."product_id" = 209382)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-14 18:01:15 Duration: 404ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 248230)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-14 14:23:10 Duration: 398ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE (("product_warehouse_inventory"."warehouse_id" = 45) AND ("product_warehouse_inventory"."product_id" = 237367)) ORDER BY "product_warehouse_inventory"."warehouse_name" LIMIT 1;
Date: 2024-10-14 13:51:09 Duration: 389ms
14 2,585 8m8s 167ms 863ms 189ms update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 14 22 25 4s562ms 182ms 23 33 5s913ms 179ms 06 22 3s825ms 173ms 07 92 16s560ms 180ms 08 323 1m2s 192ms 09 275 54s235ms 197ms 10 352 1m8s 193ms 11 308 59s470ms 193ms 12 250 46s318ms 185ms 13 260 48s626ms 187ms 14 296 55s107ms 186ms 15 214 39s316ms 183ms 16 108 19s942ms 184ms 17 18 3s152ms 175ms 19 9 1s694ms 188ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 239137 AND warehouse_id = 36;
Date: 2024-10-14 12:52:24 Duration: 863ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:36 Duration: 772ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:37 Duration: 716ms
15 2,535 24m59s 487ms 1s753ms 591ms 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 #15
Day Hour Count Duration Avg duration Oct 14 21 1 503ms 503ms 03 10 5s169ms 516ms 04 6 3s58ms 509ms 05 4 2s92ms 523ms 06 20 10s113ms 505ms 07 177 1m34s 534ms 08 401 4m3s 606ms 09 366 3m51s 633ms 10 297 3m7s 630ms 11 256 2m37s 615ms 12 181 1m44s 577ms 13 284 2m43s 577ms 14 231 2m11s 567ms 15 125 1m10s 567ms 16 131 1m10s 536ms 17 41 20s793ms 507ms 18 4 2s20ms 505ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 17:19:17 Duration: 1s753ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 16:24:49 Duration: 1s653ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 14:13:45 Duration: 1s585ms
16 2,410 8m10s 167ms 1s106ms 203ms 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 #16
Day Hour Count Duration Avg duration Oct 14 04 1 196ms 196ms 06 7 1s216ms 173ms 07 80 14s991ms 187ms 08 191 41s106ms 215ms 09 211 47s826ms 226ms 10 317 1m7s 212ms 11 340 1m12s 211ms 12 471 1m32s 195ms 13 230 46s45ms 200ms 14 384 1m13s 190ms 15 93 18s910ms 203ms 16 48 9s144ms 190ms 17 29 5s130ms 176ms 18 8 1s381ms 172ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%715%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%715%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%715%')))) 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 ('%715%') OR unaccent (res_partner.display_name) ilike unaccent ('%715%') OR unaccent (res_partner.ref) ilike unaccent ('%715%') OR unaccent (res_partner.vat) ilike unaccent ('715')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%715%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:04:27 Duration: 1s106ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%I-RTV00136%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%I-RTV00136%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%I-RTV00136%')))) 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 ('%I-RTV00136%') OR unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.ref) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.vat) ilike unaccent ('I-RTV00136')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:24:48 Duration: 1s43ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%30454%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%30454%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%30454%')))) 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 ('%30454%') OR unaccent (res_partner.display_name) ilike unaccent ('%30454%') OR unaccent (res_partner.ref) ilike unaccent ('%30454%') OR unaccent (res_partner.vat) ilike unaccent ('30454')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%30454%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 19:35:50 Duration: 595ms
17 2,363 7m45s 173ms 829ms 196ms update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 14 08 386 1m17s 201ms 09 1,357 4m26s 196ms 10 83 15s864ms 191ms 11 11 2s233ms 203ms 12 78 14s697ms 188ms 13 81 16s205ms 200ms 14 146 30s523ms 209ms 15 132 25s284ms 191ms 16 89 16s19ms 179ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209517) and warehouse_id = (35));
Date: 2024-10-14 12:57:53 Duration: 829ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209462) and warehouse_id = (35));
Date: 2024-10-14 12:57:52 Duration: 816ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (212390) and warehouse_id = (39));
Date: 2024-10-14 18:36:03 Duration: 481ms
18 2,188 5m31s 120ms 570ms 151ms select max(id) from ir_attachment where create_uid = ? and url like ? group by name order by name;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Oct 14 07 12 1s560ms 130ms 08 449 1m9s 153ms 09 558 1m22s 148ms 10 380 1m 158ms 11 273 40s168ms 147ms 12 66 11s493ms 174ms 13 158 22s908ms 144ms 14 162 22s774ms 140ms 15 100 16s117ms 161ms 16 28 4s114ms 146ms 17 2 249ms 124ms -
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-7eb3f27/web.assets_common.css' GROUP BY name ORDER BY name;
Date: 2024-10-14 14:23:09 Duration: 570ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-cc80a45/web.assets_frontend_minimal_js.js' GROUP BY name ORDER BY name;
Date: 2024-10-14 16:33:42 Duration: 553ms
-
SELECT max(id) FROM ir_attachment WHERE create_uid = 1 AND url like '/web/content/%-169d39f/web.assets_frontend.css' GROUP BY name ORDER BY name;
Date: 2024-10-14 19:18:59 Duration: 488ms
19 2,177 5m36s 120ms 1s97ms 154ms select id from product_warehouse_inventory where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 14 22 2 276ms 138ms 23 4 757ms 189ms 06 1 120ms 120ms 07 20 2s719ms 135ms 08 322 50s930ms 158ms 09 408 1m3s 156ms 10 411 1m4s 157ms 11 320 48s399ms 151ms 12 79 10s714ms 135ms 13 215 33s506ms 155ms 14 201 31s468ms 156ms 15 142 21s183ms 149ms 16 46 6s993ms 152ms 17 6 806ms 134ms -
select id from product_warehouse_inventory where product_id = 238441 and warehouse_id = 35 and company_id = 1;
Date: 2024-10-14 14:23:09 Duration: 1s97ms
-
select id from product_warehouse_inventory where product_id = 185772 and warehouse_id = 43 and company_id = 1;
Date: 2024-10-14 14:44:53 Duration: 847ms
-
select id from product_warehouse_inventory where product_id = 221173 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-14 12:37:32 Duration: 674ms
20 2,094 5m31s 120ms 1s305ms 158ms select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = ? and sol.warehouse_id = ? and sol.company_id = ? and (sol.so_line_id is null and sol.move_options in (...));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Oct 14 04 1 133ms 133ms 07 28 3s986ms 142ms 08 272 44s530ms 163ms 09 470 1m17s 165ms 10 488 1m17s 157ms 11 243 36s366ms 149ms 12 67 10s508ms 156ms 13 165 25s358ms 153ms 14 161 25s398ms 157ms 15 157 24s513ms 156ms 16 37 5s348ms 144ms 17 3 371ms 123ms 18 1 122ms 122ms 19 1 123ms 123ms -
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 172935 and sol.warehouse_id = 42 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-10-14 14:13:45 Duration: 1s305ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 177439 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-10-14 12:48:53 Duration: 1s191ms
-
select sum(qty_delivered) as qty_delivered, sum(qty_invoiced) as qty_invoiced from sale_order_line as sol where sol.product_id = 217957 and sol.warehouse_id = 43 and sol.company_id = 1 and (sol.so_line_id is null and sol.move_options in ('new_product', 'core_sale_1', 'core_sale_2', 'core_sale_3'));
Date: 2024-10-14 12:48:51 Duration: 1s55ms
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 6s508ms 21s757ms 8s904ms 57 8m27s delete from sale_order_line where id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Oct 14 07 4 27s420ms 6s855ms 08 4 32s360ms 8s90ms 09 6 44s969ms 7s494ms 10 10 1m50s 11s32ms 11 4 45s998ms 11s499ms 12 3 22s47ms 7s349ms 13 9 1m14s 8s275ms 14 7 57s598ms 8s228ms 15 4 42s569ms 10s642ms 16 6 49s774ms 8s295ms -
DELETE FROM sale_order_line WHERE id IN (503065, 503066, 503067);
Date: 2024-10-14 19:41:08 Duration: 21s757ms
-
DELETE FROM sale_order_line WHERE id IN (502600, 502601, 502603);
Date: 2024-10-14 14:21:49 Duration: 20s735ms
-
DELETE FROM sale_order_line WHERE id IN (502612, 502613);
Date: 2024-10-14 14:29:01 Duration: 15s777ms
2 2s129ms 54s361ms 5s477ms 209 19m4s delete from account_move_line where id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Oct 14 23 1 6s509ms 6s509ms 08 34 2m33s 4s520ms 09 5 1m54s 22s868ms 10 3 11s401ms 3s800ms 12 1 2s958ms 2s958ms 13 45 1m56s 2s598ms 14 12 36s216ms 3s18ms 15 11 33s384ms 3s34ms 16 2 8s615ms 4s307ms 19 95 11m 6s955ms -
DELETE FROM account_move_line WHERE id IN (5998881, 5998882, 5998883, 5998884, 5998885, 5998886, 5998887, 5998888, 5998889, 5998890, 5998891, 5998892, 5998893, 5998894, 5998895, 5998896, 5998897, 5998898, 5998899, 5998900, 5998901, 5998902, 5998903, 6000353, 6000354);
Date: 2024-10-14 23:47:21 Duration: 54s361ms
-
DELETE FROM account_move_line WHERE id IN (5983441, 5983442, 5983443, 5996106, 5996107, 5997002, 5997003, 5997004, 5997005, 5997006, 5997007, 5997008, 5997009, 5997010, 5997011, 5997012, 5997013, 5997014, 5997015, 5997016, 5997017);
Date: 2024-10-14 13:04:39 Duration: 47s540ms
-
DELETE FROM account_move_line WHERE id IN (6011129, 6011130, 6011131, 6011132, 6011133, 6011134, 6011135, 6011136, 6011137, 6011138, 6011139, 6011140, 6011141, 6011142, 6011143, 6011144, 6011145, 6011146, 6011147, 6011148, 6011149, 6011150);
Date: 2024-10-14 23:45:09 Duration: 47s478ms
3 885ms 2s446ms 1s69ms 810 14m26s select "product_template".id from "product_template" left join "ir_translation" AS "product_template__name" on ("product_template"."id" = "product_template__name"."res_id" and "product_template__name"."type" = ? and "product_template__name"."name" = ? and "product_template__name"."lang" = ? and "product_template__name"."value" != ?) where (("product_template"."active" = true) and (("product_template"."is_core" is null or "product_template"."is_core" = false) and (("product_template"."type" in (...)) and (((((unaccent ("product_template"."default_code"::text) ilike unaccent (?)) or ("product_template"."id" in ( select "product_product"."product_tmpl_id" from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") where (("product_product"."active" = true) and (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null)))) or unaccent (coalesce("product_template__name"."value", "product_template"."name")) ilike unaccent (?)) or false) or (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent (?)))))) and (("product_template"."company_id" in (...)) or "product_template"."company_id" is null) order by coalesce("product_template__name"."value", "product_template"."name") limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Oct 14 06 22 20s617ms 937ms 07 18 17s246ms 958ms 08 128 2m24s 1s132ms 09 89 1m44s 1s179ms 10 119 2m10s 1s95ms 11 127 2m19s 1s94ms 12 82 1m23s 1s21ms 13 71 1m11s 1s12ms 14 55 54s827ms 996ms 15 68 1m9s 1s15ms 16 24 22s804ms 950ms 17 6 5s593ms 932ms 18 1 927ms 927ms -
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 ('%281GCFJP-B5XD%')) 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 ('%281GCFJP-B5XD%'))) 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 ('%281GCFJP-B5XD%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%281GCFJP-B5XD%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 12:13:42 Duration: 2s446ms
-
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 ('%n10270%')) 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 ('%n10270%'))) 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 ('%n10270%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%n10270%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 12:46:18 Duration: 2s361ms
-
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 ('%A3102Y3873%')) 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 ('%A3102Y3873%'))) 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 ('%A3102Y3873%')) OR FALSE) OR (unaccent ("product_template"."condensed_internal_ref"::text) ilike unaccent ('%A3102Y3873%')))))) AND (("product_template"."company_id" in (1)) OR "product_template"."company_id" IS NULL) ORDER BY COALESCE("product_template__name"."value", "product_template"."name") LIMIT 80;
Date: 2024-10-14 13:20:01 Duration: 2s107ms
4 710ms 1s832ms 884ms 810 11m56s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where (("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Oct 14 07 3 2s287ms 762ms 08 259 3m45s 872ms 09 152 2m16s 899ms 10 60 53s377ms 889ms 11 110 1m48s 989ms 12 19 15s197ms 799ms 13 39 33s497ms 858ms 14 56 48s511ms 866ms 15 112 1m32s 826ms -
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 ('%%CRT%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%CRT%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%CRT%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 12:53:17 Duration: 1s832ms
-
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 ('%%n2505531x%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%n250-55-31x%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%n250-55-31x%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 15:52:25 Duration: 1s673ms
-
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 ('%%47697%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%47697%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%47697%'))) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 13:01:15 Duration: 1s620ms
5 698ms 2s473ms 875ms 3,317 48m25s select product_product.id from "product_product" left join "product_template" AS "product_product__product_tmpl_id" on ("product_product"."product_tmpl_id" = "product_product__product_tmpl_id"."id") left join "ir_translation" AS "product_product__product_tmpl_id__name" on ("product_product__product_tmpl_id"."id" = "product_product__product_tmpl_id__name"."res_id" and "product_product__product_tmpl_id__name"."type" = ? and "product_product__product_tmpl_id__name"."name" = ? and "product_product__product_tmpl_id__name"."lang" = ? and "product_product__product_tmpl_id__name"."value" != ?) where ((("product_product"."active" = true) and (((unaccent ("product_product"."condensed_internal_ref"::text) ilike unaccent (?)) or (unaccent ("product_product"."default_code"::text) ilike unaccent (?))) or unaccent (coalesce("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent (?))) and ("product_product__product_tmpl_id"."sale_ok" is not null and "product_product__product_tmpl_id"."sale_ok" != false)) and (("product_product__product_tmpl_id"."company_id" in (...)) or "product_product__product_tmpl_id"."company_id" is null) order by product_product.default_code, product_product.condensed_internal_ref;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Oct 14 05 10 7s371ms 737ms 06 39 28s948ms 742ms 07 164 2m6s 773ms 08 444 6m41s 903ms 09 478 7m30s 942ms 10 436 6m31s 896ms 11 431 6m38s 924ms 12 195 2m37s 808ms 13 318 4m30s 850ms 14 298 4m21s 876ms 15 248 3m29s 844ms 16 196 2m37s 802ms 17 18 13s528ms 751ms 18 8 6s232ms 779ms 19 34 25s652ms 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 ('%%nt3030st%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030st%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030st%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s473ms
-
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 ('%%th8rj%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%th8-r-j%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%th8-r-j%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 17:26:26 Duration: 2s425ms
-
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 ('%%nt3030std%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%nt3030std-%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%nt3030std-%'))) AND ("product_product__product_tmpl_id"."sale_ok" IS NOT NULL and "product_product__product_tmpl_id"."sale_ok" != false)) AND (("product_product__product_tmpl_id"."company_id" in (1)) OR "product_product__product_tmpl_id"."company_id" IS NULL) ORDER BY product_product.default_code, product_product.condensed_internal_ref;
Date: 2024-10-14 19:54:00 Duration: 2s356ms
6 697ms 2s470ms 864ms 647 9m19s 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 #6
Day Hour Count Duration Avg duration Oct 14 07 2 1s502ms 751ms 08 12 11s162ms 930ms 09 41 42s717ms 1s41ms 10 83 1m26s 1s39ms 11 132 1m58s 894ms 12 6 4s471ms 745ms 13 120 1m37s 811ms 14 40 35s578ms 889ms 15 50 40s449ms 808ms 16 31 24s476ms 789ms 17 130 1m37s 751ms -
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 ('%%tledp%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%tled-p%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%tled-p%'))) 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-10-14 17:16:31 Duration: 2s470ms
-
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 ('%%tledpc%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%tled-pc%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%tled-pc%'))) 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-10-14 17:16:32 Duration: 2s330ms
-
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 ('%%500%%')) OR (unaccent ("product_product"."default_code"::text) ilike unaccent ('%500%'))) OR unaccent (COALESCE("product_product__product_tmpl_id__name"."value", "product_product__product_tmpl_id"."name")) ilike unaccent ('%500%'))) 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-10-14 14:23:12 Duration: 2s164ms
7 487ms 1s753ms 591ms 2,535 24m59s 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 Oct 14 21 1 503ms 503ms 03 10 5s169ms 516ms 04 6 3s58ms 509ms 05 4 2s92ms 523ms 06 20 10s113ms 505ms 07 177 1m34s 534ms 08 401 4m3s 606ms 09 366 3m51s 633ms 10 297 3m7s 630ms 11 256 2m37s 615ms 12 181 1m44s 577ms 13 284 2m43s 577ms 14 231 2m11s 567ms 15 125 1m10s 567ms 16 131 1m10s 536ms 17 41 20s793ms 507ms 18 4 2s20ms 505ms -
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 17:19:17 Duration: 1s753ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.assets_backend.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-764e508/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 16:24:49 Duration: 1s653ms
-
SELECT "ir_attachment".id FROM "ir_attachment" WHERE (("ir_attachment"."res_field" IS NULL AND (unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-%/web.report_assets_common.js'))) AND (NOT ((unaccent ("ir_attachment"."url"::text) like unaccent ('/web/content/%-904d16a/%%%'))))) ORDER BY "ir_attachment"."id" DESC;
Date: 2024-10-14 14:13:45 Duration: 1s585ms
8 378ms 1s890ms 420ms 7,351 51m27s 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 #8
Day Hour Count Duration Avg duration Oct 14 22 171 1m6s 391ms 23 213 1m24s 394ms 04 2 831ms 415ms 06 40 15s754ms 393ms 07 207 1m23s 401ms 08 871 6m14s 430ms 09 780 5m42s 439ms 10 977 6m59s 429ms 11 666 4m47s 431ms 12 535 3m40s 411ms 13 763 5m19s 418ms 14 772 5m21s 417ms 15 824 5m36s 408ms 16 382 2m35s 407ms 17 133 52s817ms 397ms 19 15 5s869ms 391ms -
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 12:56:26 Duration: 1s890ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 19:07:09 Duration: 1s838ms
-
select id, product_id, warehouse_id, loc_check_qty, COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0) as corrected_loc_check_qty from product_warehouse_inventory where loc_check_qty != (COALESCE(qty_available, 0) + COALESCE(qty_on_order, 0) - COALESCE(qty_reserve, 0)) AND company_id = 1;
Date: 2024-10-14 15:22:53 Duration: 1s711ms
9 298ms 2s551ms 376ms 7,353 46m10s 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 #9
Day Hour Count Duration Avg duration Oct 14 22 171 55s263ms 323ms 23 213 1m9s 324ms 04 2 674ms 337ms 06 40 12s969ms 324ms 07 207 1m10s 339ms 08 871 5m45s 396ms 09 780 5m22s 413ms 10 977 6m22s 391ms 11 667 4m22s 394ms 12 535 3m11s 358ms 13 764 4m46s 375ms 14 772 4m52s 378ms 15 824 4m53s 355ms 16 382 2m15s 355ms 17 133 43s824ms 329ms 19 15 4s978ms 331ms -
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 12:46:17 Duration: 2s551ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 19:10:34 Duration: 1s555ms
-
SELECT pwi.id AS pwi_id, pwi.loc_check_qty AS src_loc_check_qty, pwi.rep_loc_check_qty AS ex_rep_loc_check_qty, sw.id AS replenish_wh_id, COALESCE(rep_pwi.loc_check_qty, 0) AS rep_loc_check_qty FROM product_warehouse_inventory pwi JOIN stock_warehouse sw ON sw.branch_id = pwi.replenish_branch_id LEFT JOIN product_warehouse_inventory rep_pwi ON rep_pwi.warehouse_id = sw.id AND rep_pwi.product_id = pwi.product_id WHERE pwi.replenish_branch_id IS NOT NULL and pwi.rep_loc_check_qty != (pwi.loc_check_qty + COALESCE(rep_pwi.loc_check_qty, 0));
Date: 2024-10-14 20:10:27 Duration: 1s529ms
10 168ms 2s 224ms 5,190 19m27s select coalesce(sum(pwi.max_product_uom_qty), ?) as tmq from forecasted_data fd inner join item_supply_plan as isp on isp.id = fd.item_supply_plan_id inner join product_warehouse_inventory pwi on fd.product_id = pwi.product_id and isp.branch_id = pwi.replenish_branch_id where isp.id = ? and fd.product_id = ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Oct 14 21 36 6s551ms 181ms 22 145 26s239ms 180ms 23 132 23s637ms 179ms 08 165 40s987ms 248ms 09 809 3m14s 240ms 10 358 1m23s 232ms 11 1,168 4m31s 232ms 12 324 1m10s 217ms 13 255 56s968ms 223ms 14 647 2m26s 226ms 15 623 2m16s 219ms 16 507 1m46s 209ms 17 21 3s988ms 189ms -
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 = 53739 and fd.product_id = 209279;
Date: 2024-10-14 14:44:54 Duration: 2s
-
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 = 53643 and fd.product_id = 257839;
Date: 2024-10-14 19:39:17 Duration: 1s179ms
-
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 = 53633 and fd.product_id = 210051;
Date: 2024-10-14 16:00:19 Duration: 1s82ms
11 127ms 2s293ms 206ms 118,101 6h46m9s 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 #11
Day Hour Count Duration Avg duration Oct 14 20 2,182 5m17s 145ms 21 2,291 5m32s 145ms 22 2,326 5m53s 152ms 23 2,149 5m30s 153ms 00 2,226 5m19s 143ms 01 2,118 5m15s 149ms 02 2,120 5m13s 147ms 03 2,158 5m20s 148ms 04 2,341 5m50s 149ms 05 2,530 6m24s 152ms 06 2,723 6m57s 153ms 07 4,913 13m14s 161ms 08 8,236 35m34s 259ms 09 9,266 35m30s 229ms 10 9,340 39m10s 251ms 11 9,297 34m25s 222ms 12 9,000 37m36s 250ms 13 8,977 33m59s 227ms 14 9,072 32m36s 215ms 15 8,251 33m31s 243ms 16 5,506 18m10s 197ms 17 3,933 10m37s 161ms 18 3,827 9m47s 153ms 19 3,319 9m18s 168ms -
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_990"', '["pointspring_master","calendar.alarm",19528]', '["pointspring_master","mail.channel",74]', '["pointspring_master","mail.channel",75]', '["pointspring_master","mail.channel",76]', '["pointspring_master","mail.channel",77]', '["pointspring_master","mail.channel",339]', '["pointspring_master","mail.channel",473]', '["pointspring_master","mail.channel",639]', '["pointspring_master","res.partner",19528]', '["pointspring_master","ir.needaction",19528]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s293ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 14:22:17') 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-10-14 14:23:10 Duration: 2s262ms
-
SELECT "bus_bus".id FROM "bus_bus" WHERE (("bus_bus"."create_date" > '2024-10-14 15:59:27') AND ("bus_bus"."channel" in ('"bundle_changed"', '"notify_branch_changed_964"', '["pointspring_master","calendar.alarm",19502]', '["pointspring_master","mail.channel",151]', '["pointspring_master","mail.channel",152]', '["pointspring_master","mail.channel",153]', '["pointspring_master","mail.channel",432]', '["pointspring_master","mail.channel",599]', '["pointspring_master","mail.channel",637]', '["pointspring_master","res.partner",19502]', '["pointspring_master","ir.needaction",19502]'))) ORDER BY "bus_bus"."id";
Date: 2024-10-14 16:00:20 Duration: 2s261ms
12 167ms 1s106ms 203ms 2,410 8m10s 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 #12
Day Hour Count Duration Avg duration Oct 14 04 1 196ms 196ms 06 7 1s216ms 173ms 07 80 14s991ms 187ms 08 191 41s106ms 215ms 09 211 47s826ms 226ms 10 317 1m7s 212ms 11 340 1m12s 211ms 12 471 1m32s 195ms 13 230 46s45ms 200ms 14 384 1m13s 190ms 15 93 18s910ms 203ms 16 48 9s144ms 190ms 17 29 5s130ms 176ms 18 8 1s381ms 172ms -
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%715%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%715%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%715%')))) 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 ('%715%') OR unaccent (res_partner.display_name) ilike unaccent ('%715%') OR unaccent (res_partner.ref) ilike unaccent ('%715%') OR unaccent (res_partner.vat) ilike unaccent ('715')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%715%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:04:27 Duration: 1s106ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%I-RTV00136%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%I-RTV00136%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%I-RTV00136%')))) 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 ('%I-RTV00136%') OR unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.ref) ilike unaccent ('%I-RTV00136%') OR unaccent (res_partner.vat) ilike unaccent ('I-RTV00136')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%I-RTV00136%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 16:24:48 Duration: 1s43ms
-
SELECT res_partner.id FROM "res_partner" WHERE (("res_partner"."active" = true) AND (((unaccent ("res_partner"."name"::text) ilike unaccent ('%30454%')) OR (unaccent ("res_partner"."ref"::text) ilike unaccent ('%30454%'))) OR (unaccent ("res_partner"."display_name"::text) ilike unaccent ('%30454%')))) 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 ('%30454%') OR unaccent (res_partner.display_name) ilike unaccent ('%30454%') OR unaccent (res_partner.ref) ilike unaccent ('%30454%') OR unaccent (res_partner.vat) ilike unaccent ('30454')) -- don't panic, trust postgres bitmap ORDER BY unaccent (res_partner.display_name) ilike unaccent ('%30454%') desc, unaccent (res_partner.display_name);
Date: 2024-10-14 19:35:50 Duration: 595ms
13 173ms 829ms 196ms 2,363 7m45s update product_warehouse_inventory set sft_stk_qty = ? where id = ( select id from product_warehouse_inventory where product_id = (?) and warehouse_id = (?));Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Oct 14 08 386 1m17s 201ms 09 1,357 4m26s 196ms 10 83 15s864ms 191ms 11 11 2s233ms 203ms 12 78 14s697ms 188ms 13 81 16s205ms 200ms 14 146 30s523ms 209ms 15 132 25s284ms 191ms 16 89 16s19ms 179ms -
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209517) and warehouse_id = (35));
Date: 2024-10-14 12:57:53 Duration: 829ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (209462) and warehouse_id = (35));
Date: 2024-10-14 12:57:52 Duration: 816ms
-
update product_warehouse_inventory set sft_stk_qty = 0 where id = ( select id from product_warehouse_inventory where product_id = (212390) and warehouse_id = (39));
Date: 2024-10-14 18:36:03 Duration: 481ms
14 169ms 928ms 195ms 4,951 16m9s update product_warehouse_inventory set qty_available = ?.? where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Oct 14 23 2 370ms 185ms 04 3 542ms 180ms 06 10 1s765ms 176ms 07 149 26s989ms 181ms 08 585 1m55s 197ms 09 875 2m57s 202ms 10 731 2m22s 195ms 11 556 1m53s 204ms 12 252 47s956ms 190ms 13 666 2m8s 192ms 14 465 1m31s 197ms 15 363 1m8s 189ms 16 231 43s147ms 186ms 17 58 10s205ms 175ms 19 5 886ms 177ms -
UPDATE product_warehouse_inventory SET qty_available = 1.0 WHERE product_id = 269438 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:51 Duration: 928ms
-
UPDATE product_warehouse_inventory SET qty_available = 434.0 WHERE product_id = 237202 AND warehouse_id = 40 AND company_id = 1;
Date: 2024-10-14 18:54:30 Duration: 845ms
-
UPDATE product_warehouse_inventory SET qty_available = 2.0 WHERE product_id = 270774 AND warehouse_id = 36 AND company_id = 1;
Date: 2024-10-14 15:11:50 Duration: 833ms
15 166ms 967ms 189ms 3,182 10m4s update product_warehouse_inventory set qty_reserve = ? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Oct 14 22 48 8s498ms 177ms 23 56 9s902ms 176ms 04 1 172ms 172ms 06 5 877ms 175ms 07 62 11s197ms 180ms 08 313 1m1s 196ms 09 527 1m44s 198ms 10 416 1m20s 193ms 11 280 53s418ms 190ms 12 120 22s275ms 185ms 13 368 1m9s 188ms 14 418 1m17s 184ms 15 311 57s3ms 183ms 16 175 33s314ms 190ms 17 82 14s347ms 174ms -
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 219680 AND warehouse_id = 42;
Date: 2024-10-14 20:01:33 Duration: 967ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 237202 AND warehouse_id = 36;
Date: 2024-10-14 12:52:25 Duration: 851ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 0 WHERE product_id = 174050 AND warehouse_id = 41;
Date: 2024-10-14 13:16:34 Duration: 718ms
16 167ms 863ms 189ms 2,585 8m8s update product_warehouse_inventory set qty_reserve = ?.? where product_id = ? and warehouse_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Oct 14 22 25 4s562ms 182ms 23 33 5s913ms 179ms 06 22 3s825ms 173ms 07 92 16s560ms 180ms 08 323 1m2s 192ms 09 275 54s235ms 197ms 10 352 1m8s 193ms 11 308 59s470ms 193ms 12 250 46s318ms 185ms 13 260 48s626ms 187ms 14 296 55s107ms 186ms 15 214 39s316ms 183ms 16 108 19s942ms 184ms 17 18 3s152ms 175ms 19 9 1s694ms 188ms -
UPDATE product_warehouse_inventory SET qty_reserve = 2.0 WHERE product_id = 239137 AND warehouse_id = 36;
Date: 2024-10-14 12:52:24 Duration: 863ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:36 Duration: 772ms
-
UPDATE product_warehouse_inventory SET qty_reserve = 6.0 WHERE product_id = 177053 AND warehouse_id = 43;
Date: 2024-10-14 14:29:37 Duration: 716ms
17 168ms 854ms 188ms 7,648 24m update product_warehouse_inventory set qty_shipped_not_invoiced = case when ?.? is not null then greatest ((?.? - ?.?) + (?.? - ?.?), ?) else greatest ((?.? - ?.?), ?) end where product_id = ? and warehouse_id = ? and company_id = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Oct 14 04 6 1s41ms 173ms 06 46 8s71ms 175ms 07 202 36s245ms 179ms 08 870 2m44s 188ms 09 1,230 3m57s 192ms 10 1,932 6m5s 189ms 11 711 2m15s 190ms 12 289 53s265ms 184ms 13 628 1m57s 186ms 14 609 1m54s 187ms 15 748 2m19s 186ms 16 260 47s202ms 181ms 17 100 17s637ms 176ms 18 2 356ms 178ms 19 15 2s631ms 175ms -
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 375.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (375.0 - 374.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 191079 and warehouse_id = 37 and company_id = 1;
Date: 2024-10-14 19:48:34 Duration: 854ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 0.0 IS NOT NULL THEN GREATEST ((2.0 - 2.0) + (0.0 - 0.0), 0) ELSE GREATEST ((2.0 - 2.0), 0) END where product_id = 262499 and warehouse_id = 42 and company_id = 1;
Date: 2024-10-14 14:07:28 Duration: 825ms
-
update product_warehouse_inventory set qty_shipped_not_invoiced = CASE WHEN 3.0 IS NOT NULL THEN GREATEST ((7.0 - 7.0) + (3.0 - 3.0), 0) ELSE GREATEST ((7.0 - 7.0), 0) END where product_id = 177857 and warehouse_id = 43 and company_id = 1;
Date: 2024-10-14 12:13:42 Duration: 666ms
18 166ms 958ms 187ms 10,156 31m44s 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 #18
Day Hour Count Duration Avg duration Oct 14 22 381 1m6s 175ms 23 503 1m28s 176ms 04 1 177ms 177ms 06 51 8s915ms 174ms 07 258 46s763ms 181ms 08 1,156 3m41s 191ms 09 1,019 3m18s 195ms 10 1,271 4m3s 191ms 11 861 2m45s 192ms 12 686 2m8s 187ms 13 923 2m53s 188ms 14 1,175 3m38s 186ms 15 1,169 3m34s 183ms 16 501 1m31s 182ms 17 176 31s334ms 178ms 19 25 4s386ms 175ms -
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(42.0, 0) + COALESCE(0.0, 0) - COALESCE(1.0, 0) WHERE product_id = 187676 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:26 Duration: 958ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(2.0, 0) + COALESCE(2.0, 0) - COALESCE(0.0, 0) WHERE product_id = 199858 AND warehouse_id = 41 AND company_id = 1;
Date: 2024-10-14 12:42:08 Duration: 813ms
-
UPDATE product_warehouse_inventory SET loc_check_qty = COALESCE(55.0, 0) + COALESCE(0.0, 0) - COALESCE(3.0, 0) WHERE product_id = 239344 AND warehouse_id = 35 AND company_id = 1;
Date: 2024-10-14 16:04:25 Duration: 804ms
19 120ms 880ms 173ms 3,533 10m14s select "product_warehouse_inventory".id from "product_warehouse_inventory" where ("product_warehouse_inventory"."product_id" in (...)) order by "product_warehouse_inventory"."warehouse_name";Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Oct 14 21 1 154ms 154ms 22 139 23s33ms 165ms 23 100 18s189ms 181ms 06 6 770ms 128ms 07 52 6s698ms 128ms 08 572 2m37s 275ms 09 532 1m27s 164ms 10 472 1m13s 156ms 11 407 1m1s 151ms 12 197 27s702ms 140ms 13 308 44s875ms 145ms 14 340 50s508ms 148ms 15 254 40s740ms 160ms 16 139 19s402ms 139ms 17 8 1s110ms 138ms 18 1 120ms 120ms 19 5 637ms 127ms -
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (224106, 223692, 223590, 223589, 222772, 222715, 222520, 222321, 222110, 222050, 221925, 221906, 221847, 221732, 221338, 221336, 221332, 247837, 264378, 224063, 249608, 222057, 221002, 223543, 220988, 222697, 222698, 220794, 222018, 221903)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:13 Duration: 880ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (209168, 210101, 210087, 210073, 209276, 263357)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 12:46:15 Duration: 877ms
-
SELECT "product_warehouse_inventory".id FROM "product_warehouse_inventory" WHERE ("product_warehouse_inventory"."product_id" in (182965, 182889, 182182, 182171, 181845, 181553, 182161, 182160, 182154)) ORDER BY "product_warehouse_inventory"."warehouse_name";
Date: 2024-10-14 19:34:58 Duration: 854ms
20 120ms 639ms 171ms 5,115 14m39s 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 #20
Day Hour Count Duration Avg duration Oct 14 07 397 55s431ms 139ms 08 471 1m14s 158ms 09 472 1m38s 208ms 10 800 2m28s 185ms 11 836 2m14s 161ms 12 545 1m24s 155ms 13 431 1m11s 166ms 14 793 2m20s 177ms 15 234 41s403ms 176ms 16 136 28s786ms 211ms -
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 208407) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '48')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 12:46:18 Duration: 639ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 237355) 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-10-14 13:51:00 Duration: 611ms
-
SELECT "sale_order_line".id FROM "sale_order_line" WHERE (((("sale_order_line"."product_id" = 199957) AND ("sale_order_line"."order_id" in ( SELECT "sale_order".id FROM "sale_order" WHERE ("sale_order"."branch_id" in ( SELECT "res_branch".id FROM "res_branch" WHERE ("res_branch"."id" = '38')))))) AND ("sale_order_line"."open_qty_fil" > 0.0)) AND (("sale_order_line"."state" not in ('draft', 'cancel')) OR "sale_order_line"."state" IS NULL)) ORDER BY "sale_order_line"."id" ASC;
Date: 2024-10-14 13:53:41 Duration: 572ms
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
- 254,251 Log entries
Events distribution
Key values
- 0 PANIC entries
- 2 FATAL entries
- 1758 ERROR entries
- 1 WARNING entries
Most Frequent Errors/Events
Key values
- 1,306 Max number of times the same event was reported
- 1,761 Total events found
Rank Times reported Error 1 1,306 ERROR: could not obtain lock on row in relation "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Oct 14 20 36 21 38 22 37 23 47 00 39 01 40 02 44 03 108 04 129 05 38 06 41 07 38 08 45 09 50 10 75 11 64 12 39 13 42 14 47 15 36 16 38 17 35 18 39 19 161 - ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
- ERROR: could not obtain lock on row in relation "ir_cron"
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=67 FOR UPDATE NOWAIT
Date: 2024-10-14 02:50:20
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=68 FOR UPDATE NOWAIT
Date: 2024-10-14 03:00:02
Statement: SELECT * FROM ir_cron WHERE numbercall != 0 AND active AND nextcall <= (now() at time zone 'UTC') AND id=87 FOR UPDATE NOWAIT
Date: 2024-10-14 03:02:05
2 413 ERROR: could not serialize access due to concurrent update
Times Reported Most Frequent Error / Event #2
Day Hour Count Oct 14 21 1 03 1 05 1 06 5 07 26 08 76 09 54 10 69 11 39 12 35 13 32 14 34 15 17 16 14 17 8 18 1 - ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
- ERROR: could not serialize access due to concurrent update
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-14 12:50:34',"last_presence"='2024-10-14 12:50:22.596743' WHERE id IN (100)
Date: 2024-10-14 12:50:34
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-14 12:52:07',"last_presence"='2024-10-14 12:51:22.714876' WHERE id IN (228)
Date: 2024-10-14 12:52:07
Statement: UPDATE "bus_presence" SET "last_poll"='2024-10-14 12:52:23' WHERE id IN (105)
Date: 2024-10-14 12:52:23
3 25 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Oct 14 07 4 08 5 09 1 10 5 12 1 13 2 14 2 15 3 16 2 - ERROR: process 245541 still waiting for ShareLock on transaction 315988958 after 1000.049 ms
- ERROR: process 3430870 still waiting for ShareLock on transaction 315976841 after 1000.048 ms
- ERROR: process 3634655 still waiting for ShareLock on transaction 315978923 after 1000.052 ms
Detail: Process holding the lock: 382477. Wait queue: 245541.
Context: while updating tuple (11470,43) 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 != 1708686 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 != 1708686 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-14 12:55:03
Detail: Process holding the lock: 312963. Wait queue: 3430870.
Context: while updating tuple (11086,7) in relation "account_move"
Statement: 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 != 1708478 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 != 1708478 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-14 12:32:43
Detail: Process holding the lock: 335426. Wait queue: 3634655.
Context: while updating tuple (11154,3) in relation "account_move"
Statement: UPDATE "account_move" SET "message_main_attachment_id"=5763570,"write_uid"=1267,"write_date"=(now() at time zone 'UTC') WHERE id IN (1708527)Date: 2024-10-14 12:36:55
4 3 ERROR: could not serialize access due to concurrent delete
Times Reported Most Frequent Error / Event #4
Day Hour Count Oct 14 10 1 12 1 13 1 - ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
- ERROR: could not serialize access due to concurrent delete
Statement: DELETE FROM stock_inventory_line WHERE id IN (3087714, 3087715, 3087704, 3087710, 3087703, 3087716, 3087700, 3087701, 3087707, 3087711, 3087709, 3087708, 3087706, 3087717, 3087702, 3087705, 3087713, 3087712)
Date: 2024-10-14 14:31:42
Statement: DELETE FROM mail_message WHERE id IN (18910516, 18910515)
Date: 2024-10-14 16:20:30
Statement: DELETE FROM stock_inventory_line WHERE id IN (3087870)
Date: 2024-10-14 17:51:40
5 3 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Oct 14 07 2 10 1 - ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "website_visitor_partner_uniq"
- ERROR: duplicate key value violates unique constraint "fleet_vehicle_vin_sn_unique"
Detail: Key (partner_id)=(19528) 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'), 990, (now() at time zone 'UTC'), 990, (now() at time zone 'UTC'), '1a5a99d8e1e44cacbdff8848298a4812', true, NULL, 1, '2024-10-14 11:57:49', 'Jenny Buck', 19528, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-14 11:57:49
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'), '16af23f4ffd34d7faca23e87bf111c0e', true, NULL, 1, '2024-10-14 11:18:19', 'Scott Jenkin', 19564, 'America/New_York', 1, 1) RETURNING idDate: 2024-10-14 11:18:19
Detail: Key (vin_sn)=(33310153) already exists.
Statement: INSERT INTO "fleet_vehicle" ("id", "create_uid", "create_date", "write_uid", "write_date", "acquisition_date", "active", "brand_id", "car_value", "co2", "color", "company_id", "description", "doors", "driver_id", "first_contract_date", "fuel_type", "future_driver_id", "horsepower", "horsepower_tax", "license_plate", "location", "manager_id", "model_id", "model_vehicle_type", "model_year", "name", "net_car_value", "next_assignation_date", "odometer_unit", "power", "residual_value", "seats", "state_id", "transmission", "vehicle_unit_no", "vin_sn") VALUES (nextval('fleet_vehicle_id_seq'), 978, (now() at time zone 'UTC'), 978, (now() at time zone 'UTC'), '2024-10-14', true, 120, 0.0, 0.0, NULL, 1, NULL, 5, 39384, '2024-10-14', NULL, NULL, 0, 0.0, 'EV57904', NULL, 952, 297, 20, NULL, '155', 0.0, NULL, 'miles', 0, 0.0, 0, 3, NULL, '155', '33310153') RETURNING idDate: 2024-10-14 14:36:20
6 2 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Oct 14 10 2 - ERROR: syntax error at or near ":" at character 7
- ERROR: syntax error at or near "sq" at character 46
Statement: SELECT: command not found SELECT pg_stat_activity.pid, pg_stat_activity.query, pg_locks.locktype, pg_locks.mode, pg_locks.granted FROM pg_stat_activity JOIN pg_locks ON pg_stat_activity.pid = pg_locks.pid WHERE pg_stat_activity.query LIKE '%ir_cron%' AND pg_locks.locktype = 'relation';
Date: 2024-10-14 14:45:27
Statement: SELECT pg_terminate_backend(675625) select sq.product_id as product_id, pp.default_code as product_code, pt.name as product_name, sl.complete_name as location_name, sw.name as warehouse_name, sum(sq.quantity) as product_qty, count(sq.id) as quant_count from stock_quant as sq left join stock_location as sl on sq.location_id = sl.id left join stock_warehouse as sw on sq.warehouse_id = sw.id left join product_product as pp on sq.product_id = pp.id left join product_template as pt on pp.product_tmpl_id = pt.id where sl.usage = 'internal' and sq.move_options = 'new_product' and sq.lot_id is null group by sq.product_id, pp.default_code, pt.name, sl.complete_name, sw.name having count(sq.id) > 1;
Date: 2024-10-14 14:49:27
7 2 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #7
Day Hour Count Oct 14 10 2 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: UPDATE "edi_856_asn_header" SET "write_uid"=1,"write_date"=(now() at time zone 'UTC') WHERE id IN (4096, 4097, 4098, 4099, 4102, 4103, 4104, 4106, 4108, 4110, 4113, 4114, 4115, 4116, 4121, 4123, 4125, 4126, 4128, 4129, 4131, 4135, 4136, 4139, 4140, 4141, 4142, 4143, 4145, 4146, 4148, 4151, 4154, 4155, 4156, 4157, 4159, 4161, 4163, 4166, 4167, 4168, 4169, 4170, 4171, 4174, 4175, 4176, 4177, 4178, 4179, 4180, 4181, 4182, 4183, 4186, 4187, 4188, 4190, 4191, 4192, 4193, 4195, 4196, 4197, 4198, 4199, 4200, 4201, 4202, 4204, 4206, 4207, 4210, 4211, 4212, 4216, 4217, 4219, 4220, 4222, 4223, 4224, 4225, 4227, 4228, 4231, 4232, 4233, 4234, 4236, 4237, 4238, 4239, 4240, 4241, 4242, 4243, 4244, 4246, 4248, 4249, 4250, 4251, 4252, 4253, 4254, 4255, 4256, 4258, 4259, 4260, 4261, 4263, 4264, 4265, 4267, 4268, 4272, 4273, 4274, 4276, 4279, 4280, 4281, 4283, 4284, 4285, 4287, 4288, 4289, 4290, 4291, 4293, 4294, 4296, 4297, 4300, 4302, 4303, 4304, 4305, 4309, 4314, 4315, 4316, 4319, 4320, 4322, 4323, 4324, 4326, 4327, 4328, 4329, 4331, 4334, 4336, 4343, 4344, 4347, 4348, 4349, 4351, 4352, 4353, 4354, 4355, 4356, 4359, 4361, 4364, 4365, 4368, 4369, 4370, 4371, 4372, 4373, 4374, 4375, 4377, 4378, 4381, 4383, 4387, 4388, 4392, 4394, 4395, 4400, 4401, 4407, 4409, 4412, 4413, 4415, 4417, 4419, 4420, 4421, 4422, 4423, 4424, 4425, 4428, 4431, 4433, 4436, 4437, 4439, 4442, 4443, 4444, 4448, 4449, 4451, 4452, 4454, 4457, 4458, 4459, 4462, 4464, 4465, 4466, 4467, 4468, 4470, 4471, 4472, 4473, 4475, 4478, 4480, 4482, 4485, 4487, 4488, 4490, 4491, 4492, 4496, 4497, 4499, 4501, 4505, 4506, 4508, 4509, 4510, 4511, 4512, 4513, 4514, 4515, 4516, 4517, 4518, 4519, 4520, 4521, 4522, 4523, 4526, 4528, 4529, 4531, 4535, 4537, 4539, 4542, 4543, 4544, 4545, 4547, 4548, 4549, 4550, 4553, 4555, 4556, 4557, 2886, 2888, 2889, 2890, 2891, 2892, 2895, 2896, 2897, 2898, 2899, 2900, 2902, 2903, 2904, 2905, 2906, 2908, 2913, 2914, 2915, 2916, 2917, 2918, 2922, 2923, 2925, 2928, 2929, 2931, 2933, 2934, 2935, 2937, 2941, 2942, 2944, 2946, 2950, 2952, 2953, 2955, 2957, 2961, 2962, 2967, 2968, 2969, 2970, 2971, 2973, 2974, 2975, 2976, 2977, 2978, 2980, 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2994, 2995, 2997, 3002, 3003, 3005, 3006, 3008, 3009, 3011, 3012, 3013, 3014, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3025, 3027, 3028, 3029, 3031, 3032, 3034, 3036, 3037, 3039, 3040, 3041, 3043, 3044, 3045, 3046, 3047, 3048, 3050, 3052, 3053, 3054, 3056, 3057, 3059, 3060, 3061, 3062, 3064, 3066, 3068, 3069, 3071, 3072, 3075, 3076, 3078, 3079, 3080, 3083, 3087, 3089, 3090, 3091, 3092, 3093, 3097, 3098, 3099, 3100, 3104, 3105, 3106, 3108, 3109, 3111, 3112, 3113, 3114, 3116, 3117, 3118, 3119, 3120, 3124, 3126, 3130, 3131, 3132, 3136, 3138, 3139, 3141, 3142, 3143, 3145, 3147, 3149, 3150, 3153, 3154, 3157, 3158, 3160, 3161, 3164, 3168, 3172, 3174, 3175, 3176, 3179, 3180, 3181, 3182, 3183, 3186, 3187, 3188, 3191, 3192, 3193, 3195, 3196, 3198, 3199, 3200, 3202, 3203, 3204, 3206, 3209, 3210, 3212, 3214, 3216, 3217, 3220, 3221, 3222, 3223, 3227, 3228, 3229, 3232, 3233, 3235, 3236, 3238, 3243, 3244, 3245, 3246, 3247, 3248, 3249, 3251, 3252, 3253, 3254, 3256, 3257, 3258, 3260, 3261, 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3271, 3272, 3275, 3279, 3281, 3282, 3283, 3284, 3293, 3294, 3295, 3296, 3298, 3300, 3301, 3305, 3306, 3308, 3309, 3311, 3312, 3314, 3315, 3316, 3322, 3323, 3325, 3326, 3329, 3331, 3332, 3333, 3335, 3336, 3337, 3338, 3340, 3341, 3347, 3349, 3353, 3354, 3355, 3356, 3357, 3360, 3362, 3363, 3364, 3365, 3367, 3368, 3371, 3372, 3373, 3375, 3377, 3378, 3379, 3380, 3385, 3389, 3392, 3393, 3395, 3396, 3398, 3400, 3401, 3402, 3403, 3404, 3406, 3408, 3409, 3412, 3413, 3414, 3416, 3417, 3418, 3419, 3420, 3422, 3423, 3425, 3429, 3430, 3431, 3432, 3433, 3435, 3436, 3437, 3438, 3439, 3440, 3441, 3443, 3444, 3447, 3448, 3450, 3454, 3457, 3458, 3459, 3461, 3463, 3464, 3465, 3466, 3467, 3469, 3473, 3475, 3476, 3480, 3481, 3483, 3484, 3486, 3487, 3489, 3490, 3492, 3494, 3495, 3496, 3497, 3500, 3501, 3502, 3505, 3507, 3508, 3509, 3510, 3511, 3512, 3513, 3515, 3517, 3518, 3519, 3523, 3524, 3525, 3527, 3528, 3531, 3532, 3533, 3534, 3535, 3536, 3537, 3538, 3539, 3540, 3541, 3542, 3543, 3545, 3548, 3551, 3552, 3553, 3554, 3555, 3556, 3557, 3558, 3559, 3560, 3561, 3562, 3563, 3564, 3567, 3568, 3573, 3574, 3577, 3579, 3582, 3583, 3584, 3586, 3588, 3589, 3591, 3592, 3593, 3594, 3595, 3596, 3597, 3599, 3600, 3602, 3603, 3606, 3608, 3613, 3615, 3616, 3617, 3618, 3620, 3621, 3622, 3624, 3628, 3629, 3630, 3631, 3632, 3633, 3634, 3635, 3636, 3639, 3644, 3646, 3648, 3651, 3652, 3654, 3655, 3656, 3660, 3662, 3663, 3664, 3665, 3667, 3673, 3674, 3675, 3678, 3680, 3681, 3682, 3683, 3686, 3687, 3690, 3691, 3697, 3698, 3700, 3701, 3702, 3703, 3704, 3706, 3708, 3709, 3711, 3713, 3714, 3716, 3717, 3719, 3721, 3722, 3723, 3729, 3730, 3731, 3732, 3735, 3736, 3738, 3739, 3740, 3741, 3744, 3746, 3747, 3748, 3750, 3752, 3755, 3756, 3757, 3758, 3759, 3760, 3761, 3762, 3763, 3764, 3765, 3767, 3769, 3771, 3772, 3775, 3778, 3779, 3780, 3784, 3787, 3788, 3790, 3791, 3792, 3793, 3795, 3797, 3800, 3802, 3804, 3805, 3807, 3808, 3810, 3814, 3815, 3818, 3821, 3824, 3829, 3830, 3834, 3835, 3836, 3838, 3840, 3841, 3842, 3843, 3844, 3845, 3847, 3848, 3849, 3851, 3853, 3855, 3856, 3857, 3859, 3861, 3864, 3867, 3869, 3871, 3872, 3874, 3875, 3879, 3880, 3881, 3882, 3885, 3886, 3888, 3889, 3890, 3891, 3894, 3895, 3898, 3899, 3901, 3902, 3905, 3906, 3907, 3908, 3909, 3911, 3914, 3915, 3917, 3918, 3920, 3921, 3922, 3923, 3927, 3928, 3929, 3931, 3933, 3934, 3935, 3936, 3937, 3941, 3944, 3946, 3947, 3949, 3950, 3951, 3952, 3953, 3954, 3956, 3959, 3961, 3962, 3964, 3971, 3973, 3976, 3979, 3981, 3983, 3985, 3989, 3990, 3991, 3992, 3995, 3997, 3998, 3999, 4002, 4003, 4006, 4008, 4011, 4012, 4013, 4014, 4015, 4016, 4017, 4019, 4020, 4021, 4022, 4024, 4025, 4028, 4029, 4030, 4031, 4032, 4034, 4036, 4041, 4044, 4045, 4050, 4051, 4053, 4055, 4058, 4059, 4061, 4062, 4066, 4067, 4068, 4069, 4071, 4072, 4074, 4075, 4076, 4077, 4079, 4080, 4084, 4085, 4087, 4088, 4092, 4093)
Date: 2024-10-14 14:57:07
Statement: SELECT "account_move"."id" as "id", "account_move"."name" as "name", "account_move"."date" as "date", "account_move"."ref" as "ref", "account_move"."narration" as "narration", "account_move"."posted_before" as "posted_before", "account_move"."move_type" as "move_type", "account_move"."to_check" as "to_check", "account_move"."journal_id" as "journal_id", "account_move"."company_id" as "company_id", "account_move"."currency_id" as "currency_id", "account_move"."partner_id" as "partner_id", "account_move"."is_move_sent" as "is_move_sent", "account_move"."partner_bank_id" as "partner_bank_id", "account_move"."payment_reference" as "payment_reference", "account_move"."payment_id" as "payment_id", "account_move"."statement_line_id" as "statement_line_id", "account_move"."amount_untaxed" as "amount_untaxed", "account_move"."amount_tax" as "amount_tax", "account_move"."amount_total" as "amount_total", "account_move"."amount_residual" as "amount_residual", "account_move"."amount_untaxed_signed" as "amount_untaxed_signed", "account_move"."amount_tax_signed" as "amount_tax_signed", "account_move"."amount_total_signed" as "amount_total_signed", "account_move"."amount_residual_signed" as "amount_residual_signed", "account_move"."payment_state" as "payment_state", "account_move"."tax_cash_basis_rec_id" as "tax_cash_basis_rec_id", "account_move"."tax_cash_basis_move_id" as "tax_cash_basis_move_id", "account_move"."auto_post" as "auto_post", "account_move"."reversed_entry_id" as "reversed_entry_id", "account_move"."fiscal_position_id" as "fiscal_position_id", "account_move"."invoice_user_id" as "invoice_user_id", "account_move"."invoice_date" as "invoice_date", "account_move"."invoice_date_due" as "invoice_date_due", "account_move"."invoice_origin" as "invoice_origin", "account_move"."invoice_incoterm_id" as "invoice_incoterm_id", "account_move"."qr_code_method" as "qr_code_method", "account_move"."invoice_source_email" as "invoice_source_email", "account_move"."invoice_partner_display_name" as "invoice_partner_display_name", "account_move"."invoice_cash_rounding_id" as "invoice_cash_rounding_id", "account_move"."secure_sequence_number" as "secure_sequence_number", "account_move"."inalterable_hash" as "inalterable_hash", "account_move"."payment_state_before_switch" as "payment_state_before_switch", "account_move"."preferred_payment_method_id" as "preferred_payment_method_id", "account_move"."debit_origin_id" as "debit_origin_id", "account_move"."duplicated_vendor_ref" as "duplicated_vendor_ref", "account_move"."extract_state" as "extract_state", "account_move"."extract_status_code" as "extract_status_code", "account_move"."extract_remote_id" as "extract_remote_id", "account_move"."sequence_generated" as "sequence_generated", "account_move"."stock_move_id" as "stock_move_id", "account_move"."release_to_pay" as "release_to_pay", "account_move"."release_to_pay_manual" as "release_to_pay_manual", "account_move"."force_release_to_pay" as "force_release_to_pay", "account_move"."transfer_model_id" as "transfer_model_id", "account_move"."tax_closing_end_date" as "tax_closing_end_date", "account_move"."tax_report_control_error" as "tax_report_control_error", "account_move"."team_id" as "team_id", "account_move"."partner_shipping_id" as "partner_shipping_id", "account_move"."asset_id" as "asset_id", "account_move"."asset_remaining_value" as "asset_remaining_value", "account_move"."asset_depreciated_value" as "asset_depreciated_value", "account_move"."asset_manually_modified" as "asset_manually_modified", "account_move"."asset_value_change" as "asset_value_change", "account_move"."website_id" as "website_id", "account_move"."state" as "state", "account_move"."branch_id" as "branch_id", "account_move"."auto_reconcile" as "auto_reconcile", "account_move"."branch_name" as "branch_name", "account_move"."invoice_action" as "invoice_action", "account_move"."sign_amount_total" as "sign_amount_total", "account_move"."sign_amount_residual" as "sign_amount_residual", "account_move"."sign_amount_untaxed" as "sign_amount_untaxed", "account_move"."invoice_part_id" as "invoice_part_id", "account_move"."invoice_product_qty" as "invoice_product_qty", "account_move"."balance_entry" as "balance_entry", "account_move"."to_check_negative" as "to_check_negative", "account_move"."non_inventory_entry" as "non_inventory_entry", "account_move"."direct_order" as "direct_order", "account_move"."warranty_invoice" as "warranty_invoice", "account_move"."email_send_eod" as "email_send_eod", "account_move"."email_sent" as "email_sent", "account_move"."payment_details" as "payment_details", "account_move"."payment_details_compute" as "payment_details_compute", "account_move"."carrier_id" as "carrier_id", "account_move"."order_type" as "order_type", "account_move"."paid_by_vc" as "paid_by_vc", "account_move"."expense_choice" as "expense_choice", "account_move"."cash_tendered" as "cash_tendered", "account_move"."change_amount" as "change_amount", "account_move"."open_invoice" as "open_invoice", "account_move"."commercial_partner_id" as "commercial_partner_id", "account_move"."partner_address_type" as "partner_address_type", "account_move"."from_ar" as "from_ar", "account_move"."invoice_payment_term_id" as "invoice_payment_term_id", "account_move"."related_payment_id" as "related_payment_id", "account_move"."discount_amount_applied" as "discount_amount_applied", "account_move"."invoice_origin_new" as "invoice_origin_new", "account_move"."edi_split_lock" as "edi_split_lock", "account_move"."is_edi_bill" as "is_edi_bill", "account_move"."edi_done_date" as "edi_done_date", "account_move"."edi_billed" as "edi_billed", "account_move"."edi_810_id" as "edi_810_id", "account_move"."campaign_id" as "campaign_id", "account_move"."source_id" as "source_id", "account_move"."medium_id" as "medium_id", "account_move"."message_main_attachment_id" as "message_main_attachment_id", "account_move"."access_token" as "access_token", "account_move"."sequence_prefix" as "sequence_prefix", "account_move"."sequence_number" as "sequence_number", "account_move"."create_uid" as "create_uid", "account_move"."create_date" as "create_date", "account_move"."write_uid" as "write_uid", "account_move"."write_date" as "write_date" FROM "account_move" WHERE "account_move".id IN (1709319)
Date: 2024-10-14 14:23:41
8 2 FATAL: terminating connection due to administrator command
Times Reported Most Frequent Error / Event #8
Day Hour Count Oct 14 10 2 9 2 ERROR: column "..." does not exist
Times Reported Most Frequent Error / Event #9
Day Hour Count Oct 14 10 2 - ERROR: column "running" does not exist at character 29
Statement: SELECT * FROM ir_cron WHERE running = TRUE;
Date: 2024-10-14 14:41:53
10 1 ERROR: deadlock detected
Times Reported Most Frequent Error / Event #10
Day Hour Count Oct 14 07 1 - ERROR: deadlock detected
Detail: Process 3711528 waits for ShareLock on transaction 315959456; blocked by process 3682141. Process 3682141 waits for ShareLock on transaction 315959453; blocked by process 3711528. Process 3711528: DELETE FROM sale_order_line WHERE id IN (497689) Process 3682141: UPDATE "sale_order_line" SET "price_tax"=0.0,"price_total"='64.88',"write_uid"=1151,"write_date"=(now() at time zone 'UTC') WHERE id IN (497689)
Context: while deleting tuple (1696,179) in relation "account_tax_sale_order_line_rel" SQL statement "DELETE FROM ONLY "public"."account_tax_sale_order_line_rel" WHERE $1 OPERATOR(pg_catalog.=) "sale_order_line_id""
Hint: See server log for query details.
Statement: DELETE FROM sale_order_line WHERE id IN (497689)Date: 2024-10-14 11:38:13
11 1 WARNING: is not a PostgreSQL server process
Times Reported Most Frequent Error / Event #11
Day Hour Count Oct 14 10 1 12 1 LOG: process ... still waiting for ExclusiveLock on tuple (...) of relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #12
Day Hour Count Oct 14 08 1 - ERROR: process 380358 still waiting for ExclusiveLock on tuple (11309,8) of relation 42418 of database 65946 after 1000.066 ms
Detail: Process holding the lock: 361380. Wait queue: 380358.
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 != 1708617 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 != 1708617 ORDER BY id DESC LIMIT 1) ORDER BY sequence_number DESC LIMIT 1 ) RETURNING name;Date: 2024-10-14 12:47:03