-
Global information
- Generated on Fri Jul 17 23:00:41 2026
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 210,436 log entries in 40s
- Log start from 2026-07-17 07:00:01 to 2026-07-17 22:00:00
-
Overview
Global Stats
- 29 Number of unique normalized queries
- 968 Number of queries
- 8h18m44s Total query duration
- 2026-07-17 07:00:05 First query
- 2026-07-17 21:53:02 Last query
- 2 queries/s at 2026-07-17 08:21:13 Query peak
- 8h18m44s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 8h18m44s Execute total duration
- 615 Number of events
- 11 Number of unique normalized events
- 546 Max number of times the same event was reported
- 0 Number of cancellation
- 49,211 Total number of automatic vacuums
- 141 Total number of automatic analyzes
- 2,598 Number temporary file
- 315.05 MiB Max size of temporary file
- 23.41 MiB Average size of temporary file
- 10,574 Total number of sessions
- 24 sessions at 2026-07-17 20:00:02 Session peak
- 4d1h36m46s Total duration of sessions
- 33s233ms Average duration of sessions
- 0 Average queries per session
- 2s830ms Average queries duration per session
- 30s402ms Average idle time per session
- 10,570 Total number of connections
- 10 connections/s at 2026-07-17 15:50:04 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 08:21:13 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 10:49:23 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-17 09:22:36 Date
Queries duration
Key values
- 8h18m44s 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
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 68 0ms 2m56s 30s391ms 2m7s 2m25s 4m7s 08 65 0ms 2m25s 30s272ms 2m6s 2m22s 2m25s 09 63 0ms 2m58s 31s541ms 2m8s 2m27s 4m8s 10 68 0ms 2m25s 30s272ms 2m10s 2m51s 3m33s 11 66 0ms 2m52s 30s24ms 2m10s 3m29s 4m3s 12 63 0ms 2m24s 30s426ms 2m11s 3m32s 3m36s 13 63 0ms 2m53s 31s95ms 2m11s 2m23s 4m4s 14 63 0ms 2m24s 32s63ms 2m10s 2m52s 3m30s 15 65 0ms 2m51s 30s383ms 2m8s 2m21s 4m2s 16 63 0ms 2m28s 32s187ms 2m10s 2m28s 3m28s 17 66 0ms 2m58s 30s182ms 2m9s 2m23s 4m9s 18 63 0ms 2m25s 30s529ms 2m8s 2m25s 3m32s 19 65 0ms 2m54s 32s328ms 2m9s 3m34s 4m6s 20 63 0ms 2m25s 30s482ms 2m8s 3m28s 3m34s 21 64 0ms 2m57s 31s679ms 2m8s 2m27s 4m7s 22 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 40 0 15s800ms 35s363ms 49s458ms 1m10s 08 37 0 15s841ms 33s838ms 49s403ms 1m8s 09 37 0 15s753ms 36s942ms 39s440ms 1m8s 10 40 0 17s405ms 37s670ms 39s525ms 1m8s 11 38 0 15s86ms 34s529ms 40s21ms 1m8s 12 38 0 14s795ms 34s440ms 39s321ms 1m8s 13 38 0 15s131ms 34s892ms 40s628ms 1m8s 14 37 0 18s274ms 37s605ms 39s166ms 1m8s 15 38 0 15s457ms 37s730ms 41s154ms 1m8s 16 37 0 18s340ms 37s431ms 39s480ms 1m9s 17 38 0 15s394ms 37s806ms 41s240ms 1m8s 18 37 0 15s293ms 37s183ms 39s207ms 1m8s 19 38 0 18s305ms 37s884ms 42s424ms 1m11s 20 37 0 15s332ms 37s188ms 39s485ms 1m8s 21 38 0 15s845ms 35s198ms 42s439ms 1m8s 22 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 0 28 0 0 51s236ms 0ms 1m4s 2m25s 08 0 28 0 0 49s340ms 0ms 1m3s 2m22s 09 0 26 0 0 54s9ms 0ms 56s317ms 2m22s 10 0 28 0 0 48s654ms 0ms 56s364ms 2m23s 11 0 28 0 0 50s298ms 0ms 56s113ms 2m21s 12 0 25 0 0 54s186ms 0ms 56s697ms 2m22s 13 0 25 0 0 55s359ms 0ms 56s357ms 2m18s 14 0 26 0 0 51s685ms 0ms 56s369ms 2m21s 15 0 27 0 0 51s389ms 0ms 56s473ms 2m21s 16 0 26 0 0 51s893ms 0ms 56s572ms 2m18s 17 0 28 0 0 50s252ms 0ms 58s739ms 2m22s 18 0 26 0 0 52s211ms 0ms 56s588ms 2m23s 19 0 27 0 0 52s64ms 0ms 58s627ms 2m25s 20 0 26 0 0 52s41ms 0ms 57s91ms 2m19s 21 0 26 0 0 54s821ms 0ms 1m6s 2m27s 22 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 17 07 0 67 67.00 0.00% 08 0 64 64.00 0.00% 09 0 62 62.00 0.00% 10 0 67 67.00 0.00% 11 0 65 65.00 0.00% 12 0 62 62.00 0.00% 13 0 62 62.00 0.00% 14 0 62 62.00 0.00% 15 0 64 64.00 0.00% 16 0 62 62.00 0.00% 17 0 65 65.00 0.00% 18 0 62 62.00 0.00% 19 0 64 64.00 0.00% 20 0 62 62.00 0.00% 21 0 63 63.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jul 17 07 701 0.19/s 08 709 0.20/s 09 704 0.20/s 10 708 0.20/s 11 707 0.20/s 12 703 0.20/s 13 704 0.20/s 14 704 0.20/s 15 705 0.20/s 16 703 0.20/s 17 704 0.20/s 18 703 0.20/s 19 704 0.20/s 20 704 0.20/s 21 704 0.20/s 22 3 0.00/s Day Hour Count Average Duration Average idle time Jul 17 07 708 53s775ms 50s856ms 08 709 22s660ms 19s885ms 09 704 33s243ms 30s421ms 10 709 39s932ms 37s28ms 11 706 16s540ms 13s733ms 12 703 37s801ms 35s74ms 13 704 29s449ms 26s667ms 14 704 35s554ms 32s685ms 15 705 21s904ms 19s103ms 16 703 38s629ms 35s745ms 17 704 39s383ms 36s553ms 18 703 29s98ms 26s362ms 19 704 32s534ms 29s549ms 20 704 30s264ms 27s537ms 21 704 37s703ms 34s823ms 22 0 0ms 0ms -
Connections
Established Connections
Key values
- 10 connections Connection Peak
- 2026-07-17 15:50:04 Date
Connections per database
Key values
- etendo Main Database
- 10,570 connections Total
Connections per user
Key values
- postgres Main User
- 10,570 connections Total
-
Sessions
Simultaneous sessions
Key values
- 24 sessions Session Peak
- 2026-07-17 20:00:02 Date
Histogram of session times
Key values
- 10,413 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 10,574 sessions Total
Sessions per user
Key values
- postgres Main User
- 10,574 sessions Total
Sessions per host
Key values
- [local] Main Host
- 10,574 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 10,673 buffers Checkpoint Peak
- 2026-07-17 09:12:10 Date
- 270.047 seconds Highest write time
- 0.022 seconds Sync time
Checkpoints Wal files
Key values
- 21 files Wal files usage Peak
- 2026-07-17 21:12:21 Date
Checkpoints distance
Key values
- 670.35 Mo Distance Peak
- 2026-07-17 19:12:20 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 17 07 10,806 824.587s 0.028s 824.659s 08 285 27.216s 0.019s 27.268s 09 15,822 716.516s 0.023s 716.588s 10 1,126 112.346s 0.032s 112.409s 11 12,492 842.099s 0.038s 842.19s 12 474 45.959s 0.019s 46.015s 13 14,158 828.462s 0.025s 828.539s 14 433 47.326s 0.018s 47.381s 15 12,179 829.144s 0.032s 829.229s 16 442 49.043s 0.03s 49.106s 17 13,282 824.99s 0.027s 825.059s 18 247 23.387s 0.019s 23.437s 19 12,280 825.236s 0.035s 825.321s 20 298 28.5s 0.019s 28.558s 21 13,169 787.037s 0.03s 787.109s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 17 07 0 0 39 531 0.002s 0.011s 08 0 0 1 368 0.002s 0.012s 09 0 0 38 480 0.002s 0.011s 10 0 0 1 518 0.009s 0.012s 11 0 0 39 561 0.005s 0.012s 12 0 0 2 456 0.002s 0.012s 13 0 0 38 504 0.003s 0.012s 14 0 0 1 395 0.002s 0.012s 15 0 0 38 453 0.005s 0.012s 16 0 0 1 400 0.007s 0.012s 17 0 0 38 440 0.004s 0.011s 18 0 0 1 359 0.002s 0.012s 19 0 0 40 471 0.005s 0.012s 20 0 0 1 364 0.002s 0.012s 21 0 0 39 441 0.006s 0.01s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 17 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 Day Hour Mean distance Mean estimate Jul 17 07 57,057.91 kB 212,495.55 kB 08 1,531.50 kB 70,863.50 kB 09 56,853.09 kB 219,793.00 kB 10 1,972.50 kB 73,528.42 kB 11 53,455.50 kB 207,730.25 kB 12 1,613.67 kB 64,625.50 kB 13 51,760.50 kB 209,412.75 kB 14 1,548.50 kB 65,244.42 kB 15 52,189.75 kB 209,280.83 kB 16 1,541.42 kB 65,013.17 kB 17 57,083.55 kB 218,858.73 kB 18 1,498.92 kB 72,785.58 kB 19 53,987.58 kB 218,284.17 kB 20 1,571.50 kB 67,894.83 kB 21 63,113.50 kB 231,696.60 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 315.05 MiB Temp Files size Peak
- 2026-07-17 15:00:18 Date
Number of temporary files
Key values
- 20 per second Temp Files Peak
- 2026-07-17 11:45:11 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 17 07 174 3.96 GiB 23.28 MiB 08 174 3.96 GiB 23.28 MiB 09 170 3.96 GiB 23.83 MiB 10 168 3.96 GiB 24.12 MiB 11 172 3.96 GiB 23.58 MiB 12 174 3.96 GiB 23.31 MiB 13 174 3.96 GiB 23.31 MiB 14 174 3.96 GiB 23.31 MiB 15 174 3.96 GiB 23.31 MiB 16 174 3.96 GiB 23.31 MiB 17 174 3.96 GiB 23.31 MiB 18 174 3.96 GiB 23.31 MiB 19 174 3.96 GiB 23.31 MiB 20 174 3.96 GiB 23.31 MiB 21 174 3.96 GiB 23.31 MiB 22 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 900 3.41 GiB 649 B 17.20 MiB 3.87 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select o.c_order_id as referencekey_id, ad_column_identifier (?, o.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || o.documentno || ? || ri.value || ? || o_ri.documentno || ? || prod.value as description, ? as isactive, o.ad_org_id, o.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_reservation r join c_orderline ol on ol.c_orderline_id = r.c_orderline_id join c_order o on o.c_order_id = ol.c_order_id join m_reservation_stock rs on rs.m_reservation_id = r.m_reservation_id join m_attributesetinstance att on att.m_attributesetinstance_id = rs.m_attributesetinstance_id join m_refinventory ri on ri.m_refinventory_id = att.m_refinventory_id join c_order o_ri on o_ri.c_order_id = ri.em_prpp_order_id join m_product prod on prod.m_product_id = r.m_product_id where ? = ? and o_ri.c_order_id <> o.c_order_id order by ri.value) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select o.c_order_id AS referencekey_id, ad_column_identifier ('c_order', o.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'SM en pedido incorrecto, Pv: ' || o.documentno || ' SM: ' || ri.value || ' PV-SM: ' || o_ri.documentno || ' Producto: ' || prod.value AS description, 'Y' AS isActive, o.ad_org_id, o.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_reservation r join c_orderline ol on ol.c_orderline_id = r.c_orderline_id join c_order o on o.c_order_id = ol.c_order_id join m_reservation_stock rs on rs.m_reservation_id = r.m_reservation_id join m_attributesetinstance att on att.m_attributesetinstance_id = rs.m_attributesetinstance_id join m_refinventory ri on ri.m_refinventory_id = att.m_refinventory_id join c_order o_ri on o_ri.c_order_id = ri.em_prpp_order_id join m_product prod on prod.m_product_id = r.m_product_id where 1 = 1 --and r.m_reservation_id = '001B269942C1479FA446FCEC3614D5C7' and o_ri.c_order_id <> o.c_order_id order by ri.value) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:05:32 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 630 7.42 GiB 8.43 MiB 23.41 MiB 12.06 MiB select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where ? = ? and wrpprod.movementqty > ? and prod.isstocked = ? and p.processed = ? and wrphase.ma_process_id <> ? and not exists ( select ? from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:02:13 Duration: 11s255ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:02:08 Duration: 10s940ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:13 Duration: 10s906ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 397 44.84 GiB 648.00 KiB 315.05 MiB 115.66 MiB select * from ( select ;-
SELECT * FROM ( select ;
Date: 2026-07-17 07:20:27 Duration: 6s502ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select ;
Date: 2026-07-17 07:00:07 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 360 37.44 KiB 59 B 154 B 106.5 B update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select prepc_epc_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || epc || ? as description, ? as isactive, ad_org_id as ad_org_id, ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, prepc_epc_id, ?) as record_id from prepc_epc where prepc_epc_id in ( select prepc_epc_id from ( select count(?), prepc_epc_id, m_inoutline_id, m_inventoryline_id, m_productionline_id, m_movementline_id, m_internal_consumptionline_id from prepc_epctransaction pe group by prepc_epc_id, m_inoutline_id, m_inventoryline_id, m_productionline_id, m_movementline_id, m_internal_consumptionline_id having count(?) > ?) as sub)) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select prepc_epc_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Matricula ' || epc || ' está duplicada en transacciones. ' as description, 'Y' as isActive, ad_org_id as ad_org_id, ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('prepc_epc', prepc_epc_id, 'es_ES') AS RECORD_ID FROM prepc_epc WHERE prepc_epc_id IN ( SELECT prepc_epc_id FROM ( SELECT count(1), prepc_epc_id, m_inoutline_id, m_inventoryline_id, m_productionline_id, m_movementline_id, m_internal_consumptionline_id FROM prepc_epctransaction pe GROUP BY prepc_epc_id, m_inoutline_id, m_inventoryline_id, m_productionline_id, m_movementline_id, m_internal_consumptionline_id HAVING count(1) > 1) AS sub)) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:00:44 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 270 3.40 GiB 8.60 MiB 17.20 MiB 12.91 MiB select * from ( select o.c_order_id as referencekey_id, ad_column_identifier (?, o.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || o.documentno || ? || ri.value || ? || o_ri.documentno || ? || prod.value as description, ? as isactive, o.ad_org_id, o.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_reservation r join c_orderline ol on ol.c_orderline_id = r.c_orderline_id join c_order o on o.c_order_id = ol.c_order_id join m_reservation_stock rs on rs.m_reservation_id = r.m_reservation_id join m_attributesetinstance att on att.m_attributesetinstance_id = rs.m_attributesetinstance_id join m_refinventory ri on ri.m_refinventory_id = att.m_refinventory_id join c_order o_ri on o_ri.c_order_id = ri.em_prpp_order_id join m_product prod on prod.m_product_id = r.m_product_id where ? = ? and o_ri.c_order_id <> o.c_order_id order by ri.value) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);-
SELECT * FROM ( select o.c_order_id AS referencekey_id, ad_column_identifier ('c_order', o.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'SM en pedido incorrecto, Pv: ' || o.documentno || ' SM: ' || ri.value || ' PV-SM: ' || o_ri.documentno || ' Producto: ' || prod.value AS description, 'Y' AS isActive, o.ad_org_id, o.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_reservation r join c_orderline ol on ol.c_orderline_id = r.c_orderline_id join c_order o on o.c_order_id = ol.c_order_id join m_reservation_stock rs on rs.m_reservation_id = r.m_reservation_id join m_attributesetinstance att on att.m_attributesetinstance_id = rs.m_attributesetinstance_id join m_refinventory ri on ri.m_refinventory_id = att.m_refinventory_id join c_order o_ri on o_ri.c_order_id = ri.em_prpp_order_id join m_product prod on prod.m_product_id = r.m_product_id where 1 = 1 --and r.m_reservation_id = '001B269942C1479FA446FCEC3614D5C7' and o_ri.c_order_id <> o.c_order_id order by ri.value) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'FD01694F176A481CBBAFD42553B093DA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:05:30 Duration: 5s199ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select o.c_order_id AS referencekey_id, ad_column_identifier ('c_order', o.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'SM en pedido incorrecto, Pv: ' || o.documentno || ' SM: ' || ri.value || ' PV-SM: ' || o_ri.documentno || ' Producto: ' || prod.value AS description, 'Y' AS isActive, o.ad_org_id, o.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_reservation r join c_orderline ol on ol.c_orderline_id = r.c_orderline_id join c_order o on o.c_order_id = ol.c_order_id join m_reservation_stock rs on rs.m_reservation_id = r.m_reservation_id join m_attributesetinstance att on att.m_attributesetinstance_id = rs.m_attributesetinstance_id join m_refinventory ri on ri.m_refinventory_id = att.m_refinventory_id join c_order o_ri on o_ri.c_order_id = ri.em_prpp_order_id join m_product prod on prod.m_product_id = r.m_product_id where 1 = 1 --and r.m_reservation_id = '001B269942C1479FA446FCEC3614D5C7' and o_ri.c_order_id <> o.c_order_id order by ri.value) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:05:29 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 39 25.89 MiB 648.00 KiB 688.00 KiB 679.79 KiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 09:01:54 Duration: 15s309ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:41:47 Duration: 14s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:21:53 Duration: 14s773ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 1 315.05 MiB 315.05 MiB 315.05 MiB 315.05 MiB epct.prepc_epc_id as referencekey_id, ad_column_identifier (?, epct.prepc_epc_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, epct.prepc_epc_id, ?) as description, ? as isactive, pl.ad_org_id, pl.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = ? group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);-
epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:20:15 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 07:00:25 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 315.05 MiB epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 07:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 07:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 08:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 08:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 08:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 09:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 09:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 09:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 10:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 10:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 10:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 11:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 11:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 11:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 12:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 12:20:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 12:40:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 13:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 315.05 MiB SELECT * FROM ( select ;[ Date: 2026-07-17 13:20:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 65.34 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-17 14:46:57 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 65.34 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-17 14:46:57 Date
Analyzes per table
Key values
- profile.last_stat_tables_srv1 (15) Main table analyzed (database etendo)
- 141 analyzes Total
Table Number of analyzes etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.indexes_list 10 etendo.public.c_invoice 8 etendo.profile.stmt_list 7 etendo.profile.tables_list 6 etendo.pg_catalog.pg_type 5 etendo.profile.last_stat_activity_count_srv1 5 etendo.profile.last_extension_versions 4 etendo.pg_catalog.pg_attribute 4 etendo.public.ad_session 4 etendo.public.ad_process_request 3 etendo.profile.funcs_list 3 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_stat_indexes 2 etendo.profile.last_stat_slru 2 etendo.profile.sample_statements 2 etendo.public.m_stock_aux 1 etendo.public.ad_process_run 1 template1.pg_catalog.pg_shdepend 1 etendo.profile.last_stat_wal 1 etendo.public.ad_module 1 etendo.profile.sample_stat_slru 1 etendo.pg_catalog.pg_class 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_tables 1 etendo.profile.last_stat_archiver 1 etendo.profile.sample_statements_total 1 etendo.profile.last_stat_cluster 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_tables_total 1 Total 141 Vacuums per table
Key values
- pg_toast.pg_toast_989517 (901) Main table vacuumed on database etendo
- 49,211 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.pg_toast.pg_toast_989517 901 0 1,338,230 0 44 0 0 11 10 81,718 0 0 etendo.profile.sample_stat_cluster 901 0 47,522 0 76 0 0 6 1 9,402 0 0 etendo.profile.sample_statements 901 0 2,291,815 0 133 0 0 29 9 78,793 0 0 etendo.profile.sample_stat_indexes 901 0 847,359 0 109 0 0 15 0 3,495 0 0 etendo.profile.sample_stat_tablespaces 901 0 63,166 0 73 1 0 8 1 9,868 0 0 etendo.profile.stmt_list 901 0 1,902,964 0 636 0 0 30 17 140,202 0 0 etendo.profile.last_stat_activity_count_srv1 901 0 157,168 0 67 0 0 3 0 1,419 0 0 etendo.profile.sample_stat_archiver 901 0 40,669 0 72 0 0 6 0 1,398 0 0 etendo.pg_toast.pg_toast_2619 901 0 6,344,776 0 122 0 0 44 25 205,997 0 0 etendo.profile.tables_list 901 0 1,091,467 0 778 0 0 15 0 3,495 0 0 etendo.profile.sample_stat_database 901 0 149,415 0 74 0 0 8 2 17,872 0 0 etendo.profile.funcs_list 901 0 320,465 0 164 0 0 5 0 1,165 0 0 etendo.profile.indexes_list 901 0 822,904 0 402 0 0 14 3 27,274 0 0 etendo.profile.sample_stat_user_func_total 901 0 51,596 0 72 0 0 7 0 1,631 0 0 etendo.profile.sample_statements_total 901 0 99,690 0 79 0 0 7 2 17,303 0 0 etendo.profile.samples 901 0 63,819 0 63 0 0 6 0 1,398 0 0 etendo.profile.sample_stat_user_functions 901 0 289,121 0 79 0 0 15 0 3,495 0 0 etendo.pg_toast.pg_toast_989469 901 0 118,496 0 13 0 0 8 3 25,303 0 0 etendo.profile.sample_stat_slru 901 0 74,253 0 73 0 0 6 0 1,398 0 0 etendo.pg_toast.pg_toast_989809 901 0 6,013,414 0 218 0 0 1 1 8,069 0 0 etendo.profile.sample_stat_wal 901 0 46,081 0 72 0 0 6 0 1,398 0 0 etendo.profile.sample_stat_tables 901 0 4,562,709 0 306 0 0 15 0 3,495 0 0 etendo.profile.sample_stat_tables_total 901 0 208,216 0 75 0 0 9 3 26,109 0 0 etendo.profile.sample_stat_indexes_total 901 0 86,957 0 72 0 0 7 0 1,631 0 0 etendo.pg_catalog.pg_depend 900 0 354,148 0 334 0 421,200 514 158 1,371,122 0 0 etendo.profile.last_stat_wal 900 0 45,783 0 59 0 0 0 0 0 0 0 template1.pg_catalog.pg_shdepend 900 0 206,901 0 234 0 0 119 97 779,283 0 0 etendo.public.ad_process_run 900 0 14,423,319 0 1,017 0 0 368 175 1,446,959 0 0 etendo.public.ad_pinstance 900 1 70,850 0 3 0 0 8 1 8,721 0 0 etendo.profile.servers 900 0 81,240 0 59 0 0 0 0 0 0 0 etendo.pg_catalog.pg_attribute 900 0 1,602,613 0 355 0 683,100 414 121 1,063,494 0 0 etendo.public.m_stock_aux 900 1 108,277 0 4 0 0 9 2 16,994 0 0 etendo.public.ad_session_usage_audit 900 0 192,604 0 22 0 0 11 5 41,913 0 0 postgres.pg_catalog.pg_shdepend 900 0 208,863 0 102 0 0 112 95 755,316 0 0 etendo.pg_catalog.pg_class 900 0 676,368 0 156 0 0 111 96 781,575 0 0 etendo.public.ad_process_request 900 0 11,013,869 0 840 0 0 43 28 233,120 0 0 etendo.public.ad_system 900 0 42,458 0 3 0 0 0 0 0 0 0 etendo.public.ad_session 900 0 211,136 0 177 0 0 8 8 65,512 0 0 etendo.profile.last_extension_versions 900 0 105,949 0 65 0 0 2 2 16,354 0 0 etendo.public.ad_sequence 900 0 94,536 0 3 0 0 0 0 0 0 0 etendo.profile.last_stat_cluster 900 0 46,519 0 59 0 0 0 0 0 0 0 etendo.profile.last_stat_archiver 900 0 43,060 0 61 0 0 1 1 8,177 0 0 etendo.profile.last_stat_slru 899 0 74,001 0 62 0 0 1 1 8,177 0 0 template0.pg_catalog.pg_shdepend 899 0 205,850 0 152 0 0 132 98 775,556 0 0 etendo.pg_catalog.pg_type 899 0 484,422 0 303 0 61,132 165 100 834,445 0 0 etendo.pg_catalog.pg_shdepend 899 0 195,720 0 96 0 0 111 96 791,943 0 0 etendo.public.ad_module 898 0 1,223,008 0 1 0 0 1 1 8,157 0 0 etendo.profile.last_stat_user_functions_srv1 893 0 12,764,376 0 648 0 0 30 0 14,190 0 0 etendo.profile.last_stat_tablespaces_srv1 892 0 57,341 0 71 0 0 15 0 7,095 0 0 etendo.profile.last_stat_database_srv1 892 0 144,324 0 64 0 0 15 0 7,095 0 0 etendo.pg_catalog.pg_statistic 871 0 24,379,725 0 1,032 0 0 54 41 337,310 0 0 etendo.profile.last_stat_statements_srv1 863 0 23,300,815 0 1,014 0 0 15 0 7,095 0 0 etendo.public.c_invoice 840 0 2,718,404,670 0 37,472 440 2,430,120 152 57 480,757 0 0 etendo.profile.last_stat_tables_srv1 824 0 142,595,902 0 5,041 0 0 30 3 37,086 0 0 etendo.profile.last_stat_indexes_srv1 818 0 170,774,829 0 6,502 0 0 30 3 37,086 0 0 Total 49,211 2 3,151,165,748 456,184,962 59,883 441 3,595,552 2,752 1,266 10,607,860 0 0 Vacuum throughput per table
Key values
- public.c_invoice (45286.48) Max CPU elapsed for vacuum on database etendo
- unknown (0 ms) Max I/O read time for vacuum on database etendo
- unknown (0 ms) Max I/O write time for vacuum on database etendo
I/O timing (ms) CPU (s) Table read write elapsed etendo.pg_toast.pg_toast_989517 0 0 87.4299999999998 etendo.profile.sample_stat_cluster 0 0 0 etendo.profile.sample_statements 0 0 157.11 etendo.profile.sample_stat_indexes 0 0 54.8500000000003 etendo.profile.sample_stat_tablespaces 0 0 0 etendo.profile.stmt_list 0 0 125.720000000001 etendo.profile.last_stat_activity_count_srv1 0 0 6.5999999999999 etendo.profile.sample_stat_archiver 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 440.289999999998 etendo.profile.tables_list 0 0 72.22 etendo.profile.sample_stat_database 0 0 0.14 etendo.profile.funcs_list 0 0 17.2199999999997 etendo.profile.indexes_list 0 0 51.7400000000004 etendo.profile.sample_stat_user_func_total 0 0 0 etendo.profile.sample_statements_total 0 0 0 etendo.profile.samples 0 0 0 etendo.profile.sample_stat_user_functions 0 0 15.8599999999997 etendo.pg_toast.pg_toast_989469 0 0 0.02 etendo.profile.sample_stat_slru 0 0 0 etendo.pg_toast.pg_toast_989809 0 0 399.840000000001 etendo.profile.sample_stat_wal 0 0 0 etendo.profile.sample_stat_tables 0 0 323.729999999999 etendo.profile.sample_stat_tables_total 0 0 8.32999999999987 etendo.profile.sample_stat_indexes_total 0 0 0 etendo.pg_catalog.pg_depend 0 0 38.4699999999997 etendo.profile.last_stat_wal 0 0 0 template1.pg_catalog.pg_shdepend 0 0 4.18999999999996 etendo.public.ad_process_run 0 0 420.780000000002 etendo.public.ad_pinstance 0 0 0 etendo.profile.servers 0 0 0 etendo.pg_catalog.pg_attribute 0 0 111.08 etendo.public.m_stock_aux 0 0 0.01 etendo.public.ad_session_usage_audit 0 0 1.99 postgres.pg_catalog.pg_shdepend 0 0 3.08999999999998 etendo.pg_catalog.pg_class 0 0 3.25999999999998 etendo.public.ad_process_request 0 0 367.23 etendo.public.ad_system 0 0 0 etendo.public.ad_session 0 0 1.93 etendo.profile.last_extension_versions 0 0 0 etendo.public.ad_sequence 0 0 0 etendo.profile.last_stat_cluster 0 0 0 etendo.profile.last_stat_archiver 0 0 0 etendo.profile.last_stat_slru 0 0 0 template0.pg_catalog.pg_shdepend 0 0 5.87999999999992 etendo.pg_catalog.pg_type 0 0 15.1399999999998 etendo.pg_catalog.pg_shdepend 0 0 0 etendo.public.ad_module 0 0 51.1799999999998 etendo.profile.last_stat_user_functions_srv1 0 0 927.350000000001 etendo.profile.last_stat_tablespaces_srv1 0 0 0 etendo.profile.last_stat_database_srv1 0 0 0.04 etendo.pg_catalog.pg_statistic 0 0 1,015.85 etendo.profile.last_stat_statements_srv1 0 0 1,241.68 etendo.public.c_invoice 0 0 45,286.48 etendo.profile.last_stat_tables_srv1 0 0 8,956.38 etendo.profile.last_stat_indexes_srv1 0 0 12,409.65 Total 0 0 72,622.76 Tuples removed per table
Key values
- public.m_stock_aux (13) Main table with removed tuples on database etendo
- 18 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.public.m_stock_aux 900 1 13 1,278,900 1,192,500 0 42,300 etendo.public.ad_pinstance 900 1 5 624,600 529,200 0 19,800 etendo.pg_catalog.pg_depend 900 0 0 42,353,779 24,703,383 0 720,000 etendo.pg_toast.pg_toast_989517 901 0 0 5,551,761 4,630,239 0 1,309,238 etendo.profile.sample_stat_cluster 901 0 0 655,011 503,225 0 13,515 etendo.profile.sample_statements 901 0 0 55,253,246 43,085,494 0 2,216,783 etendo.profile.last_stat_slru 899 0 0 2,614,244 2,610,648 0 37,278 etendo.profile.last_stat_tablespaces_srv1 892 0 0 1,296,956 1,295,172 0 20,516 etendo.public.ad_module 898 0 0 17,245,228 16,918,356 0 1,114,598 etendo.profile.sample_stat_indexes 901 0 0 50,144,904 38,615,572 0 771,957 etendo.profile.last_stat_wal 900 0 0 654,292 653,392 0 9,900 etendo.profile.sample_stat_tablespaces 901 0 0 1,309,975 1,006,450 0 9,911 template1.pg_catalog.pg_shdepend 900 0 0 10,699,491 8,229,661 0 79,140 etendo.public.ad_process_run 900 0 0 104,620,272 88,035,315 0 7,914,972 etendo.profile.last_stat_database_srv1 892 0 0 2,593,912 2,590,344 0 108,466 etendo.profile.stmt_list 901 0 0 25,890,704 25,720,776 0 1,825,713 etendo.profile.last_stat_activity_count_srv1 901 0 0 5,687,869 5,687,869 0 139,053 etendo.profile.sample_stat_archiver 901 0 0 655,011 503,225 0 6,246 etendo.profile.last_stat_statements_srv1 863 0 0 527,726,765 527,204,706 0 23,231,346 etendo.pg_toast.pg_toast_2619 901 0 0 28,171,751 25,862,550 0 6,290,638 etendo.profile.tables_list 901 0 0 46,922,147 45,860,899 0 1,021,226 etendo.profile.sample_stat_database 901 0 0 2,620,044 2,012,900 0 105,238 etendo.profile.funcs_list 901 0 0 10,386,250 10,313,269 0 264,231 etendo.profile.servers 900 0 0 655,192 654,292 0 12,600 template0.pg_catalog.pg_shdepend 899 0 0 10,687,580 8,220,464 0 79,052 etendo.pg_catalog.pg_attribute 900 0 0 87,031,411 82,354,210 0 2,296,220 etendo.profile.indexes_list 901 0 0 34,588,783 34,380,714 0 752,975 etendo.profile.sample_stat_user_func_total 901 0 0 1,310,022 1,006,450 0 11,653 etendo.profile.sample_statements_total 901 0 0 1,965,033 1,509,675 0 61,809 etendo.profile.samples 901 0 0 655,011 503,225 0 3,604 etendo.pg_catalog.pg_type 899 0 0 16,968,623 16,440,914 0 464,293 etendo.public.ad_session_usage_audit 900 0 0 3,746,405 2,326,500 0 124,247 etendo.profile.sample_stat_user_functions 901 0 0 24,787,481 19,158,588 0 232,154 etendo.pg_toast.pg_toast_989469 901 0 0 610,433 189,786 0 204,940 etendo.public.c_invoice 840 0 0 12,038,162,041 12,010,496,950 0 1,388,513,569 postgres.pg_catalog.pg_shdepend 900 0 0 10,699,492 8,229,661 0 79,140 etendo.pg_catalog.pg_class 900 0 0 13,672,193 8,386,245 0 332,100 etendo.profile.sample_stat_slru 901 0 0 2,620,044 2,012,900 0 37,361 etendo.pg_catalog.pg_statistic 871 0 0 364,031,788 353,082,502 0 21,836,547 etendo.profile.last_stat_tables_srv1 824 0 0 2,854,131,277 2,852,250,786 0 142,504,503 etendo.public.ad_process_request 900 0 0 63,225,403 61,312,063 0 6,372,030 etendo.pg_toast.pg_toast_989809 901 0 0 23,171,881 22,728,589 0 5,792,745 etendo.pg_catalog.pg_shdepend 899 0 0 10,687,562 8,220,459 0 79,052 etendo.profile.last_stat_indexes_srv1 818 0 0 4,266,904,333 4,263,998,797 0 170,676,542 etendo.profile.sample_stat_wal 901 0 0 655,011 503,225 0 9,850 etendo.profile.sample_stat_tables 901 0 0 136,990,901 104,410,998 0 4,487,169 etendo.public.ad_system 900 0 0 47,483 46,583 0 3,600 etendo.profile.last_stat_user_functions_srv1 893 0 0 395,600,925 395,088,343 0 12,721,025 etendo.public.ad_session 900 0 0 3,383,037 3,324,152 0 109,793 etendo.profile.sample_stat_tables_total 901 0 0 5,895,099 4,529,025 0 147,823 etendo.profile.last_extension_versions 900 0 0 5,234,336 5,227,136 0 71,220 etendo.profile.sample_stat_indexes_total 901 0 0 2,620,044 2,012,900 0 30,211 etendo.public.ad_sequence 900 0 0 643,500 238,500 0 19,800 etendo.profile.last_stat_cluster 900 0 0 654,292 653,392 0 13,500 etendo.profile.last_stat_archiver 900 0 0 654,292 653,392 0 6,240 Total 49,211 2 18 21,327,648,020 21,151,916,561 0 1,805,359,432 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed etendo.pg_catalog.pg_depend 900 0 0 0 etendo.pg_toast.pg_toast_989517 901 0 0 0 etendo.profile.sample_stat_cluster 901 0 0 0 etendo.profile.sample_statements 901 0 0 0 etendo.profile.last_stat_slru 899 0 0 0 etendo.profile.last_stat_tablespaces_srv1 892 0 0 0 etendo.public.ad_module 898 0 0 0 etendo.profile.sample_stat_indexes 901 0 0 0 etendo.profile.last_stat_wal 900 0 0 0 etendo.profile.sample_stat_tablespaces 901 0 0 0 template1.pg_catalog.pg_shdepend 900 0 0 0 etendo.public.ad_process_run 900 0 0 0 etendo.public.ad_pinstance 900 1 5 0 etendo.profile.last_stat_database_srv1 892 0 0 0 etendo.profile.stmt_list 901 0 0 0 etendo.profile.last_stat_activity_count_srv1 901 0 0 0 etendo.profile.sample_stat_archiver 901 0 0 0 etendo.profile.last_stat_statements_srv1 863 0 0 0 etendo.pg_toast.pg_toast_2619 901 0 0 0 etendo.profile.tables_list 901 0 0 0 etendo.profile.sample_stat_database 901 0 0 0 etendo.profile.funcs_list 901 0 0 0 etendo.profile.servers 900 0 0 0 template0.pg_catalog.pg_shdepend 899 0 0 0 etendo.pg_catalog.pg_attribute 900 0 0 0 etendo.profile.indexes_list 901 0 0 0 etendo.profile.sample_stat_user_func_total 901 0 0 0 etendo.profile.sample_statements_total 901 0 0 0 etendo.profile.samples 901 0 0 0 etendo.public.m_stock_aux 900 1 13 0 etendo.pg_catalog.pg_type 899 0 0 0 etendo.public.ad_session_usage_audit 900 0 0 0 etendo.profile.sample_stat_user_functions 901 0 0 0 etendo.pg_toast.pg_toast_989469 901 0 0 0 etendo.public.c_invoice 840 0 0 0 postgres.pg_catalog.pg_shdepend 900 0 0 0 etendo.pg_catalog.pg_class 900 0 0 0 etendo.profile.sample_stat_slru 901 0 0 0 etendo.pg_catalog.pg_statistic 871 0 0 0 etendo.profile.last_stat_tables_srv1 824 0 0 0 etendo.public.ad_process_request 900 0 0 0 etendo.pg_toast.pg_toast_989809 901 0 0 0 etendo.pg_catalog.pg_shdepend 899 0 0 0 etendo.profile.last_stat_indexes_srv1 818 0 0 0 etendo.profile.sample_stat_wal 901 0 0 0 etendo.profile.sample_stat_tables 901 0 0 0 etendo.public.ad_system 900 0 0 0 etendo.profile.last_stat_user_functions_srv1 893 0 0 0 etendo.public.ad_session 900 0 0 0 etendo.profile.sample_stat_tables_total 901 0 0 0 etendo.profile.last_extension_versions 900 0 0 0 etendo.profile.sample_stat_indexes_total 901 0 0 0 etendo.public.ad_sequence 900 0 0 0 etendo.profile.last_stat_cluster 900 0 0 0 etendo.profile.last_stat_archiver 900 0 0 0 Total 49,211 2 18 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 17 07 3,293 11 08 3,279 10 09 3,286 9 10 3,278 10 11 3,281 14 12 3,280 8 13 3,286 11 14 3,272 5 15 3,286 13 16 3,269 9 17 3,280 8 18 3,272 6 19 3,267 9 20 3,275 9 21 3,307 9 22 0 0 - 65.34 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareUpdateExclusiveLock Main Lock Type
- 23 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 23 23s21ms 1s 1s10ms 1s select profile.take_sample ();-
SELECT profile.take_sample ();
Date: 2026-07-17 14:02:01 Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 16:02:00 Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 10:02:00 Database: etendo User: postgres Remote: [local] Application: psql
Queries that waited the most
Rank Wait time Query 1 1s10ms SELECT profile.take_sample ();[ Date: 2026-07-17 19:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
2 1s2ms SELECT profile.take_sample ();[ Date: 2026-07-17 12:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
3 1s1ms SELECT profile.take_sample ();[ Date: 2026-07-17 13:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
4 1s1ms SELECT profile.take_sample ();[ Date: 2026-07-17 08:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
5 1s SELECT profile.take_sample ();[ Date: 2026-07-17 18:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
6 1s SELECT profile.take_sample ();[ Date: 2026-07-17 17:00:06 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
7 1s SELECT profile.take_sample ();[ Date: 2026-07-17 16:00:03 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
8 1s SELECT profile.take_sample ();[ Date: 2026-07-17 16:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
9 1s SELECT profile.take_sample ();[ Date: 2026-07-17 14:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
10 1s SELECT profile.take_sample ();[ Date: 2026-07-17 21:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
11 1s SELECT profile.take_sample ();[ Date: 2026-07-17 11:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
12 1s SELECT profile.take_sample ();[ Date: 2026-07-17 19:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
13 1s SELECT profile.take_sample ();[ Date: 2026-07-17 21:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
14 1s SELECT profile.take_sample ();[ Date: 2026-07-17 17:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
15 1s SELECT profile.take_sample ();[ Date: 2026-07-17 14:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
16 1s SELECT profile.take_sample ();[ Date: 2026-07-17 20:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
17 1s SELECT profile.take_sample ();[ Date: 2026-07-17 15:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
18 1s SELECT profile.take_sample ();[ Date: 2026-07-17 07:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
19 1s SELECT profile.take_sample ();[ Date: 2026-07-17 15:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
20 1s SELECT profile.take_sample ();[ Date: 2026-07-17 18:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
-
Queries
Queries by type
Key values
- 568 Total read queries
- 400 Total write queries
Queries by database
Key values
- etendo Main database
- 968 Requests
- 8h18m44s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 953 Requests
User Request type Count Duration postgres Total 15 9m59s select 15 9m59s tad Total 953 8h8m45s select 553 2h22m46s update 400 5h45m59s Duration by user
Key values
- 8h8m45s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 9m59s select 15 9m59s tad Total 953 8h8m45s select 553 2h22m46s update 400 5h45m59s Queries by host
Key values
- 127.0.0.1 Main host
- 953 Requests
- 8h8m45s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 953 Requests
- 8h8m45s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-17 18:43:02 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 649 > 10000ms duration
Slowest individual queries
Rank Duration Query 1 2m58s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 17:04:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 2m58s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 09:04:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 2m57s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 21:04:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 2m56s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 07:04:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 2m54s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 19:04:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 2m53s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 13:04:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 2m52s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 11:04:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 2m51s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 15:04:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 2m29s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 21:23:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 2m28s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 16:03:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 2m27s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 21:43:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 2m27s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 09:23:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 2m26s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 07:23:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 20:23:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 08:43:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 10:03:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 19:43:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 18:03:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 07:43:37 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 2m25s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;[ Date: 2026-07-17 11:43:36 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h29m59s 90 2m6s 2m58s 2m19s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) where coalesce(em_pit_ppb_quantity, ?) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) and docstatus = ? and issotrx = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 6 14m20s 2m23s 08 6 13m38s 2m16s 09 6 14m18s 2m23s 10 6 13m46s 2m17s 11 6 14m18s 2m23s 12 6 13m45s 2m17s 13 6 14m13s 2m22s 14 6 13m38s 2m16s 15 6 14m9s 2m21s 16 6 13m36s 2m16s 17 6 14m15s 2m22s 18 6 13m40s 2m16s 19 6 14m15s 2m22s 20 6 13m36s 2m16s 21 6 14m23s 2m23s [ User: tad - Total duration: 3h29m59s - Times executed: 90 ]
[ Application: openbravo - Total duration: 3h29m59s - Times executed: 90 ]
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 17:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:04:24 Duration: 2m57s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 1h2m25s 90 28s54ms 1m 41s618ms update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) where coalesce(em_pit_due_amount, ?) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) and docstatus = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 6 4m8s 41s499ms 08 6 4m5s 40s959ms 09 6 4m9s 41s652ms 10 6 3m59s 39s995ms 11 6 4m10s 41s775ms 12 6 4m9s 41s575ms 13 6 4m8s 41s402ms 14 6 4m 40s162ms 15 6 4m7s 41s253ms 16 6 4m9s 41s525ms 17 6 4m12s 42s74ms 18 6 4m11s 41s992ms 19 6 4m18s 43s24ms 20 6 4m12s 42s85ms 21 6 4m19s 43s300ms [ User: tad - Total duration: 1h2m25s - Times executed: 90 ]
[ Application: openbravo - Total duration: 1h2m25s - Times executed: 90 ]
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:01:26 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:01:25 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 13:01:25 Duration: 59s656ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 51m42s 45 1m7s 1m11s 1m8s select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 3 3m27s 1m9s 08 3 3m24s 1m8s 09 3 3m28s 1m9s 10 3 3m26s 1m8s 11 3 3m28s 1m9s 12 3 3m26s 1m8s 13 3 3m27s 1m9s 14 3 3m25s 1m8s 15 3 3m27s 1m9s 16 3 3m26s 1m8s 17 3 3m27s 1m9s 18 3 3m25s 1m8s 19 3 3m28s 1m9s 20 3 3m25s 1m8s 21 3 3m27s 1m9s [ User: tad - Total duration: 51m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m42s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:04:11 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:04:13 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 11:04:05 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 51m21s 45 1m7s 1m10s 1m8s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 3 3m26s 1m8s 08 3 3m24s 1m8s 09 3 3m26s 1m8s 10 3 3m25s 1m8s 11 3 3m27s 1m9s 12 3 3m24s 1m8s 13 3 3m25s 1m8s 14 3 3m24s 1m8s 15 3 3m25s 1m8s 16 3 3m24s 1m8s 17 3 3m27s 1m9s 18 3 3m24s 1m8s 19 3 3m26s 1m8s 20 3 3m24s 1m8s 21 3 3m25s 1m8s [ User: tad - Total duration: 51m21s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m21s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:05:18 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 11:05:15 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:05:24 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 26m10s 90 16s869ms 18s522ms 17s447ms select * from ( select pp.m_productionplan_id as referencekey_id, ad_column_identifier (?, pp.m_productionplan_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, pp.ad_org_id, pp.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where ? = ? and wrphase.ma_process_id <> ? group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * ? and wrphase.quantity * sum(wrpprod.movementqty) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 07 6 1m45s 17s646ms 08 6 1m43s 17s303ms 09 6 1m45s 17s549ms 10 6 1m43s 17s260ms 11 6 1m44s 17s446ms 12 6 1m44s 17s485ms 13 6 1m44s 17s431ms 14 6 1m43s 17s278ms 15 6 1m45s 17s651ms 16 6 1m44s 17s395ms 17 6 1m45s 17s559ms 18 6 1m43s 17s266ms 19 6 1m45s 17s644ms 20 6 1m42s 17s137ms 21 6 1m45s 17s653ms [ User: tad - Total duration: 26m10s - Times executed: 90 ]
[ Application: openbravo - Total duration: 26m10s - Times executed: 90 ]
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:01:07 Duration: 18s522ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:01:01 Duration: 18s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:59 Duration: 18s382ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 9m59s 15 9s963ms 1m59s 39s966ms select profile.take_sample ();Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 07 1 13s476ms 13s476ms 08 1 10s702ms 10s702ms 09 1 10s586ms 10s586ms 10 1 1m58s 1m58s 11 1 10s363ms 10s363ms 12 1 9s963ms 9s963ms 13 1 10s162ms 10s162ms 14 1 1m59s 1m59s 15 1 11s446ms 11s446ms 16 1 1m59s 1m59s 17 1 11s256ms 11s256ms 18 1 11s82ms 11s82ms 19 1 1m58s 1m58s 20 1 12s199ms 12s199ms 21 1 11s533ms 11s533ms [ User: postgres - Total duration: 9m59s - Times executed: 15 ]
[ Application: psql - Total duration: 9m59s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 14:02:01 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 16:02:00 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 10:02:00 Duration: 1m58s Database: etendo User: postgres Remote: [local] Application: psql
7 8m49s 45 9s101ms 20s517ms 11s766ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 07 3 46s174ms 15s391ms 08 3 53s666ms 17s888ms 09 3 39s554ms 13s184ms 10 3 31s16ms 10s338ms 11 3 29s823ms 9s941ms 12 3 30s9ms 10s3ms 13 3 31s736ms 10s578ms 14 3 31s31ms 10s343ms 15 3 33s851ms 11s283ms 16 3 31s551ms 10s517ms 17 3 31s339ms 10s446ms 18 3 29s818ms 9s939ms 19 3 31s862ms 10s620ms 20 3 29s996ms 9s998ms 21 3 48s66ms 16s22ms [ User: tad - Total duration: 8m49s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m49s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:21:38 Duration: 20s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:01:39 Duration: 19s119ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:41:34 Duration: 18s913ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 8m2s 45 10s497ms 11s93ms 10s716ms select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 07 3 32s202ms 10s734ms 08 3 31s862ms 10s620ms 09 3 32s469ms 10s823ms 10 3 32s212ms 10s737ms 11 3 32s69ms 10s689ms 12 3 31s937ms 10s645ms 13 3 32s452ms 10s817ms 14 3 32s200ms 10s733ms 15 3 32s328ms 10s776ms 16 3 31s928ms 10s642ms 17 3 32s125ms 10s708ms 18 3 32s86ms 10s695ms 19 3 32s337ms 10s779ms 20 3 31s881ms 10s627ms 21 3 32s154ms 10s718ms [ User: tad - Total duration: 8m2s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m2s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:02:26 Duration: 11s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:02:49 Duration: 11s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:33 Duration: 11s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 8m 45 10s487ms 11s70ms 10s670ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 3 32s356ms 10s785ms 08 3 32s121ms 10s707ms 09 3 32s141ms 10s713ms 10 3 31s852ms 10s617ms 11 3 32s33ms 10s677ms 12 3 31s707ms 10s569ms 13 3 32s127ms 10s709ms 14 3 31s993ms 10s664ms 15 3 32s83ms 10s694ms 16 3 31s867ms 10s622ms 17 3 32s108ms 10s702ms 18 3 31s925ms 10s641ms 19 3 32s129ms 10s709ms 20 3 31s677ms 10s559ms 21 3 32s58ms 10s686ms [ User: tad - Total duration: 8m - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:02:46 Duration: 11s70ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 19:02:44 Duration: 10s983ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:02:41 Duration: 10s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 7m58s 45 9s584ms 13s177ms 10s635ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ? = ? and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 07 3 32s18ms 10s672ms 08 3 30s252ms 10s84ms 09 3 31s414ms 10s471ms 10 3 33s403ms 11s134ms 11 3 30s739ms 10s246ms 12 3 30s640ms 10s213ms 13 3 31s411ms 10s470ms 14 3 33s190ms 11s63ms 15 3 30s436ms 10s145ms 16 3 32s417ms 10s805ms 17 3 32s39ms 10s679ms 18 3 31s519ms 10s506ms 19 3 34s262ms 11s420ms 20 3 32s161ms 10s720ms 21 3 32s701ms 10s900ms [ User: tad - Total duration: 7m58s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m58s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:02:17 Duration: 13s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:02:17 Duration: 13s125ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:22 Duration: 13s72ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 7m57s 45 10s343ms 11s255ms 10s602ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where ? = ? and wrpprod.movementqty > ? and prod.isstocked = ? and p.processed = ? and wrphase.ma_process_id <> ? and not exists ( select ? from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 07 3 32s21ms 10s673ms 08 3 31s678ms 10s559ms 09 3 32s5ms 10s668ms 10 3 32s54ms 10s684ms 11 3 32s19ms 10s673ms 12 3 31s680ms 10s560ms 13 3 31s774ms 10s591ms 14 3 31s852ms 10s617ms 15 3 32s256ms 10s752ms 16 3 31s794ms 10s598ms 17 3 31s968ms 10s656ms 18 3 31s311ms 10s437ms 19 3 31s669ms 10s556ms 20 3 31s212ms 10s404ms 21 3 31s835ms 10s611ms [ User: tad - Total duration: 7m57s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m57s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:02:13 Duration: 11s255ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:02:08 Duration: 10s940ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:13 Duration: 10s906ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 7m42s 45 9s730ms 18s122ms 10s273ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = ? and sum(pp.productionqty) > wrphase.quantity) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 07 3 38s130ms 12s710ms 08 3 30s90ms 10s30ms 09 3 30s690ms 10s230ms 10 3 29s906ms 9s968ms 11 3 30s275ms 10s91ms 12 3 29s720ms 9s906ms 13 3 30s576ms 10s192ms 14 3 29s810ms 9s936ms 15 3 31s274ms 10s424ms 16 3 30s196ms 10s65ms 17 3 30s876ms 10s292ms 18 3 29s954ms 9s984ms 19 3 30s520ms 10s173ms 20 3 29s878ms 9s959ms 21 3 30s409ms 10s136ms [ User: tad - Total duration: 7m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m42s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:25 Duration: 18s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:18 Duration: 11s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:17 Duration: 10s936ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 7m33s 45 7s296ms 11s281ms 10s87ms select * from ( select ps.fin_payment_schedule_id as referencekey_id, ad_column_identifier (?, ps.fin_payment_schedule_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? || ps.amount || ? || sum(psd.amount) as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = ? group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 17 07 3 29s10ms 9s670ms 08 3 31s84ms 10s361ms 09 3 31s809ms 10s603ms 10 3 31s288ms 10s429ms 11 3 26s 8s666ms 12 3 22s93ms 7s364ms 13 3 28s512ms 9s504ms 14 3 31s118ms 10s372ms 15 3 31s740ms 10s580ms 16 3 31s177ms 10s392ms 17 3 32s145ms 10s715ms 18 3 31s377ms 10s459ms 19 3 32s309ms 10s769ms 20 3 31s427ms 10s475ms 21 3 32s824ms 10s941ms [ User: tad - Total duration: 7m33s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 45 ]
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:01:52 Duration: 11s281ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:01:53 Duration: 11s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:01:52 Duration: 11s193ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 6m25s 45 7s8ms 15s309ms 8s565ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 07 3 36s814ms 12s271ms 08 3 43s592ms 14s530ms 09 3 29s551ms 9s850ms 10 3 21s525ms 7s175ms 11 3 21s830ms 7s276ms 12 3 21s584ms 7s194ms 13 3 21s795ms 7s265ms 14 3 21s423ms 7s141ms 15 3 21s581ms 7s193ms 16 3 21s308ms 7s102ms 17 3 21s837ms 7s279ms 18 3 21s613ms 7s204ms 19 3 21s969ms 7s323ms 20 3 21s732ms 7s244ms 21 3 37s268ms 12s422ms [ User: tad - Total duration: 6m25s - Times executed: 45 ]
[ Application: openbravo - Total duration: 6m25s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 09:01:54 Duration: 15s309ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:41:47 Duration: 14s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:21:53 Duration: 14s773ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 5m53s 45 7s48ms 9s1ms 7s850ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > ? and i.issotrx = ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 07 3 24s284ms 8s94ms 08 3 23s220ms 7s740ms 09 3 23s914ms 7s971ms 10 3 22s175ms 7s391ms 11 3 24s158ms 8s52ms 12 3 23s791ms 7s930ms 13 3 23s653ms 7s884ms 14 3 22s203ms 7s401ms 15 3 23s285ms 7s761ms 16 3 22s556ms 7s518ms 17 3 23s955ms 7s985ms 18 3 23s543ms 7s847ms 19 3 23s614ms 7s871ms 20 3 24s202ms 8s67ms 21 3 24s720ms 8s240ms [ User: tad - Total duration: 5m53s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m53s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:55 Duration: 9s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:03:08 Duration: 8s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:02:50 Duration: 8s525ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 5m3s 57 5s10ms 7s822ms 5s332ms update c_orderline set em_pit_qtypending = coalesce(qtyordered - qtydelivered, ?), em_pit_qtyreserved = coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?) where c_orderline.c_orderline_id = c_orderline_id and c_orderline.m_product_id not in (...) and (em_pit_qtypending <> coalesce(qtyordered - qtydelivered, ?) or em_pit_qtyreserved <> coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?));Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 07 4 23s775ms 5s943ms 08 4 21s116ms 5s279ms 09 3 16s499ms 5s499ms 10 5 26s46ms 5s209ms 11 5 26s36ms 5s207ms 12 3 16s71ms 5s357ms 13 3 16s286ms 5s428ms 14 4 20s995ms 5s248ms 15 5 26s172ms 5s234ms 16 4 20s823ms 5s205ms 17 4 21s292ms 5s323ms 18 3 16s39ms 5s346ms 19 4 20s880ms 5s220ms 20 3 15s987ms 5s329ms 21 3 15s931ms 5s310ms [ User: tad - Total duration: 5m3s - Times executed: 57 ]
[ Application: openbravo - Total duration: 5m3s - Times executed: 57 ]
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 07:00:28 Duration: 7s822ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 09:00:14 Duration: 5s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 13:00:13 Duration: 5s676ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 4m48s 44 6s326ms 7s187ms 6s557ms select * from ( select epct.prepc_epc_id as referencekey_id, ad_column_identifier (?, epct.prepc_epc_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, epct.prepc_epc_id, ?) as description, ? as isactive, pl.ad_org_id, pl.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = ? group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 07 2 13s648ms 6s824ms 08 3 19s270ms 6s423ms 09 3 19s870ms 6s623ms 10 3 19s362ms 6s454ms 11 3 19s467ms 6s489ms 12 3 19s176ms 6s392ms 13 3 19s915ms 6s638ms 14 3 19s232ms 6s410ms 15 3 20s413ms 6s804ms 16 3 19s686ms 6s562ms 17 3 20s172ms 6s724ms 18 3 19s415ms 6s471ms 19 3 19s919ms 6s639ms 20 3 19s100ms 6s366ms 21 3 19s871ms 6s623ms [ User: tad - Total duration: 4m48s - Times executed: 44 ]
[ Application: openbravo - Total duration: 4m48s - Times executed: 44 ]
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:31 Duration: 7s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:20:29 Duration: 7s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:20:29 Duration: 7s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 4m14s 45 5s293ms 6s880ms 5s647ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 07 3 17s930ms 5s976ms 08 3 16s36ms 5s345ms 09 3 17s187ms 5s729ms 10 3 16s320ms 5s440ms 11 3 16s269ms 5s423ms 12 3 16s603ms 5s534ms 13 3 17s503ms 5s834ms 14 3 16s288ms 5s429ms 15 3 18s345ms 6s115ms 16 3 16s889ms 5s629ms 17 3 17s212ms 5s737ms 18 3 16s493ms 5s497ms 19 3 17s496ms 5s832ms 20 3 16s487ms 5s495ms 21 3 17s76ms 5s692ms [ User: tad - Total duration: 4m14s - Times executed: 45 ]
[ Application: openbravo - Total duration: 4m14s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:07 Duration: 6s880ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:06 Duration: 6s686ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:06 Duration: 6s324ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2m37s 27 5s1ms 15s195ms 5s824ms update c_invoice set em_pit_qtyinvoiced = coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?) where em_pit_qtyinvoiced <> coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 07 2 20s526ms 10s263ms 08 3 16s209ms 5s403ms 09 2 11s144ms 5s572ms 10 2 10s621ms 5s310ms 11 2 11s334ms 5s667ms 12 1 5s646ms 5s646ms 13 1 5s568ms 5s568ms 14 1 5s348ms 5s348ms 15 1 5s522ms 5s522ms 16 1 5s396ms 5s396ms 17 3 16s481ms 5s493ms 18 2 10s672ms 5s336ms 19 2 10s881ms 5s440ms 20 2 10s606ms 5s303ms 21 2 11s290ms 5s645ms [ User: tad - Total duration: 2m37s - Times executed: 27 ]
[ Application: openbravo - Total duration: 2m37s - Times executed: 27 ]
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 07:00:20 Duration: 15s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 11:00:08 Duration: 6s212ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 17:00:08 Duration: 6s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1m8s 7 5s352ms 19s922ms 9s785ms select invoice0_.c_invoice_id as c_invoic1_357_, invoice0_.ad_client_id as ad_clien2_357_, invoice0_.ad_org_id as ad_org_i3_357_, invoice0_.isactive as isactive4_357_, invoice0_.created as created5_357_, invoice0_.createdby as createdb6_357_, invoice0_.updated as updated7_357_, invoice0_.updatedby as updatedb8_357_, invoice0_.issotrx as issotrx9_357_, invoice0_.documentno as documen10_357_, invoice0_.docstatus as docstat11_357_, invoice0_.docaction as docacti12_357_, invoice0_.processing as process13_357_, invoice0_.processed as process14_357_, invoice0_.posted as posted15_357_, invoice0_.c_doctype_id as c_docty16_357_, invoice0_.c_doctypetarget_id as c_docty17_357_, invoice0_.c_order_id as c_order18_357_, invoice0_.description as descrip19_357_, invoice0_.isprinted as isprint20_357_, invoice0_.salesrep_id as salesre21_357_, invoice0_.dateinvoiced as dateinv22_357_, invoice0_.dateprinted as datepri23_357_, invoice0_.dateacct as dateacc24_357_, invoice0_.c_bpartner_id as c_bpart25_357_, invoice0_.c_bpartner_location_id as c_bpart26_357_, invoice0_.poreference as porefer27_357_, invoice0_.isdiscountprinted as isdisco28_357_, invoice0_.dateordered as dateord29_357_, invoice0_.c_currency_id as c_curre30_357_, invoice0_.c_paymentterm_id as c_payme31_357_, invoice0_.c_charge_id as c_charg32_357_, invoice0_.chargeamt as chargea33_357_, invoice0_.totallines as totalli34_357_, invoice0_.grandtotal as grandto35_357_, invoice0_.m_pricelist_id as m_price36_357_, invoice0_.istaxincluded as istaxin37_357_, invoice0_.c_campaign_id as c_campa38_357_, invoice0_.c_project_id as c_proje39_357_, invoice0_.c_activity_id as c_activ40_357_, invoice0_.createfrom as createf41_357_, invoice0_.generateto as generat42_357_, invoice0_.ad_user_id as ad_user43_357_, invoice0_.copyfrom as copyfro44_357_, invoice0_.isselfservice as isselfs45_357_, invoice0_.ad_orgtrx_id as ad_orgt46_357_, invoice0_.user1_id as user47_357_, invoice0_.user2_id as user48_357_, invoice0_.withholdingamount as withhol49_357_, invoice0_.taxdate as taxdate50_357_, invoice0_.c_withholding_id as c_withh51_357_, invoice0_.ispaid as ispaid52_357_, invoice0_.em_einv_generated as em_einv53_357_, invoice0_.totalpaid as totalpa54_357_, invoice0_.em_einv_sent as em_einv55_357_, invoice0_.outstandingamt as outstan56_357_, invoice0_.daystilldue as daystil57_357_, invoice0_.dueamt as dueamt58_357_, invoice0_.lastcalculatedondate as lastcal59_357_, invoice0_.fin_paymentmethod_id as fin_pay60_357_, invoice0_.fin_payment_priority_id as fin_pay61_357_, invoice0_.finalsettlement as finalse62_357_, invoice0_.daysoutstanding as daysout63_357_, invoice0_.percentageoverdue as percent64_357_, invoice0_.c_costcenter_id as c_costc65_357_, invoice0_.calculate_promotions as calcula66_357_, invoice0_.a_asset_id as a_asset67_357_, invoice0_.em_aprm_addpayment as em_aprm68_357_, invoice0_.iscashvat as iscashv69_357_, invoice0_.em_aprm_processinvoice as em_aprm70_357_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_357_, invoice0_.prepaymentamt as prepaym72_357_, invoice0_.createfromorders as createf73_357_, invoice0_.createfrominouts as createf74_357_, invoice0_.em_advcrm_newactivity as em_advc75_357_, invoice0_.paidamtatinvoicing as paidamt76_357_, invoice0_.bpartner_extref as bpartne77_357_, invoice0_.em_sgpcrm_securitygroups_id as em_sgpc78_357_, invoice0_.em_aeatsii_send as em_aeat79_357_, invoice0_.em_etblkp_accountingstatus as em_etbl80_357_, invoice0_.em_aeatsii_issent as em_aeat81_357_, invoice0_.em_etafdp_unvoid as em_etaf82_357_, invoice0_.em_etblkp_bulkposting as em_etbl83_357_, invoice0_.em_etpr_remove_payment as em_etpr84_357_, invoice0_.em_prsc_iscommissionable as em_prsc85_357_, invoice0_.em_aeatsii_fecha_operacion as em_aeat86_357_, invoice0_.em_aeatsii_clave_tipo as em_aeat87_357_, invoice0_.em_etinter_interco_orig as em_etin88_357_, invoice0_.em_aeatsii_motivo_rectif as em_aeat89_357_, invoice0_.em_prouti_recalculate_price as em_prou90_357_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat91_357_, invoice0_.em_ml_select_product as em_ml_s92_357_, invoice0_.em_prouti_pricecalculatetdate as em_prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.em_aeatsii_tipo_rectif as em_aeat95_357_, invoice0_.em_prouti_totalizations as em_prou96_357_, invoice0_.em_tbai_url as em_tbai97_357_, invoice0_.em_aeatsii_dua as em_aeat98_357_, invoice0_.em_tbai_xmlgenerator as em_tbai99_357_, invoice0_.em_aeatsii_fecha_dua as em_aea100_357_, invoice0_.em_tbai_signaturevalue as em_tba101_357_, invoice0_.em_aeatsii_estado as em_aea102_357_, invoice0_.em_tbai_sequence as em_tba103_357_, invoice0_.em_aeatsii_error_registral as em_aea104_357_, invoice0_.em_prsc_commissiontype as em_prs105_357_, invoice0_.em_tbai_idtbai as em_tba106_357_, invoice0_.em_aeatsii_modif as em_aea107_357_, invoice0_.em_prsc_allowcommission as em_prs108_357_, invoice0_.em_tbai_reverseinvoicecode as em_tba109_357_, invoice0_.em_aeatsii_modified as em_aea110_357_, invoice0_.em_tbai_issent as em_tba111_357_, invoice0_.em_aeatsii_description_id as em_aea112_357_, invoice0_.em_tbai_reverseinvoicetype as em_tba113_357_, invoice0_.em_aeatsii_descripcion_sii as em_aea114_357_, invoice0_.em_tbai_isreverseinvoice as em_tba115_357_, invoice0_.em_advpro2_create_from_outs as em_adv116_357_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea117_357_, invoice0_.em_tbai_invoiceseq as em_tba118_357_, invoice0_.em_aeatsii_dup as em_aea119_357_, invoice0_.em_tbai_invoicenum as em_tba120_357_, invoice0_.em_aeatsii_error_code as em_aea121_357_, invoice0_.em_aeatsii_error_msg as em_aea122_357_, invoice0_.em_aeatsii_unsubscribe as em_aea123_357_, invoice0_.em_aeatsii_pur_description_id as em_aea124_357_, invoice0_.em_fash_datevalue as em_fas125_357_, invoice0_.em_aeatsii_multi_dua as em_aea126_357_, invoice0_.em_aeatsii_ejercicio as em_aea127_357_, invoice0_.em_aeatsii_periodo as em_aea128_357_, invoice0_.em_aeatsii_autofactura as em_aea129_357_, invoice0_.em_aeatsii_invoice_id as em_aea130_357_, invoice0_.em_aeatsii_insiidate as em_aea131_357_, invoice0_.em_aeatsii_cause_exemption_id as em_aea132_357_, invoice0_.em_pit_paymentsched_duedate as em_pit133_357_, invoice0_.em_aeatsii_isauthorization as em_aea134_357_, invoice0_.em_aeatsii_authorizationno as em_aea135_357_, invoice0_.em_fshedi_function as em_fsh136_357_, invoice0_.em_fshedi_processed as em_fsh137_357_, invoice0_.em_fshedi_type as em_fsh138_357_, invoice0_.em_fshedi_sumprecion as em_fsh139_357_, invoice0_.em_fshedi_sumpreciob as em_fsh140_357_, invoice0_.em_rem_bankaccount_id as em_rem141_357_, invoice0_.em_priuti_createpurchinv as em_pri142_357_, invoice0_.em_priuti_generated as em_pri143_357_, invoice0_.em_priuti_date_complete as em_pri144_357_, invoice0_.em_tbai_issue_date as em_tba145_357_, invoice0_.em_priuti_user_complete_id as em_pri146_357_, invoice0_.em_priuti_status_of_review as em_pri147_357_, invoice0_.em_priuti_validate as em_pri148_357_, invoice0_.em_priuti_start_review as em_pri149_357_, invoice0_.em_tbai_date_operation as em_tba150_357_, invoice0_.em_tbai_voidxmlgenerator as em_tba151_357_, invoice0_.em_pit_qtyinvoiced as em_pit152_357_, invoice0_.em_pit_cancel_invdiscounts as em_pit153_357_, invoice0_.em_priuti_addlines_btn as em_pri154_357_, invoice0_.em_pruti_notsendinvoice as em_pru155_357_, invoice0_.em_pit_col_date_from as em_pit156_357_, invoice0_.em_pit_col_date_to as em_pit157_357_, invoice0_.em_pit_is_col_invoice as em_pit158_357_, invoice0_.em_pit_col_invoice_type as em_pit159_357_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 07 1 19s922ms 19s922ms 11 1 9s218ms 9s218ms 13 1 5s352ms 5s352ms 15 1 8s308ms 8s308ms 17 1 9s234ms 9s234ms 19 1 8s754ms 8s754ms 21 1 7s705ms 7s705ms [ User: tad - Total duration: 1m8s - Times executed: 7 ]
[ Application: openbravo - Total duration: 1m8s - Times executed: 7 ]
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 07:00:20 Duration: 19s922ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 17:00:09 Duration: 9s234ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 11:00:09 Duration: 9s218ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 90 3h29m59s 2m6s 2m58s 2m19s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) where coalesce(em_pit_ppb_quantity, ?) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) and docstatus = ? and issotrx = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 6 14m20s 2m23s 08 6 13m38s 2m16s 09 6 14m18s 2m23s 10 6 13m46s 2m17s 11 6 14m18s 2m23s 12 6 13m45s 2m17s 13 6 14m13s 2m22s 14 6 13m38s 2m16s 15 6 14m9s 2m21s 16 6 13m36s 2m16s 17 6 14m15s 2m22s 18 6 13m40s 2m16s 19 6 14m15s 2m22s 20 6 13m36s 2m16s 21 6 14m23s 2m23s [ User: tad - Total duration: 3h29m59s - Times executed: 90 ]
[ Application: openbravo - Total duration: 3h29m59s - Times executed: 90 ]
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 17:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:04:24 Duration: 2m57s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 90 1h2m25s 28s54ms 1m 41s618ms update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) where coalesce(em_pit_due_amount, ?) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) and docstatus = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 6 4m8s 41s499ms 08 6 4m5s 40s959ms 09 6 4m9s 41s652ms 10 6 3m59s 39s995ms 11 6 4m10s 41s775ms 12 6 4m9s 41s575ms 13 6 4m8s 41s402ms 14 6 4m 40s162ms 15 6 4m7s 41s253ms 16 6 4m9s 41s525ms 17 6 4m12s 42s74ms 18 6 4m11s 41s992ms 19 6 4m18s 43s24ms 20 6 4m12s 42s85ms 21 6 4m19s 43s300ms [ User: tad - Total duration: 1h2m25s - Times executed: 90 ]
[ Application: openbravo - Total duration: 1h2m25s - Times executed: 90 ]
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:01:26 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:01:25 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 13:01:25 Duration: 59s656ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 90 26m10s 16s869ms 18s522ms 17s447ms select * from ( select pp.m_productionplan_id as referencekey_id, ad_column_identifier (?, pp.m_productionplan_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, pp.ad_org_id, pp.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where ? = ? and wrphase.ma_process_id <> ? group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * ? and wrphase.quantity * sum(wrpprod.movementqty) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 6 1m45s 17s646ms 08 6 1m43s 17s303ms 09 6 1m45s 17s549ms 10 6 1m43s 17s260ms 11 6 1m44s 17s446ms 12 6 1m44s 17s485ms 13 6 1m44s 17s431ms 14 6 1m43s 17s278ms 15 6 1m45s 17s651ms 16 6 1m44s 17s395ms 17 6 1m45s 17s559ms 18 6 1m43s 17s266ms 19 6 1m45s 17s644ms 20 6 1m42s 17s137ms 21 6 1m45s 17s653ms [ User: tad - Total duration: 26m10s - Times executed: 90 ]
[ Application: openbravo - Total duration: 26m10s - Times executed: 90 ]
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:01:07 Duration: 18s522ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:01:01 Duration: 18s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:59 Duration: 18s382ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 57 5m3s 5s10ms 7s822ms 5s332ms update c_orderline set em_pit_qtypending = coalesce(qtyordered - qtydelivered, ?), em_pit_qtyreserved = coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?) where c_orderline.c_orderline_id = c_orderline_id and c_orderline.m_product_id not in (...) and (em_pit_qtypending <> coalesce(qtyordered - qtydelivered, ?) or em_pit_qtyreserved <> coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?));Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 4 23s775ms 5s943ms 08 4 21s116ms 5s279ms 09 3 16s499ms 5s499ms 10 5 26s46ms 5s209ms 11 5 26s36ms 5s207ms 12 3 16s71ms 5s357ms 13 3 16s286ms 5s428ms 14 4 20s995ms 5s248ms 15 5 26s172ms 5s234ms 16 4 20s823ms 5s205ms 17 4 21s292ms 5s323ms 18 3 16s39ms 5s346ms 19 4 20s880ms 5s220ms 20 3 15s987ms 5s329ms 21 3 15s931ms 5s310ms [ User: tad - Total duration: 5m3s - Times executed: 57 ]
[ Application: openbravo - Total duration: 5m3s - Times executed: 57 ]
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 07:00:28 Duration: 7s822ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 09:00:14 Duration: 5s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 13:00:13 Duration: 5s676ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 45 51m42s 1m7s 1m11s 1m8s select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 07 3 3m27s 1m9s 08 3 3m24s 1m8s 09 3 3m28s 1m9s 10 3 3m26s 1m8s 11 3 3m28s 1m9s 12 3 3m26s 1m8s 13 3 3m27s 1m9s 14 3 3m25s 1m8s 15 3 3m27s 1m9s 16 3 3m26s 1m8s 17 3 3m27s 1m9s 18 3 3m25s 1m8s 19 3 3m28s 1m9s 20 3 3m25s 1m8s 21 3 3m27s 1m9s [ User: tad - Total duration: 51m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m42s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:04:11 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:04:13 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 11:04:05 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 45 51m21s 1m7s 1m10s 1m8s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 07 3 3m26s 1m8s 08 3 3m24s 1m8s 09 3 3m26s 1m8s 10 3 3m25s 1m8s 11 3 3m27s 1m9s 12 3 3m24s 1m8s 13 3 3m25s 1m8s 14 3 3m24s 1m8s 15 3 3m25s 1m8s 16 3 3m24s 1m8s 17 3 3m27s 1m9s 18 3 3m24s 1m8s 19 3 3m26s 1m8s 20 3 3m24s 1m8s 21 3 3m25s 1m8s [ User: tad - Total duration: 51m21s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m21s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:05:18 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 11:05:15 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:05:24 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 45 8m49s 9s101ms 20s517ms 11s766ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 07 3 46s174ms 15s391ms 08 3 53s666ms 17s888ms 09 3 39s554ms 13s184ms 10 3 31s16ms 10s338ms 11 3 29s823ms 9s941ms 12 3 30s9ms 10s3ms 13 3 31s736ms 10s578ms 14 3 31s31ms 10s343ms 15 3 33s851ms 11s283ms 16 3 31s551ms 10s517ms 17 3 31s339ms 10s446ms 18 3 29s818ms 9s939ms 19 3 31s862ms 10s620ms 20 3 29s996ms 9s998ms 21 3 48s66ms 16s22ms [ User: tad - Total duration: 8m49s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m49s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:21:38 Duration: 20s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:01:39 Duration: 19s119ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:41:34 Duration: 18s913ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 45 8m2s 10s497ms 11s93ms 10s716ms select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 07 3 32s202ms 10s734ms 08 3 31s862ms 10s620ms 09 3 32s469ms 10s823ms 10 3 32s212ms 10s737ms 11 3 32s69ms 10s689ms 12 3 31s937ms 10s645ms 13 3 32s452ms 10s817ms 14 3 32s200ms 10s733ms 15 3 32s328ms 10s776ms 16 3 31s928ms 10s642ms 17 3 32s125ms 10s708ms 18 3 32s86ms 10s695ms 19 3 32s337ms 10s779ms 20 3 31s881ms 10s627ms 21 3 32s154ms 10s718ms [ User: tad - Total duration: 8m2s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m2s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:02:26 Duration: 11s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:02:49 Duration: 11s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:33 Duration: 11s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 45 8m 10s487ms 11s70ms 10s670ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 3 32s356ms 10s785ms 08 3 32s121ms 10s707ms 09 3 32s141ms 10s713ms 10 3 31s852ms 10s617ms 11 3 32s33ms 10s677ms 12 3 31s707ms 10s569ms 13 3 32s127ms 10s709ms 14 3 31s993ms 10s664ms 15 3 32s83ms 10s694ms 16 3 31s867ms 10s622ms 17 3 32s108ms 10s702ms 18 3 31s925ms 10s641ms 19 3 32s129ms 10s709ms 20 3 31s677ms 10s559ms 21 3 32s58ms 10s686ms [ User: tad - Total duration: 8m - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:02:46 Duration: 11s70ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 19:02:44 Duration: 10s983ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:02:41 Duration: 10s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 45 7m58s 9s584ms 13s177ms 10s635ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ? = ? and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 07 3 32s18ms 10s672ms 08 3 30s252ms 10s84ms 09 3 31s414ms 10s471ms 10 3 33s403ms 11s134ms 11 3 30s739ms 10s246ms 12 3 30s640ms 10s213ms 13 3 31s411ms 10s470ms 14 3 33s190ms 11s63ms 15 3 30s436ms 10s145ms 16 3 32s417ms 10s805ms 17 3 32s39ms 10s679ms 18 3 31s519ms 10s506ms 19 3 34s262ms 11s420ms 20 3 32s161ms 10s720ms 21 3 32s701ms 10s900ms [ User: tad - Total duration: 7m58s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m58s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:02:17 Duration: 13s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:02:17 Duration: 13s125ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:22 Duration: 13s72ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 45 7m57s 10s343ms 11s255ms 10s602ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where ? = ? and wrpprod.movementqty > ? and prod.isstocked = ? and p.processed = ? and wrphase.ma_process_id <> ? and not exists ( select ? from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 07 3 32s21ms 10s673ms 08 3 31s678ms 10s559ms 09 3 32s5ms 10s668ms 10 3 32s54ms 10s684ms 11 3 32s19ms 10s673ms 12 3 31s680ms 10s560ms 13 3 31s774ms 10s591ms 14 3 31s852ms 10s617ms 15 3 32s256ms 10s752ms 16 3 31s794ms 10s598ms 17 3 31s968ms 10s656ms 18 3 31s311ms 10s437ms 19 3 31s669ms 10s556ms 20 3 31s212ms 10s404ms 21 3 31s835ms 10s611ms [ User: tad - Total duration: 7m57s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m57s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:02:13 Duration: 11s255ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:02:08 Duration: 10s940ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:13 Duration: 10s906ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 45 7m42s 9s730ms 18s122ms 10s273ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = ? and sum(pp.productionqty) > wrphase.quantity) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 07 3 38s130ms 12s710ms 08 3 30s90ms 10s30ms 09 3 30s690ms 10s230ms 10 3 29s906ms 9s968ms 11 3 30s275ms 10s91ms 12 3 29s720ms 9s906ms 13 3 30s576ms 10s192ms 14 3 29s810ms 9s936ms 15 3 31s274ms 10s424ms 16 3 30s196ms 10s65ms 17 3 30s876ms 10s292ms 18 3 29s954ms 9s984ms 19 3 30s520ms 10s173ms 20 3 29s878ms 9s959ms 21 3 30s409ms 10s136ms [ User: tad - Total duration: 7m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m42s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:25 Duration: 18s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:18 Duration: 11s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:17 Duration: 10s936ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 45 7m33s 7s296ms 11s281ms 10s87ms select * from ( select ps.fin_payment_schedule_id as referencekey_id, ad_column_identifier (?, ps.fin_payment_schedule_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? || ps.amount || ? || sum(psd.amount) as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = ? group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 17 07 3 29s10ms 9s670ms 08 3 31s84ms 10s361ms 09 3 31s809ms 10s603ms 10 3 31s288ms 10s429ms 11 3 26s 8s666ms 12 3 22s93ms 7s364ms 13 3 28s512ms 9s504ms 14 3 31s118ms 10s372ms 15 3 31s740ms 10s580ms 16 3 31s177ms 10s392ms 17 3 32s145ms 10s715ms 18 3 31s377ms 10s459ms 19 3 32s309ms 10s769ms 20 3 31s427ms 10s475ms 21 3 32s824ms 10s941ms [ User: tad - Total duration: 7m33s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 45 ]
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:01:52 Duration: 11s281ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:01:53 Duration: 11s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:01:52 Duration: 11s193ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 45 6m25s 7s8ms 15s309ms 8s565ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 07 3 36s814ms 12s271ms 08 3 43s592ms 14s530ms 09 3 29s551ms 9s850ms 10 3 21s525ms 7s175ms 11 3 21s830ms 7s276ms 12 3 21s584ms 7s194ms 13 3 21s795ms 7s265ms 14 3 21s423ms 7s141ms 15 3 21s581ms 7s193ms 16 3 21s308ms 7s102ms 17 3 21s837ms 7s279ms 18 3 21s613ms 7s204ms 19 3 21s969ms 7s323ms 20 3 21s732ms 7s244ms 21 3 37s268ms 12s422ms [ User: tad - Total duration: 6m25s - Times executed: 45 ]
[ Application: openbravo - Total duration: 6m25s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 09:01:54 Duration: 15s309ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:41:47 Duration: 14s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:21:53 Duration: 14s773ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 45 5m53s 7s48ms 9s1ms 7s850ms select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > ? and i.issotrx = ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 07 3 24s284ms 8s94ms 08 3 23s220ms 7s740ms 09 3 23s914ms 7s971ms 10 3 22s175ms 7s391ms 11 3 24s158ms 8s52ms 12 3 23s791ms 7s930ms 13 3 23s653ms 7s884ms 14 3 22s203ms 7s401ms 15 3 23s285ms 7s761ms 16 3 22s556ms 7s518ms 17 3 23s955ms 7s985ms 18 3 23s543ms 7s847ms 19 3 23s614ms 7s871ms 20 3 24s202ms 8s67ms 21 3 24s720ms 8s240ms [ User: tad - Total duration: 5m53s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m53s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:55 Duration: 9s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:03:08 Duration: 8s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:02:50 Duration: 8s525ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 45 4m14s 5s293ms 6s880ms 5s647ms select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 07 3 17s930ms 5s976ms 08 3 16s36ms 5s345ms 09 3 17s187ms 5s729ms 10 3 16s320ms 5s440ms 11 3 16s269ms 5s423ms 12 3 16s603ms 5s534ms 13 3 17s503ms 5s834ms 14 3 16s288ms 5s429ms 15 3 18s345ms 6s115ms 16 3 16s889ms 5s629ms 17 3 17s212ms 5s737ms 18 3 16s493ms 5s497ms 19 3 17s496ms 5s832ms 20 3 16s487ms 5s495ms 21 3 17s76ms 5s692ms [ User: tad - Total duration: 4m14s - Times executed: 45 ]
[ Application: openbravo - Total duration: 4m14s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:07 Duration: 6s880ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:06 Duration: 6s686ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:06 Duration: 6s324ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 44 4m48s 6s326ms 7s187ms 6s557ms select * from ( select epct.prepc_epc_id as referencekey_id, ad_column_identifier (?, epct.prepc_epc_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, epct.prepc_epc_id, ?) as description, ? as isactive, pl.ad_org_id, pl.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = ? group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 07 2 13s648ms 6s824ms 08 3 19s270ms 6s423ms 09 3 19s870ms 6s623ms 10 3 19s362ms 6s454ms 11 3 19s467ms 6s489ms 12 3 19s176ms 6s392ms 13 3 19s915ms 6s638ms 14 3 19s232ms 6s410ms 15 3 20s413ms 6s804ms 16 3 19s686ms 6s562ms 17 3 20s172ms 6s724ms 18 3 19s415ms 6s471ms 19 3 19s919ms 6s639ms 20 3 19s100ms 6s366ms 21 3 19s871ms 6s623ms [ User: tad - Total duration: 4m48s - Times executed: 44 ]
[ Application: openbravo - Total duration: 4m48s - Times executed: 44 ]
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:31 Duration: 7s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:20:29 Duration: 7s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:20:29 Duration: 7s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 27 2m37s 5s1ms 15s195ms 5s824ms update c_invoice set em_pit_qtyinvoiced = coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?) where em_pit_qtyinvoiced <> coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 07 2 20s526ms 10s263ms 08 3 16s209ms 5s403ms 09 2 11s144ms 5s572ms 10 2 10s621ms 5s310ms 11 2 11s334ms 5s667ms 12 1 5s646ms 5s646ms 13 1 5s568ms 5s568ms 14 1 5s348ms 5s348ms 15 1 5s522ms 5s522ms 16 1 5s396ms 5s396ms 17 3 16s481ms 5s493ms 18 2 10s672ms 5s336ms 19 2 10s881ms 5s440ms 20 2 10s606ms 5s303ms 21 2 11s290ms 5s645ms [ User: tad - Total duration: 2m37s - Times executed: 27 ]
[ Application: openbravo - Total duration: 2m37s - Times executed: 27 ]
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 07:00:20 Duration: 15s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 11:00:08 Duration: 6s212ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 17:00:08 Duration: 6s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 15 9m59s 9s963ms 1m59s 39s966ms select profile.take_sample ();Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 07 1 13s476ms 13s476ms 08 1 10s702ms 10s702ms 09 1 10s586ms 10s586ms 10 1 1m58s 1m58s 11 1 10s363ms 10s363ms 12 1 9s963ms 9s963ms 13 1 10s162ms 10s162ms 14 1 1m59s 1m59s 15 1 11s446ms 11s446ms 16 1 1m59s 1m59s 17 1 11s256ms 11s256ms 18 1 11s82ms 11s82ms 19 1 1m58s 1m58s 20 1 12s199ms 12s199ms 21 1 11s533ms 11s533ms [ User: postgres - Total duration: 9m59s - Times executed: 15 ]
[ Application: psql - Total duration: 9m59s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 14:02:01 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 16:02:00 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 10:02:00 Duration: 1m58s Database: etendo User: postgres Remote: [local] Application: psql
20 7 1m8s 5s352ms 19s922ms 9s785ms select invoice0_.c_invoice_id as c_invoic1_357_, invoice0_.ad_client_id as ad_clien2_357_, invoice0_.ad_org_id as ad_org_i3_357_, invoice0_.isactive as isactive4_357_, invoice0_.created as created5_357_, invoice0_.createdby as createdb6_357_, invoice0_.updated as updated7_357_, invoice0_.updatedby as updatedb8_357_, invoice0_.issotrx as issotrx9_357_, invoice0_.documentno as documen10_357_, invoice0_.docstatus as docstat11_357_, invoice0_.docaction as docacti12_357_, invoice0_.processing as process13_357_, invoice0_.processed as process14_357_, invoice0_.posted as posted15_357_, invoice0_.c_doctype_id as c_docty16_357_, invoice0_.c_doctypetarget_id as c_docty17_357_, invoice0_.c_order_id as c_order18_357_, invoice0_.description as descrip19_357_, invoice0_.isprinted as isprint20_357_, invoice0_.salesrep_id as salesre21_357_, invoice0_.dateinvoiced as dateinv22_357_, invoice0_.dateprinted as datepri23_357_, invoice0_.dateacct as dateacc24_357_, invoice0_.c_bpartner_id as c_bpart25_357_, invoice0_.c_bpartner_location_id as c_bpart26_357_, invoice0_.poreference as porefer27_357_, invoice0_.isdiscountprinted as isdisco28_357_, invoice0_.dateordered as dateord29_357_, invoice0_.c_currency_id as c_curre30_357_, invoice0_.c_paymentterm_id as c_payme31_357_, invoice0_.c_charge_id as c_charg32_357_, invoice0_.chargeamt as chargea33_357_, invoice0_.totallines as totalli34_357_, invoice0_.grandtotal as grandto35_357_, invoice0_.m_pricelist_id as m_price36_357_, invoice0_.istaxincluded as istaxin37_357_, invoice0_.c_campaign_id as c_campa38_357_, invoice0_.c_project_id as c_proje39_357_, invoice0_.c_activity_id as c_activ40_357_, invoice0_.createfrom as createf41_357_, invoice0_.generateto as generat42_357_, invoice0_.ad_user_id as ad_user43_357_, invoice0_.copyfrom as copyfro44_357_, invoice0_.isselfservice as isselfs45_357_, invoice0_.ad_orgtrx_id as ad_orgt46_357_, invoice0_.user1_id as user47_357_, invoice0_.user2_id as user48_357_, invoice0_.withholdingamount as withhol49_357_, invoice0_.taxdate as taxdate50_357_, invoice0_.c_withholding_id as c_withh51_357_, invoice0_.ispaid as ispaid52_357_, invoice0_.em_einv_generated as em_einv53_357_, invoice0_.totalpaid as totalpa54_357_, invoice0_.em_einv_sent as em_einv55_357_, invoice0_.outstandingamt as outstan56_357_, invoice0_.daystilldue as daystil57_357_, invoice0_.dueamt as dueamt58_357_, invoice0_.lastcalculatedondate as lastcal59_357_, invoice0_.fin_paymentmethod_id as fin_pay60_357_, invoice0_.fin_payment_priority_id as fin_pay61_357_, invoice0_.finalsettlement as finalse62_357_, invoice0_.daysoutstanding as daysout63_357_, invoice0_.percentageoverdue as percent64_357_, invoice0_.c_costcenter_id as c_costc65_357_, invoice0_.calculate_promotions as calcula66_357_, invoice0_.a_asset_id as a_asset67_357_, invoice0_.em_aprm_addpayment as em_aprm68_357_, invoice0_.iscashvat as iscashv69_357_, invoice0_.em_aprm_processinvoice as em_aprm70_357_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_357_, invoice0_.prepaymentamt as prepaym72_357_, invoice0_.createfromorders as createf73_357_, invoice0_.createfrominouts as createf74_357_, invoice0_.em_advcrm_newactivity as em_advc75_357_, invoice0_.paidamtatinvoicing as paidamt76_357_, invoice0_.bpartner_extref as bpartne77_357_, invoice0_.em_sgpcrm_securitygroups_id as em_sgpc78_357_, invoice0_.em_aeatsii_send as em_aeat79_357_, invoice0_.em_etblkp_accountingstatus as em_etbl80_357_, invoice0_.em_aeatsii_issent as em_aeat81_357_, invoice0_.em_etafdp_unvoid as em_etaf82_357_, invoice0_.em_etblkp_bulkposting as em_etbl83_357_, invoice0_.em_etpr_remove_payment as em_etpr84_357_, invoice0_.em_prsc_iscommissionable as em_prsc85_357_, invoice0_.em_aeatsii_fecha_operacion as em_aeat86_357_, invoice0_.em_aeatsii_clave_tipo as em_aeat87_357_, invoice0_.em_etinter_interco_orig as em_etin88_357_, invoice0_.em_aeatsii_motivo_rectif as em_aeat89_357_, invoice0_.em_prouti_recalculate_price as em_prou90_357_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat91_357_, invoice0_.em_ml_select_product as em_ml_s92_357_, invoice0_.em_prouti_pricecalculatetdate as em_prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.em_aeatsii_tipo_rectif as em_aeat95_357_, invoice0_.em_prouti_totalizations as em_prou96_357_, invoice0_.em_tbai_url as em_tbai97_357_, invoice0_.em_aeatsii_dua as em_aeat98_357_, invoice0_.em_tbai_xmlgenerator as em_tbai99_357_, invoice0_.em_aeatsii_fecha_dua as em_aea100_357_, invoice0_.em_tbai_signaturevalue as em_tba101_357_, invoice0_.em_aeatsii_estado as em_aea102_357_, invoice0_.em_tbai_sequence as em_tba103_357_, invoice0_.em_aeatsii_error_registral as em_aea104_357_, invoice0_.em_prsc_commissiontype as em_prs105_357_, invoice0_.em_tbai_idtbai as em_tba106_357_, invoice0_.em_aeatsii_modif as em_aea107_357_, invoice0_.em_prsc_allowcommission as em_prs108_357_, invoice0_.em_tbai_reverseinvoicecode as em_tba109_357_, invoice0_.em_aeatsii_modified as em_aea110_357_, invoice0_.em_tbai_issent as em_tba111_357_, invoice0_.em_aeatsii_description_id as em_aea112_357_, invoice0_.em_tbai_reverseinvoicetype as em_tba113_357_, invoice0_.em_aeatsii_descripcion_sii as em_aea114_357_, invoice0_.em_tbai_isreverseinvoice as em_tba115_357_, invoice0_.em_advpro2_create_from_outs as em_adv116_357_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea117_357_, invoice0_.em_tbai_invoiceseq as em_tba118_357_, invoice0_.em_aeatsii_dup as em_aea119_357_, invoice0_.em_tbai_invoicenum as em_tba120_357_, invoice0_.em_aeatsii_error_code as em_aea121_357_, invoice0_.em_aeatsii_error_msg as em_aea122_357_, invoice0_.em_aeatsii_unsubscribe as em_aea123_357_, invoice0_.em_aeatsii_pur_description_id as em_aea124_357_, invoice0_.em_fash_datevalue as em_fas125_357_, invoice0_.em_aeatsii_multi_dua as em_aea126_357_, invoice0_.em_aeatsii_ejercicio as em_aea127_357_, invoice0_.em_aeatsii_periodo as em_aea128_357_, invoice0_.em_aeatsii_autofactura as em_aea129_357_, invoice0_.em_aeatsii_invoice_id as em_aea130_357_, invoice0_.em_aeatsii_insiidate as em_aea131_357_, invoice0_.em_aeatsii_cause_exemption_id as em_aea132_357_, invoice0_.em_pit_paymentsched_duedate as em_pit133_357_, invoice0_.em_aeatsii_isauthorization as em_aea134_357_, invoice0_.em_aeatsii_authorizationno as em_aea135_357_, invoice0_.em_fshedi_function as em_fsh136_357_, invoice0_.em_fshedi_processed as em_fsh137_357_, invoice0_.em_fshedi_type as em_fsh138_357_, invoice0_.em_fshedi_sumprecion as em_fsh139_357_, invoice0_.em_fshedi_sumpreciob as em_fsh140_357_, invoice0_.em_rem_bankaccount_id as em_rem141_357_, invoice0_.em_priuti_createpurchinv as em_pri142_357_, invoice0_.em_priuti_generated as em_pri143_357_, invoice0_.em_priuti_date_complete as em_pri144_357_, invoice0_.em_tbai_issue_date as em_tba145_357_, invoice0_.em_priuti_user_complete_id as em_pri146_357_, invoice0_.em_priuti_status_of_review as em_pri147_357_, invoice0_.em_priuti_validate as em_pri148_357_, invoice0_.em_priuti_start_review as em_pri149_357_, invoice0_.em_tbai_date_operation as em_tba150_357_, invoice0_.em_tbai_voidxmlgenerator as em_tba151_357_, invoice0_.em_pit_qtyinvoiced as em_pit152_357_, invoice0_.em_pit_cancel_invdiscounts as em_pit153_357_, invoice0_.em_priuti_addlines_btn as em_pri154_357_, invoice0_.em_pruti_notsendinvoice as em_pru155_357_, invoice0_.em_pit_col_date_from as em_pit156_357_, invoice0_.em_pit_col_date_to as em_pit157_357_, invoice0_.em_pit_is_col_invoice as em_pit158_357_, invoice0_.em_pit_col_invoice_type as em_pit159_357_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 07 1 19s922ms 19s922ms 11 1 9s218ms 9s218ms 13 1 5s352ms 5s352ms 15 1 8s308ms 8s308ms 17 1 9s234ms 9s234ms 19 1 8s754ms 8s754ms 21 1 7s705ms 7s705ms [ User: tad - Total duration: 1m8s - Times executed: 7 ]
[ Application: openbravo - Total duration: 1m8s - Times executed: 7 ]
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 07:00:20 Duration: 19s922ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 17:00:09 Duration: 9s234ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 11:00:09 Duration: 9s218ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2m6s 2m58s 2m19s 90 3h29m59s update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) where coalesce(em_pit_ppb_quantity, ?) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> ?), ?) and docstatus = ? and issotrx = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 6 14m20s 2m23s 08 6 13m38s 2m16s 09 6 14m18s 2m23s 10 6 13m46s 2m17s 11 6 14m18s 2m23s 12 6 13m45s 2m17s 13 6 14m13s 2m22s 14 6 13m38s 2m16s 15 6 14m9s 2m21s 16 6 13m36s 2m16s 17 6 14m15s 2m22s 18 6 13m40s 2m16s 19 6 14m15s 2m22s 20 6 13m36s 2m16s 21 6 14m23s 2m23s [ User: tad - Total duration: 3h29m59s - Times executed: 90 ]
[ Application: openbravo - Total duration: 3h29m59s - Times executed: 90 ]
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 17:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:04:24 Duration: 2m58s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_ppb_quantity = coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) where coalesce(em_pit_ppb_quantity, 0) <> coalesce(( select sum(msd.qtyonhand) from m_storage_detail msd join m_refinventory mr on msd.m_refinventory_id = mr.m_refinventory_id where mr.em_prpp_order_id = c_order_id and msd.m_attributesetinstance_id <> '0'), 0) and docstatus = 'CO' and issotrx = 'Y' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:04:24 Duration: 2m57s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 1m7s 1m11s 1m8s 45 51m42s select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 3 3m27s 1m9s 08 3 3m24s 1m8s 09 3 3m28s 1m9s 10 3 3m26s 1m8s 11 3 3m28s 1m9s 12 3 3m26s 1m8s 13 3 3m27s 1m9s 14 3 3m25s 1m8s 15 3 3m27s 1m9s 16 3 3m26s 1m8s 17 3 3m27s 1m9s 18 3 3m25s 1m8s 19 3 3m28s 1m9s 20 3 3m25s 1m8s 21 3 3m27s 1m9s [ User: tad - Total duration: 51m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m42s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:04:11 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:04:13 Duration: 1m11s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4901BF54C5CD48979D2C6EC4A3656095' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 11:04:05 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1m7s 1m10s 1m8s 45 51m21s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and il.m_product_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id and i.docstatus <> ? and not exists ( select ? from c_order o where o.documentno ilike ? and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 3 3m26s 1m8s 08 3 3m24s 1m8s 09 3 3m26s 1m8s 10 3 3m25s 1m8s 11 3 3m27s 1m9s 12 3 3m24s 1m8s 13 3 3m25s 1m8s 14 3 3m24s 1m8s 15 3 3m25s 1m8s 16 3 3m24s 1m8s 17 3 3m27s 1m9s 18 3 3m24s 1m8s 19 3 3m26s 1m8s 20 3 3m24s 1m8s 21 3 3m25s 1m8s [ User: tad - Total duration: 51m21s - Times executed: 45 ]
[ Application: openbravo - Total duration: 51m21s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:05:18 Duration: 1m10s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 11:05:15 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '4901BF54C5CD48979D2C6EC4A3656095' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos con producto portes e impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and il.m_product_id = '262906F973E94A86AAD7E21BABCFEAE4' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id and i.docstatus <> 'CL' and not exists ( select 1 from c_order o where o.documentno ilike '42-%' and i.c_order_id = o.c_order_id) group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:05:24 Duration: 1m9s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 28s54ms 1m 41s618ms 90 1h2m25s update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) where coalesce(em_pit_due_amount, ?) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = ? and ci.ispaid = ?), ?) and docstatus = ? and c_order.c_order_id = c_order_id;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 6 4m8s 41s499ms 08 6 4m5s 40s959ms 09 6 4m9s 41s652ms 10 6 3m59s 39s995ms 11 6 4m10s 41s775ms 12 6 4m9s 41s575ms 13 6 4m8s 41s402ms 14 6 4m 40s162ms 15 6 4m7s 41s253ms 16 6 4m9s 41s525ms 17 6 4m12s 42s74ms 18 6 4m11s 41s992ms 19 6 4m18s 43s24ms 20 6 4m12s 42s85ms 21 6 4m19s 43s300ms [ User: tad - Total duration: 1h2m25s - Times executed: 90 ]
[ Application: openbravo - Total duration: 1h2m25s - Times executed: 90 ]
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 21:01:26 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 09:01:25 Duration: 1m Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update c_order set em_pit_due_amount = coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) where coalesce(em_pit_due_amount, 0) <> coalesce(( select sum(dueamt) from c_invoice ci where ci.c_bpartner_id = c_order.c_bpartner_id and ci.issotrx = 'Y' and ci.ispaid = 'N'), 0) and docstatus = 'CO' and c_order.c_order_id = c_order_id;
Date: 2026-07-17 13:01:25 Duration: 59s656ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 9s963ms 1m59s 39s966ms 15 9m59s select profile.take_sample ();Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 07 1 13s476ms 13s476ms 08 1 10s702ms 10s702ms 09 1 10s586ms 10s586ms 10 1 1m58s 1m58s 11 1 10s363ms 10s363ms 12 1 9s963ms 9s963ms 13 1 10s162ms 10s162ms 14 1 1m59s 1m59s 15 1 11s446ms 11s446ms 16 1 1m59s 1m59s 17 1 11s256ms 11s256ms 18 1 11s82ms 11s82ms 19 1 1m58s 1m58s 20 1 12s199ms 12s199ms 21 1 11s533ms 11s533ms [ User: postgres - Total duration: 9m59s - Times executed: 15 ]
[ Application: psql - Total duration: 9m59s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 14:02:01 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 16:02:00 Duration: 1m59s Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 10:02:00 Duration: 1m58s Database: etendo User: postgres Remote: [local] Application: psql
6 16s869ms 18s522ms 17s447ms 90 26m10s select * from ( select pp.m_productionplan_id as referencekey_id, ad_column_identifier (?, pp.m_productionplan_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, pp.ad_org_id, pp.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where ? = ? and wrphase.ma_process_id <> ? group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * ? and wrphase.quantity * sum(wrpprod.movementqty) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 07 6 1m45s 17s646ms 08 6 1m43s 17s303ms 09 6 1m45s 17s549ms 10 6 1m43s 17s260ms 11 6 1m44s 17s446ms 12 6 1m44s 17s485ms 13 6 1m44s 17s431ms 14 6 1m43s 17s278ms 15 6 1m45s 17s651ms 16 6 1m44s 17s395ms 17 6 1m45s 17s559ms 18 6 1m43s 17s266ms 19 6 1m45s 17s644ms 20 6 1m42s 17s137ms 21 6 1m45s 17s653ms [ User: tad - Total duration: 26m10s - Times executed: 90 ]
[ Application: openbravo - Total duration: 26m10s - Times executed: 90 ]
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:01:07 Duration: 18s522ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:01:01 Duration: 18s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select pp.m_productionplan_id AS referencekey_id, ad_column_identifier ('m_productionplan', pp.m_productionplan_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Parte de fabricación con consumos duplicados' AS description, 'Y' AS isActive, pp.ad_org_id, pp.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product materia on materia.m_product_id = wrpprod.m_product_id left join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id left join m_production p on p.m_production_id = pp.m_production_id where 1 = 1 and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' --and materia.value = 'CANCUN_NE' --and wrphase.ma_wrphase_id = '2ABDD92A0A2843EE9DA9DC30F7784CD4' --and wr.launchdate >= to_date('01-01-2024', 'dd-MM-yyyy') group by wr.launchdate, wr.documentno, wrphase.seqno, p.documentno, pp.line, wrphase.quantity, pp.m_productionplan_id, materia.m_product_id having ( select sum(pl.movementqty) from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id and pl.m_product_id = materia.m_product_id) = wrphase.quantity * sum(wrpprod.movementqty) * 3 and wrphase.quantity * sum(wrpprod.movementqty) > 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'A44D1AB1F1DB4AEBB2FE382E435D6B34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:59 Duration: 18s382ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 9s101ms 20s517ms 11s766ms 45 8m49s select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 07 3 46s174ms 15s391ms 08 3 53s666ms 17s888ms 09 3 39s554ms 13s184ms 10 3 31s16ms 10s338ms 11 3 29s823ms 9s941ms 12 3 30s9ms 10s3ms 13 3 31s736ms 10s578ms 14 3 31s31ms 10s343ms 15 3 33s851ms 11s283ms 16 3 31s551ms 10s517ms 17 3 31s339ms 10s446ms 18 3 29s818ms 9s939ms 19 3 31s862ms 10s620ms 20 3 29s996ms 9s998ms 21 3 48s66ms 16s22ms [ User: tad - Total duration: 8m49s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m49s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:21:38 Duration: 20s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:01:39 Duration: 19s119ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '991CC9BB4C49433893DBE5EC05EEC67F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:41:34 Duration: 18s913ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 10s497ms 11s93ms 10s716ms 45 8m2s select * from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 07 3 32s202ms 10s734ms 08 3 31s862ms 10s620ms 09 3 32s469ms 10s823ms 10 3 32s212ms 10s737ms 11 3 32s69ms 10s689ms 12 3 31s937ms 10s645ms 13 3 32s452ms 10s817ms 14 3 32s200ms 10s733ms 15 3 32s328ms 10s776ms 16 3 31s928ms 10s642ms 17 3 32s125ms 10s708ms 18 3 32s86ms 10s695ms 19 3 32s337ms 10s779ms 20 3 31s881ms 10s627ms 21 3 32s154ms 10s718ms [ User: tad - Total duration: 8m2s - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m2s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:02:26 Duration: 11s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:02:49 Duration: 11s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F8AC4C4AB47D4425B5182F54CE795465' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:33 Duration: 11s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 10s487ms 11s70ms 10s670ms 45 8m update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_order_id as referencekey_id, ad_column_identifier (?, i.c_order_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where ? = ? and loc.c_country_id = ? and i.issotrx = ? and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, ?, i.c_bpartner_location_id, i.c_bpartner_location_id, null, ?) <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 3 32s356ms 10s785ms 08 3 32s121ms 10s707ms 09 3 32s141ms 10s713ms 10 3 31s852ms 10s617ms 11 3 32s33ms 10s677ms 12 3 31s707ms 10s569ms 13 3 32s127ms 10s709ms 14 3 31s993ms 10s664ms 15 3 32s83ms 10s694ms 16 3 31s867ms 10s622ms 17 3 32s108ms 10s702ms 18 3 31s925ms 10s641ms 19 3 32s129ms 10s709ms 20 3 31s677ms 10s559ms 21 3 32s58ms 10s686ms [ User: tad - Total duration: 8m - Times executed: 45 ]
[ Application: openbravo - Total duration: 8m - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:02:46 Duration: 11s70ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 19:02:44 Duration: 10s983ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'F8AC4C4AB47D4425B5182F54CE795465' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_order_id AS referencekey_id, ad_column_identifier ('c_order', i.c_order_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Pedidos de UK con impuestos incorrectos ' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_order i join c_bpartner_location bpl on bpl.c_bpartner_location_id = i.c_bpartner_location_id join c_location loc on loc.c_location_id = bpl.c_location_id join c_orderline il on il.c_order_id = i.c_order_id where 1 = 1 and loc.c_country_id = '333' and i.issotrx = 'Y' and c_gettax (il.m_product_id, i.dateordered, i.ad_org_id, '85A427B32A17462DA6C70E30AED1EB81', i.c_bpartner_location_id, i.c_bpartner_location_id, null, 'Y') <> il.c_tax_id group by i.c_order_id, i.ad_org_id, i.ad_client_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 17:02:41 Duration: 10s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 9s584ms 13s177ms 10s635ms 45 7m58s select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ? = ? and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 07 3 32s18ms 10s672ms 08 3 30s252ms 10s84ms 09 3 31s414ms 10s471ms 10 3 33s403ms 11s134ms 11 3 30s739ms 10s246ms 12 3 30s640ms 10s213ms 13 3 31s411ms 10s470ms 14 3 33s190ms 11s63ms 15 3 30s436ms 10s145ms 16 3 32s417ms 10s805ms 17 3 32s39ms 10s679ms 18 3 31s519ms 10s506ms 19 3 34s262ms 11s420ms 20 3 32s161ms 10s720ms 21 3 32s701ms 10s900ms [ User: tad - Total duration: 7m58s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m58s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:02:17 Duration: 13s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:02:17 Duration: 13s125ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura ' || i.documentno || ' con organizaciones diferentes en detalles de plan de pagos' AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where 1 = 1 and ( select count(*) from ( select distinct psd.ad_org_id from fin_payment_schedule ps join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where ps.c_invoice_id = i.c_invoice_id) a) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '65A1AABFE2A2439C9BCDF8037D6D105C' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:02:22 Duration: 13s72ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 10s343ms 11s255ms 10s602ms 45 7m57s select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where ? = ? and wrpprod.movementqty > ? and prod.isstocked = ? and p.processed = ? and wrphase.ma_process_id <> ? and not exists ( select ? from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 07 3 32s21ms 10s673ms 08 3 31s678ms 10s559ms 09 3 32s5ms 10s668ms 10 3 32s54ms 10s684ms 11 3 32s19ms 10s673ms 12 3 31s680ms 10s560ms 13 3 31s774ms 10s591ms 14 3 31s852ms 10s617ms 15 3 32s256ms 10s752ms 16 3 31s794ms 10s598ms 17 3 31s968ms 10s656ms 18 3 31s311ms 10s437ms 19 3 31s669ms 10s556ms 20 3 31s212ms 10s404ms 21 3 31s835ms 10s611ms [ User: tad - Total duration: 7m57s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m57s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:02:13 Duration: 11s255ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:02:08 Duration: 10s940ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase de OF sin P- en los partes de trabajo' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_production p join m_productionplan pp on pp.m_production_id = p.m_production_id join ma_wrphase wrphase on wrphase.ma_wrphase_id = pp.ma_wrphase_id join ma_workrequirement wr on wr.ma_workrequirement_id = wrphase.ma_workrequirement_id join ma_wrphaseproduct wrpprod on wrpprod.ma_wrphase_id = wrphase.ma_wrphase_id join m_product prod on prod.m_product_id = wrpprod.m_product_id where 1 = 1 and wrpprod.movementqty > 0 and prod.isstocked = 'Y' and p.processed = 'Y' and wrphase.ma_process_id <> '08B07C6C6B0A47DE84A14272077A8AFF' and not exists ( select 1 from m_productionline pl where pl.m_productionplan_id = pp.m_productionplan_id)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '01D3DCF08E944DDD8A30964ADC46CF67' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:13 Duration: 10s906ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 9s730ms 18s122ms 10s273ms 45 7m42s select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = ? and sum(pp.productionqty) > wrphase.quantity) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 07 3 38s130ms 12s710ms 08 3 30s90ms 10s30ms 09 3 30s690ms 10s230ms 10 3 29s906ms 9s968ms 11 3 30s275ms 10s91ms 12 3 29s720ms 9s906ms 13 3 30s576ms 10s192ms 14 3 29s810ms 9s936ms 15 3 31s274ms 10s424ms 16 3 30s196ms 10s65ms 17 3 30s876ms 10s292ms 18 3 29s954ms 9s984ms 19 3 30s520ms 10s173ms 20 3 29s878ms 9s959ms 21 3 30s409ms 10s136ms [ User: tad - Total duration: 7m42s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m42s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:25 Duration: 18s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:18 Duration: 11s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', sum(pp.productionqty) > wrphase.quantity ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join m_productionplan pp on pp.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) = 1 and sum(pp.productionqty) > wrphase.quantity) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '05150FDA04A1495087B3147973E67837' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:17 Duration: 10s936ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 7s296ms 11s281ms 10s87ms 45 7m33s select * from ( select ps.fin_payment_schedule_id as referencekey_id, ad_column_identifier (?, ps.fin_payment_schedule_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno || ? || ps.amount || ? || sum(psd.amount) as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = ? group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 17 07 3 29s10ms 9s670ms 08 3 31s84ms 10s361ms 09 3 31s809ms 10s603ms 10 3 31s288ms 10s429ms 11 3 26s 8s666ms 12 3 22s93ms 7s364ms 13 3 28s512ms 9s504ms 14 3 31s118ms 10s372ms 15 3 31s740ms 10s580ms 16 3 31s177ms 10s392ms 17 3 32s145ms 10s715ms 18 3 31s377ms 10s459ms 19 3 32s309ms 10s769ms 20 3 31s427ms 10s475ms 21 3 32s824ms 10s941ms [ User: tad - Total duration: 7m33s - Times executed: 45 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 45 ]
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:01:52 Duration: 11s281ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:01:53 Duration: 11s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select ps.fin_payment_schedule_id AS referencekey_id, ad_column_identifier ('fin_payment_schedule', ps.fin_payment_schedule_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Detalles de vencimientos incorrectos en factura ' || i.documentno || ' ' || ps.amount || ' <> ' || sum(psd.amount) AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id join fin_payment_scheduledetail psd on psd.fin_payment_schedule_invoice = ps.fin_payment_schedule_id where psd.iscanceled = 'N' group by i.documentno, ps.amount, ps.fin_payment_schedule_id, i.ad_org_id, i.ad_client_id having ps.amount <> sum(psd.amount)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '11E4EFFDF5C94014BF3CE498E189FF93' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:01:52 Duration: 11s193ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 5s352ms 19s922ms 9s785ms 7 1m8s select invoice0_.c_invoice_id as c_invoic1_357_, invoice0_.ad_client_id as ad_clien2_357_, invoice0_.ad_org_id as ad_org_i3_357_, invoice0_.isactive as isactive4_357_, invoice0_.created as created5_357_, invoice0_.createdby as createdb6_357_, invoice0_.updated as updated7_357_, invoice0_.updatedby as updatedb8_357_, invoice0_.issotrx as issotrx9_357_, invoice0_.documentno as documen10_357_, invoice0_.docstatus as docstat11_357_, invoice0_.docaction as docacti12_357_, invoice0_.processing as process13_357_, invoice0_.processed as process14_357_, invoice0_.posted as posted15_357_, invoice0_.c_doctype_id as c_docty16_357_, invoice0_.c_doctypetarget_id as c_docty17_357_, invoice0_.c_order_id as c_order18_357_, invoice0_.description as descrip19_357_, invoice0_.isprinted as isprint20_357_, invoice0_.salesrep_id as salesre21_357_, invoice0_.dateinvoiced as dateinv22_357_, invoice0_.dateprinted as datepri23_357_, invoice0_.dateacct as dateacc24_357_, invoice0_.c_bpartner_id as c_bpart25_357_, invoice0_.c_bpartner_location_id as c_bpart26_357_, invoice0_.poreference as porefer27_357_, invoice0_.isdiscountprinted as isdisco28_357_, invoice0_.dateordered as dateord29_357_, invoice0_.c_currency_id as c_curre30_357_, invoice0_.c_paymentterm_id as c_payme31_357_, invoice0_.c_charge_id as c_charg32_357_, invoice0_.chargeamt as chargea33_357_, invoice0_.totallines as totalli34_357_, invoice0_.grandtotal as grandto35_357_, invoice0_.m_pricelist_id as m_price36_357_, invoice0_.istaxincluded as istaxin37_357_, invoice0_.c_campaign_id as c_campa38_357_, invoice0_.c_project_id as c_proje39_357_, invoice0_.c_activity_id as c_activ40_357_, invoice0_.createfrom as createf41_357_, invoice0_.generateto as generat42_357_, invoice0_.ad_user_id as ad_user43_357_, invoice0_.copyfrom as copyfro44_357_, invoice0_.isselfservice as isselfs45_357_, invoice0_.ad_orgtrx_id as ad_orgt46_357_, invoice0_.user1_id as user47_357_, invoice0_.user2_id as user48_357_, invoice0_.withholdingamount as withhol49_357_, invoice0_.taxdate as taxdate50_357_, invoice0_.c_withholding_id as c_withh51_357_, invoice0_.ispaid as ispaid52_357_, invoice0_.em_einv_generated as em_einv53_357_, invoice0_.totalpaid as totalpa54_357_, invoice0_.em_einv_sent as em_einv55_357_, invoice0_.outstandingamt as outstan56_357_, invoice0_.daystilldue as daystil57_357_, invoice0_.dueamt as dueamt58_357_, invoice0_.lastcalculatedondate as lastcal59_357_, invoice0_.fin_paymentmethod_id as fin_pay60_357_, invoice0_.fin_payment_priority_id as fin_pay61_357_, invoice0_.finalsettlement as finalse62_357_, invoice0_.daysoutstanding as daysout63_357_, invoice0_.percentageoverdue as percent64_357_, invoice0_.c_costcenter_id as c_costc65_357_, invoice0_.calculate_promotions as calcula66_357_, invoice0_.a_asset_id as a_asset67_357_, invoice0_.em_aprm_addpayment as em_aprm68_357_, invoice0_.iscashvat as iscashv69_357_, invoice0_.em_aprm_processinvoice as em_aprm70_357_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_357_, invoice0_.prepaymentamt as prepaym72_357_, invoice0_.createfromorders as createf73_357_, invoice0_.createfrominouts as createf74_357_, invoice0_.em_advcrm_newactivity as em_advc75_357_, invoice0_.paidamtatinvoicing as paidamt76_357_, invoice0_.bpartner_extref as bpartne77_357_, invoice0_.em_sgpcrm_securitygroups_id as em_sgpc78_357_, invoice0_.em_aeatsii_send as em_aeat79_357_, invoice0_.em_etblkp_accountingstatus as em_etbl80_357_, invoice0_.em_aeatsii_issent as em_aeat81_357_, invoice0_.em_etafdp_unvoid as em_etaf82_357_, invoice0_.em_etblkp_bulkposting as em_etbl83_357_, invoice0_.em_etpr_remove_payment as em_etpr84_357_, invoice0_.em_prsc_iscommissionable as em_prsc85_357_, invoice0_.em_aeatsii_fecha_operacion as em_aeat86_357_, invoice0_.em_aeatsii_clave_tipo as em_aeat87_357_, invoice0_.em_etinter_interco_orig as em_etin88_357_, invoice0_.em_aeatsii_motivo_rectif as em_aeat89_357_, invoice0_.em_prouti_recalculate_price as em_prou90_357_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat91_357_, invoice0_.em_ml_select_product as em_ml_s92_357_, invoice0_.em_prouti_pricecalculatetdate as em_prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.em_aeatsii_tipo_rectif as em_aeat95_357_, invoice0_.em_prouti_totalizations as em_prou96_357_, invoice0_.em_tbai_url as em_tbai97_357_, invoice0_.em_aeatsii_dua as em_aeat98_357_, invoice0_.em_tbai_xmlgenerator as em_tbai99_357_, invoice0_.em_aeatsii_fecha_dua as em_aea100_357_, invoice0_.em_tbai_signaturevalue as em_tba101_357_, invoice0_.em_aeatsii_estado as em_aea102_357_, invoice0_.em_tbai_sequence as em_tba103_357_, invoice0_.em_aeatsii_error_registral as em_aea104_357_, invoice0_.em_prsc_commissiontype as em_prs105_357_, invoice0_.em_tbai_idtbai as em_tba106_357_, invoice0_.em_aeatsii_modif as em_aea107_357_, invoice0_.em_prsc_allowcommission as em_prs108_357_, invoice0_.em_tbai_reverseinvoicecode as em_tba109_357_, invoice0_.em_aeatsii_modified as em_aea110_357_, invoice0_.em_tbai_issent as em_tba111_357_, invoice0_.em_aeatsii_description_id as em_aea112_357_, invoice0_.em_tbai_reverseinvoicetype as em_tba113_357_, invoice0_.em_aeatsii_descripcion_sii as em_aea114_357_, invoice0_.em_tbai_isreverseinvoice as em_tba115_357_, invoice0_.em_advpro2_create_from_outs as em_adv116_357_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea117_357_, invoice0_.em_tbai_invoiceseq as em_tba118_357_, invoice0_.em_aeatsii_dup as em_aea119_357_, invoice0_.em_tbai_invoicenum as em_tba120_357_, invoice0_.em_aeatsii_error_code as em_aea121_357_, invoice0_.em_aeatsii_error_msg as em_aea122_357_, invoice0_.em_aeatsii_unsubscribe as em_aea123_357_, invoice0_.em_aeatsii_pur_description_id as em_aea124_357_, invoice0_.em_fash_datevalue as em_fas125_357_, invoice0_.em_aeatsii_multi_dua as em_aea126_357_, invoice0_.em_aeatsii_ejercicio as em_aea127_357_, invoice0_.em_aeatsii_periodo as em_aea128_357_, invoice0_.em_aeatsii_autofactura as em_aea129_357_, invoice0_.em_aeatsii_invoice_id as em_aea130_357_, invoice0_.em_aeatsii_insiidate as em_aea131_357_, invoice0_.em_aeatsii_cause_exemption_id as em_aea132_357_, invoice0_.em_pit_paymentsched_duedate as em_pit133_357_, invoice0_.em_aeatsii_isauthorization as em_aea134_357_, invoice0_.em_aeatsii_authorizationno as em_aea135_357_, invoice0_.em_fshedi_function as em_fsh136_357_, invoice0_.em_fshedi_processed as em_fsh137_357_, invoice0_.em_fshedi_type as em_fsh138_357_, invoice0_.em_fshedi_sumprecion as em_fsh139_357_, invoice0_.em_fshedi_sumpreciob as em_fsh140_357_, invoice0_.em_rem_bankaccount_id as em_rem141_357_, invoice0_.em_priuti_createpurchinv as em_pri142_357_, invoice0_.em_priuti_generated as em_pri143_357_, invoice0_.em_priuti_date_complete as em_pri144_357_, invoice0_.em_tbai_issue_date as em_tba145_357_, invoice0_.em_priuti_user_complete_id as em_pri146_357_, invoice0_.em_priuti_status_of_review as em_pri147_357_, invoice0_.em_priuti_validate as em_pri148_357_, invoice0_.em_priuti_start_review as em_pri149_357_, invoice0_.em_tbai_date_operation as em_tba150_357_, invoice0_.em_tbai_voidxmlgenerator as em_tba151_357_, invoice0_.em_pit_qtyinvoiced as em_pit152_357_, invoice0_.em_pit_cancel_invdiscounts as em_pit153_357_, invoice0_.em_priuti_addlines_btn as em_pri154_357_, invoice0_.em_pruti_notsendinvoice as em_pru155_357_, invoice0_.em_pit_col_date_from as em_pit156_357_, invoice0_.em_pit_col_date_to as em_pit157_357_, invoice0_.em_pit_is_col_invoice as em_pit158_357_, invoice0_.em_pit_col_invoice_type as em_pit159_357_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 07 1 19s922ms 19s922ms 11 1 9s218ms 9s218ms 13 1 5s352ms 5s352ms 15 1 8s308ms 8s308ms 17 1 9s234ms 9s234ms 19 1 8s754ms 8s754ms 21 1 7s705ms 7s705ms [ User: tad - Total duration: 1m8s - Times executed: 7 ]
[ Application: openbravo - Total duration: 1m8s - Times executed: 7 ]
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 07:00:20 Duration: 19s922ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 17:00:09 Duration: 9s234ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as C_Invoic1_357_, invoice0_.AD_Client_ID as AD_Clien2_357_, invoice0_.AD_Org_ID as AD_Org_I3_357_, invoice0_.IsActive as IsActive4_357_, invoice0_.Created as Created5_357_, invoice0_.CreatedBy as CreatedB6_357_, invoice0_.Updated as Updated7_357_, invoice0_.UpdatedBy as UpdatedB8_357_, invoice0_.IsSOTrx as IsSOTrx9_357_, invoice0_.DocumentNo as Documen10_357_, invoice0_.DocStatus as DocStat11_357_, invoice0_.DocAction as DocActi12_357_, invoice0_.Processing as Process13_357_, invoice0_.Processed as Process14_357_, invoice0_.Posted as Posted15_357_, invoice0_.C_DocType_ID as C_DocTy16_357_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_357_, invoice0_.C_Order_ID as C_Order18_357_, invoice0_.Description as Descrip19_357_, invoice0_.IsPrinted as IsPrint20_357_, invoice0_.SalesRep_ID as SalesRe21_357_, invoice0_.DateInvoiced as DateInv22_357_, invoice0_.DatePrinted as DatePri23_357_, invoice0_.DateAcct as DateAcc24_357_, invoice0_.C_BPartner_ID as C_BPart25_357_, invoice0_.C_BPartner_Location_ID as C_BPart26_357_, invoice0_.POReference as PORefer27_357_, invoice0_.IsDiscountPrinted as IsDisco28_357_, invoice0_.DateOrdered as DateOrd29_357_, invoice0_.C_Currency_ID as C_Curre30_357_, invoice0_.C_PaymentTerm_ID as C_Payme31_357_, invoice0_.C_Charge_ID as C_Charg32_357_, invoice0_.ChargeAmt as ChargeA33_357_, invoice0_.TotalLines as TotalLi34_357_, invoice0_.GrandTotal as GrandTo35_357_, invoice0_.M_PriceList_ID as M_Price36_357_, invoice0_.IsTaxIncluded as IsTaxIn37_357_, invoice0_.C_Campaign_ID as C_Campa38_357_, invoice0_.C_Project_ID as C_Proje39_357_, invoice0_.C_Activity_ID as C_Activ40_357_, invoice0_.CreateFrom as CreateF41_357_, invoice0_.GenerateTo as Generat42_357_, invoice0_.AD_User_ID as AD_User43_357_, invoice0_.CopyFrom as CopyFro44_357_, invoice0_.IsSelfService as IsSelfS45_357_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_357_, invoice0_.User1_ID as User47_357_, invoice0_.User2_ID as User48_357_, invoice0_.Withholdingamount as Withhol49_357_, invoice0_.Taxdate as Taxdate50_357_, invoice0_.C_Withholding_ID as C_Withh51_357_, invoice0_.Ispaid as Ispaid52_357_, invoice0_.EM_Einv_Generated as EM_Einv53_357_, invoice0_.Totalpaid as Totalpa54_357_, invoice0_.EM_Einv_Sent as EM_Einv55_357_, invoice0_.OutstandingAmt as Outstan56_357_, invoice0_.DaysTillDue as DaysTil57_357_, invoice0_.DueAmt as DueAmt58_357_, invoice0_.LastCalculatedOnDate as LastCal59_357_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_357_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_357_, invoice0_.Finalsettlement as Finalse62_357_, invoice0_.Daysoutstanding as Daysout63_357_, invoice0_.Percentageoverdue as Percent64_357_, invoice0_.C_Costcenter_ID as C_Costc65_357_, invoice0_.Calculate_Promotions as Calcula66_357_, invoice0_.A_Asset_ID as A_Asset67_357_, invoice0_.EM_APRM_Addpayment as EM_APRM68_357_, invoice0_.Iscashvat as Iscashv69_357_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_357_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_357_, invoice0_.Prepaymentamt as Prepaym72_357_, invoice0_.Createfromorders as Createf73_357_, invoice0_.Createfrominouts as Createf74_357_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_357_, invoice0_.Paidamtatinvoicing as Paidamt76_357_, invoice0_.BPartner_ExtRef as BPartne77_357_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_357_, invoice0_.EM_Aeatsii_Send as EM_Aeat79_357_, invoice0_.EM_Etblkp_Accountingstatus as EM_Etbl80_357_, invoice0_.EM_Aeatsii_Issent as EM_Aeat81_357_, invoice0_.EM_Etafdp_Unvoid as EM_Etaf82_357_, invoice0_.EM_Etblkp_Bulkposting as EM_Etbl83_357_, invoice0_.EM_Etpr_Remove_Payment as EM_Etpr84_357_, invoice0_.EM_Prsc_Iscommissionable as EM_Prsc85_357_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat86_357_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat87_357_, invoice0_.EM_Etinter_Interco_Orig as EM_Etin88_357_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat89_357_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou90_357_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat91_357_, invoice0_.EM_Ml_Select_Product as EM_Ml_S92_357_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou93_357_, invoice0_.em_tbai_qrcode as em_tbai94_357_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat95_357_, invoice0_.EM_Prouti_Totalizations as EM_Prou96_357_, invoice0_.EM_Tbai_Url as EM_Tbai97_357_, invoice0_.EM_Aeatsii_Dua as EM_Aeat98_357_, invoice0_.EM_Tbai_Xmlgenerator as EM_Tbai99_357_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aea100_357_, invoice0_.EM_Tbai_Signaturevalue as EM_Tba101_357_, invoice0_.EM_Aeatsii_Estado as EM_Aea102_357_, invoice0_.EM_Tbai_Sequence as EM_Tba103_357_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aea104_357_, invoice0_.EM_Prsc_Commissiontype as EM_Prs105_357_, invoice0_.EM_Tbai_Idtbai as EM_Tba106_357_, invoice0_.EM_Aeatsii_Modif as EM_Aea107_357_, invoice0_.EM_Prsc_Allowcommission as EM_Prs108_357_, invoice0_.EM_Tbai_Reverseinvoicecode as EM_Tba109_357_, invoice0_.EM_Aeatsii_Modified as EM_Aea110_357_, invoice0_.EM_Tbai_Issent as EM_Tba111_357_, invoice0_.EM_Aeatsii_Description_ID as EM_Aea112_357_, invoice0_.EM_Tbai_Reverseinvoicetype as EM_Tba113_357_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea114_357_, invoice0_.EM_Tbai_Isreverseinvoice as EM_Tba115_357_, invoice0_.EM_Advpro2_Create_From_Outs as EM_Adv116_357_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea117_357_, invoice0_.EM_Tbai_Invoiceseq as EM_Tba118_357_, invoice0_.EM_Aeatsii_Dup as EM_Aea119_357_, invoice0_.EM_Tbai_Invoicenum as EM_Tba120_357_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea121_357_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea122_357_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea123_357_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea124_357_, invoice0_.EM_Fash_Datevalue as EM_Fas125_357_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea126_357_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea127_357_, invoice0_.EM_Aeatsii_Periodo as EM_Aea128_357_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea129_357_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea130_357_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea131_357_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea132_357_, invoice0_.EM_Pit_Paymentsched_Duedate as EM_Pit133_357_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea134_357_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea135_357_, invoice0_.EM_Fshedi_Function as EM_Fsh136_357_, invoice0_.EM_Fshedi_Processed as EM_Fsh137_357_, invoice0_.EM_Fshedi_Type as EM_Fsh138_357_, invoice0_.EM_Fshedi_Sumprecion as EM_Fsh139_357_, invoice0_.EM_Fshedi_Sumpreciob as EM_Fsh140_357_, invoice0_.EM_Rem_Bankaccount_ID as EM_Rem141_357_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri142_357_, invoice0_.EM_Priuti_Generated as EM_Pri143_357_, invoice0_.EM_Priuti_Date_Complete as EM_Pri144_357_, invoice0_.EM_Tbai_Issue_Date as EM_Tba145_357_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri146_357_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri147_357_, invoice0_.EM_Priuti_Validate as EM_Pri148_357_, invoice0_.EM_Priuti_Start_Review as EM_Pri149_357_, invoice0_.EM_Tbai_Date_Operation as EM_Tba150_357_, invoice0_.EM_Tbai_Voidxmlgenerator as EM_Tba151_357_, invoice0_.EM_Pit_Qtyinvoiced as EM_Pit152_357_, invoice0_.EM_Pit_Cancel_Invdiscounts as EM_Pit153_357_, invoice0_.EM_Priuti_Addlines_Btn as EM_Pri154_357_, invoice0_.EM_Pruti_Notsendinvoice as EM_Pru155_357_, invoice0_.EM_Pit_Col_Date_From as EM_Pit156_357_, invoice0_.EM_Pit_Col_Date_To as EM_Pit157_357_, invoice0_.EM_Pit_Is_Col_Invoice as EM_Pit158_357_, invoice0_.EM_Pit_Col_Invoice_Type as EM_Pit159_357_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('945CD9E60FF14A2C95DC6D89CFF8F389', 'F4C85BA291D041AFA07B50F2BCE78FD4', '9E43BE778CC2478BB36CF5BF82381EE8', 'DE86184F1BC648418293E5C5805AE74C', '3FBDE7938DB2477ABDFC1A6DD98C80E7', '6BA36F6BB4A94377B1614F39BEBE80D4', '81826B44DF354424B14A348E62BDAFE4', '05C8E8421AA044A9ABA8B74863D1312B', '0', 'BF2FDCD2B45B4DAFA30C495554205E91', 'B7916B710EB14C9787CD44BE0E6068D9', '038E5CE0183443BC9225107D9A918CDB', 'E9BAA1786B5A4FFC98FE99DDA89B2EB9')) and (invoice0_.AD_Client_ID in ('D67239D2B3B24A05881F81A734E563EA', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 11:00:09 Duration: 9s218ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 7s8ms 15s309ms 8s565ms 45 6m25s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = ? group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 07 3 36s814ms 12s271ms 08 3 43s592ms 14s530ms 09 3 29s551ms 9s850ms 10 3 21s525ms 7s175ms 11 3 21s830ms 7s276ms 12 3 21s584ms 7s194ms 13 3 21s795ms 7s265ms 14 3 21s423ms 7s141ms 15 3 21s581ms 7s193ms 16 3 21s308ms 7s102ms 17 3 21s837ms 7s279ms 18 3 21s613ms 7s204ms 19 3 21s969ms 7s323ms 20 3 21s732ms 7s244ms 21 3 37s268ms 12s422ms [ User: tad - Total duration: 6m25s - Times executed: 45 ]
[ Application: openbravo - Total duration: 6m25s - Times executed: 45 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 09:01:54 Duration: 15s309ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:41:47 Duration: 14s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '991CC9BB4C49433893DBE5EC05EEC67F' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Factura con mas de un vencimiento con la misma fecha, documento: ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i join fin_payment_schedule ps on ps.c_invoice_id = i.c_invoice_id where i.issotrx = 'Y' group by ps.expecteddate, i.c_invoice_id, i.documentno, i.ad_org_id, i.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 21:21:53 Duration: 14s773ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 7s48ms 9s1ms 7s850ms 45 5m53s select * from ( select i.c_invoice_id as referencekey_id, ad_column_identifier (?, i.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || i.documentno as description, ? as isactive, i.ad_org_id, i.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > ? and i.issotrx = ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 07 3 24s284ms 8s94ms 08 3 23s220ms 7s740ms 09 3 23s914ms 7s971ms 10 3 22s175ms 7s391ms 11 3 24s158ms 8s52ms 12 3 23s791ms 7s930ms 13 3 23s653ms 7s884ms 14 3 22s203ms 7s401ms 15 3 23s285ms 7s761ms 16 3 22s556ms 7s518ms 17 3 23s955ms 7s985ms 18 3 23s543ms 7s847ms 19 3 23s614ms 7s871ms 20 3 24s202ms 8s67ms 21 3 24s720ms 8s240ms [ User: tad - Total duration: 5m53s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m53s - Times executed: 45 ]
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:02:55 Duration: 9s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:03:08 Duration: 8s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select i.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', i.c_invoice_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Descuentos duplicados en factura ' || i.documentno AS description, 'Y' AS isActive, i.ad_org_id, i.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from c_invoice i where ( select count(*) from ( select distinct id.createdby from c_invoice_discount id where id.c_invoice_id = i.c_invoice_id) a) > 1 and i.issotrx = 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'AB95CDACF40C49568F4EF6AAB03CE8DD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 21:02:50 Duration: 8s525ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 6s326ms 7s187ms 6s557ms 44 4m48s select * from ( select epct.prepc_epc_id as referencekey_id, ad_column_identifier (?, epct.prepc_epc_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, epct.prepc_epc_id, ?) as description, ? as isactive, pl.ad_org_id, pl.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = ? group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 07 2 13s648ms 6s824ms 08 3 19s270ms 6s423ms 09 3 19s870ms 6s623ms 10 3 19s362ms 6s454ms 11 3 19s467ms 6s489ms 12 3 19s176ms 6s392ms 13 3 19s915ms 6s638ms 14 3 19s232ms 6s410ms 15 3 20s413ms 6s804ms 16 3 19s686ms 6s562ms 17 3 20s172ms 6s724ms 18 3 19s415ms 6s471ms 19 3 19s919ms 6s639ms 20 3 19s100ms 6s366ms 21 3 19s871ms 6s623ms [ User: tad - Total duration: 4m48s - Times executed: 44 ]
[ Application: openbravo - Total duration: 4m48s - Times executed: 44 ]
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:31 Duration: 7s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:20:29 Duration: 7s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select epct.prepc_epc_id AS referencekey_id, ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Matricula metida por duplicado ' || ad_column_identifier ('prepc_epc', epct.prepc_epc_id, 'es_ES') AS description, 'Y' AS isActive, pl.ad_org_id, pl.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_productionplan pp join m_productionline pl on pl.m_productionplan_id = pp.m_productionplan_id join m_production p on p.m_production_id = pp.m_production_id join prepc_epctransaction epct on epct.m_productionline_id = pl.m_productionline_id where pl.productiontype = '+' group by epct.prepc_epc_id, pl.m_product_id, pl.ad_org_id, pl.ad_client_id having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '1CBD232B81CC4AAE84A9380A959613BA' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 13:20:29 Duration: 7s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 5s1ms 15s195ms 5s824ms 27 2m37s update c_invoice set em_pit_qtyinvoiced = coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?) where em_pit_qtyinvoiced <> coalesce(( select sum(qtyinvoiced) from c_invoiceline co where co.c_invoice_id = c_invoice.c_invoice_id and co.m_product_id not in (...)), ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 07 2 20s526ms 10s263ms 08 3 16s209ms 5s403ms 09 2 11s144ms 5s572ms 10 2 10s621ms 5s310ms 11 2 11s334ms 5s667ms 12 1 5s646ms 5s646ms 13 1 5s568ms 5s568ms 14 1 5s348ms 5s348ms 15 1 5s522ms 5s522ms 16 1 5s396ms 5s396ms 17 3 16s481ms 5s493ms 18 2 10s672ms 5s336ms 19 2 10s881ms 5s440ms 20 2 10s606ms 5s303ms 21 2 11s290ms 5s645ms [ User: tad - Total duration: 2m37s - Times executed: 27 ]
[ Application: openbravo - Total duration: 2m37s - Times executed: 27 ]
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 07:00:20 Duration: 15s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 11:00:08 Duration: 6s212ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_invoice SET em_pit_qtyinvoiced = COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0) WHERE em_pit_qtyinvoiced <> COALESCE(( SELECT SUM(qtyinvoiced) FROM c_invoiceline co WHERE co.c_invoice_id = c_invoice.c_invoice_id AND co.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73', '262906F973E94A86AAD7E21BABCFEAE4')), 0);
Date: 2026-07-17 17:00:08 Duration: 6s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 5s293ms 6s880ms 5s647ms 45 4m14s select * from ( select wrphase.ma_wrphase_id as referencekey_id, ad_column_identifier (?, wrphase.ma_wrphase_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, wrphase.ma_wrphase_id, ?) || ? as description, ? as isactive, wrphase.ad_org_id, wrphase.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 07 3 17s930ms 5s976ms 08 3 16s36ms 5s345ms 09 3 17s187ms 5s729ms 10 3 16s320ms 5s440ms 11 3 16s269ms 5s423ms 12 3 16s603ms 5s534ms 13 3 17s503ms 5s834ms 14 3 16s288ms 5s429ms 15 3 18s345ms 6s115ms 16 3 16s889ms 5s629ms 17 3 17s212ms 5s737ms 18 3 16s493ms 5s497ms 19 3 17s496ms 5s832ms 20 3 16s487ms 5s495ms 21 3 17s76ms 5s692ms [ User: tad - Total duration: 4m14s - Times executed: 45 ]
[ Application: openbravo - Total duration: 4m14s - Times executed: 45 ]
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:07 Duration: 6s880ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:00:06 Duration: 6s686ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select wrphase.ma_wrphase_id AS referencekey_id, ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Fase ' || ad_column_identifier ('ma_wrphase', wrphase.ma_wrphase_id, 'es_ES') || ', en mas de un parte de trabajo ' AS description, 'Y' AS isActive, wrphase.ad_org_id, wrphase.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from ma_workrequirement wr join ma_wrphase wrphase on wrphase.ma_workrequirement_id = wr.ma_workrequirement_id join advpro2_outsourcing_phase osphase on osphase.ma_wrphase_id = wrphase.ma_wrphase_id group by wr.documentno, wrphase.seqno, wrphase.ma_wrphase_id, wrphase.quantity, wrphase.donequantity having count(*) > 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4EA584FE6BAC4144970F6BDC197DA4B5' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:06 Duration: 6s324ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 5s10ms 7s822ms 5s332ms 57 5m3s update c_orderline set em_pit_qtypending = coalesce(qtyordered - qtydelivered, ?), em_pit_qtyreserved = coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?) where c_orderline.c_orderline_id = c_orderline_id and c_orderline.m_product_id not in (...) and (em_pit_qtypending <> coalesce(qtyordered - qtydelivered, ?) or em_pit_qtyreserved <> coalesce(( select coalesce(sum(mr.reservedqty - mr.releasedqty), ?) from m_reservation mr where mr.c_orderline_id = c_orderline.c_orderline_id), ?));Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 07 4 23s775ms 5s943ms 08 4 21s116ms 5s279ms 09 3 16s499ms 5s499ms 10 5 26s46ms 5s209ms 11 5 26s36ms 5s207ms 12 3 16s71ms 5s357ms 13 3 16s286ms 5s428ms 14 4 20s995ms 5s248ms 15 5 26s172ms 5s234ms 16 4 20s823ms 5s205ms 17 4 21s292ms 5s323ms 18 3 16s39ms 5s346ms 19 4 20s880ms 5s220ms 20 3 15s987ms 5s329ms 21 3 15s931ms 5s310ms [ User: tad - Total duration: 5m3s - Times executed: 57 ]
[ Application: openbravo - Total duration: 5m3s - Times executed: 57 ]
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 07:00:28 Duration: 7s822ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 09:00:14 Duration: 5s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
UPDATE c_orderline SET em_pit_qtypending = COALESCE(qtyordered - qtydelivered, 0), em_pit_qtyreserved = COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0) WHERE c_orderline.c_orderline_id = c_orderline_id AND c_orderline.m_product_id NOT IN ('91DD91F682DC4420967C975ADDE05D10', 'C30900FF9CF042588A9558D0F0C0BF73') AND (em_pit_qtypending <> COALESCE(qtyordered - qtydelivered, 0) OR em_pit_qtyreserved <> COALESCE(( SELECT COALESCE(SUM(mr.reservedqty - mr.releasedqty), 0) FROM m_reservation mr WHERE mr.c_orderline_id = c_orderline.c_orderline_id), 0));
Date: 2026-07-17 13:00:13 Duration: 5s676ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
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
- 99,944 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 565 FATAL entries
- 23 ERROR entries
- 0 WARNING entries
- 27 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 546 Max number of times the same event was reported
- 615 Total events found
Rank Times reported Error 1 546 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", no encryption
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 17 07 41 08 39 09 35 10 35 11 36 12 35 13 35 14 34 15 40 16 39 17 35 18 36 19 36 20 35 21 35 - FATAL: no pg_hba.conf entry for host "159.65.148.75", user "administrator", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "186.236.254.56", user "app", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "159.65.148.75", user "administrator", database "postgres", no encryption
Date: 2026-07-17 07:01:23 Database: postgres Application: [unknown] User: administrator Remote: 159.65.148.75
Date: 2026-07-17 07:02:35 Database: postgres Application: [unknown] User: app Remote: 186.236.254.56
Date: 2026-07-17 07:04:27 Database: postgres Application: [unknown] User: administrator Remote: 159.65.148.75
2 23 LOG: process ... still waiting for ShareUpdateExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 17 07 1 08 1 09 1 10 1 11 1 12 1 13 1 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 - LOG: process 121260 still waiting for ShareUpdateExclusiveLock on relation 2467887 of database 986710 after 1000.066 ms
- LOG: process 139080 still waiting for ShareUpdateExclusiveLock on relation 2467887 of database 986710 after 1000.055 ms
- LOG: process 156543 still waiting for ShareUpdateExclusiveLock on relation 2467887 of database 986710 after 1000.068 ms
Detail: Process holding the lock: 120996. Wait queue: 121260.
Context: SQL statement "ANALYZE last_stat_indexes_srv1" PL/pgSQL function collect_obj_stats(jsonb,integer,integer,boolean) line 832 at EXECUTE PL/pgSQL function take_sample(integer,boolean) line 276 at assignment PL/pgSQL function take_sample_subset(integer,integer) line 37 at assignment SQL function "take_sample" statement 1
Statement: SELECT profile.take_sample();Date: 2026-07-17 07:00:04 Database: etendo Application: psql User: postgres Remote: [local]
Detail: Process holding the lock: 138778. Wait queue: 139080.
Context: SQL statement "ANALYZE last_stat_indexes_srv1" PL/pgSQL function collect_obj_stats(jsonb,integer,integer,boolean) line 832 at EXECUTE PL/pgSQL function take_sample(integer,boolean) line 276 at assignment PL/pgSQL function take_sample_subset(integer,integer) line 37 at assignment SQL function "take_sample" statement 1
Statement: SELECT profile.take_sample();Date: 2026-07-17 08:00:04 Database: etendo Application: psql User: postgres Remote: [local]
Detail: Process holding the lock: 156249. Wait queue: 156543.
Context: SQL statement "ANALYZE last_stat_indexes_srv1" PL/pgSQL function collect_obj_stats(jsonb,integer,integer,boolean) line 832 at EXECUTE PL/pgSQL function take_sample(integer,boolean) line 276 at assignment PL/pgSQL function take_sample_subset(integer,integer) line 37 at assignment SQL function "take_sample" statement 1
Statement: SELECT profile.take_sample();Date: 2026-07-17 09:00:04 Database: etendo Application: psql User: postgres Remote: [local]
3 22 ERROR: canceling autovacuum task automatic vacuum of table "..."
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 17 08 1 09 1 10 1 11 1 12 1 13 1 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 - ERROR: canceling autovacuum task automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
- ERROR: canceling autovacuum task automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
- ERROR: canceling autovacuum task automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
Context: while scanning block 88076 of relation "profile.last_stat_indexes_srv1"
Date: 2026-07-17 08:00:04
Context: while scanning block 85832 of relation "profile.last_stat_indexes_srv1"
Date: 2026-07-17 09:00:04
Context: while scanning block 79202 of relation "profile.last_stat_indexes_srv1"
Date: 2026-07-17 10:00:04
4 7 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 17 12 1 13 4 14 2 - FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Date: 2026-07-17 12:44:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.240.223.208
Date: 2026-07-17 13:08:03 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
Date: 2026-07-17 13:08:04 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
5 5 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 17 12 1 13 2 14 2 - FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Date: 2026-07-17 12:44:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.240.223.208
Date: 2026-07-17 13:08:04 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
Date: 2026-07-17 13:21:40 Database: [unknown] Application: [unknown] User: [unknown] Remote: 172.104.100.117
6 4 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 17 12 1 13 1 14 2 - FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
Date: 2026-07-17 12:44:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.240.223.208
Date: 2026-07-17 13:21:40 Database: [unknown] Application: [unknown] User: [unknown] Remote: 172.104.100.117
Date: 2026-07-17 14:03:02 Database: [unknown] Application: [unknown] User: [unknown] Remote: 18.116.101.220
7 3 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 17 13 2 15 1 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-17 13:07:55 Database: [unknown] Application: [unknown] User: [unknown] Remote: 142.93.14.175
Date: 2026-07-17 13:33:00 Database: [unknown] Application: [unknown] User: [unknown] Remote: 45.33.12.214
Date: 2026-07-17 15:33:02 Database: [unknown] Application: [unknown] User: [unknown] Remote: 45.33.109.8
8 2 FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 17 08 1 13 1 - FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Date: 2026-07-17 08:18:38 Database: [unknown] Application: [unknown] User: [unknown] Remote: 34.77.205.251
Date: 2026-07-17 13:08:02 Database: [unknown] Application: [unknown] User: [unknown] Remote: 142.93.14.175
9 1 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", SSL encryption
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 17 17 1 - FATAL: no pg_hba.conf entry for host "64.89.163.83", user "postgres", database "postgres", SSL encryption
Date: 2026-07-17 17:34:31 Database: postgres Application: [unknown] User: postgres Remote: 64.89.163.83
10 1 ERROR: canceling autovacuum task
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 17 07 1 - ERROR: canceling autovacuum task
Context: while scanning block 83622 of relation "profile.last_stat_indexes_srv1" automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
Date: 2026-07-17 07:00:04
11 1 ERROR: incomplete startup packet
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 17 08 1 - ERROR: incomplete startup packet
Date: 2026-07-17 08:49:06 Database: [unknown] Application: [unknown] User: [unknown] Remote: 185.224.128.16