-
Global information
- Generated on Fri Jul 17 23:00:39 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 137,920 log entries in 37s
- Log start from 2026-07-17 07:00:01 to 2026-07-17 21:59:55
-
Overview
Global Stats
- 43 Number of unique normalized queries
- 146 Number of queries
- 24m39s Total query duration
- 2026-07-17 07:00:06 First query
- 2026-07-17 21:00:05 Last query
- 2 queries/s at 2026-07-17 13:34:27 Query peak
- 24m39s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 24m39s Execute total duration
- 8,780 Number of events
- 3 Number of unique normalized events
- 8,743 Max number of times the same event was reported
- 0 Number of cancellation
- 45,902 Total number of automatic vacuums
- 163 Total number of automatic analyzes
- 25 Number temporary file
- 215.11 MiB Max size of temporary file
- 93.20 MiB Average size of temporary file
- 8,836 Total number of sessions
- 7 sessions at 2026-07-17 09:32:08 Session peak
- 3d20h21m21s Total duration of sessions
- 37s628ms Average duration of sessions
- 0 Average queries per session
- 167ms Average queries duration per session
- 37s460ms Average idle time per session
- 8,837 Total number of connections
- 4 connections/s at 2026-07-17 07:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 13:34:27 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 13:34:27 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-17 13:16:13 Date
Queries duration
Key values
- 24m39s 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 6 0ms 6s354ms 3s219ms 1s118ms 2s636ms 6s354ms 08 5 0ms 5s254ms 2s272ms 0ms 1s311ms 5s254ms 09 4 0ms 7s945ms 2s932ms 0ms 1s208ms 7s945ms 10 7 0ms 15s971ms 4s94ms 1s345ms 3s275ms 15s971ms 11 6 0ms 6s451ms 2s413ms 1s16ms 1s609ms 6s451ms 12 34 0ms 24s878ms 4s662ms 3s141ms 8s573ms 1m15s 13 22 0ms 2m52s 26s660ms 3s412ms 2m55s 3m3s 14 6 0ms 2m39s 28s800ms 0ms 1s126ms 2m46s 15 24 0ms 2m51s 11s160ms 3s206ms 24s841ms 2m57s 16 9 0ms 27s373ms 6s688ms 1s16ms 4s979ms 27s373ms 17 7 0ms 29s713ms 10s740ms 0ms 7s194ms 33s238ms 18 1 0ms 6s914ms 6s914ms 0ms 0ms 6s914ms 19 1 0ms 2s651ms 2s651ms 0ms 0ms 2s651ms 20 13 0ms 13s420ms 4s540ms 0ms 6s67ms 44s743ms 21 1 0ms 3s849ms 3s849ms 0ms 0ms 3s849ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 6 0 3s219ms 0ms 1s118ms 5s684ms 08 5 0 2s272ms 0ms 0ms 4s795ms 09 4 0 2s932ms 0ms 0ms 1s428ms 10 6 0 2s114ms 0ms 1s147ms 3s275ms 11 6 0 2s413ms 0ms 1s16ms 2s772ms 12 27 0 4s169ms 1s221ms 2s804ms 35s236ms 13 17 0 32s809ms 0ms 1s417ms 2m57s 14 6 0 28s800ms 0ms 0ms 3s794ms 15 19 0 13s350ms 0ms 3s206ms 42s606ms 16 4 0 2s64ms 0ms 0ms 2s261ms 17 6 0 12s134ms 0ms 0ms 32s374ms 18 1 0 6s914ms 0ms 0ms 0ms 19 1 0 2s651ms 0ms 0ms 0ms 20 10 0 4s965ms 0ms 0ms 7s195ms 21 1 0 3s849ms 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 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 1 0 15s971ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 5 2 0 6s565ms 0ms 0ms 6s773ms 13 0 0 5 0 5s756ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 5 0 0 2s836ms 0ms 0ms 0ms 16 0 0 5 0 10s387ms 0ms 0ms 2s265ms 17 0 0 1 0 2s371ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 3 0 0 3s125ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 17 07 0 5 5.00 0.00% 08 0 4 4.00 0.00% 09 0 3 3.00 0.00% 10 0 6 6.00 0.00% 11 0 5 5.00 0.00% 12 0 33 33.00 0.00% 13 0 21 21.00 0.00% 14 0 5 5.00 0.00% 15 0 23 23.00 0.00% 16 0 8 8.00 0.00% 17 0 6 6.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 12 12.00 0.00% 21 0 0 0.00 0.00% Day Hour Count Average / Second Jul 17 07 590 0.16/s 08 589 0.16/s 09 593 0.16/s 10 590 0.16/s 11 584 0.16/s 12 594 0.17/s 13 590 0.16/s 14 589 0.16/s 15 588 0.16/s 16 589 0.16/s 17 587 0.16/s 18 589 0.16/s 19 588 0.16/s 20 587 0.16/s 21 590 0.16/s Day Hour Count Average Duration Average idle time Jul 17 07 590 243ms 210ms 08 588 228ms 208ms 09 593 1s620ms 1s600ms 10 590 1m10s 1m10s 11 584 265ms 240ms 12 594 6m53s 6m52s 13 590 7s405ms 6s411ms 14 589 12s836ms 12s542ms 15 588 53s446ms 52s991ms 16 588 242ms 140ms 17 588 232ms 104ms 18 589 217ms 205ms 19 588 201ms 197ms 20 587 201ms 101ms 21 590 210ms 203ms -
Connections
Established Connections
Key values
- 4 connections Connection Peak
- 2026-07-17 07:00:01 Date
Connections per database
Key values
- etendo Main Database
- 8,837 connections Total
Connections per user
Key values
- tad Main User
- 8,837 connections Total
-
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2026-07-17 09:32:08 Date
Histogram of session times
Key values
- 8,485 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 8,836 sessions Total
Sessions per user
Key values
- tad Main User
- 8,836 sessions Total
Sessions per host
Key values
- 10.10.11.43 Main Host
- 8,836 sessions Total
Sessions per application
Key values
- [unknown] Main Application
- 8,836 sessions Total
Application Count Total Duration Average Duration DBeaver 26.0.1 - Main 1 2m13s 2m13s DBeaver 26.0.1 - Main 1 2m17s 2m17s DBeaver 26.0.1 - Metadata 1 2m12s 2m12s DBeaver 26.0.1 - Metadata 1 2m16s 2m16s DBeaver 26.0.1 - Read PostgreSQL database list 1 857ms 857ms DBeaver 26.0.1 - SQLEditor 1 2m14s 2m14s DBeaver 26.0.1 - SQLEditor 1 2m9s 2m9s [unknown] 8,751 32m51s 225ms openbravo 18 3d19h32m49s 5h5m9s pg_profile 45 58s465ms 1s299ms psql 15 1m17s 5s141ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 3,478 buffers Checkpoint Peak
- 2026-07-17 12:07:07 Date
- 269.875 seconds Highest write time
- 0.021 seconds Sync time
Checkpoints Wal files
Key values
- 2 files Wal files usage Peak
- 2026-07-17 13:17:08 Date
Checkpoints distance
Key values
- 45.26 Mo Distance Peak
- 2026-07-17 12:07:07 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 17 07 2,389 238.04s 0.055s 238.313s 08 2,595 258.135s 0.059s 258.442s 09 6,332 596.779s 0.048s 597.069s 10 5,503 547.687s 0.063s 548.028s 11 3,290 328.642s 0.057s 329.006s 12 9,239 843.527s 0.068s 843.919s 13 9,060 840.268s 0.056s 840.644s 14 8,188 817.074s 0.073s 817.431s 15 7,180 739.212s 0.076s 739.566s 16 3,599 357.777s 0.062s 358.086s 17 5,667 540.453s 0.061s 540.799s 18 2,667 265.423s 0.049s 265.701s 19 2,093 208.32s 0.064s 208.633s 20 2,748 274.081s 0.051s 274.353s 21 4,895 462.254s 0.047s 462.533s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 17 07 0 0 1 501 0.013s 0.012s 08 0 0 1 616 0.005s 0.012s 09 0 0 2 826 0.004s 0.012s 10 0 0 2 1,123 0.007s 0.012s 11 0 0 2 707 0.007s 0.012s 12 0 0 3 2,356 0.006s 0.012s 13 0 0 4 1,834 0.004s 0.012s 14 0 0 3 1,845 0.006s 0.012s 15 0 0 2 1,376 0.005s 0.012s 16 0 0 2 812 0.005s 0.012s 17 0 0 2 563 0.013s 0.012s 18 0 0 1 375 0.004s 0.012s 19 0 0 1 316 0.017s 0.013s 20 0 0 1 313 0.005s 0.012s 21 0 0 2 340 0.004s 0.012s 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 Day Hour Mean distance Mean estimate Jul 17 07 1,320.17 kB 8,072.50 kB 08 1,525.42 kB 8,764.33 kB 09 3,362.00 kB 12,532.25 kB 10 2,831.50 kB 12,132.75 kB 11 1,849.50 kB 10,121.08 kB 12 4,635.83 kB 14,977.92 kB 13 4,673.08 kB 14,003.92 kB 14 4,100.33 kB 13,176.58 kB 15 3,726.25 kB 11,425.42 kB 16 2,140.75 kB 11,295.67 kB 17 3,092.67 kB 12,219.92 kB 18 1,642.08 kB 11,281.17 kB 19 1,306.58 kB 8,672.08 kB 20 1,521.42 kB 10,328.83 kB 21 2,670.08 kB 11,626.08 kB -
Temporary Files
Size of temporary files
Key values
- 264.50 MiB Temp Files size Peak
- 2026-07-17 20:20:21 Date
Number of temporary files
Key values
- 2 per second Temp Files Peak
- 2026-07-17 12:16:17 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 17 07 0 0 0 08 0 0 0 09 0 0 0 10 1 15.00 MiB 15.00 MiB 11 0 0 0 12 8 771.57 MiB 96.45 MiB 13 0 0 0 14 0 0 0 15 8 771.69 MiB 96.46 MiB 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 8 771.69 MiB 96.46 MiB 21 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 15 1.52 GiB 3.68 MiB 215.11 MiB 103.61 MiB select * from ( select c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;
Date: 2026-07-17 12:15:49 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 6 749.70 MiB 34.78 MiB 215.11 MiB 124.95 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:26:01 Duration: 7s916ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:16:25 Duration: 7s619ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:42 Duration: 6s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 3 11.04 MiB 3.68 MiB 3.68 MiB 3.68 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) 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 distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:15:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 1 15.00 MiB 15.00 MiB 15.00 MiB 15.00 MiB select orderline0_.m_product_id as col_0_0_, product1_.name as col_1_0_, sum(orderline0_.qtyordered) as col_2_0_, uom3_.name as col_3_0_, product1_.c_uom_id as col_4_0_ from c_orderline orderline0_ cross join m_product product1_ cross join c_uom uom3_ cross join c_order order5_ cross join m_product product7_ where orderline0_.m_product_id = product1_.m_product_id and product1_.c_uom_id = uom3_.c_uom_id and orderline0_.c_order_id = order5_.c_order_id and orderline0_.m_product_id = product7_.m_product_id and order5_.docstatus = ? and order5_.issotrx = ? and ? = ? and orderline0_.ad_client_id = ? and (product7_.name like ?) and (orderline0_.ad_org_id in (...)) group by product1_.name, uom3_.name, orderline0_.m_product_id, product1_.c_uom_id order by sum(orderline0_.qtyordered) desc limit ?;-
select orderline0_.M_Product_ID as col_0_0_, product1_.Name as col_1_0_, sum(orderline0_.QtyOrdered) as col_2_0_, uom3_.Name as col_3_0_, product1_.C_UOM_ID as col_4_0_ from C_OrderLine orderline0_ cross join M_Product product1_ cross join C_UOM uom3_ cross join C_Order order5_ cross join M_Product product7_ where orderline0_.M_Product_ID = product1_.M_Product_ID and product1_.C_UOM_ID = uom3_.C_UOM_ID and orderline0_.C_Order_ID = order5_.C_Order_ID and orderline0_.M_Product_ID = product7_.M_Product_ID and order5_.DocStatus = 'CO' and order5_.IsSOTrx = 'Y' and 1 = 1 and orderline0_.AD_Client_ID = '29E43D204AEB4CEC9D1DC4EFFD0E5987' and (product7_.Name like '%') and (orderline0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) group by product1_.Name, uom3_.Name, orderline0_.M_Product_ID, product1_.C_UOM_ID order by sum(orderline0_.QtyOrdered) desc limit '40';
Date: 2026-07-17 10:36:06 Duration: 1s535ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:25:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:25:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 215.11 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 15:26:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 20:20:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 20:20:35 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 215.11 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 20:20:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 215.09 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:15:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 215.09 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:16:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 215.09 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 12:16:25 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 49.39 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:15:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 49.39 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:25:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 49.39 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 20:20:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 34.80 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:25:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 34.80 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 15:26:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 34.80 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 20:20:35 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 34.80 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 20:20:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 34.78 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:16:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 34.78 MiB 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 C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-17 12:16:25 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 15.00 MiB select orderline0_.M_Product_ID as col_0_0_, product1_.Name as col_1_0_, sum(orderline0_.QtyOrdered) as col_2_0_, uom3_.Name as col_3_0_, product1_.C_UOM_ID as col_4_0_ from C_OrderLine orderline0_ cross join M_Product product1_ cross join C_UOM uom3_ cross join C_Order order5_ cross join M_Product product7_ where orderline0_.M_Product_ID = product1_.M_Product_ID and product1_.C_UOM_ID = uom3_.C_UOM_ID and orderline0_.C_Order_ID = order5_.C_Order_ID and orderline0_.M_Product_ID = product7_.M_Product_ID and order5_.DocStatus = 'CO' and order5_.IsSOTrx = 'Y' and 1 = 1 and orderline0_.AD_Client_ID = $1 and (product7_.Name like $2) and (orderline0_.AD_Org_ID in ($3, $4, $5, $6, $7, $8)) group by product1_.Name, uom3_.Name, orderline0_.M_Product_ID, product1_.C_UOM_ID order by sum(orderline0_.QtyOrdered) desc limit $9;[ Date: 2026-07-17 10:36:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 3.68 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:15:52 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 2.65 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-17 15:26:47 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 2.65 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-17 15:26:47 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (17) Main table analyzed (database etendo)
- 163 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 17 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.tables_list 12 etendo.public.ad_session 9 etendo.profile.last_stat_io 8 etendo.profile.indexes_list 7 etendo.profile.stmt_list 6 etendo.profile.funcs_list 6 etendo.profile.last_extension_versions 5 etendo.profile.last_stat_activity_count_srv1 5 etendo.profile.last_stat_slru 3 etendo.public.ad_sequence 2 etendo.profile.sample_stat_tables 2 etendo.public.ad_process_request 2 etendo.profile.sample_stat_indexes 2 etendo.profile.sample_statements 1 etendo.public.ad_preference 1 etendo.public.fin_financial_account 1 etendo.public.c_ordertax 1 etendo.public.ad_module 1 etendo.profile.sample_statements_total 1 etendo.public.ad_process_run 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_io 1 etendo.public.ad_pinstance 1 etendo.profile.sample_stat_tables_total 1 etendo.public.ad_pinstance_para 1 etendo.profile.sample_stat_user_functions 1 etendo.profile.sample_stat_tablespaces 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_user_func_total 1 Total 163 Vacuums per table
Key values
- profile.sample_stat_io (899) Main table vacuumed on database etendo
- 45,902 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.profile.sample_stat_io 899 0 114,143 0 13 0 0 150 0 36,150 0 0 etendo.profile.sample_stat_indexes_total 899 0 73,990 0 15 0 0 150 0 36,150 0 0 etendo.pg_toast.pg_toast_85256 899 0 1,204,073 0 72 0 0 156 72 438,936 0 0 etendo.public.ad_module 899 0 318,759 0 87 0 0 157 72 432,709 4 4 etendo.profile.last_stat_indexes_srv1 899 0 72,604,241 0 81 0 0 242 81 454,018 0 0 etendo.profile.last_stat_tables_srv1 899 0 57,701,664 0 26 0 0 233 16 175,681 0 0 etendo.profile.last_stat_user_functions_srv1 899 0 5,904,007 0 0 0 0 227 0 107,371 0 0 etendo.public.ad_ep_instance_para 899 5 121,691 0 150 0 0 248 69 495,924 0 0 etendo.profile.last_stat_tablespaces_srv1 899 0 42,083 0 14 0 0 149 0 70,477 0 0 etendo.profile.sample_stat_wal 899 0 33,239 0 84 0 0 150 69 578,490 0 0 etendo.profile.sample_statements 899 0 1,914,752 0 0 0 0 187 0 45,067 0 0 etendo.profile.sample_stat_user_func_total 899 0 40,744 0 17 0 0 150 0 36,150 0 0 etendo.profile.last_stat_io 899 0 153,982 0 78 0 0 149 70 279,802 0 0 etendo.profile.sample_stat_cluster 899 0 37,148 0 15 0 0 150 0 36,150 0 0 etendo.profile.last_stat_archiver 899 0 27,869 0 45 0 0 149 0 28,012 0 0 etendo.profile.sample_stat_tables_total 899 0 192,389 0 12 0 0 150 0 36,150 0 0 etendo.profile.last_stat_database_srv1 899 0 95,012 0 60 0 0 149 58 307,813 0 0 etendo.profile.last_stat_wal 899 0 31,465 0 17 0 0 149 0 28,012 0 0 etendo.profile.funcs_list 899 0 513,011 0 2 0 0 151 0 36,391 0 0 etendo.profile.sample_stat_archiver 899 0 30,600 0 27 0 0 150 0 36,150 0 0 etendo.public.ad_process_run 899 0 1,936,397 0 224 0 0 354 105 867,138 0 0 etendo.public.c_invoice 899 0 13,941,586 0 89 0 0 347 76 580,401 93 410 etendo.public.ma_processplan_tot_aux 899 0 715,761 0 68 0 0 149 70 590,173 0 0 etendo.profile.last_extension_versions 899 0 78,960 0 63 0 0 149 58 251,254 0 0 etendo.profile.last_stat_activity_count_srv1 899 0 93,614 0 30 0 0 150 0 70,950 0 0 etendo.profile.sample_statements_total 899 0 81,110 0 15 0 0 150 0 36,150 0 0 etendo.profile.stmt_list 899 0 2,283,343 0 71 0 0 151 71 142,039 0 0 etendo.pg_toast.pg_toast_196728 899 0 477,808 0 15 0 0 151 12 107,264 0 0 etendo.profile.servers 899 0 46,150 0 85 0 0 164 71 435,398 15 15 etendo.profile.sample_stat_tables 899 0 4,190,936 0 4 0 0 163 4 70,723 0 0 etendo.profile.last_stat_statements_srv1 899 0 16,851,716 0 27 0 0 250 23 200,222 0 0 etendo.profile.last_stat_cluster 899 0 33,263 0 87 0 0 149 70 296,042 0 0 etendo.public.ad_sequence 899 0 140,172 0 44 0 0 151 0 38,807 0 0 etendo.profile.last_stat_slru 899 0 57,419 0 14 0 0 149 0 28,012 0 0 etendo.profile.tables_list 899 0 1,358,250 0 0 0 0 151 0 36,391 0 0 etendo.public.ad_preference 899 0 2,753,748 0 107 0 0 93 24 153,213 0 0 etendo.profile.sample_stat_slru 899 0 58,068 0 17 0 0 150 2 44,798 0 0 etendo.public.ad_session 899 0 1,616,470 0 256 0 0 448 107 951,354 5 5 etendo.profile.sample_stat_tablespaces 899 0 50,878 0 33 0 0 150 0 36,150 0 0 etendo.profile.sample_stat_database 899 0 141,565 0 13 0 0 150 0 36,150 0 0 etendo.profile.indexes_list 899 0 585,849 0 0 0 0 150 0 36,150 0 0 etendo.pg_catalog.pg_statistic 899 0 9,257,232 0 61 0 0 96 46 299,440 0 0 etendo.public.m_stock_proposed 899 0 110,714 0 68 0 0 149 70 556,293 0 0 etendo.pg_toast.pg_toast_2619 899 0 2,612,197 0 41 0 0 63 38 297,034 0 0 etendo.profile.sample_stat_user_functions 899 0 292,309 0 6 0 0 176 0 42,416 0 0 etendo.profile.sample_stat_indexes 899 0 613,881 0 10 0 0 181 10 122,221 0 0 etendo.public.ad_pinstance 899 3 147,378 0 103 0 0 352 76 493,118 32 56 etendo.profile.samples 899 0 48,546 0 15 0 0 150 0 36,150 0 0 etendo.public.ad_process_request 899 0 940,668 0 276 0 0 229 74 605,861 0 0 etendo.public.m_product_org 599 0 1,039,255 0 66 0 0 202 66 470,090 0 0 etendo.public.fin_financial_account 598 0 66,486 0 24 0 0 117 0 30,069 0 0 etendo.public.ad_pinstance_para 374 0 41,346 0 31 0 0 66 17 149,970 0 0 etendo.public.m_storage_pending 279 0 182,565 0 26 0 0 8 7 40,836 0 0 etendo.public.gl_journalbatch 1 0 91 0 11 0 0 1 1 6,233 0 0 Total 45,902 8 204,000,593 7,202,306 2,815 0 0 9,105 1,605 11,854,113 149 490 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (1007.61000000001) 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.profile.sample_stat_io 0 0 0.04 etendo.profile.sample_stat_indexes_total 0 0 0 etendo.pg_toast.pg_toast_85256 0 0 9.42999999999985 etendo.public.ad_module 0 0 0.05 etendo.profile.last_stat_indexes_srv1 0 0 1,007.61000000001 etendo.profile.last_stat_tables_srv1 0 0 815.980000000002 etendo.profile.last_stat_user_functions_srv1 0 0 81.140000000001 etendo.public.ad_ep_instance_para 0 0 0.04 etendo.profile.last_stat_tablespaces_srv1 0 0 0 etendo.profile.sample_stat_wal 0 0 0 etendo.profile.sample_statements 0 0 29.5 etendo.profile.sample_stat_user_func_total 0 0 0 etendo.profile.last_stat_io 0 0 0.01 etendo.profile.sample_stat_cluster 0 0 0 etendo.profile.last_stat_archiver 0 0 0 etendo.profile.sample_stat_tables_total 0 0 0.01 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.last_stat_wal 0 0 0 etendo.profile.funcs_list 0 0 0.31 etendo.profile.sample_stat_archiver 0 0 0 etendo.public.ad_process_run 0 0 41.2399999999996 etendo.public.c_invoice 0 0 166.650000000002 etendo.public.ma_processplan_tot_aux 0 0 14.5099999999998 etendo.profile.last_extension_versions 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.profile.sample_statements_total 0 0 0 etendo.profile.stmt_list 0 0 28.0300000000003 etendo.pg_toast.pg_toast_196728 0 0 0.06 etendo.profile.servers 0 0 0 etendo.profile.sample_stat_tables 0 0 84.4699999999993 etendo.profile.last_stat_statements_srv1 0 0 232.509999999998 etendo.profile.last_stat_cluster 0 0 0 etendo.public.ad_sequence 0 0 0.01 etendo.profile.last_stat_slru 0 0 0 etendo.profile.tables_list 0 0 15.3199999999998 etendo.public.ad_preference 0 0 28.0500000000003 etendo.profile.sample_stat_slru 0 0 0 etendo.public.ad_session 0 0 21.8399999999999 etendo.profile.sample_stat_tablespaces 0 0 0 etendo.profile.sample_stat_database 0 0 0 etendo.profile.indexes_list 0 0 1.71 etendo.pg_catalog.pg_statistic 0 0 132.790000000001 etendo.public.m_stock_proposed 0 0 0.01 etendo.pg_toast.pg_toast_2619 0 0 30.8800000000003 etendo.profile.sample_stat_user_functions 0 0 0.13 etendo.profile.sample_stat_indexes 0 0 9.58999999999985 etendo.public.ad_pinstance 0 0 0.04 etendo.profile.samples 0 0 0 etendo.public.ad_process_request 0 0 10.4199999999998 etendo.public.m_product_org 0 0 12.0599999999998 etendo.public.fin_financial_account 0 0 0 etendo.public.ad_pinstance_para 0 0 0 etendo.public.m_storage_pending 0 0 2.90999999999998 etendo.public.gl_journalbatch 0 0 0 Total 0 0 2,777.35000000001 Tuples removed per table
Key values
- public.ad_pinstance (345) Main table with removed tuples on database etendo
- 485 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.public.ad_pinstance 899 3 345 2,408,405 1,150,834 0 117,769 etendo.public.ad_ep_instance_para 899 5 140 2,335,478 2,335,478 0 47,456 etendo.profile.sample_stat_io 899 0 0 2,095,656 1,058,508 0 55,738 etendo.public.gl_journalbatch 1 0 0 775 122 0 376 etendo.profile.sample_stat_indexes_total 899 0 0 1,208,240 603,392 0 17,081 etendo.pg_toast.pg_toast_85256 899 0 0 2,854,102 1,945,860 0 1,215,448 etendo.public.ad_module 899 0 0 1,533,358 1,158,815 0 202,275 etendo.profile.last_stat_indexes_srv1 899 0 0 905,318,541 901,526,316 0 52,515,984 etendo.profile.last_stat_tables_srv1 899 0 0 588,583,873 586,260,110 0 42,055,220 etendo.profile.last_stat_user_functions_srv1 899 0 0 92,421,204 91,706,084 0 4,227,997 etendo.public.fin_financial_account 598 0 0 91,957 62,655 0 22,724 etendo.profile.last_stat_tablespaces_srv1 899 0 0 302,056 300,258 0 7,192 etendo.profile.sample_stat_wal 899 0 0 302,060 150,848 0 5,394 etendo.profile.sample_statements 899 0 0 24,397,343 11,091,388 0 1,364,682 etendo.profile.sample_stat_user_func_total 899 0 0 604,120 301,696 0 6,293 etendo.profile.last_stat_io 899 0 0 1,963,364 1,951,677 0 61,132 etendo.profile.sample_stat_cluster 899 0 0 302,060 150,848 0 8,091 etendo.profile.last_stat_archiver 899 0 0 151,028 150,129 0 1,798 etendo.profile.sample_stat_tables_total 899 0 0 2,718,540 1,357,632 0 86,304 etendo.profile.last_stat_database_srv1 899 0 0 604,112 600,516 0 35,061 etendo.profile.last_stat_wal 899 0 0 151,028 150,129 0 3,596 etendo.profile.funcs_list 899 0 0 6,271,068 5,998,665 0 243,629 etendo.profile.sample_stat_archiver 899 0 0 302,060 150,848 0 3,596 etendo.public.ad_process_run 899 0 0 16,376,551 6,719,395 0 1,527,401 etendo.public.c_invoice 899 0 0 130,927,838 33,024,250 0 28,741,030 etendo.public.ma_processplan_tot_aux 899 0 0 19,576,624 9,788,312 0 489,955 etendo.profile.last_extension_versions 899 0 0 1,359,252 1,351,161 0 26,970 etendo.profile.last_stat_activity_count_srv1 899 0 0 1,613,364 1,613,364 0 42,312 etendo.profile.sample_statements_total 899 0 0 604,120 301,696 0 30,566 etendo.profile.stmt_list 899 0 0 10,531,894 9,629,593 0 1,165,104 etendo.public.m_product_org 599 0 0 39,349,097 7,103,383 0 4,051,636 etendo.pg_toast.pg_toast_196728 899 0 0 907,813 437,948 0 234,639 etendo.profile.servers 899 0 0 151,028 150,129 0 4,495 etendo.profile.sample_stat_tables 899 0 0 87,275,140 39,616,636 0 3,168,076 etendo.profile.last_stat_statements_srv1 899 0 0 160,658,644 158,705,932 0 13,626,143 etendo.profile.last_stat_cluster 899 0 0 151,028 150,129 0 4,495 etendo.public.m_storage_pending 279 0 0 2,183,755 389,484 0 137,547 etendo.public.ad_sequence 899 0 0 620,777 340,289 0 65,627 etendo.profile.last_stat_slru 899 0 0 755,140 750,645 0 15,283 etendo.profile.tables_list 899 0 0 23,626,705 22,778,402 0 694,927 etendo.public.ad_preference 899 0 0 9,527,266 3,333,347 0 2,526,190 etendo.profile.sample_stat_slru 899 0 0 1,209,139 603,751 0 20,677 etendo.public.ad_session 899 0 0 25,282,068 20,881,147 0 2,362,572 etendo.profile.sample_stat_tablespaces 899 0 0 604,120 301,696 0 5,394 etendo.profile.sample_stat_database 899 0 0 1,208,240 603,392 0 59,334 etendo.profile.indexes_list 899 0 0 11,123,892 10,633,217 0 267,902 etendo.pg_catalog.pg_statistic 899 0 0 69,217,857 59,374,386 0 6,927,694 etendo.public.m_stock_proposed 899 0 0 1,076,103 695,826 0 45,849 etendo.public.ad_pinstance_para 374 0 0 403,342 83,776 0 14,266 etendo.pg_toast.pg_toast_2619 899 0 0 6,740,981 3,829,817 0 1,958,921 etendo.profile.sample_stat_user_functions 899 0 0 17,057,187 7,752,336 0 178,002 etendo.profile.sample_stat_indexes 899 0 0 25,397,191 11,672,111 0 432,419 etendo.profile.samples 899 0 0 302,060 150,848 0 2,697 etendo.public.ad_process_request 899 0 0 4,991,867 3,559,419 0 1,526,502 Total 45,902 8 485 2,307,730,511 2,026,488,625 0 172,659,461 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.profile.sample_stat_io 899 0 0 0 etendo.public.gl_journalbatch 1 0 0 0 etendo.profile.sample_stat_indexes_total 899 0 0 0 etendo.pg_toast.pg_toast_85256 899 0 0 0 etendo.public.ad_module 899 0 0 0 etendo.profile.last_stat_indexes_srv1 899 0 0 0 etendo.profile.last_stat_tables_srv1 899 0 0 0 etendo.profile.last_stat_user_functions_srv1 899 0 0 0 etendo.public.ad_ep_instance_para 899 5 140 0 etendo.public.fin_financial_account 598 0 0 0 etendo.profile.last_stat_tablespaces_srv1 899 0 0 0 etendo.profile.sample_stat_wal 899 0 0 0 etendo.profile.sample_statements 899 0 0 0 etendo.profile.sample_stat_user_func_total 899 0 0 0 etendo.profile.last_stat_io 899 0 0 0 etendo.profile.sample_stat_cluster 899 0 0 0 etendo.profile.last_stat_archiver 899 0 0 0 etendo.profile.sample_stat_tables_total 899 0 0 0 etendo.profile.last_stat_database_srv1 899 0 0 0 etendo.profile.last_stat_wal 899 0 0 0 etendo.profile.funcs_list 899 0 0 0 etendo.profile.sample_stat_archiver 899 0 0 0 etendo.public.ad_process_run 899 0 0 0 etendo.public.c_invoice 899 0 0 0 etendo.public.ma_processplan_tot_aux 899 0 0 0 etendo.profile.last_extension_versions 899 0 0 0 etendo.profile.last_stat_activity_count_srv1 899 0 0 0 etendo.profile.sample_statements_total 899 0 0 0 etendo.profile.stmt_list 899 0 0 0 etendo.public.m_product_org 599 0 0 0 etendo.pg_toast.pg_toast_196728 899 0 0 0 etendo.profile.servers 899 0 0 0 etendo.profile.sample_stat_tables 899 0 0 0 etendo.profile.last_stat_statements_srv1 899 0 0 0 etendo.profile.last_stat_cluster 899 0 0 0 etendo.public.m_storage_pending 279 0 0 0 etendo.public.ad_sequence 899 0 0 0 etendo.profile.last_stat_slru 899 0 0 0 etendo.profile.tables_list 899 0 0 0 etendo.public.ad_preference 899 0 0 0 etendo.profile.sample_stat_slru 899 0 0 0 etendo.public.ad_session 899 0 0 0 etendo.profile.sample_stat_tablespaces 899 0 0 0 etendo.profile.sample_stat_database 899 0 0 0 etendo.profile.indexes_list 899 0 0 0 etendo.pg_catalog.pg_statistic 899 0 0 0 etendo.public.m_stock_proposed 899 0 0 0 etendo.public.ad_pinstance_para 374 0 0 0 etendo.pg_toast.pg_toast_2619 899 0 0 0 etendo.profile.sample_stat_user_functions 899 0 0 0 etendo.profile.sample_stat_indexes 899 0 0 0 etendo.public.ad_pinstance 899 3 345 0 etendo.profile.samples 899 0 0 0 etendo.public.ad_process_request 899 0 0 0 Total 45,902 8 485 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 17 07 3,000 8 08 3,000 9 09 3,000 9 10 3,000 12 11 3,000 12 12 3,119 11 13 3,074 17 14 3,060 14 15 3,061 13 16 3,060 9 17 3,100 12 18 3,068 5 19 3,120 16 20 3,120 8 21 3,120 8 - 2.65 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 119 Total read queries
- 27 Total write queries
Queries by database
Key values
- etendo Main database
- 146 Requests
- 24m39s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 131 Requests
User Request type Count Duration postgres Total 15 1m17s select 15 1m17s tad Total 131 23m22s delete 14 2m10s select 104 20m33s update 13 37s863ms Duration by user
Key values
- 23m22s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 1m17s select 15 1m17s tad Total 131 23m22s delete 14 2m10s select 104 20m33s update 13 37s863ms Queries by host
Key values
- 127.0.0.1 Main host
- 131 Requests
- 23m22s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 131 Requests
- 23m22s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-17 09:25:24 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 126 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 2m52s select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';[ Date: 2026-07-17 13:23:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 2m51s select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';[ Date: 2026-07-17 15:32:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 2m46s select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';[ Date: 2026-07-17 13:41:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 2m45s select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';[ Date: 2026-07-17 13:02:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 2m39s select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';[ Date: 2026-07-17 14:35:20 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 29s713ms SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');[ Date: 2026-07-17 17:23:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 28s768ms SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');[ Date: 2026-07-17 17:22:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 27s373ms delete from C_OrderLine where C_OrderLine_ID = 'EA73D89F2610469ABC93E1A81C42970A';[ Date: 2026-07-17 16:11:51 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 24s878ms delete from C_OrderLine where C_OrderLine_ID = '4194A82FAEC94324B2F9D24604AA6BE9';[ Date: 2026-07-17 12:15:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 17s937ms delete from C_OrderLine where C_OrderLine_ID = '3D52C1D732BF46E8B31CDCF0AF70ADAB';[ Date: 2026-07-17 13:16:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 17s871ms delete from C_OrderLine where C_OrderLine_ID = '49B1236BBA41444D9E8CAF5C85B5C593';[ Date: 2026-07-17 16:45:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 16s411ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 15:25:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 15s971ms delete from C_OrderLine where C_OrderLine_ID = '42D110FD48854B8DBEFCCFBD8B30F1B3';[ Date: 2026-07-17 10:19:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 14s943ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 12:15:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 13s601ms SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DC1924997FC3426989EDC0910711A426' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 12:15:20 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 13s420ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 20:20:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 11s677ms select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', 'A51F74838923401B828149258C216C20', '911012AE84784C319648F0200E455572', '73CB51F91DD04E7CA6202AC8C788856A', '2464849836924D36AB07C38403EF28C5', 'A1540AB12AF54B1EB97C70C8369ECDCD', '75ED1EB8D1624315AC579407C1F03213', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8', '889907C124AE462985025DE6314B4586', 'ADE95BAC82AE45D28DFE945CE8D79D41', 'EDC43EA7A70D421EAD3EA0152B7A0606', '64610C21759C4C2787BA4606F0B57AEF', 'E2C1538CCF12437FB163B17441F3BBBC', '482FDD813C7C42799C65DB28ABD7C4FD');[ Date: 2026-07-17 13:02:27 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 11s326ms SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 20:20:55 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 10s149ms SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 12:15:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 10s95ms SELECT profile.take_sample ();[ Date: 2026-07-17 13:00:11 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 13m55s 5 2m39s 2m52s 2m47s select materialmg0_.m_inout_id as m_inout_1_548_, materialmg0_.ad_client_id as ad_clien2_548_, materialmg0_.ad_org_id as ad_org_i3_548_, materialmg0_.isactive as isactive4_548_, materialmg0_.created as created5_548_, materialmg0_.createdby as createdb6_548_, materialmg0_.updated as updated7_548_, materialmg0_.updatedby as updatedb8_548_, materialmg0_.issotrx as issotrx9_548_, materialmg0_.documentno as documen10_548_, materialmg0_.docaction as docacti11_548_, materialmg0_.docstatus as docstat12_548_, materialmg0_.posted as posted13_548_, materialmg0_.processing as process14_548_, materialmg0_.processed as process15_548_, materialmg0_.c_doctype_id as c_docty16_548_, materialmg0_.description as descrip17_548_, materialmg0_.c_order_id as c_order18_548_, materialmg0_.dateordered as dateord19_548_, materialmg0_.isprinted as isprint20_548_, materialmg0_.movementtype as movemen21_548_, materialmg0_.movementdate as movemen22_548_, materialmg0_.dateacct as dateacc23_548_, materialmg0_.c_bpartner_id as c_bpart24_548_, materialmg0_.c_bpartner_location_id as c_bpart25_548_, materialmg0_.m_warehouse_id as m_wareh26_548_, materialmg0_.poreference as porefer27_548_, materialmg0_.deliveryrule as deliver28_548_, materialmg0_.freightcostrule as freight29_548_, materialmg0_.freightamt as freight30_548_, materialmg0_.deliveryviarule as deliver31_548_, materialmg0_.m_shipper_id as m_shipp32_548_, materialmg0_.c_charge_id as c_charg33_548_, materialmg0_.chargeamt as chargea34_548_, materialmg0_.priorityrule as priorit35_548_, materialmg0_.dateprinted as datepri36_548_, materialmg0_.c_invoice_id as c_invoi37_548_, materialmg0_.createfrom as createf38_548_, materialmg0_.generateto as generat39_548_, materialmg0_.ad_user_id as ad_user40_548_, materialmg0_.salesrep_id as salesre41_548_, materialmg0_.nopackages as nopacka42_548_, materialmg0_.pickdate as pickdat43_548_, materialmg0_.shipdate as shipdat44_548_, materialmg0_.trackingno as trackin45_548_, materialmg0_.ad_orgtrx_id as ad_orgt46_548_, materialmg0_.c_project_id as c_proje47_548_, materialmg0_.c_campaign_id as c_campa48_548_, materialmg0_.c_activity_id as c_activ49_548_, materialmg0_.user1_id as user50_548_, materialmg0_.user2_id as user51_548_, materialmg0_.updatelines as updatel52_548_, materialmg0_.islogistic as islogis53_548_, materialmg0_.calculate_freight as calcula54_548_, materialmg0_.delivery_location_id as deliver55_548_, materialmg0_.m_freightcategory_id as m_freig56_548_, materialmg0_.freight_currency_id as freight57_548_, materialmg0_.rm_receipt_pickedit as rm_rece58_548_, materialmg0_.rm_shipment_pickedit as rm_ship59_548_, materialmg0_.em_obcma_c_poc_email_id as em_obcm60_548_, materialmg0_.m_condition_goods_id as m_condi61_548_, materialmg0_.a_asset_id as a_asset62_548_, materialmg0_.c_costcenter_id as c_costc63_548_, materialmg0_.process_goods_java as process64_548_, materialmg0_.isnettingshipment as isnetti65_548_, materialmg0_.iscompletelyinvoiced as iscompl66_548_, materialmg0_.em_obmfm_freight_id as em_obmf67_548_, materialmg0_.em_obwpack_packing as em_obwp68_548_, materialmg0_.em_obmfm_delivery_charges as em_obmf69_548_, materialmg0_.em_obwpack_packingh_id as em_obwp70_548_, materialmg0_.invoicefromshipment as invoice71_548_, materialmg0_.em_obwpack_processed as em_obwp72_548_, materialmg0_.bpartner_extref as bpartne73_548_, materialmg0_.em_etblkp_accountingstatus as em_etbl74_548_, materialmg0_.em_obwpack_reactivated as em_obwp75_548_, materialmg0_.em_etblkp_bulkposting as em_etbl76_548_, materialmg0_.em_prouti_changebpartner as em_prou77_548_, materialmg0_.em_obwpack_packingrequired as em_obwp78_548_, materialmg0_.em_prouti_totalqtyreceived as em_prou79_548_, materialmg0_.em_pruti_total_amt_tax as em_prut80_548_, materialmg0_.em_etblkc_bulkcompletion as em_etbl81_548_, materialmg0_.em_obmfm_deliverynotes as em_obmf82_548_, materialmg0_.em_prouti_initial_bp_id as em_prou83_548_, materialmg0_.em_prouti_move_stock as em_prou84_548_, materialmg0_.em_prouti_stock_moved as em_prou85_548_, materialmg0_.em_pruti_showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.em_pruti_createfrom as em_prut89_548_ from m_inout materialmg0_ cross join m_inout shipmentin1_ cross join c_doctype documentty2_ where materialmg0_.m_inout_id = shipmentin1_.m_inout_id and materialmg0_.c_doctype_id = documentty2_.c_doctype_id and materialmg0_.ad_org_id = ? and materialmg0_.movementdate >= ? and ( select c_getinvoicestatusfromshipment (shipmentin1_.m_inout_id) from dual) < ? and materialmg0_.docstatus = ? and (materialmg0_.movementtype in (...)) and materialmg0_.islogistic = ? and documentty2_.isreturn = ? and (materialmg0_.ad_org_id in (...)) and (materialmg0_.ad_client_id in (...)) order by materialmg0_.movementdate desc, materialmg0_.m_inout_id desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 13 3 8m24s 2m48s 14 1 2m39s 2m39s 15 1 2m51s 2m51s [ User: tad - Total duration: 13m55s - Times executed: 5 ]
[ Application: openbravo - Total duration: 13m55s - Times executed: 5 ]
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:23:29 Duration: 2m52s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 15:32:19 Duration: 2m51s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:41:19 Duration: 2m46s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 2m10s 14 2s169ms 27s373ms 9s336ms delete from c_orderline where c_orderline_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 10 1 15s971ms 15s971ms 12 2 31s651ms 15s825ms 13 5 28s783ms 5s756ms 16 5 51s937ms 10s387ms 17 1 2s371ms 2s371ms [ User: tad - Total duration: 2m10s - Times executed: 14 ]
[ Application: openbravo - Total duration: 2m10s - Times executed: 14 ]
-
delete from C_OrderLine where C_OrderLine_ID = 'EA73D89F2610469ABC93E1A81C42970A';
Date: 2026-07-17 16:11:51 Duration: 27s373ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '4194A82FAEC94324B2F9D24604AA6BE9';
Date: 2026-07-17 12:15:24 Duration: 24s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '3D52C1D732BF46E8B31CDCF0AF70ADAB';
Date: 2026-07-17 13:16:13 Duration: 17s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1m17s 15 2s298ms 10s95ms 5s135ms select profile.take_sample ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 1 5s684ms 5s684ms 08 1 5s254ms 5s254ms 09 1 7s945ms 7s945ms 10 1 3s275ms 3s275ms 11 1 6s451ms 6s451ms 12 1 3s560ms 3s560ms 13 1 10s95ms 10s95ms 14 1 3s794ms 3s794ms 15 1 3s81ms 3s81ms 16 1 4s979ms 4s979ms 17 1 7s194ms 7s194ms 18 1 6s914ms 6s914ms 19 1 2s651ms 2s651ms 20 1 2s298ms 2s298ms 21 1 3s849ms 3s849ms [ User: postgres - Total duration: 1m17s - Times executed: 15 ]
[ Application: psql - Total duration: 1m17s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 13:00:11 Duration: 10s95ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 09:00:09 Duration: 7s945ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:08 Duration: 7s194ms Database: etendo User: postgres Remote: [local] Application: psql
4 1m6s 6 6s123ms 16s411ms 11s24ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_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 #4
Day Hour Count Duration Avg duration Jul 17 12 2 22s699ms 11s349ms 15 2 23s901ms 11s950ms 20 2 19s543ms 9s771ms [ User: tad - Total duration: 1m6s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m6s - Times executed: 6 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:29 Duration: 16s411ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:49 Duration: 14s943ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:21 Duration: 13s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 58s481ms 2 28s768ms 29s713ms 29s240ms select count(*) as id from m_inoutline where c_bpartner_id = ? and ad_org_id in (...) and ad_client_id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 17 2 58s481ms 29s240ms [ User: tad - Total duration: 58s481ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 58s481ms - Times executed: 2 ]
-
SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');
Date: 2026-07-17 17:23:12 Duration: 29s713ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');
Date: 2026-07-17 17:22:42 Duration: 28s768ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 45s614ms 8 1s808ms 11s677ms 5s701ms select shipmentin0_.m_inout_id as m_inout_1_548_0_, shipmentin0_.ad_client_id as ad_clien2_548_0_, shipmentin0_.ad_org_id as ad_org_i3_548_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 13 5 32s112ms 6s422ms 14 2 7s420ms 3s710ms 15 1 6s82ms 6s82ms [ User: tad - Total duration: 45s614ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 45s614ms - Times executed: 8 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', 'A51F74838923401B828149258C216C20', '911012AE84784C319648F0200E455572', '73CB51F91DD04E7CA6202AC8C788856A', '2464849836924D36AB07C38403EF28C5', 'A1540AB12AF54B1EB97C70C8369ECDCD', '75ED1EB8D1624315AC579407C1F03213', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8', '889907C124AE462985025DE6314B4586', 'ADE95BAC82AE45D28DFE945CE8D79D41', 'EDC43EA7A70D421EAD3EA0152B7A0606', '64610C21759C4C2787BA4606F0B57AEF', 'E2C1538CCF12437FB163B17441F3BBBC', '482FDD813C7C42799C65DB28ABD7C4FD');
Date: 2026-07-17 13:02:27 Duration: 11s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8');
Date: 2026-07-17 13:41:26 Duration: 6s571ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF');
Date: 2026-07-17 13:23:35 Duration: 6s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 32s699ms 5 2s552ms 13s601ms 6s539ms select * from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) 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 12 2 23s750ms 11s875ms 15 2 6s396ms 3s198ms 20 1 2s552ms 2s552ms [ User: tad - Total duration: 32s699ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 32s699ms - Times executed: 5 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DC1924997FC3426989EDC0910711A426' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:20 Duration: 13s601ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:33 Duration: 10s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:12 Duration: 3s279ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 30s41ms 3 9s187ms 11s326ms 10s13ms select * from ( select j.gl_journal_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, j.ad_org_id, j.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, j.gl_journal_id, ?) as record_id from gl_journal j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.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 12 1 9s187ms 9s187ms 15 1 9s527ms 9s527ms 20 1 11s326ms 11s326ms [ User: tad - Total duration: 30s41ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 30s41ms - Times executed: 3 ]
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:55 Duration: 11s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:13 Duration: 9s527ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:37 Duration: 9s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 21s862ms 3 6s326ms 7s916ms 7s287ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_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 12 1 7s619ms 7s619ms 15 1 7s916ms 7s916ms 20 1 6s326ms 6s326ms [ User: tad - Total duration: 21s862ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s862ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:26:01 Duration: 7s916ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:16:25 Duration: 7s619ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:42 Duration: 6s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 20s302ms 3 4s677ms 8s430ms 6s767ms select * from ( select distinct pr.m_product_id as referencekey_id, ad_column_identifier (?, pr.m_product_id, ?) as record_id, pr.value || ? || ad_column_identifier (?, pr.m_product_id, ?) || ?| | round(coalesce(onhand.qtyonhand, ?) + coalesce(pend.qtypendingrecive, ?) - coalesce(pick.qtypicking, ?), ?) || ? || coalesce(porg.stockmin, ?) as description, pr.ad_org_id, pr.ad_client_id, ? as ad_role_id, null as ad_user_id, ? as isactive, now() as created, ? as createdby, now() as updated, ? as updatedby from m_product pr left join ( select sum(coalesce(sd.qtyonhand, ?)) as qtyonhand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, ?)) - sum(coalesce(m_lines.movementqty, ?)) as qtypendingrecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, ?) as qtyordered, coalesce(sum(iol.movementqty), ?) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = ? and o.issotrx = ? and o.docstatus = ? group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, ?) > sum(coalesce(iol.movementqty, ?))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, ?)) as qtypicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.qtyonhand, ?) - coalesce(pick.qtypicking, ?) + coalesce(pend.qtypendingrecive, ?)) < coalesce(porg.stockmin, ?) and ma_processplan_id is null) 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 12 1 8s430ms 8s430ms 15 1 4s677ms 4s677ms 20 1 7s195ms 7s195ms [ User: tad - Total duration: 20s302ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 20s302ms - Times executed: 3 ]
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:47 Duration: 8s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:21:03 Duration: 7s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:19 Duration: 4s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 17s742ms 12 1s112ms 1s660ms 1s478ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.em_libd_aplicacion_id as em_lib101_189_, businesspa0_.birthday as birthd102_189_, businesspa0_.is_customer_consent as is_cus103_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs104_189_, businesspa0_.em_obsepad_mandate_date as em_obs105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_libd_isparent as em_lib108_189_, businesspa0_.em_libd_bpartner_parent_id as em_lib109_189_, businesspa0_.em_pruti_addbp as em_pru110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_pruti_unlock_order_date as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru113_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru114_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea115_189_, businesspa0_.em_aeatsii_siikeylist as em_aea116_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs117_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba118_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs119_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.em_pruti_notsendinvoice as em_pru122_189_, businesspa0_.em_pruti_showpriceingoods as em_pru123_189_, businesspa0_.em_obtik_tax_id_key as em_obt124_189_, businesspa0_.em_prma_update_bprecords as em_prm125_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ inner join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?) || ?| | coalesce(to_char(order1_.em_libd_revisionfactura), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.name limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 10 1 1s660ms 1s660ms 11 1 1s609ms 1s609ms 12 4 6s218ms 1s554ms 13 4 5s992ms 1s498ms 16 2 2s261ms 1s130ms [ User: tad - Total duration: 17s742ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 17s742ms - Times executed: 12 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%evid%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 10:38:39 Duration: 1s660ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%imes%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 12:11:10 Duration: 1s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%cá%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 11:07:55 Duration: 1s609ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 15s281ms 3 1s66ms 8s636ms 5s93ms select * from ( select distinct iol.m_product_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || p.name || ? as description, ? as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, p.name as record_id from m_inoutline iol join m_inout io on iol.m_inout_id = io.m_inout_id and io.issotrx = ? and io.docstatus = ? join m_transaction t on iol.m_inoutline_id = t.m_inoutline_id join c_bpartner bp on io.c_bpartner_id = bp.c_bpartner_id join m_product p on iol.m_product_id = p.m_product_id join m_costing_rule cr on ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= ? and cr.datefrom <= t.trxprocessdate and cr.dateto > t.trxprocessdate join m_costing_algorithm ca on cr.m_costing_algorithm_id = ca.m_costing_algorithm_id and ca.classname = ? where not exists ( select ? from m_matchpo mp where mp.m_inoutline_id = iol.m_inoutline_id and mp.c_orderline_id is not null) and not exists ( select ? from m_costing c where c.m_product_id = iol.m_product_id and c.costtype in (...) and c.datefrom <= t.trxprocessdate and c.dateto > t.trxprocessdate) and not exists ( select ? from m_productprice pp join m_pricelist_version ppv on pp.m_pricelist_version_id = ppv.m_pricelist_version_id join m_pricelist pl on pl.m_pricelist_id = ppv.m_pricelist_id where pp.m_product_id = iol.m_product_id and (bp.po_pricelist_id = ppv.m_pricelist_id or (bp.po_pricelist_id is null and pl.issopricelist = ?)) and ppv.validfrom <= t.trxprocessdate) and not exists ( select ? from c_orderline ol join c_order o on ol.c_order_id = o.c_order_id and o.issotrx = ? and o.processed = ? where ol.m_product_id = iol.m_product_id and o.c_bpartner_id = bp.c_bpartner_id and ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.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 #12
Day Hour Count Duration Avg duration Jul 17 12 1 8s636ms 8s636ms 15 1 5s578ms 5s578ms 20 1 1s66ms 1s66ms [ User: tad - Total duration: 15s281ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 15s281ms - Times executed: 3 ]
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:08 Duration: 8s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:44 Duration: 5s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:27 Duration: 1s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 12s214ms 9 1s20ms 2s636ms 1s357ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.em_psmad_copyfrompo as em_psma68_260_, order0_.fin_paymentmethod_id as fin_pay69_260_, order0_.em_psmad_dateendeffect as em_psma70_260_, order0_.fin_payment_priority_id as fin_pay71_260_, order0_.em_psmad_requestinguser as em_psma72_260_, order0_.rm_pickfromshipment as rm_pick73_260_, order0_.em_psmad_isopenpo_doctype as em_psma74_260_, order0_.rm_receivematerials as rm_rece75_260_, order0_.em_erpmag_ecomord as em_erpm76_260_, order0_.em_obcma_c_poc_email_id as em_obcm77_260_, order0_.rm_createinvoice as rm_crea78_260_, order0_.c_return_reason_id as c_retur79_260_, order0_.rm_addorphanline as rm_addo80_260_, order0_.a_asset_id as a_asset81_260_, order0_.calculate_promotions as calcula82_260_, order0_.c_costcenter_id as c_costc83_260_, order0_.convertquotation as convert84_260_, order0_.c_reject_reason_id as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.quotation_id as quotati87_260_, order0_.so_res_status as so_res_88_260_, order0_.create_polines as create_89_260_, order0_.iscashvat as iscashv90_260_, order0_.em_obmfm_selectfreight as em_obmf91_260_, order0_.em_obmfm_delivery_period_id as em_obmf92_260_, order0_.rm_pickfromreceipt as rm_pick93_260_, order0_.cancelandreplace as cancela94_260_, order0_.em_aprm_addpayment as em_aprm95_260_, order0_.em_obmfm_delivery_charges as em_obmf96_260_, order0_.em_obmfm_freight_id as em_obmf97_260_, order0_.em_obwpl_generatepicking as em_obwp98_260_, order0_.em_libp_preporder as em_libp99_260_, order0_.em_obmfm_weight as em_obm100_260_, order0_.em_obwpl_isinpickinglist as em_obw101_260_, order0_.em_obwpl_readypl as em_obw102_260_, order0_.em_obmfm_weight_uom_id as em_obm103_260_, order0_.em_obmfm_set_weight as em_obm104_260_, order0_.em_aeatsii_fecha_operacion as em_aea105_260_, order0_.confirmcancelandreplace as confir106_260_, order0_.em_aeatsii_descripcion_sii as em_aea107_260_, order0_.em_etabam_bankaccount_id as em_eta108_260_, order0_.em_etpr_remove_payment as em_etp109_260_, order0_.em_etvfac_reversed_invoice as em_etv110_260_, order0_.cancelledorder_id as cancel111_260_, order0_.em_etblkc_bulkcompletion as em_etb112_260_, order0_.em_prmag2_grandtotal as em_prm113_260_, order0_.replacedorder_id as replac114_260_, order0_.iscancelled as iscanc115_260_, order0_.em_libd_revisionfactura as em_lib116_260_, order0_.em_obmag_createquot as em_obm117_260_, order0_.em_libd_revisaimpuestos as em_lib118_260_, order0_.replacementorder_id as replac119_260_, order0_.em_libd_impuestos as em_lib120_260_, order0_.em_etafdp_undoclose as em_eta121_260_, order0_.em_libd_isprinted as em_lib122_260_, order0_.em_etinter_interco_orig as em_eti123_260_, order0_.em_libd_aplicacion_id as em_lib124_260_, order0_.bpartner_extref as bpartn125_260_, order0_.em_libp_dateorder as em_lib126_260_, order0_.em_prouti_order_stock as em_pro127_260_, order0_.em_prouti_pregenerate_minout as em_pro128_260_, order0_.em_prouti_sotopo as em_pro129_260_, order0_.em_prouti_generate_pick_inv as em_pro130_260_, order0_.em_prouti_order_id as em_pro131_260_, order0_.em_prouti_grandtotalinitial as em_pro132_260_, order0_.em_prouti_dateclosed as em_pro133_260_, order0_.em_prouti_totallinesinitial as em_pro134_260_, order0_.em_prouti_changebpartner as em_pro135_260_, order0_.em_prouti_recalculate_price as em_pro136_260_, order0_.em_prouti_pricecalculatetdate as em_pro137_260_, order0_.em_prouti_reactiveorder as em_pro138_260_, order0_.em_prouti_totalizations as em_pro139_260_, order0_.em_libd_bpartner_parent_id as em_lib140_260_, order0_.em_prouti_invoiced as em_pro141_260_, order0_.em_libd_usercloud as em_lib142_260_, order0_.em_prouti_received as em_pro143_260_, order0_.em_libd_id_purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.em_libd_convertquotation as em_lib146_260_, order0_.em_prouti_status_of_review as em_pro147_260_, order0_.em_libd_duplicatequotation as em_lib148_260_, order0_.em_prouti_validate_order as em_pro149_260_, order0_.em_libd_endcustomer_id as em_lib150_260_, order0_.em_prouti_start_review as em_pro151_260_, order0_.em_libd_editing as em_lib152_260_, order0_.em_prouti_initial_bp_id as em_pro153_260_, order0_.em_prouti_addlines_btn as em_pro154_260_, order0_.em_prouti_changebpartner_bgt as em_pro155_260_, order0_.em_pruti_ignoreminqty as em_pru156_260_, order0_.em_prouti_reset_initial_values as em_pro157_260_, order0_.em_prouti_select_soline as em_pro158_260_, order0_.em_prouti_return_quantity as em_pro159_260_, order0_.em_libd_actions_quotation as em_lib160_260_ from c_order order0_ inner join c_doctype documentty1_ on order0_.c_doctypetarget_id = documentty1_.c_doctype_id cross join c_order order_comp2_ where order0_.c_order_id = order_comp2_.c_order_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtydelivered)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and order0_.em_libp_preporder = ? and (documentty1_.c_doctype_id = ? or documentty1_.c_doctype_id = ? or documentty1_.c_doctype_id = ?) and order0_.docstatus = ? and order0_.issotrx = ? and documentty1_.isreturn = ? and (documentty1_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 17 07 1 2s636ms 2s636ms 08 1 1s311ms 1s311ms 09 1 1s147ms 1s147ms 10 1 1s345ms 1s345ms 11 2 2s630ms 1s315ms 12 1 1s20ms 1s20ms 13 1 1s40ms 1s40ms 14 1 1s82ms 1s82ms [ User: tad - Total duration: 12s214ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 12s214ms - Times executed: 9 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 07:19:53 Duration: 2s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 10:42:10 Duration: 1s345ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 11:24:39 Duration: 1s339ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 10s891ms 4 1s565ms 3s724ms 2s722ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(coalesce(fin_paymen9_.name, fin_paymen5_.name)) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 10 1 3s724ms 3s724ms 12 3 7s166ms 2s388ms [ User: tad - Total duration: 10s891ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 10s891ms - Times executed: 4 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'DAF8BCB6A8BC432B86EE261F48F36F96') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 10:56:37 Duration: 3s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '55D74DBD2A5C4C96A8428D830F4AC301') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:29:47 Duration: 2s804ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E0DA758135D7492BA8204CC62D1D3AC5') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:31:39 Duration: 2s797ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 9s442ms 3 2s942ms 3s293ms 3s147ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and ev.value >= ? and ev.value <= ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 15 3 9s442ms 3s147ms [ User: tad - Total duration: 9s442ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 9s442ms - Times executed: 3 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '555000000' AND EV.VALUE <= '555030000' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:54:13 Duration: 3s293ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '572000000' AND EV.VALUE <= '573000003' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:41:05 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '520000017' AND EV.VALUE <= '520000017' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:42:04 Duration: 2s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 8s473ms 6 1s126ms 2s234ms 1s412ms select * from m_inout_post0 (?);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 08 1 2s234ms 2s234ms 09 2 2s637ms 1s318ms 12 2 2s475ms 1s237ms 14 1 1s126ms 1s126ms [ User: tad - Total duration: 8s473ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 8s473ms - Times executed: 6 ]
-
SELECT * FROM M_INOUT_POST0 ('CB9F9075E7F84F8B82EA7AD9E6C6D256');
Date: 2026-07-17 08:48:54 Duration: 2s234ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_INOUT_POST0 ('1FC64FBC5EB04D8F873871712DE1371E');
Date: 2026-07-17 09:53:53 Duration: 1s428ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_INOUT_POST0 ('6BA84361160D4AFA807B7F1CFD9ACC27');
Date: 2026-07-17 12:42:08 Duration: 1s253ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 8s93ms 2 3s820ms 4s272ms 4s46ms select * from ( select distinct iol.m_product_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || p.name || ? as description, ? as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, p.name as record_id from m_inoutline iol join m_inout io on iol.m_inout_id = io.m_inout_id and io.issotrx = ? and io.docstatus = ? join m_product p on iol.m_product_id = p.m_product_id join m_transaction t on iol.m_inoutline_id = t.m_inoutline_id join c_bpartner bp on io.c_bpartner_id = bp.c_bpartner_id join c_doctype dt on io.c_doctype_id = dt.c_doctype_id and dt.isreturn = ? join m_costing_rule cr on ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= ? and cr.datefrom <= t.trxprocessdate and cr.dateto > t.trxprocessdate join m_costing_algorithm ca on cr.m_costing_algorithm_id = ca.m_costing_algorithm_id and ca.classname = ? where (iol.canceled_inoutline_id is null and iol.movementqty < ?) and not exists ( select ? from m_costing c where c.m_product_id = iol.m_product_id and c.costtype in (...) and c.datefrom <= t.trxprocessdate and c.dateto > t.trxprocessdate) and not exists ( select ? from m_productprice pp join m_pricelist_version ppv on pp.m_pricelist_version_id = ppv.m_pricelist_version_id join m_pricelist pl on pl.m_pricelist_id = ppv.m_pricelist_id where pp.m_product_id = iol.m_product_id and (bp.po_pricelist_id = ppv.m_pricelist_id or (bp.po_pricelist_id is null and pl.issopricelist = ?)) and ppv.validfrom <= t.trxprocessdate)) 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 12 1 4s272ms 4s272ms 15 1 3s820ms 3s820ms [ User: tad - Total duration: 8s93ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 8s93ms - Times executed: 2 ]
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Cancelation Shipments without a related original shipment and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'Y' AND io.docstatus = 'VO' JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id AND dt.isreturn = 'N' JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE (iol.canceled_inoutline_id IS NULL AND iol.movementqty < 0) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'BD07156AA7EE4FB2B95B3F3A6D63296F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:58 Duration: 4s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Cancelation Shipments without a related original shipment and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'Y' AND io.docstatus = 'VO' JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id AND dt.isreturn = 'N' JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE (iol.canceled_inoutline_id IS NULL AND iol.movementqty < 0) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'BD07156AA7EE4FB2B95B3F3A6D63296F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:37 Duration: 3s820ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 7s547ms 3 2s28ms 2s978ms 2s515ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 12 1 2s978ms 2s978ms 15 1 2s540ms 2s540ms 20 1 2s28ms 2s28ms [ User: tad - Total duration: 7s547ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 7s547ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:15:23 Duration: 2s978ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:25:08 Duration: 2s540ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:06 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 6s599ms 3 1s878ms 2s636ms 2s199ms select sum(coalesce(abc_control.cuentavendido, ?)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 12 1 2s636ms 2s636ms 15 1 2s84ms 2s84ms 20 1 1s878ms 1s878ms [ User: tad - Total duration: 6s599ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s599ms - Times executed: 3 ]
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 12:00:28 Duration: 2s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 15:10:25 Duration: 2s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 20:00:18 Duration: 1s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 6s354ms 1 6s354ms 6s354ms 6s354ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.em_psmad_copyfrompo as em_psma68_260_, order0_.fin_paymentmethod_id as fin_pay69_260_, order0_.em_psmad_dateendeffect as em_psma70_260_, order0_.fin_payment_priority_id as fin_pay71_260_, order0_.em_psmad_requestinguser as em_psma72_260_, order0_.rm_pickfromshipment as rm_pick73_260_, order0_.em_psmad_isopenpo_doctype as em_psma74_260_, order0_.rm_receivematerials as rm_rece75_260_, order0_.em_erpmag_ecomord as em_erpm76_260_, order0_.em_obcma_c_poc_email_id as em_obcm77_260_, order0_.rm_createinvoice as rm_crea78_260_, order0_.c_return_reason_id as c_retur79_260_, order0_.rm_addorphanline as rm_addo80_260_, order0_.a_asset_id as a_asset81_260_, order0_.calculate_promotions as calcula82_260_, order0_.c_costcenter_id as c_costc83_260_, order0_.convertquotation as convert84_260_, order0_.c_reject_reason_id as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.quotation_id as quotati87_260_, order0_.so_res_status as so_res_88_260_, order0_.create_polines as create_89_260_, order0_.iscashvat as iscashv90_260_, order0_.em_obmfm_selectfreight as em_obmf91_260_, order0_.em_obmfm_delivery_period_id as em_obmf92_260_, order0_.rm_pickfromreceipt as rm_pick93_260_, order0_.cancelandreplace as cancela94_260_, order0_.em_aprm_addpayment as em_aprm95_260_, order0_.em_obmfm_delivery_charges as em_obmf96_260_, order0_.em_obmfm_freight_id as em_obmf97_260_, order0_.em_obwpl_generatepicking as em_obwp98_260_, order0_.em_libp_preporder as em_libp99_260_, order0_.em_obmfm_weight as em_obm100_260_, order0_.em_obwpl_isinpickinglist as em_obw101_260_, order0_.em_obwpl_readypl as em_obw102_260_, order0_.em_obmfm_weight_uom_id as em_obm103_260_, order0_.em_obmfm_set_weight as em_obm104_260_, order0_.em_aeatsii_fecha_operacion as em_aea105_260_, order0_.confirmcancelandreplace as confir106_260_, order0_.em_aeatsii_descripcion_sii as em_aea107_260_, order0_.em_etabam_bankaccount_id as em_eta108_260_, order0_.em_etpr_remove_payment as em_etp109_260_, order0_.em_etvfac_reversed_invoice as em_etv110_260_, order0_.cancelledorder_id as cancel111_260_, order0_.em_etblkc_bulkcompletion as em_etb112_260_, order0_.em_prmag2_grandtotal as em_prm113_260_, order0_.replacedorder_id as replac114_260_, order0_.iscancelled as iscanc115_260_, order0_.em_libd_revisionfactura as em_lib116_260_, order0_.em_obmag_createquot as em_obm117_260_, order0_.em_libd_revisaimpuestos as em_lib118_260_, order0_.replacementorder_id as replac119_260_, order0_.em_libd_impuestos as em_lib120_260_, order0_.em_etafdp_undoclose as em_eta121_260_, order0_.em_libd_isprinted as em_lib122_260_, order0_.em_etinter_interco_orig as em_eti123_260_, order0_.em_libd_aplicacion_id as em_lib124_260_, order0_.bpartner_extref as bpartn125_260_, order0_.em_libp_dateorder as em_lib126_260_, order0_.em_prouti_order_stock as em_pro127_260_, order0_.em_prouti_pregenerate_minout as em_pro128_260_, order0_.em_prouti_sotopo as em_pro129_260_, order0_.em_prouti_generate_pick_inv as em_pro130_260_, order0_.em_prouti_order_id as em_pro131_260_, order0_.em_prouti_grandtotalinitial as em_pro132_260_, order0_.em_prouti_dateclosed as em_pro133_260_, order0_.em_prouti_totallinesinitial as em_pro134_260_, order0_.em_prouti_changebpartner as em_pro135_260_, order0_.em_prouti_recalculate_price as em_pro136_260_, order0_.em_prouti_pricecalculatetdate as em_pro137_260_, order0_.em_prouti_reactiveorder as em_pro138_260_, order0_.em_prouti_totalizations as em_pro139_260_, order0_.em_libd_bpartner_parent_id as em_lib140_260_, order0_.em_prouti_invoiced as em_pro141_260_, order0_.em_libd_usercloud as em_lib142_260_, order0_.em_prouti_received as em_pro143_260_, order0_.em_libd_id_purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.em_libd_convertquotation as em_lib146_260_, order0_.em_prouti_status_of_review as em_pro147_260_, order0_.em_libd_duplicatequotation as em_lib148_260_, order0_.em_prouti_validate_order as em_pro149_260_, order0_.em_libd_endcustomer_id as em_lib150_260_, order0_.em_prouti_start_review as em_pro151_260_, order0_.em_libd_editing as em_lib152_260_, order0_.em_prouti_initial_bp_id as em_pro153_260_, order0_.em_prouti_addlines_btn as em_pro154_260_, order0_.em_prouti_changebpartner_bgt as em_pro155_260_, order0_.em_pruti_ignoreminqty as em_pru156_260_, order0_.em_prouti_reset_initial_values as em_pro157_260_, order0_.em_prouti_select_soline as em_pro158_260_, order0_.em_prouti_return_quantity as em_pro159_260_, order0_.em_libd_actions_quotation as em_lib160_260_ from c_order order0_ inner join ad_org organizati1_ on order0_.ad_org_id = organizati1_.ad_org_id cross join c_order order_comp2_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (organizati1_.ad_org_id = ? or organizati1_.ad_org_id = ?) and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtydelivered)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and order0_.docstatus = ? and order0_.em_libp_preporder = ? and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered, order0_.c_order_id limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 07 1 6s354ms 6s354ms [ User: tad - Total duration: 6s354ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 6s354ms - Times executed: 1 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join AD_Org organizati1_ on order0_.AD_Org_ID = organizati1_.AD_Org_ID cross join C_Order order_comp2_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (organizati1_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' or organizati1_.AD_Org_ID = '9DFF9C5278274C2DA3F411C2BA23605C') and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.DocStatus = 'CO' and order0_.EM_Libp_Preporder = 'Y' and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered, order0_.C_Order_ID limit '101';
Date: 2026-07-17 07:03:36 Duration: 6s354ms 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 15 1m17s 2s298ms 10s95ms 5s135ms select profile.take_sample ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 1 5s684ms 5s684ms 08 1 5s254ms 5s254ms 09 1 7s945ms 7s945ms 10 1 3s275ms 3s275ms 11 1 6s451ms 6s451ms 12 1 3s560ms 3s560ms 13 1 10s95ms 10s95ms 14 1 3s794ms 3s794ms 15 1 3s81ms 3s81ms 16 1 4s979ms 4s979ms 17 1 7s194ms 7s194ms 18 1 6s914ms 6s914ms 19 1 2s651ms 2s651ms 20 1 2s298ms 2s298ms 21 1 3s849ms 3s849ms [ User: postgres - Total duration: 1m17s - Times executed: 15 ]
[ Application: psql - Total duration: 1m17s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 13:00:11 Duration: 10s95ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 09:00:09 Duration: 7s945ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:08 Duration: 7s194ms Database: etendo User: postgres Remote: [local] Application: psql
2 14 2m10s 2s169ms 27s373ms 9s336ms delete from c_orderline where c_orderline_id = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 10 1 15s971ms 15s971ms 12 2 31s651ms 15s825ms 13 5 28s783ms 5s756ms 16 5 51s937ms 10s387ms 17 1 2s371ms 2s371ms [ User: tad - Total duration: 2m10s - Times executed: 14 ]
[ Application: openbravo - Total duration: 2m10s - Times executed: 14 ]
-
delete from C_OrderLine where C_OrderLine_ID = 'EA73D89F2610469ABC93E1A81C42970A';
Date: 2026-07-17 16:11:51 Duration: 27s373ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '4194A82FAEC94324B2F9D24604AA6BE9';
Date: 2026-07-17 12:15:24 Duration: 24s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '3D52C1D732BF46E8B31CDCF0AF70ADAB';
Date: 2026-07-17 13:16:13 Duration: 17s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 12 17s742ms 1s112ms 1s660ms 1s478ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.em_libd_aplicacion_id as em_lib101_189_, businesspa0_.birthday as birthd102_189_, businesspa0_.is_customer_consent as is_cus103_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs104_189_, businesspa0_.em_obsepad_mandate_date as em_obs105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_libd_isparent as em_lib108_189_, businesspa0_.em_libd_bpartner_parent_id as em_lib109_189_, businesspa0_.em_pruti_addbp as em_pru110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_pruti_unlock_order_date as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru113_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru114_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea115_189_, businesspa0_.em_aeatsii_siikeylist as em_aea116_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs117_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba118_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs119_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.em_pruti_notsendinvoice as em_pru122_189_, businesspa0_.em_pruti_showpriceingoods as em_pru123_189_, businesspa0_.em_obtik_tax_id_key as em_obt124_189_, businesspa0_.em_prma_update_bprecords as em_prm125_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ inner join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?) || ?| | coalesce(to_char(order1_.em_libd_revisionfactura), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.name limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 10 1 1s660ms 1s660ms 11 1 1s609ms 1s609ms 12 4 6s218ms 1s554ms 13 4 5s992ms 1s498ms 16 2 2s261ms 1s130ms [ User: tad - Total duration: 17s742ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 17s742ms - Times executed: 12 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%evid%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 10:38:39 Duration: 1s660ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%imes%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 12:11:10 Duration: 1s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%cá%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 11:07:55 Duration: 1s609ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 9 12s214ms 1s20ms 2s636ms 1s357ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.em_psmad_copyfrompo as em_psma68_260_, order0_.fin_paymentmethod_id as fin_pay69_260_, order0_.em_psmad_dateendeffect as em_psma70_260_, order0_.fin_payment_priority_id as fin_pay71_260_, order0_.em_psmad_requestinguser as em_psma72_260_, order0_.rm_pickfromshipment as rm_pick73_260_, order0_.em_psmad_isopenpo_doctype as em_psma74_260_, order0_.rm_receivematerials as rm_rece75_260_, order0_.em_erpmag_ecomord as em_erpm76_260_, order0_.em_obcma_c_poc_email_id as em_obcm77_260_, order0_.rm_createinvoice as rm_crea78_260_, order0_.c_return_reason_id as c_retur79_260_, order0_.rm_addorphanline as rm_addo80_260_, order0_.a_asset_id as a_asset81_260_, order0_.calculate_promotions as calcula82_260_, order0_.c_costcenter_id as c_costc83_260_, order0_.convertquotation as convert84_260_, order0_.c_reject_reason_id as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.quotation_id as quotati87_260_, order0_.so_res_status as so_res_88_260_, order0_.create_polines as create_89_260_, order0_.iscashvat as iscashv90_260_, order0_.em_obmfm_selectfreight as em_obmf91_260_, order0_.em_obmfm_delivery_period_id as em_obmf92_260_, order0_.rm_pickfromreceipt as rm_pick93_260_, order0_.cancelandreplace as cancela94_260_, order0_.em_aprm_addpayment as em_aprm95_260_, order0_.em_obmfm_delivery_charges as em_obmf96_260_, order0_.em_obmfm_freight_id as em_obmf97_260_, order0_.em_obwpl_generatepicking as em_obwp98_260_, order0_.em_libp_preporder as em_libp99_260_, order0_.em_obmfm_weight as em_obm100_260_, order0_.em_obwpl_isinpickinglist as em_obw101_260_, order0_.em_obwpl_readypl as em_obw102_260_, order0_.em_obmfm_weight_uom_id as em_obm103_260_, order0_.em_obmfm_set_weight as em_obm104_260_, order0_.em_aeatsii_fecha_operacion as em_aea105_260_, order0_.confirmcancelandreplace as confir106_260_, order0_.em_aeatsii_descripcion_sii as em_aea107_260_, order0_.em_etabam_bankaccount_id as em_eta108_260_, order0_.em_etpr_remove_payment as em_etp109_260_, order0_.em_etvfac_reversed_invoice as em_etv110_260_, order0_.cancelledorder_id as cancel111_260_, order0_.em_etblkc_bulkcompletion as em_etb112_260_, order0_.em_prmag2_grandtotal as em_prm113_260_, order0_.replacedorder_id as replac114_260_, order0_.iscancelled as iscanc115_260_, order0_.em_libd_revisionfactura as em_lib116_260_, order0_.em_obmag_createquot as em_obm117_260_, order0_.em_libd_revisaimpuestos as em_lib118_260_, order0_.replacementorder_id as replac119_260_, order0_.em_libd_impuestos as em_lib120_260_, order0_.em_etafdp_undoclose as em_eta121_260_, order0_.em_libd_isprinted as em_lib122_260_, order0_.em_etinter_interco_orig as em_eti123_260_, order0_.em_libd_aplicacion_id as em_lib124_260_, order0_.bpartner_extref as bpartn125_260_, order0_.em_libp_dateorder as em_lib126_260_, order0_.em_prouti_order_stock as em_pro127_260_, order0_.em_prouti_pregenerate_minout as em_pro128_260_, order0_.em_prouti_sotopo as em_pro129_260_, order0_.em_prouti_generate_pick_inv as em_pro130_260_, order0_.em_prouti_order_id as em_pro131_260_, order0_.em_prouti_grandtotalinitial as em_pro132_260_, order0_.em_prouti_dateclosed as em_pro133_260_, order0_.em_prouti_totallinesinitial as em_pro134_260_, order0_.em_prouti_changebpartner as em_pro135_260_, order0_.em_prouti_recalculate_price as em_pro136_260_, order0_.em_prouti_pricecalculatetdate as em_pro137_260_, order0_.em_prouti_reactiveorder as em_pro138_260_, order0_.em_prouti_totalizations as em_pro139_260_, order0_.em_libd_bpartner_parent_id as em_lib140_260_, order0_.em_prouti_invoiced as em_pro141_260_, order0_.em_libd_usercloud as em_lib142_260_, order0_.em_prouti_received as em_pro143_260_, order0_.em_libd_id_purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.em_libd_convertquotation as em_lib146_260_, order0_.em_prouti_status_of_review as em_pro147_260_, order0_.em_libd_duplicatequotation as em_lib148_260_, order0_.em_prouti_validate_order as em_pro149_260_, order0_.em_libd_endcustomer_id as em_lib150_260_, order0_.em_prouti_start_review as em_pro151_260_, order0_.em_libd_editing as em_lib152_260_, order0_.em_prouti_initial_bp_id as em_pro153_260_, order0_.em_prouti_addlines_btn as em_pro154_260_, order0_.em_prouti_changebpartner_bgt as em_pro155_260_, order0_.em_pruti_ignoreminqty as em_pru156_260_, order0_.em_prouti_reset_initial_values as em_pro157_260_, order0_.em_prouti_select_soline as em_pro158_260_, order0_.em_prouti_return_quantity as em_pro159_260_, order0_.em_libd_actions_quotation as em_lib160_260_ from c_order order0_ inner join c_doctype documentty1_ on order0_.c_doctypetarget_id = documentty1_.c_doctype_id cross join c_order order_comp2_ where order0_.c_order_id = order_comp2_.c_order_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtydelivered)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and order0_.em_libp_preporder = ? and (documentty1_.c_doctype_id = ? or documentty1_.c_doctype_id = ? or documentty1_.c_doctype_id = ?) and order0_.docstatus = ? and order0_.issotrx = ? and documentty1_.isreturn = ? and (documentty1_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 1 2s636ms 2s636ms 08 1 1s311ms 1s311ms 09 1 1s147ms 1s147ms 10 1 1s345ms 1s345ms 11 2 2s630ms 1s315ms 12 1 1s20ms 1s20ms 13 1 1s40ms 1s40ms 14 1 1s82ms 1s82ms [ User: tad - Total duration: 12s214ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 12s214ms - Times executed: 9 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 07:19:53 Duration: 2s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 10:42:10 Duration: 1s345ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join C_DocType documentty1_ on order0_.C_DocTypeTarget_ID = documentty1_.C_DocType_ID cross join C_Order order_comp2_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.EM_Libp_Preporder = 'Y' and (documentty1_.C_DocType_ID = '93B1C21D229E4F70918287DA983CB18E' or documentty1_.C_DocType_ID = '7C1C60D646A84C0CA252F50CE8F55D6F' or documentty1_.C_DocType_ID = '5AC9E2D9DAB44BF9A2069BB51E1145DF') and order0_.DocStatus = 'CO' and order0_.IsSOTrx = 'Y' and documentty1_.IsReturn = 'N' and (documentty1_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 11:24:39 Duration: 1s339ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 8 45s614ms 1s808ms 11s677ms 5s701ms select shipmentin0_.m_inout_id as m_inout_1_548_0_, shipmentin0_.ad_client_id as ad_clien2_548_0_, shipmentin0_.ad_org_id as ad_org_i3_548_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 13 5 32s112ms 6s422ms 14 2 7s420ms 3s710ms 15 1 6s82ms 6s82ms [ User: tad - Total duration: 45s614ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 45s614ms - Times executed: 8 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', 'A51F74838923401B828149258C216C20', '911012AE84784C319648F0200E455572', '73CB51F91DD04E7CA6202AC8C788856A', '2464849836924D36AB07C38403EF28C5', 'A1540AB12AF54B1EB97C70C8369ECDCD', '75ED1EB8D1624315AC579407C1F03213', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8', '889907C124AE462985025DE6314B4586', 'ADE95BAC82AE45D28DFE945CE8D79D41', 'EDC43EA7A70D421EAD3EA0152B7A0606', '64610C21759C4C2787BA4606F0B57AEF', 'E2C1538CCF12437FB163B17441F3BBBC', '482FDD813C7C42799C65DB28ABD7C4FD');
Date: 2026-07-17 13:02:27 Duration: 11s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8');
Date: 2026-07-17 13:41:26 Duration: 6s571ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF');
Date: 2026-07-17 13:23:35 Duration: 6s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 6 1m6s 6s123ms 16s411ms 11s24ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_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 #6
Day Hour Count Duration Avg duration Jul 17 12 2 22s699ms 11s349ms 15 2 23s901ms 11s950ms 20 2 19s543ms 9s771ms [ User: tad - Total duration: 1m6s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m6s - Times executed: 6 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:29 Duration: 16s411ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:49 Duration: 14s943ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:21 Duration: 13s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 6 8s473ms 1s126ms 2s234ms 1s412ms select * from m_inout_post0 (?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 08 1 2s234ms 2s234ms 09 2 2s637ms 1s318ms 12 2 2s475ms 1s237ms 14 1 1s126ms 1s126ms [ User: tad - Total duration: 8s473ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 8s473ms - Times executed: 6 ]
-
SELECT * FROM M_INOUT_POST0 ('CB9F9075E7F84F8B82EA7AD9E6C6D256');
Date: 2026-07-17 08:48:54 Duration: 2s234ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_INOUT_POST0 ('1FC64FBC5EB04D8F873871712DE1371E');
Date: 2026-07-17 09:53:53 Duration: 1s428ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_INOUT_POST0 ('6BA84361160D4AFA807B7F1CFD9ACC27');
Date: 2026-07-17 12:42:08 Duration: 1s253ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 5 13m55s 2m39s 2m52s 2m47s select materialmg0_.m_inout_id as m_inout_1_548_, materialmg0_.ad_client_id as ad_clien2_548_, materialmg0_.ad_org_id as ad_org_i3_548_, materialmg0_.isactive as isactive4_548_, materialmg0_.created as created5_548_, materialmg0_.createdby as createdb6_548_, materialmg0_.updated as updated7_548_, materialmg0_.updatedby as updatedb8_548_, materialmg0_.issotrx as issotrx9_548_, materialmg0_.documentno as documen10_548_, materialmg0_.docaction as docacti11_548_, materialmg0_.docstatus as docstat12_548_, materialmg0_.posted as posted13_548_, materialmg0_.processing as process14_548_, materialmg0_.processed as process15_548_, materialmg0_.c_doctype_id as c_docty16_548_, materialmg0_.description as descrip17_548_, materialmg0_.c_order_id as c_order18_548_, materialmg0_.dateordered as dateord19_548_, materialmg0_.isprinted as isprint20_548_, materialmg0_.movementtype as movemen21_548_, materialmg0_.movementdate as movemen22_548_, materialmg0_.dateacct as dateacc23_548_, materialmg0_.c_bpartner_id as c_bpart24_548_, materialmg0_.c_bpartner_location_id as c_bpart25_548_, materialmg0_.m_warehouse_id as m_wareh26_548_, materialmg0_.poreference as porefer27_548_, materialmg0_.deliveryrule as deliver28_548_, materialmg0_.freightcostrule as freight29_548_, materialmg0_.freightamt as freight30_548_, materialmg0_.deliveryviarule as deliver31_548_, materialmg0_.m_shipper_id as m_shipp32_548_, materialmg0_.c_charge_id as c_charg33_548_, materialmg0_.chargeamt as chargea34_548_, materialmg0_.priorityrule as priorit35_548_, materialmg0_.dateprinted as datepri36_548_, materialmg0_.c_invoice_id as c_invoi37_548_, materialmg0_.createfrom as createf38_548_, materialmg0_.generateto as generat39_548_, materialmg0_.ad_user_id as ad_user40_548_, materialmg0_.salesrep_id as salesre41_548_, materialmg0_.nopackages as nopacka42_548_, materialmg0_.pickdate as pickdat43_548_, materialmg0_.shipdate as shipdat44_548_, materialmg0_.trackingno as trackin45_548_, materialmg0_.ad_orgtrx_id as ad_orgt46_548_, materialmg0_.c_project_id as c_proje47_548_, materialmg0_.c_campaign_id as c_campa48_548_, materialmg0_.c_activity_id as c_activ49_548_, materialmg0_.user1_id as user50_548_, materialmg0_.user2_id as user51_548_, materialmg0_.updatelines as updatel52_548_, materialmg0_.islogistic as islogis53_548_, materialmg0_.calculate_freight as calcula54_548_, materialmg0_.delivery_location_id as deliver55_548_, materialmg0_.m_freightcategory_id as m_freig56_548_, materialmg0_.freight_currency_id as freight57_548_, materialmg0_.rm_receipt_pickedit as rm_rece58_548_, materialmg0_.rm_shipment_pickedit as rm_ship59_548_, materialmg0_.em_obcma_c_poc_email_id as em_obcm60_548_, materialmg0_.m_condition_goods_id as m_condi61_548_, materialmg0_.a_asset_id as a_asset62_548_, materialmg0_.c_costcenter_id as c_costc63_548_, materialmg0_.process_goods_java as process64_548_, materialmg0_.isnettingshipment as isnetti65_548_, materialmg0_.iscompletelyinvoiced as iscompl66_548_, materialmg0_.em_obmfm_freight_id as em_obmf67_548_, materialmg0_.em_obwpack_packing as em_obwp68_548_, materialmg0_.em_obmfm_delivery_charges as em_obmf69_548_, materialmg0_.em_obwpack_packingh_id as em_obwp70_548_, materialmg0_.invoicefromshipment as invoice71_548_, materialmg0_.em_obwpack_processed as em_obwp72_548_, materialmg0_.bpartner_extref as bpartne73_548_, materialmg0_.em_etblkp_accountingstatus as em_etbl74_548_, materialmg0_.em_obwpack_reactivated as em_obwp75_548_, materialmg0_.em_etblkp_bulkposting as em_etbl76_548_, materialmg0_.em_prouti_changebpartner as em_prou77_548_, materialmg0_.em_obwpack_packingrequired as em_obwp78_548_, materialmg0_.em_prouti_totalqtyreceived as em_prou79_548_, materialmg0_.em_pruti_total_amt_tax as em_prut80_548_, materialmg0_.em_etblkc_bulkcompletion as em_etbl81_548_, materialmg0_.em_obmfm_deliverynotes as em_obmf82_548_, materialmg0_.em_prouti_initial_bp_id as em_prou83_548_, materialmg0_.em_prouti_move_stock as em_prou84_548_, materialmg0_.em_prouti_stock_moved as em_prou85_548_, materialmg0_.em_pruti_showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.em_pruti_createfrom as em_prut89_548_ from m_inout materialmg0_ cross join m_inout shipmentin1_ cross join c_doctype documentty2_ where materialmg0_.m_inout_id = shipmentin1_.m_inout_id and materialmg0_.c_doctype_id = documentty2_.c_doctype_id and materialmg0_.ad_org_id = ? and materialmg0_.movementdate >= ? and ( select c_getinvoicestatusfromshipment (shipmentin1_.m_inout_id) from dual) < ? and materialmg0_.docstatus = ? and (materialmg0_.movementtype in (...)) and materialmg0_.islogistic = ? and documentty2_.isreturn = ? and (materialmg0_.ad_org_id in (...)) and (materialmg0_.ad_client_id in (...)) order by materialmg0_.movementdate desc, materialmg0_.m_inout_id desc limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 13 3 8m24s 2m48s 14 1 2m39s 2m39s 15 1 2m51s 2m51s [ User: tad - Total duration: 13m55s - Times executed: 5 ]
[ Application: openbravo - Total duration: 13m55s - Times executed: 5 ]
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:23:29 Duration: 2m52s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 15:32:19 Duration: 2m51s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:41:19 Duration: 2m46s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 5 32s699ms 2s552ms 13s601ms 6s539ms select * from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) 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 #9
Day Hour Count Duration Avg duration Jul 17 12 2 23s750ms 11s875ms 15 2 6s396ms 3s198ms 20 1 2s552ms 2s552ms [ User: tad - Total duration: 32s699ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 32s699ms - Times executed: 5 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DC1924997FC3426989EDC0910711A426' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:20 Duration: 13s601ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:33 Duration: 10s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:12 Duration: 3s279ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 5 6s113ms 1s126ms 1s280ms 1s222ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.em_libd_aplicacion_id as em_lib101_189_, businesspa0_.birthday as birthd102_189_, businesspa0_.is_customer_consent as is_cus103_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs104_189_, businesspa0_.em_obsepad_mandate_date as em_obs105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_libd_isparent as em_lib108_189_, businesspa0_.em_libd_bpartner_parent_id as em_lib109_189_, businesspa0_.em_pruti_addbp as em_pru110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_pruti_unlock_order_date as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru113_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru114_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea115_189_, businesspa0_.em_aeatsii_siikeylist as em_aea116_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs117_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba118_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs119_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.em_pruti_notsendinvoice as em_pru122_189_, businesspa0_.em_pruti_showpriceingoods as em_pru123_189_, businesspa0_.em_obtik_tax_id_key as em_obt124_189_, businesspa0_.em_prma_update_bprecords as em_prm125_189_ from c_bpartner businesspa0_ where exists ( select ? from c_invoice invoice1_ inner join c_bpartner businesspa2_ on invoice1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((invoice1_.documentno || ?| | coalesce(to_char(invoice1_.dateinvoiced), ?) || ?| | coalesce(to_char(invoice1_.grandtotal), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (invoice1_.ad_org_id in (...)) and (invoice1_.ad_client_id in (...))) order by businesspa0_.name limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 12 2 2s557ms 1s278ms 13 3 3s555ms 1s185ms [ User: tad - Total duration: 6s113ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 6s113ms - Times executed: 5 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%AMOP%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (invoice1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 12:07:23 Duration: 1s280ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%SA%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (invoice1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 12:13:48 Duration: 1s277ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%UPS%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (invoice1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 13:27:58 Duration: 1s226ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 4 10s891ms 1s565ms 3s724ms 2s722ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(coalesce(fin_paymen9_.name, fin_paymen5_.name)) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 10 1 3s724ms 3s724ms 12 3 7s166ms 2s388ms [ User: tad - Total duration: 10s891ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 10s891ms - Times executed: 4 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'DAF8BCB6A8BC432B86EE261F48F36F96') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 10:56:37 Duration: 3s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '55D74DBD2A5C4C96A8428D830F4AC301') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:29:47 Duration: 2s804ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E0DA758135D7492BA8204CC62D1D3AC5') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:31:39 Duration: 2s797ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 3 30s41ms 9s187ms 11s326ms 10s13ms select * from ( select j.gl_journal_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, j.ad_org_id, j.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, j.gl_journal_id, ?) as record_id from gl_journal j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.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 #12
Day Hour Count Duration Avg duration Jul 17 12 1 9s187ms 9s187ms 15 1 9s527ms 9s527ms 20 1 11s326ms 11s326ms [ User: tad - Total duration: 30s41ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 30s41ms - Times executed: 3 ]
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:55 Duration: 11s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:13 Duration: 9s527ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:37 Duration: 9s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3 21s862ms 6s326ms 7s916ms 7s287ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_id) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 17 12 1 7s619ms 7s619ms 15 1 7s916ms 7s916ms 20 1 6s326ms 6s326ms [ User: tad - Total duration: 21s862ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s862ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:26:01 Duration: 7s916ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:16:25 Duration: 7s619ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:42 Duration: 6s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 3 20s302ms 4s677ms 8s430ms 6s767ms select * from ( select distinct pr.m_product_id as referencekey_id, ad_column_identifier (?, pr.m_product_id, ?) as record_id, pr.value || ? || ad_column_identifier (?, pr.m_product_id, ?) || ?| | round(coalesce(onhand.qtyonhand, ?) + coalesce(pend.qtypendingrecive, ?) - coalesce(pick.qtypicking, ?), ?) || ? || coalesce(porg.stockmin, ?) as description, pr.ad_org_id, pr.ad_client_id, ? as ad_role_id, null as ad_user_id, ? as isactive, now() as created, ? as createdby, now() as updated, ? as updatedby from m_product pr left join ( select sum(coalesce(sd.qtyonhand, ?)) as qtyonhand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, ?)) - sum(coalesce(m_lines.movementqty, ?)) as qtypendingrecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, ?) as qtyordered, coalesce(sum(iol.movementqty), ?) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = ? and o.issotrx = ? and o.docstatus = ? group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, ?) > sum(coalesce(iol.movementqty, ?))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, ?)) as qtypicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.qtyonhand, ?) - coalesce(pick.qtypicking, ?) + coalesce(pend.qtypendingrecive, ?)) < coalesce(porg.stockmin, ?) and ma_processplan_id is null) 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 #14
Day Hour Count Duration Avg duration Jul 17 12 1 8s430ms 8s430ms 15 1 4s677ms 4s677ms 20 1 7s195ms 7s195ms [ User: tad - Total duration: 20s302ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 20s302ms - Times executed: 3 ]
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:47 Duration: 8s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:21:03 Duration: 7s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:19 Duration: 4s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3 15s281ms 1s66ms 8s636ms 5s93ms select * from ( select distinct iol.m_product_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || p.name || ? as description, ? as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, p.name as record_id from m_inoutline iol join m_inout io on iol.m_inout_id = io.m_inout_id and io.issotrx = ? and io.docstatus = ? join m_transaction t on iol.m_inoutline_id = t.m_inoutline_id join c_bpartner bp on io.c_bpartner_id = bp.c_bpartner_id join m_product p on iol.m_product_id = p.m_product_id join m_costing_rule cr on ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= ? and cr.datefrom <= t.trxprocessdate and cr.dateto > t.trxprocessdate join m_costing_algorithm ca on cr.m_costing_algorithm_id = ca.m_costing_algorithm_id and ca.classname = ? where not exists ( select ? from m_matchpo mp where mp.m_inoutline_id = iol.m_inoutline_id and mp.c_orderline_id is not null) and not exists ( select ? from m_costing c where c.m_product_id = iol.m_product_id and c.costtype in (...) and c.datefrom <= t.trxprocessdate and c.dateto > t.trxprocessdate) and not exists ( select ? from m_productprice pp join m_pricelist_version ppv on pp.m_pricelist_version_id = ppv.m_pricelist_version_id join m_pricelist pl on pl.m_pricelist_id = ppv.m_pricelist_id where pp.m_product_id = iol.m_product_id and (bp.po_pricelist_id = ppv.m_pricelist_id or (bp.po_pricelist_id is null and pl.issopricelist = ?)) and ppv.validfrom <= t.trxprocessdate) and not exists ( select ? from c_orderline ol join c_order o on ol.c_order_id = o.c_order_id and o.issotrx = ? and o.processed = ? where ol.m_product_id = iol.m_product_id and o.c_bpartner_id = bp.c_bpartner_id and ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.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 #15
Day Hour Count Duration Avg duration Jul 17 12 1 8s636ms 8s636ms 15 1 5s578ms 5s578ms 20 1 1s66ms 1s66ms [ User: tad - Total duration: 15s281ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 15s281ms - Times executed: 3 ]
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:08 Duration: 8s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:44 Duration: 5s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:27 Duration: 1s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 3 9s442ms 2s942ms 3s293ms 3s147ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and ev.value >= ? and ev.value <= ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 15 3 9s442ms 3s147ms [ User: tad - Total duration: 9s442ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 9s442ms - Times executed: 3 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '555000000' AND EV.VALUE <= '555030000' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:54:13 Duration: 3s293ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '572000000' AND EV.VALUE <= '573000003' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:41:05 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '520000017' AND EV.VALUE <= '520000017' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:42:04 Duration: 2s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3 7s547ms 2s28ms 2s978ms 2s515ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 12 1 2s978ms 2s978ms 15 1 2s540ms 2s540ms 20 1 2s28ms 2s28ms [ User: tad - Total duration: 7s547ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 7s547ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:15:23 Duration: 2s978ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:25:08 Duration: 2s540ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:06 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 3 6s599ms 1s878ms 2s636ms 2s199ms select sum(coalesce(abc_control.cuentavendido, ?)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 12 1 2s636ms 2s636ms 15 1 2s84ms 2s84ms 20 1 1s878ms 1s878ms [ User: tad - Total duration: 6s599ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s599ms - Times executed: 3 ]
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 12:00:28 Duration: 2s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 15:10:25 Duration: 2s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 20:00:18 Duration: 1s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 3 6s321ms 1s890ms 2s376ms 2s107ms select this_.abc_control_id as abc_cont1_7_0_, this_.ad_client_id as ad_clien2_7_0_, this_.ad_org_id as ad_org_i3_7_0_, this_.isactive as isactive4_7_0_, this_.created as created5_7_0_, this_.createdby as createdb6_7_0_, this_.updated as updated7_7_0_, this_.updatedby as updatedb8_7_0_, this_.totalvendido as totalven9_7_0_, this_.cuentavendido as cuentav10_7_0_, this_.m_product_id as m_produ11_7_0_ from abc_control this_ where this_.ad_org_id in (...) and this_.ad_client_id in (...) and this_.isactive = ? order by this_.cuentavendido desc;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 12 1 2s376ms 2s376ms 15 1 2s54ms 2s54ms 20 1 1s890ms 1s890ms [ User: tad - Total duration: 6s321ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s321ms - Times executed: 3 ]
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 12:00:30 Duration: 2s376ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 15:10:27 Duration: 2s54ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 20:00:20 Duration: 1s890ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 3 4s747ms 1s226ms 1s899ms 1s582ms select * from ( select a_amortization_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, a.ad_org_id, a.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, a.a_amortization_id, ?) as record_id from a_amortization a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_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 #20
Day Hour Count Duration Avg duration Jul 17 12 1 1s226ms 1s226ms 15 1 1s622ms 1s622ms 20 1 1s899ms 1s899ms [ User: tad - Total duration: 4s747ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s747ms - Times executed: 3 ]
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:29 Duration: 1s899ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:45 Duration: 1s622ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:09 Duration: 1s226ms 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 2m39s 2m52s 2m47s 5 13m55s select materialmg0_.m_inout_id as m_inout_1_548_, materialmg0_.ad_client_id as ad_clien2_548_, materialmg0_.ad_org_id as ad_org_i3_548_, materialmg0_.isactive as isactive4_548_, materialmg0_.created as created5_548_, materialmg0_.createdby as createdb6_548_, materialmg0_.updated as updated7_548_, materialmg0_.updatedby as updatedb8_548_, materialmg0_.issotrx as issotrx9_548_, materialmg0_.documentno as documen10_548_, materialmg0_.docaction as docacti11_548_, materialmg0_.docstatus as docstat12_548_, materialmg0_.posted as posted13_548_, materialmg0_.processing as process14_548_, materialmg0_.processed as process15_548_, materialmg0_.c_doctype_id as c_docty16_548_, materialmg0_.description as descrip17_548_, materialmg0_.c_order_id as c_order18_548_, materialmg0_.dateordered as dateord19_548_, materialmg0_.isprinted as isprint20_548_, materialmg0_.movementtype as movemen21_548_, materialmg0_.movementdate as movemen22_548_, materialmg0_.dateacct as dateacc23_548_, materialmg0_.c_bpartner_id as c_bpart24_548_, materialmg0_.c_bpartner_location_id as c_bpart25_548_, materialmg0_.m_warehouse_id as m_wareh26_548_, materialmg0_.poreference as porefer27_548_, materialmg0_.deliveryrule as deliver28_548_, materialmg0_.freightcostrule as freight29_548_, materialmg0_.freightamt as freight30_548_, materialmg0_.deliveryviarule as deliver31_548_, materialmg0_.m_shipper_id as m_shipp32_548_, materialmg0_.c_charge_id as c_charg33_548_, materialmg0_.chargeamt as chargea34_548_, materialmg0_.priorityrule as priorit35_548_, materialmg0_.dateprinted as datepri36_548_, materialmg0_.c_invoice_id as c_invoi37_548_, materialmg0_.createfrom as createf38_548_, materialmg0_.generateto as generat39_548_, materialmg0_.ad_user_id as ad_user40_548_, materialmg0_.salesrep_id as salesre41_548_, materialmg0_.nopackages as nopacka42_548_, materialmg0_.pickdate as pickdat43_548_, materialmg0_.shipdate as shipdat44_548_, materialmg0_.trackingno as trackin45_548_, materialmg0_.ad_orgtrx_id as ad_orgt46_548_, materialmg0_.c_project_id as c_proje47_548_, materialmg0_.c_campaign_id as c_campa48_548_, materialmg0_.c_activity_id as c_activ49_548_, materialmg0_.user1_id as user50_548_, materialmg0_.user2_id as user51_548_, materialmg0_.updatelines as updatel52_548_, materialmg0_.islogistic as islogis53_548_, materialmg0_.calculate_freight as calcula54_548_, materialmg0_.delivery_location_id as deliver55_548_, materialmg0_.m_freightcategory_id as m_freig56_548_, materialmg0_.freight_currency_id as freight57_548_, materialmg0_.rm_receipt_pickedit as rm_rece58_548_, materialmg0_.rm_shipment_pickedit as rm_ship59_548_, materialmg0_.em_obcma_c_poc_email_id as em_obcm60_548_, materialmg0_.m_condition_goods_id as m_condi61_548_, materialmg0_.a_asset_id as a_asset62_548_, materialmg0_.c_costcenter_id as c_costc63_548_, materialmg0_.process_goods_java as process64_548_, materialmg0_.isnettingshipment as isnetti65_548_, materialmg0_.iscompletelyinvoiced as iscompl66_548_, materialmg0_.em_obmfm_freight_id as em_obmf67_548_, materialmg0_.em_obwpack_packing as em_obwp68_548_, materialmg0_.em_obmfm_delivery_charges as em_obmf69_548_, materialmg0_.em_obwpack_packingh_id as em_obwp70_548_, materialmg0_.invoicefromshipment as invoice71_548_, materialmg0_.em_obwpack_processed as em_obwp72_548_, materialmg0_.bpartner_extref as bpartne73_548_, materialmg0_.em_etblkp_accountingstatus as em_etbl74_548_, materialmg0_.em_obwpack_reactivated as em_obwp75_548_, materialmg0_.em_etblkp_bulkposting as em_etbl76_548_, materialmg0_.em_prouti_changebpartner as em_prou77_548_, materialmg0_.em_obwpack_packingrequired as em_obwp78_548_, materialmg0_.em_prouti_totalqtyreceived as em_prou79_548_, materialmg0_.em_pruti_total_amt_tax as em_prut80_548_, materialmg0_.em_etblkc_bulkcompletion as em_etbl81_548_, materialmg0_.em_obmfm_deliverynotes as em_obmf82_548_, materialmg0_.em_prouti_initial_bp_id as em_prou83_548_, materialmg0_.em_prouti_move_stock as em_prou84_548_, materialmg0_.em_prouti_stock_moved as em_prou85_548_, materialmg0_.em_pruti_showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.em_pruti_createfrom as em_prut89_548_ from m_inout materialmg0_ cross join m_inout shipmentin1_ cross join c_doctype documentty2_ where materialmg0_.m_inout_id = shipmentin1_.m_inout_id and materialmg0_.c_doctype_id = documentty2_.c_doctype_id and materialmg0_.ad_org_id = ? and materialmg0_.movementdate >= ? and ( select c_getinvoicestatusfromshipment (shipmentin1_.m_inout_id) from dual) < ? and materialmg0_.docstatus = ? and (materialmg0_.movementtype in (...)) and materialmg0_.islogistic = ? and documentty2_.isreturn = ? and (materialmg0_.ad_org_id in (...)) and (materialmg0_.ad_client_id in (...)) order by materialmg0_.movementdate desc, materialmg0_.m_inout_id desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 13 3 8m24s 2m48s 14 1 2m39s 2m39s 15 1 2m51s 2m51s [ User: tad - Total duration: 13m55s - Times executed: 5 ]
[ Application: openbravo - Total duration: 13m55s - Times executed: 5 ]
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:23:29 Duration: 2m52s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 15:32:19 Duration: 2m51s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOut_ID as m_inout_1_548_, materialmg0_.AD_Client_ID as ad_clien2_548_, materialmg0_.AD_Org_ID as ad_org_i3_548_, materialmg0_.IsActive as isactive4_548_, materialmg0_.Created as created5_548_, materialmg0_.CreatedBy as createdb6_548_, materialmg0_.Updated as updated7_548_, materialmg0_.UpdatedBy as updatedb8_548_, materialmg0_.IsSOTrx as issotrx9_548_, materialmg0_.DocumentNo as documen10_548_, materialmg0_.DocAction as docacti11_548_, materialmg0_.DocStatus as docstat12_548_, materialmg0_.Posted as posted13_548_, materialmg0_.Processing as process14_548_, materialmg0_.Processed as process15_548_, materialmg0_.C_DocType_ID as c_docty16_548_, materialmg0_.Description as descrip17_548_, materialmg0_.C_Order_ID as c_order18_548_, materialmg0_.DateOrdered as dateord19_548_, materialmg0_.IsPrinted as isprint20_548_, materialmg0_.MovementType as movemen21_548_, materialmg0_.MovementDate as movemen22_548_, materialmg0_.DateAcct as dateacc23_548_, materialmg0_.C_BPartner_ID as c_bpart24_548_, materialmg0_.C_BPartner_Location_ID as c_bpart25_548_, materialmg0_.M_Warehouse_ID as m_wareh26_548_, materialmg0_.POReference as porefer27_548_, materialmg0_.DeliveryRule as deliver28_548_, materialmg0_.FreightCostRule as freight29_548_, materialmg0_.FreightAmt as freight30_548_, materialmg0_.DeliveryViaRule as deliver31_548_, materialmg0_.M_Shipper_ID as m_shipp32_548_, materialmg0_.C_Charge_ID as c_charg33_548_, materialmg0_.ChargeAmt as chargea34_548_, materialmg0_.PriorityRule as priorit35_548_, materialmg0_.DatePrinted as datepri36_548_, materialmg0_.C_Invoice_ID as c_invoi37_548_, materialmg0_.CreateFrom as createf38_548_, materialmg0_.GenerateTo as generat39_548_, materialmg0_.AD_User_ID as ad_user40_548_, materialmg0_.SalesRep_ID as salesre41_548_, materialmg0_.NoPackages as nopacka42_548_, materialmg0_.PickDate as pickdat43_548_, materialmg0_.ShipDate as shipdat44_548_, materialmg0_.TrackingNo as trackin45_548_, materialmg0_.AD_OrgTrx_ID as ad_orgt46_548_, materialmg0_.C_Project_ID as c_proje47_548_, materialmg0_.C_Campaign_ID as c_campa48_548_, materialmg0_.C_Activity_ID as c_activ49_548_, materialmg0_.User1_ID as user50_548_, materialmg0_.User2_ID as user51_548_, materialmg0_.UpdateLines as updatel52_548_, materialmg0_.Islogistic as islogis53_548_, materialmg0_.Calculate_Freight as calcula54_548_, materialmg0_.Delivery_Location_ID as deliver55_548_, materialmg0_.M_FreightCategory_ID as m_freig56_548_, materialmg0_.Freight_Currency_ID as freight57_548_, materialmg0_.RM_Receipt_PickEdit as rm_rece58_548_, materialmg0_.RM_Shipment_Pickedit as rm_ship59_548_, materialmg0_.EM_Obcma_C_Poc_Email_ID as em_obcm60_548_, materialmg0_.M_Condition_Goods_ID as m_condi61_548_, materialmg0_.A_Asset_ID as a_asset62_548_, materialmg0_.C_Costcenter_ID as c_costc63_548_, materialmg0_.Process_Goods_Java as process64_548_, materialmg0_.Isnettingshipment as isnetti65_548_, materialmg0_.Iscompletelyinvoiced as iscompl66_548_, materialmg0_.EM_OBMFM_Freight_ID as em_obmf67_548_, materialmg0_.EM_Obwpack_Packing as em_obwp68_548_, materialmg0_.EM_OBMFM_Delivery_Charges as em_obmf69_548_, materialmg0_.EM_Obwpack_Packingh_ID as em_obwp70_548_, materialmg0_.Invoicefromshipment as invoice71_548_, materialmg0_.EM_Obwpack_Processed as em_obwp72_548_, materialmg0_.Bpartner_Extref as bpartne73_548_, materialmg0_.EM_Etblkp_Accountingstatus as em_etbl74_548_, materialmg0_.EM_Obwpack_Reactivated as em_obwp75_548_, materialmg0_.EM_Etblkp_Bulkposting as em_etbl76_548_, materialmg0_.EM_Prouti_Changebpartner as em_prou77_548_, materialmg0_.EM_Obwpack_Packingrequired as em_obwp78_548_, materialmg0_.EM_Prouti_Totalqtyreceived as em_prou79_548_, materialmg0_.EM_Pruti_Total_Amt_Tax as em_prut80_548_, materialmg0_.EM_Etblkc_Bulkcompletion as em_etbl81_548_, materialmg0_.EM_OBMFM_Deliverynotes as em_obmf82_548_, materialmg0_.EM_Prouti_Initial_Bp_ID as em_prou83_548_, materialmg0_.EM_Prouti_Move_Stock as em_prou84_548_, materialmg0_.EM_Prouti_Stock_Moved as em_prou85_548_, materialmg0_.EM_Pruti_Showpriceingoods as em_prut86_548_, materialmg0_.em_prlab_desc as em_prla87_548_, materialmg0_.em_prouti_invoiced as em_prou88_548_, materialmg0_.EM_Pruti_Createfrom as em_prut89_548_ from M_InOut materialmg0_ cross join M_InOut shipmentin1_ cross join C_DocType documentty2_ where materialmg0_.M_InOut_ID = shipmentin1_.M_InOut_ID and materialmg0_.C_DocType_ID = documentty2_.C_DocType_ID and materialmg0_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' and materialmg0_.MovementDate >= '2026-01-01 00:00:00' and ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin1_.m_inout_id) from dual) < '100' and materialmg0_.DocStatus = 'CO' and (materialmg0_.MovementType in ('V-', 'V+')) and materialmg0_.Islogistic = 'N' and documentty2_.IsReturn = 'N' and (materialmg0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (materialmg0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by materialmg0_.MovementDate desc, materialmg0_.M_InOut_ID desc limit '101';
Date: 2026-07-17 13:41:19 Duration: 2m46s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 28s768ms 29s713ms 29s240ms 2 58s481ms select count(*) as id from m_inoutline where c_bpartner_id = ? and ad_org_id in (...) and ad_client_id in (...);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 17 2 58s481ms 29s240ms [ User: tad - Total duration: 58s481ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 58s481ms - Times executed: 2 ]
-
SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');
Date: 2026-07-17 17:23:12 Duration: 29s713ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COUNT(*) AS ID FROM M_InOutLine WHERE C_Bpartner_ID = 'F13A46A52FED42A3B782E84F316BF3A6' AND AD_ORG_ID IN ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') AND AD_CLIENT_ID IN ('29E43D204AEB4CEC9D1DC4EFFD0E5987');
Date: 2026-07-17 17:22:42 Duration: 28s768ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 6s123ms 16s411ms 11s24ms 6 1m6s select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_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 12 2 22s699ms 11s349ms 15 2 23s901ms 11s950ms 20 2 19s543ms 9s771ms [ User: tad - Total duration: 1m6s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m6s - Times executed: 6 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:29 Duration: 16s411ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:49 Duration: 14s943ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'F2C188AA7FF14438B4012EC2DDCA91F3' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:21 Duration: 13s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 9s187ms 11s326ms 10s13ms 3 30s41ms select * from ( select j.gl_journal_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, j.ad_org_id, j.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, j.gl_journal_id, ?) as record_id from gl_journal j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.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 #4
Day Hour Count Duration Avg duration Jul 17 12 1 9s187ms 9s187ms 15 1 9s527ms 9s527ms 20 1 11s326ms 11s326ms [ User: tad - Total duration: 30s41ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 30s41ms - Times executed: 3 ]
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:55 Duration: 11s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:13 Duration: 9s527ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select j.GL_JOURNAL_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'G/L JOURNAL DOCUMENT POSTED MORE THAN ONCE' as description, 'Y' as isActive, j.ad_org_id, j.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('GL_JOURNAL', j.GL_JOURNAL_id, 'es_ES') AS RECORD_ID FROM GL_JOURNAL j, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and j.gl_journal_id = f1.record_id group by f1.ad_table_id, f1.record_id, j.gl_journal_id, j.ad_org_id, j.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '5DB4719C9B154DA3A584345DD754189D' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:37 Duration: 9s187ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2s169ms 27s373ms 9s336ms 14 2m10s delete from c_orderline where c_orderline_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 10 1 15s971ms 15s971ms 12 2 31s651ms 15s825ms 13 5 28s783ms 5s756ms 16 5 51s937ms 10s387ms 17 1 2s371ms 2s371ms [ User: tad - Total duration: 2m10s - Times executed: 14 ]
[ Application: openbravo - Total duration: 2m10s - Times executed: 14 ]
-
delete from C_OrderLine where C_OrderLine_ID = 'EA73D89F2610469ABC93E1A81C42970A';
Date: 2026-07-17 16:11:51 Duration: 27s373ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '4194A82FAEC94324B2F9D24604AA6BE9';
Date: 2026-07-17 12:15:24 Duration: 24s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from C_OrderLine where C_OrderLine_ID = '3D52C1D732BF46E8B31CDCF0AF70ADAB';
Date: 2026-07-17 13:16:13 Duration: 17s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 6s326ms 7s916ms 7s287ms 3 21s862ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_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 12 1 7s619ms 7s619ms 15 1 7s916ms 7s916ms 20 1 6s326ms 6s326ms [ User: tad - Total duration: 21s862ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s862ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:26:01 Duration: 7s916ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:16:25 Duration: 7s619ms 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 = '7EDC62AE0AF34B74A4B327EA8A957965' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'PURCHASE INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('API', 'APC') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:42 Duration: 6s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 4s677ms 8s430ms 6s767ms 3 20s302ms select * from ( select distinct pr.m_product_id as referencekey_id, ad_column_identifier (?, pr.m_product_id, ?) as record_id, pr.value || ? || ad_column_identifier (?, pr.m_product_id, ?) || ?| | round(coalesce(onhand.qtyonhand, ?) + coalesce(pend.qtypendingrecive, ?) - coalesce(pick.qtypicking, ?), ?) || ? || coalesce(porg.stockmin, ?) as description, pr.ad_org_id, pr.ad_client_id, ? as ad_role_id, null as ad_user_id, ? as isactive, now() as created, ? as createdby, now() as updated, ? as updatedby from m_product pr left join ( select sum(coalesce(sd.qtyonhand, ?)) as qtyonhand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, ?)) - sum(coalesce(m_lines.movementqty, ?)) as qtypendingrecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, ?) as qtyordered, coalesce(sum(iol.movementqty), ?) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = ? and o.issotrx = ? and o.docstatus = ? group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, ?) > sum(coalesce(iol.movementqty, ?))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, ?)) as qtypicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.qtyonhand, ?) - coalesce(pick.qtypicking, ?) + coalesce(pend.qtypendingrecive, ?)) < coalesce(porg.stockmin, ?) and ma_processplan_id is null) 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 12 1 8s430ms 8s430ms 15 1 4s677ms 4s677ms 20 1 7s195ms 7s195ms [ User: tad - Total duration: 20s302ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 20s302ms - Times executed: 3 ]
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:47 Duration: 8s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:21:03 Duration: 7s195ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct pr.m_product_id AS referencekey_id, ad_column_identifier ('m_product', pr.m_product_id, 'en_US') AS record_id, pr.value || ', ' || ad_column_identifier ('m_product', pr.m_product_id, 'en_US') || ', Stock: ' || round(coalesce(onhand.QtyOnHand, 0) + coalesce(pend.QtyPendingRecive, 0) - coalesce(pick.QtyPicking, 0), 0) || ', MQ: ' || coalesce(porg.Stockmin, 0) AS description, pr.ad_org_id, pr.ad_client_id, 0 AS ad_role_id, NULL AS ad_user_id, 'Y' AS isActive, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product pr left join ( select sum(coalesce(sd.qtyonhand, 0)) AS QtyOnHand, sd.m_product_id from m_storage_detail sd group by sd.m_product_id) onhand on onhand.m_product_id = pr.m_product_id left join ( select sum(coalesce(m_lines.qtyordered, 0)) - sum(coalesce(m_lines.movementqty, 0)) as QtyPendingRecive, m_lines.m_product_id from ( select coalesce(ol.qtyordered, 0) as qtyordered, coalesce(sum(iol.movementqty), 0) as movementqty, ol.m_product_id from c_orderline ol left join c_order o on ol.c_order_id = o.c_order_id left join m_inoutline iol on ol.c_orderline_id = iol.c_orderline_id where o.processed = 'Y' and o.issotrx = 'N' and o.docstatus = 'CO' group by ol.qtyordered, ol.c_orderline_id, ol.m_product_id having coalesce(ol.qtyordered, 0) > sum(coalesce(iol.movementqty, 0))) as m_lines group by m_lines.m_product_id) pend on pend.m_product_id = pr.m_product_id left join ( select sum(coalesce(lp.qty, 0)) AS QtyPicking, lp.value from libp_picking_v lp group by lp.value) pick on pick.value = pr.value left join m_product_org porg on porg.m_product_id = pr.m_product_id where (coalesce(onhand.QtyOnHand, 0) - coalesce(pick.QtyPicking, 0) + coalesce(pend.QtyPendingRecive, 0)) < coalesce(porg.Stockmin, 0) and ma_processplan_id IS NULL) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '86C9A5FFEA28494D927E2699CEAFEFE1' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:26:19 Duration: 4s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 2s552ms 13s601ms 6s539ms 5 32s699ms select * from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) 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 12 2 23s750ms 11s875ms 15 2 6s396ms 3s198ms 20 1 2s552ms 2s552ms [ User: tad - Total duration: 32s699ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 32s699ms - Times executed: 5 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DC1924997FC3426989EDC0910711A426' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:20 Duration: 13s601ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:33 Duration: 10s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED SALES INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('ARI', 'ARC', 'ARF') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67CD4EDC3FF8419E8B4CB4348234D409' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:12 Duration: 3s279ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 6s354ms 6s354ms 6s354ms 1 6s354ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.em_psmad_copyfrompo as em_psma68_260_, order0_.fin_paymentmethod_id as fin_pay69_260_, order0_.em_psmad_dateendeffect as em_psma70_260_, order0_.fin_payment_priority_id as fin_pay71_260_, order0_.em_psmad_requestinguser as em_psma72_260_, order0_.rm_pickfromshipment as rm_pick73_260_, order0_.em_psmad_isopenpo_doctype as em_psma74_260_, order0_.rm_receivematerials as rm_rece75_260_, order0_.em_erpmag_ecomord as em_erpm76_260_, order0_.em_obcma_c_poc_email_id as em_obcm77_260_, order0_.rm_createinvoice as rm_crea78_260_, order0_.c_return_reason_id as c_retur79_260_, order0_.rm_addorphanline as rm_addo80_260_, order0_.a_asset_id as a_asset81_260_, order0_.calculate_promotions as calcula82_260_, order0_.c_costcenter_id as c_costc83_260_, order0_.convertquotation as convert84_260_, order0_.c_reject_reason_id as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.quotation_id as quotati87_260_, order0_.so_res_status as so_res_88_260_, order0_.create_polines as create_89_260_, order0_.iscashvat as iscashv90_260_, order0_.em_obmfm_selectfreight as em_obmf91_260_, order0_.em_obmfm_delivery_period_id as em_obmf92_260_, order0_.rm_pickfromreceipt as rm_pick93_260_, order0_.cancelandreplace as cancela94_260_, order0_.em_aprm_addpayment as em_aprm95_260_, order0_.em_obmfm_delivery_charges as em_obmf96_260_, order0_.em_obmfm_freight_id as em_obmf97_260_, order0_.em_obwpl_generatepicking as em_obwp98_260_, order0_.em_libp_preporder as em_libp99_260_, order0_.em_obmfm_weight as em_obm100_260_, order0_.em_obwpl_isinpickinglist as em_obw101_260_, order0_.em_obwpl_readypl as em_obw102_260_, order0_.em_obmfm_weight_uom_id as em_obm103_260_, order0_.em_obmfm_set_weight as em_obm104_260_, order0_.em_aeatsii_fecha_operacion as em_aea105_260_, order0_.confirmcancelandreplace as confir106_260_, order0_.em_aeatsii_descripcion_sii as em_aea107_260_, order0_.em_etabam_bankaccount_id as em_eta108_260_, order0_.em_etpr_remove_payment as em_etp109_260_, order0_.em_etvfac_reversed_invoice as em_etv110_260_, order0_.cancelledorder_id as cancel111_260_, order0_.em_etblkc_bulkcompletion as em_etb112_260_, order0_.em_prmag2_grandtotal as em_prm113_260_, order0_.replacedorder_id as replac114_260_, order0_.iscancelled as iscanc115_260_, order0_.em_libd_revisionfactura as em_lib116_260_, order0_.em_obmag_createquot as em_obm117_260_, order0_.em_libd_revisaimpuestos as em_lib118_260_, order0_.replacementorder_id as replac119_260_, order0_.em_libd_impuestos as em_lib120_260_, order0_.em_etafdp_undoclose as em_eta121_260_, order0_.em_libd_isprinted as em_lib122_260_, order0_.em_etinter_interco_orig as em_eti123_260_, order0_.em_libd_aplicacion_id as em_lib124_260_, order0_.bpartner_extref as bpartn125_260_, order0_.em_libp_dateorder as em_lib126_260_, order0_.em_prouti_order_stock as em_pro127_260_, order0_.em_prouti_pregenerate_minout as em_pro128_260_, order0_.em_prouti_sotopo as em_pro129_260_, order0_.em_prouti_generate_pick_inv as em_pro130_260_, order0_.em_prouti_order_id as em_pro131_260_, order0_.em_prouti_grandtotalinitial as em_pro132_260_, order0_.em_prouti_dateclosed as em_pro133_260_, order0_.em_prouti_totallinesinitial as em_pro134_260_, order0_.em_prouti_changebpartner as em_pro135_260_, order0_.em_prouti_recalculate_price as em_pro136_260_, order0_.em_prouti_pricecalculatetdate as em_pro137_260_, order0_.em_prouti_reactiveorder as em_pro138_260_, order0_.em_prouti_totalizations as em_pro139_260_, order0_.em_libd_bpartner_parent_id as em_lib140_260_, order0_.em_prouti_invoiced as em_pro141_260_, order0_.em_libd_usercloud as em_lib142_260_, order0_.em_prouti_received as em_pro143_260_, order0_.em_libd_id_purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.em_libd_convertquotation as em_lib146_260_, order0_.em_prouti_status_of_review as em_pro147_260_, order0_.em_libd_duplicatequotation as em_lib148_260_, order0_.em_prouti_validate_order as em_pro149_260_, order0_.em_libd_endcustomer_id as em_lib150_260_, order0_.em_prouti_start_review as em_pro151_260_, order0_.em_libd_editing as em_lib152_260_, order0_.em_prouti_initial_bp_id as em_pro153_260_, order0_.em_prouti_addlines_btn as em_pro154_260_, order0_.em_prouti_changebpartner_bgt as em_pro155_260_, order0_.em_pruti_ignoreminqty as em_pru156_260_, order0_.em_prouti_reset_initial_values as em_pro157_260_, order0_.em_prouti_select_soline as em_pro158_260_, order0_.em_prouti_return_quantity as em_pro159_260_, order0_.em_libd_actions_quotation as em_lib160_260_ from c_order order0_ inner join ad_org organizati1_ on order0_.ad_org_id = organizati1_.ad_org_id cross join c_order order_comp2_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (organizati1_.ad_org_id = ? or organizati1_.ad_org_id = ?) and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtydelivered)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and order0_.docstatus = ? and order0_.em_libp_preporder = ? and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered, order0_.c_order_id limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 1 6s354ms 6s354ms [ User: tad - Total duration: 6s354ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 6s354ms - Times executed: 1 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.EM_Psmad_Copyfrompo as em_psma68_260_, order0_.FIN_Paymentmethod_ID as fin_pay69_260_, order0_.EM_Psmad_Dateendeffect as em_psma70_260_, order0_.FIN_Payment_Priority_ID as fin_pay71_260_, order0_.EM_Psmad_Requestinguser as em_psma72_260_, order0_.RM_PickFromShipment as rm_pick73_260_, order0_.EM_Psmad_Isopenpo_Doctype as em_psma74_260_, order0_.RM_ReceiveMaterials as rm_rece75_260_, order0_.EM_Erpmag_Ecomord as em_erpm76_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm77_260_, order0_.RM_CreateInvoice as rm_crea78_260_, order0_.C_Return_Reason_ID as c_retur79_260_, order0_.RM_AddOrphanLine as rm_addo80_260_, order0_.A_Asset_ID as a_asset81_260_, order0_.Calculate_Promotions as calcula82_260_, order0_.C_Costcenter_ID as c_costc83_260_, order0_.Convertquotation as convert84_260_, order0_.C_Reject_Reason_ID as c_rejec85_260_, order0_.validuntil as validun86_260_, order0_.Quotation_ID as quotati87_260_, order0_.SO_Res_Status as so_res_88_260_, order0_.Create_POLines as create_89_260_, order0_.Iscashvat as iscashv90_260_, order0_.EM_OBMFM_Selectfreight as em_obmf91_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf92_260_, order0_.RM_Pickfromreceipt as rm_pick93_260_, order0_.Cancelandreplace as cancela94_260_, order0_.EM_APRM_AddPayment as em_aprm95_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf96_260_, order0_.EM_OBMFM_Freight_ID as em_obmf97_260_, order0_.EM_Obwpl_Generatepicking as em_obwp98_260_, order0_.EM_Libp_Preporder as em_libp99_260_, order0_.EM_OBMFM_Weight as em_obm100_260_, order0_.EM_Obwpl_Isinpickinglist as em_obw101_260_, order0_.EM_Obwpl_Readypl as em_obw102_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm103_260_, order0_.EM_OBMFM_Set_Weight as em_obm104_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea105_260_, order0_.Confirmcancelandreplace as confir106_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea107_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta108_260_, order0_.EM_Etpr_Remove_Payment as em_etp109_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv110_260_, order0_.Cancelledorder_id as cancel111_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb112_260_, order0_.EM_Prmag2_Grandtotal as em_prm113_260_, order0_.Replacedorder_id as replac114_260_, order0_.Iscancelled as iscanc115_260_, order0_.EM_Libd_Revisionfactura as em_lib116_260_, order0_.EM_Obmag_Createquot as em_obm117_260_, order0_.EM_Libd_Revisaimpuestos as em_lib118_260_, order0_.Replacementorder_ID as replac119_260_, order0_.EM_Libd_Impuestos as em_lib120_260_, order0_.EM_Etafdp_Undoclose as em_eta121_260_, order0_.EM_Libd_Isprinted as em_lib122_260_, order0_.EM_Etinter_Interco_Orig as em_eti123_260_, order0_.EM_Libd_Aplicacion_ID as em_lib124_260_, order0_.BPartner_ExtRef as bpartn125_260_, order0_.EM_Libp_Dateorder as em_lib126_260_, order0_.EM_Prouti_Order_Stock as em_pro127_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro128_260_, order0_.EM_Prouti_Sotopo as em_pro129_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro130_260_, order0_.EM_Prouti_Order_ID as em_pro131_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro132_260_, order0_.EM_Prouti_Dateclosed as em_pro133_260_, order0_.EM_Prouti_Totallinesinitial as em_pro134_260_, order0_.EM_Prouti_Changebpartner as em_pro135_260_, order0_.EM_Prouti_Recalculate_Price as em_pro136_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro137_260_, order0_.EM_Prouti_Reactiveorder as em_pro138_260_, order0_.EM_Prouti_Totalizations as em_pro139_260_, order0_.EM_Libd_Bpartner_Parent_ID as em_lib140_260_, order0_.em_prouti_Invoiced as em_pro141_260_, order0_.EM_Libd_usercloud as em_lib142_260_, order0_.em_prouti_Received as em_pro143_260_, order0_.EM_Libd_Id_Purchase as em_lib144_260_, order0_.em_prouti_initial_received as em_pro145_260_, order0_.EM_Libd_Convertquotation as em_lib146_260_, order0_.EM_Prouti_Status_Of_Review as em_pro147_260_, order0_.EM_Libd_Duplicatequotation as em_lib148_260_, order0_.EM_Prouti_Validate_Order as em_pro149_260_, order0_.EM_Libd_Endcustomer_ID as em_lib150_260_, order0_.EM_Prouti_Start_Review as em_pro151_260_, order0_.EM_Libd_Editing as em_lib152_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro153_260_, order0_.EM_Prouti_Addlines_Btn as em_pro154_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro155_260_, order0_.EM_Pruti_Ignoreminqty as em_pru156_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro157_260_, order0_.EM_Prouti_Select_Soline as em_pro158_260_, order0_.EM_Prouti_Return_Quantity as em_pro159_260_, order0_.EM_Libd_Actions_Quotation as em_lib160_260_ from C_Order order0_ inner join AD_Org organizati1_ on order0_.AD_Org_ID = organizati1_.AD_Org_ID cross join C_Order order_comp2_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (organizati1_.AD_Org_ID = '8997B74B935D46B08D5E187F5B343F48' or organizati1_.AD_Org_ID = '9DFF9C5278274C2DA3F411C2BA23605C') and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtydelivered)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.DocStatus = 'CO' and order0_.EM_Libp_Preporder = 'Y' and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order0_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0')) order by order0_.DateOrdered, order0_.C_Order_ID limit '101';
Date: 2026-07-17 07:03:36 Duration: 6s354ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1s808ms 11s677ms 5s701ms 8 45s614ms select shipmentin0_.m_inout_id as m_inout_1_548_0_, shipmentin0_.ad_client_id as ad_clien2_548_0_, shipmentin0_.ad_org_id as ad_org_i3_548_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 13 5 32s112ms 6s422ms 14 2 7s420ms 3s710ms 15 1 6s82ms 6s82ms [ User: tad - Total duration: 45s614ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 45s614ms - Times executed: 8 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', 'A51F74838923401B828149258C216C20', '911012AE84784C319648F0200E455572', '73CB51F91DD04E7CA6202AC8C788856A', '2464849836924D36AB07C38403EF28C5', 'A1540AB12AF54B1EB97C70C8369ECDCD', '75ED1EB8D1624315AC579407C1F03213', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8', '889907C124AE462985025DE6314B4586', 'ADE95BAC82AE45D28DFE945CE8D79D41', 'EDC43EA7A70D421EAD3EA0152B7A0606', '64610C21759C4C2787BA4606F0B57AEF', 'E2C1538CCF12437FB163B17441F3BBBC', '482FDD813C7C42799C65DB28ABD7C4FD');
Date: 2026-07-17 13:02:27 Duration: 11s677ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF', 'F97E787067864E1CBF185485AE2397F9', '02256ECFE7FC40D98A07844750C852D8');
Date: 2026-07-17 13:41:26 Duration: 6s571ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_548_0_, shipmentin0_.AD_Client_ID as ad_clien2_548_0_, shipmentin0_.AD_Org_ID as ad_org_i3_548_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('FCBDDF4073444E9F86999FA3801305B9', 'EDD84127D1D24901B30C814BE956EA93', 'BFA82F4339514142815E1EBDA97D55DF', '2464849836924D36AB07C38403EF28C5', 'E56CD8DEB7294268B7A09DBE0520D8B0', '6999B288722E4544B38489B370830801', 'EFBC1FC3B5CE4538BCB7634B63D3B8CA', 'A23418D9F05240B79C4F9BEF763A6983', '22F63E6BEF174224A4864BD2A7649365', '5755BB0FFF054EE19C2C4734DFDCF924', 'FD3EEA3815264D06B2EDA8E85F5C5B99', '7D31AB83DC554E8F82864DBAC227AFAF');
Date: 2026-07-17 13:23:35 Duration: 6s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 2s298ms 10s95ms 5s135ms 15 1m17s select profile.take_sample ();Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 07 1 5s684ms 5s684ms 08 1 5s254ms 5s254ms 09 1 7s945ms 7s945ms 10 1 3s275ms 3s275ms 11 1 6s451ms 6s451ms 12 1 3s560ms 3s560ms 13 1 10s95ms 10s95ms 14 1 3s794ms 3s794ms 15 1 3s81ms 3s81ms 16 1 4s979ms 4s979ms 17 1 7s194ms 7s194ms 18 1 6s914ms 6s914ms 19 1 2s651ms 2s651ms 20 1 2s298ms 2s298ms 21 1 3s849ms 3s849ms [ User: postgres - Total duration: 1m17s - Times executed: 15 ]
[ Application: psql - Total duration: 1m17s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 13:00:11 Duration: 10s95ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 09:00:09 Duration: 7s945ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:08 Duration: 7s194ms Database: etendo User: postgres Remote: [local] Application: psql
12 1s66ms 8s636ms 5s93ms 3 15s281ms select * from ( select distinct iol.m_product_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || p.name || ? as description, ? as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, p.name as record_id from m_inoutline iol join m_inout io on iol.m_inout_id = io.m_inout_id and io.issotrx = ? and io.docstatus = ? join m_transaction t on iol.m_inoutline_id = t.m_inoutline_id join c_bpartner bp on io.c_bpartner_id = bp.c_bpartner_id join m_product p on iol.m_product_id = p.m_product_id join m_costing_rule cr on ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= ? and cr.datefrom <= t.trxprocessdate and cr.dateto > t.trxprocessdate join m_costing_algorithm ca on cr.m_costing_algorithm_id = ca.m_costing_algorithm_id and ca.classname = ? where not exists ( select ? from m_matchpo mp where mp.m_inoutline_id = iol.m_inoutline_id and mp.c_orderline_id is not null) and not exists ( select ? from m_costing c where c.m_product_id = iol.m_product_id and c.costtype in (...) and c.datefrom <= t.trxprocessdate and c.dateto > t.trxprocessdate) and not exists ( select ? from m_productprice pp join m_pricelist_version ppv on pp.m_pricelist_version_id = ppv.m_pricelist_version_id join m_pricelist pl on pl.m_pricelist_id = ppv.m_pricelist_id where pp.m_product_id = iol.m_product_id and (bp.po_pricelist_id = ppv.m_pricelist_id or (bp.po_pricelist_id is null and pl.issopricelist = ?)) and ppv.validfrom <= t.trxprocessdate) and not exists ( select ? from c_orderline ol join c_order o on ol.c_order_id = o.c_order_id and o.issotrx = ? and o.processed = ? where ol.m_product_id = iol.m_product_id and o.c_bpartner_id = bp.c_bpartner_id and ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.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 #12
Day Hour Count Duration Avg duration Jul 17 12 1 8s636ms 8s636ms 15 1 5s578ms 5s578ms 20 1 1s66ms 1s66ms [ User: tad - Total duration: 15s281ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 15s281ms - Times executed: 3 ]
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:08 Duration: 8s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:44 Duration: 5s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Receipts without a related Purchase Order and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'N' AND io.docstatus = 'CO' JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE NOT EXISTS ( SELECT 1 FROM m_matchpo mp WHERE mp.m_inoutline_id = iol.m_inoutline_id AND mp.c_orderline_id IS NOT NULL) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM c_orderline ol JOIN c_order o ON ol.c_order_id = o.c_order_id AND o.issotrx = 'N' AND o.processed = 'Y' WHERE ol.m_product_id = iol.m_product_id AND o.c_bpartner_id = bp.c_bpartner_id AND ad_isorgincluded (o.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '36080A439B564021A2523283A760577A' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:27 Duration: 1s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3s820ms 4s272ms 4s46ms 2 8s93ms select * from ( select distinct iol.m_product_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || p.name || ? as description, ? as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, p.name as record_id from m_inoutline iol join m_inout io on iol.m_inout_id = io.m_inout_id and io.issotrx = ? and io.docstatus = ? join m_product p on iol.m_product_id = p.m_product_id join m_transaction t on iol.m_inoutline_id = t.m_inoutline_id join c_bpartner bp on io.c_bpartner_id = bp.c_bpartner_id join c_doctype dt on io.c_doctype_id = dt.c_doctype_id and dt.isreturn = ? join m_costing_rule cr on ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= ? and cr.datefrom <= t.trxprocessdate and cr.dateto > t.trxprocessdate join m_costing_algorithm ca on cr.m_costing_algorithm_id = ca.m_costing_algorithm_id and ca.classname = ? where (iol.canceled_inoutline_id is null and iol.movementqty < ?) and not exists ( select ? from m_costing c where c.m_product_id = iol.m_product_id and c.costtype in (...) and c.datefrom <= t.trxprocessdate and c.dateto > t.trxprocessdate) and not exists ( select ? from m_productprice pp join m_pricelist_version ppv on pp.m_pricelist_version_id = ppv.m_pricelist_version_id join m_pricelist pl on pl.m_pricelist_id = ppv.m_pricelist_id where pp.m_product_id = iol.m_product_id and (bp.po_pricelist_id = ppv.m_pricelist_id or (bp.po_pricelist_id is null and pl.issopricelist = ?)) and ppv.validfrom <= t.trxprocessdate)) 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 12 1 4s272ms 4s272ms 15 1 3s820ms 3s820ms [ User: tad - Total duration: 8s93ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 8s93ms - Times executed: 2 ]
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Cancelation Shipments without a related original shipment and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'Y' AND io.docstatus = 'VO' JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id AND dt.isreturn = 'N' JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE (iol.canceled_inoutline_id IS NULL AND iol.movementqty < 0) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'BD07156AA7EE4FB2B95B3F3A6D63296F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:15:58 Duration: 4s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT DISTINCT iol.m_product_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'The product ' || p.name || ' has Cancelation Shipments without a related original shipment and does not have a Purchase PriceList nor Standard Cost defined.' as description, 'Y' as isactive, iol.ad_org_id as ad_org_id, iol.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, p.name as RECORD_ID FROM m_inoutline iol JOIN m_inout io ON iol.m_inout_id = io.m_inout_id AND io.issotrx = 'Y' AND io.docstatus = 'VO' JOIN m_product p ON iol.m_product_id = p.m_product_id JOIN m_transaction t ON iol.m_inoutline_id = t.m_inoutline_id JOIN c_bpartner bp ON io.c_bpartner_id = bp.c_bpartner_id JOIN c_doctype dt ON io.c_doctype_id = dt.c_doctype_id AND dt.isreturn = 'N' JOIN m_costing_rule cr ON ad_isorgincluded (io.ad_org_id, cr.ad_org_id, io.ad_client_id) >= 0 AND cr.datefrom <= t.trxprocessdate AND cr.dateto > t.trxprocessdate JOIN m_costing_algorithm ca ON cr.m_costing_algorithm_id = ca.m_costing_algorithm_id AND ca.classname = 'org.openbravo.costing.AverageAlgorithm' WHERE (iol.canceled_inoutline_id IS NULL AND iol.movementqty < 0) AND NOT EXISTS ( SELECT 1 FROM m_costing c WHERE c.m_product_id = iol.m_product_id AND c.costtype IN ('STA', 'AVA') AND c.datefrom <= t.trxprocessdate AND c.dateto > t.trxprocessdate) AND NOT EXISTS ( SELECT 1 FROM m_productprice pp JOIN m_pricelist_version ppv ON pp.m_pricelist_version_id = ppv.m_pricelist_version_id JOIN m_pricelist pl ON pl.m_pricelist_id = ppv.m_pricelist_id WHERE pp.m_product_id = iol.m_product_id AND (bp.po_pricelist_id = ppv.m_pricelist_id OR (bp.po_pricelist_id IS NULL AND pl.issopricelist = 'N')) AND ppv.validfrom <= t.trxprocessdate)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'BD07156AA7EE4FB2B95B3F3A6D63296F' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:37 Duration: 3s820ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 2s942ms 3s293ms 3s147ms 3 9s442ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and ev.value >= ? and ev.value <= ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 15 3 9s442ms 3s147ms [ User: tad - Total duration: 9s442ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 9s442ms - Times executed: 3 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '555000000' AND EV.VALUE <= '555030000' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:54:13 Duration: 3s293ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '572000000' AND EV.VALUE <= '573000003' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:41:05 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2026') or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2026') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2026') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND F.AD_CLIENT_ID IN ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987') AND F.AD_ORG_ID IN ('9DFF9C5278274C2DA3F411C2BA23605C', '975163BBDF184727BFA9D21FECF88F51', '8997B74B935D46B08D5E187F5B343F48', '7EEF753D8C114D32A101EA8393FEAC19', '0145CB12BBE04855B3C433728BD65F7C', '0') AND DATEACCT < TO_DATE('01-01-2027') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = '07852E85025D4759A77318FB991C7B8F' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 AND EV.VALUE >= '520000017' AND EV.VALUE <= '520000017' and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-17 15:42:04 Duration: 2s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 1s565ms 3s724ms 2s722ms 4 10s891ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(coalesce(fin_paymen9_.name, fin_paymen5_.name)) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 10 1 3s724ms 3s724ms 12 3 7s166ms 2s388ms [ User: tad - Total duration: 10s891ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 10s891ms - Times executed: 4 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'DAF8BCB6A8BC432B86EE261F48F36F96') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 10:56:37 Duration: 3s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'N' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '55D74DBD2A5C4C96A8428D830F4AC301') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'N' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:29:47 Duration: 2s804ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', '29E43D204AEB4CEC9D1DC4EFFD0E5987')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E0DA758135D7492BA8204CC62D1D3AC5') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Transferencia%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 12:31:39 Duration: 2s797ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 2s28ms 2s978ms 2s515ms 3 7s547ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select record_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, ad_org_id, ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, record_id, ?) as record_id from fact_acct where ad_table_id = ? and docbasetype in (...) group by fact_acct_group_id, record_id, ad_client_id, ad_org_id having sum(amtacctcr - amtacctdr) <> ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 12 1 2s978ms 2s978ms 15 1 2s540ms 2s540ms 20 1 2s28ms 2s28ms [ User: tad - Total duration: 7s547ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 7s547ms - Times executed: 3 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 12:15:23 Duration: 2s978ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 15:25:08 Duration: 2s540ms 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 = 'DC1924997FC3426989EDC0910711A426' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED PURCHASE INVOICE' as description, 'Y' as isActive, ad_org_id, ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_Invoice', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '318' and docbasetype in ('API', 'APC') GROUP BY fact_acct_group_id, record_id, ad_client_id, ad_org_id HAVING SUM(amtacctcr - amtacctdr) <> 0) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 20:20:06 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 1s878ms 2s636ms 2s199ms 3 6s599ms select sum(coalesce(abc_control.cuentavendido, ?)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 12 1 2s636ms 2s636ms 15 1 2s84ms 2s84ms 20 1 1s878ms 1s878ms [ User: tad - Total duration: 6s599ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s599ms - Times executed: 3 ]
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 12:00:28 Duration: 2s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 15:10:25 Duration: 2s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(coalesce(abc_control.cuentavendido, 0)) as total from abc_control left join m_product prod on abc_control.m_product_id = prod.m_product_id where prod.isbom = 'N';
Date: 2026-07-17 20:00:18 Duration: 1s878ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 1s890ms 2s376ms 2s107ms 3 6s321ms select this_.abc_control_id as abc_cont1_7_0_, this_.ad_client_id as ad_clien2_7_0_, this_.ad_org_id as ad_org_i3_7_0_, this_.isactive as isactive4_7_0_, this_.created as created5_7_0_, this_.createdby as createdb6_7_0_, this_.updated as updated7_7_0_, this_.updatedby as updatedb8_7_0_, this_.totalvendido as totalven9_7_0_, this_.cuentavendido as cuentav10_7_0_, this_.m_product_id as m_produ11_7_0_ from abc_control this_ where this_.ad_org_id in (...) and this_.ad_client_id in (...) and this_.isactive = ? order by this_.cuentavendido desc;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 12 1 2s376ms 2s376ms 15 1 2s54ms 2s54ms 20 1 1s890ms 1s890ms [ User: tad - Total duration: 6s321ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s321ms - Times executed: 3 ]
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 12:00:30 Duration: 2s376ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 15:10:27 Duration: 2s54ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select this_.ABC_Control_ID as abc_cont1_7_0_, this_.AD_Client_ID as ad_clien2_7_0_, this_.AD_Org_ID as ad_org_i3_7_0_, this_.Isactive as isactive4_7_0_, this_.Created as created5_7_0_, this_.Createdby as createdb6_7_0_, this_.Updated as updated7_7_0_, this_.Updatedby as updatedb8_7_0_, this_.Totalvendido as totalven9_7_0_, this_.Cuentavendido as cuentav10_7_0_, this_.M_Product_ID as m_produ11_7_0_ from abc_control this_ where this_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C') and this_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0') and this_.Isactive = 'Y' order by this_.Cuentavendido desc;
Date: 2026-07-17 20:00:20 Duration: 1s890ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s226ms 1s899ms 1s582ms 3 4s747ms select * from ( select a_amortization_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, a.ad_org_id, a.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, a.a_amortization_id, ?) as record_id from a_amortization a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_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 #19
Day Hour Count Duration Avg duration Jul 17 12 1 1s226ms 1s226ms 15 1 1s622ms 1s622ms 20 1 1s899ms 1s899ms [ User: tad - Total duration: 4s747ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s747ms - Times executed: 3 ]
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:20:29 Duration: 1s899ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 15:25:45 Duration: 1s622ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select A_AMORTIZATION_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'AMORTIZATION POSTED MORE THAN ONCE' as description, 'Y' as isActive, a.ad_org_id, a.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('A_AMORTIZATION', a.A_AMORTIZATION_id, 'es_ES') AS RECORD_ID FROM A_AMORTIZATION a, fact_acct f1, fact_acct f2 where f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id and f1.record_id = a.a_amortization_id group by a.a_amortization_id, a.ad_org_id, a.ad_client_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'C99CE08AA9CC4E16B10532EDF6866CC0' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:16:09 Duration: 1s226ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s112ms 1s660ms 1s478ms 12 17s742ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.em_libd_aplicacion_id as em_lib101_189_, businesspa0_.birthday as birthd102_189_, businesspa0_.is_customer_consent as is_cus103_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs104_189_, businesspa0_.em_obsepad_mandate_date as em_obs105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_libd_isparent as em_lib108_189_, businesspa0_.em_libd_bpartner_parent_id as em_lib109_189_, businesspa0_.em_pruti_addbp as em_pru110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_pruti_unlock_order_date as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru113_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru114_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea115_189_, businesspa0_.em_aeatsii_siikeylist as em_aea116_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs117_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba118_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs119_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.em_pruti_notsendinvoice as em_pru122_189_, businesspa0_.em_pruti_showpriceingoods as em_pru123_189_, businesspa0_.em_obtik_tax_id_key as em_obt124_189_, businesspa0_.em_prma_update_bprecords as em_prm125_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ inner join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?) || ?| | coalesce(to_char(order1_.em_libd_revisionfactura), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.name limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 10 1 1s660ms 1s660ms 11 1 1s609ms 1s609ms 12 4 6s218ms 1s554ms 13 4 5s992ms 1s498ms 16 2 2s261ms 1s130ms [ User: tad - Total duration: 17s742ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 17s742ms - Times executed: 12 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%evid%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 10:38:39 Duration: 1s660ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%imes%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 12:11:10 Duration: 1s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.EM_Libd_Aplicacion_ID as em_lib101_189_, businesspa0_.Birthday as birthd102_189_, businesspa0_.Is_Customer_Consent as is_cus103_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs104_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Libd_Isparent as em_lib108_189_, businesspa0_.EM_Libd_Bpartner_Parent_ID as em_lib109_189_, businesspa0_.EM_Pruti_Addbp as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru113_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru114_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea115_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea116_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs117_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba118_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs119_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw120_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru121_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru122_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru123_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt124_189_, businesspa0_.em_prma_update_BpRecords as em_prm125_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), '') || ' - ' || coalesce(to_char(order1_.EM_Libd_Revisionfactura), ''))) like upper('%cá%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '975163BBDF184727BFA9D21FECF88F51', '0145CB12BBE04855B3C433728BD65F7C', '7EEF753D8C114D32A101EA8393FEAC19', '8997B74B935D46B08D5E187F5B343F48', '9DFF9C5278274C2DA3F411C2BA23605C')) and (order1_.AD_Client_ID in ('29E43D204AEB4CEC9D1DC4EFFD0E5987', '0'))) order by businesspa0_.Name limit '76';
Date: 2026-07-17 11:07:55 Duration: 1s609ms 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
- 90,867 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 7 ERROR entries
- 0 WARNING entries
- 8773 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 8,743 Max number of times the same event was reported
- 8,780 Total events found
Rank Times reported Error 1 8,743 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 17 07 586 08 583 09 582 10 582 11 580 12 582 13 582 14 582 15 581 16 583 17 584 18 584 19 584 20 582 21 586 - 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 07:00:07 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-17 07:00:10 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-17 07:00:13 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
2 30 ERROR: unexpected EOF on client connection with an open transaction
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 17 07 2 08 2 09 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 - ERROR: unexpected EOF on client connection with an open transaction
- ERROR: unexpected EOF on client connection with an open transaction
- ERROR: unexpected EOF on client connection with an open transaction
Date: 2026-07-17 07:00:20 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-17 07:00:23 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-17 08:00:07 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
3 7 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 17 08 1 10 1 12 1 14 1 16 1 18 1 20 1 - ERROR: relation "lib_production_plan_info" does not exist at character 309
- ERROR: relation "lib_production_plan_info" does not exist at character 309
- ERROR: relation "lib_production_plan_info" does not exist at character 309
Statement: SELECT m_product_id, minutes FROM ( SELECT m_product.m_product_id, SUM(planes.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 60 * NULLIF(regexp_replace(m_product.value, '\D','','g'),'')::NUMERIC) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%') ) planes LEFT JOIN m_product ON m_product.ma_processplan_id = planes.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, (60 * NULLIF(regexp_replace(m_product.value, '\D','','g'), '')::NUMERIC) AS minutes FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%' UNION ALL SELECT m_product.m_product_id, SUM(planes2.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 180) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'StrtrP') ) planes2 LEFT JOIN m_product ON m_product.ma_processplan_id = planes2.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 180 AS minutes FROM m_product WHERE VALUE LIKE 'StrtrP' UNION ALL SELECT m_product.m_product_id, SUM(planes3.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, 300 AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW')) ) planes3 LEFT JOIN m_product ON m_product.ma_processplan_id = planes3.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 300 AS minutes FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW') ) totales WHERE minutes > 0 AND m_product_id IS NOT NULL
Date: 2026-07-17 08:00:56 Database: etendo Application: [unknown] User: tad Remote: 172.30.3.29
Statement: SELECT m_product_id, minutes FROM ( SELECT m_product.m_product_id, SUM(planes.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 60 * NULLIF(regexp_replace(m_product.value, '\D','','g'),'')::NUMERIC) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%') ) planes LEFT JOIN m_product ON m_product.ma_processplan_id = planes.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, (60 * NULLIF(regexp_replace(m_product.value, '\D','','g'), '')::NUMERIC) AS minutes FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%' UNION ALL SELECT m_product.m_product_id, SUM(planes2.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 180) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'StrtrP') ) planes2 LEFT JOIN m_product ON m_product.ma_processplan_id = planes2.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 180 AS minutes FROM m_product WHERE VALUE LIKE 'StrtrP' UNION ALL SELECT m_product.m_product_id, SUM(planes3.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, 300 AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW')) ) planes3 LEFT JOIN m_product ON m_product.ma_processplan_id = planes3.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 300 AS minutes FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW') ) totales WHERE minutes > 0 AND m_product_id IS NOT NULL
Date: 2026-07-17 10:01:07 Database: etendo Application: [unknown] User: tad Remote: 172.30.3.29
Statement: SELECT m_product_id, minutes FROM ( SELECT m_product.m_product_id, SUM(planes.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 60 * NULLIF(regexp_replace(m_product.value, '\D','','g'),'')::NUMERIC) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%') ) planes LEFT JOIN m_product ON m_product.ma_processplan_id = planes.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, (60 * NULLIF(regexp_replace(m_product.value, '\D','','g'), '')::NUMERIC) AS minutes FROM m_product WHERE VALUE LIKE 'TS-%' OR VALUE LIKE 'PTS-%' UNION ALL SELECT m_product.m_product_id, SUM(planes2.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, (qty * 180) AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE LIKE 'StrtrP') ) planes2 LEFT JOIN m_product ON m_product.ma_processplan_id = planes2.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 180 AS minutes FROM m_product WHERE VALUE LIKE 'StrtrP' UNION ALL SELECT m_product.m_product_id, SUM(planes3.minutes) AS minutes FROM ( SELECT DISTINCT plan_id, 300 AS minutes FROM lib_production_plan_info LEFT JOIN m_product ON m_product.m_product_id = lib_production_plan_info.product_id WHERE product_id IN (SELECT m_product_id FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW')) ) planes3 LEFT JOIN m_product ON m_product.ma_processplan_id = planes3.plan_id GROUP BY m_product.m_product_id UNION ALL SELECT m_product_id, 300 AS minutes FROM m_product WHERE VALUE IN ('LB-FIW-OP', 'SP-DEC', 'FW-I-A-LW') ) totales WHERE minutes > 0 AND m_product_id IS NOT NULL
Date: 2026-07-17 12:01:07 Database: etendo Application: [unknown] User: tad Remote: 172.30.3.29