-
Global information
- Generated on Sat Jul 18 23:00:46 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 138,238 log entries in 44s
- Log start from 2026-07-18 07:00:01 to 2026-07-18 22:00:00
-
Overview
Global Stats
- 16 Number of unique normalized queries
- 54 Number of queries
- 3m36s Total query duration
- 2026-07-18 07:00:06 First query
- 2026-07-18 21:00:03 Last query
- 1 queries/s at 2026-07-18 07:00:06 Query peak
- 3m36s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 3m36s Execute total duration
- 8,802 Number of events
- 3 Number of unique normalized events
- 8,765 Max number of times the same event was reported
- 0 Number of cancellation
- 46,800 Total number of automatic vacuums
- 130 Total number of automatic analyzes
- 24 Number temporary file
- 215.11 MiB Max size of temporary file
- 96.46 MiB Average size of temporary file
- 8,833 Total number of sessions
- 3 sessions at 2026-07-18 10:00:01 Session peak
- 30m40s Total duration of sessions
- 208ms Average duration of sessions
- 0 Average queries per session
- 24ms Average queries duration per session
- 183ms Average idle time per session
- 8,833 Total number of connections
- 5 connections/s at 2026-07-18 10:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-18 07:00:06 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-18 07:00:06 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-18 12:15:21 Date
Queries duration
Key values
- 3m36s 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 18 07 1 0ms 5s197ms 5s197ms 0ms 0ms 5s197ms 08 1 0ms 2s413ms 2s413ms 0ms 0ms 2s413ms 09 1 0ms 2s96ms 2s96ms 0ms 0ms 2s96ms 10 1 0ms 2s796ms 2s796ms 0ms 0ms 2s796ms 11 1 0ms 1s864ms 1s864ms 0ms 0ms 1s864ms 12 16 0ms 16s113ms 6s223ms 0ms 6s111ms 52s719ms 13 1 0ms 3s268ms 3s268ms 0ms 0ms 3s268ms 14 1 0ms 2s189ms 2s189ms 0ms 0ms 2s189ms 15 13 0ms 16s49ms 3s900ms 0ms 2s458ms 44s545ms 16 1 0ms 2s346ms 2s346ms 0ms 0ms 2s346ms 17 1 0ms 1s963ms 1s963ms 0ms 0ms 1s963ms 18 1 0ms 1s953ms 1s953ms 0ms 0ms 1s953ms 19 1 0ms 1s940ms 1s940ms 0ms 0ms 1s940ms 20 13 0ms 6s536ms 2s781ms 0ms 0ms 29s407ms 21 1 0ms 1s923ms 1s923ms 0ms 0ms 1s923ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 18 07 1 0 5s197ms 0ms 0ms 0ms 08 1 0 2s413ms 0ms 0ms 0ms 09 1 0 2s96ms 0ms 0ms 0ms 10 1 0 2s796ms 0ms 0ms 0ms 11 1 0 1s864ms 0ms 0ms 0ms 12 13 0 6s188ms 0ms 0ms 23s619ms 13 1 0 3s268ms 0ms 0ms 0ms 14 1 0 2s189ms 0ms 0ms 0ms 15 11 0 3s896ms 0ms 0ms 3s699ms 16 1 0 2s346ms 0ms 0ms 0ms 17 1 0 1s963ms 0ms 0ms 0ms 18 1 0 1s953ms 0ms 0ms 0ms 19 1 0 1s940ms 0ms 0ms 0ms 20 10 0 2s723ms 0ms 0ms 6s752ms 21 1 0 1s923ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 18 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 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 3 0 0 6s372ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 2 0 0 3s920ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 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 2s974ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 18 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 15 15.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 12 12.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 12 12.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jul 18 07 593 0.16/s 08 589 0.16/s 09 589 0.16/s 10 589 0.16/s 11 588 0.16/s 12 588 0.16/s 13 588 0.16/s 14 589 0.16/s 15 587 0.16/s 16 589 0.16/s 17 588 0.16/s 18 587 0.16/s 19 590 0.16/s 20 589 0.16/s 21 589 0.16/s 22 1 0.00/s Day Hour Count Average Duration Average idle time Jul 18 07 593 219ms 210ms 08 589 212ms 208ms 09 589 191ms 187ms 10 589 199ms 194ms 11 588 226ms 223ms 12 588 228ms 59ms 13 588 219ms 214ms 14 589 198ms 194ms 15 586 209ms 123ms 16 590 207ms 203ms 17 588 203ms 200ms 18 587 205ms 201ms 19 590 198ms 194ms 20 589 193ms 132ms 21 589 210ms 207ms 22 1 304ms 304ms -
Connections
Established Connections
Key values
- 5 connections Connection Peak
- 2026-07-18 10:00:01 Date
Connections per database
Key values
- etendo Main Database
- 8,833 connections Total
Connections per user
Key values
- tad Main User
- 8,833 connections Total
-
Sessions
Simultaneous sessions
Key values
- 3 sessions Session Peak
- 2026-07-18 10:00:01 Date
Histogram of session times
Key values
- 8,613 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 8,833 sessions Total
Sessions per user
Key values
- tad Main User
- 8,833 sessions Total
Sessions per host
Key values
- 10.10.11.43 Main Host
- 8,833 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 3,007 buffers Checkpoint Peak
- 2026-07-18 13:17:28 Date
- 269.805 seconds Highest write time
- 0.008 seconds Sync time
Checkpoints Wal files
Key values
- 1 files Wal files usage Peak
- 2026-07-18 21:17:36 Date
Checkpoints distance
Key values
- 35.63 Mo Distance Peak
- 2026-07-18 14:06:58 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 18 07 1,971 196.185s 0.049s 196.458s 08 1,875 186.364s 0.051s 186.645s 09 4,753 448.482s 0.047s 448.762s 10 2,512 250.02s 0.045s 250.271s 11 1,886 187.225s 0.046s 187.484s 12 2,749 273.864s 0.049s 274.127s 13 4,927 460.29s 0.047s 460.542s 14 2,592 258.133s 0.046s 258.382s 15 2,869 285.101s 0.052s 285.363s 16 2,349 234.13s 0.048s 234.371s 17 4,915 459.872s 0.049s 460.153s 18 2,499 249.002s 0.049s 249.262s 19 1,928 191.734s 0.05s 191.985s 20 2,724 271.143s 0.051s 271.406s 21 4,879 459.322s 0.045s 459.572s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 18 07 0 0 1 292 0.007s 0.012s 08 0 0 0 291 0.005s 0.012s 09 0 0 2 316 0.004s 0.012s 10 0 0 1 324 0.004s 0.011s 11 0 0 1 279 0.005s 0.011s 12 0 0 1 305 0.004s 0.012s 13 0 0 2 310 0.004s 0.011s 14 0 0 1 329 0.004s 0.011s 15 0 0 2 313 0.004s 0.012s 16 0 0 1 301 0.004s 0.011s 17 0 0 2 325 0.004s 0.012s 18 0 0 1 327 0.004s 0.011s 19 0 0 1 276 0.004s 0.011s 20 0 0 1 302 0.004s 0.012s 21 0 0 2 305 0.004s 0.011s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 18 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jul 18 07 1,230.33 kB 8,332.33 kB 08 1,168.42 kB 7,907.67 kB 09 2,552.58 kB 11,351.25 kB 10 1,674.18 kB 11,029.55 kB 11 1,282.91 kB 8,341.45 kB 12 1,504.25 kB 10,165.75 kB 13 2,931.09 kB 11,712.09 kB 14 1,722.45 kB 11,406.82 kB 15 1,569.33 kB 8,470.08 kB 16 1,618.82 kB 8,991.64 kB 17 2,680.75 kB 11,769.08 kB 18 1,677.73 kB 11,044.64 kB 19 1,328.64 kB 8,679.09 kB 20 1,502.83 kB 10,242.92 kB 21 2,933.55 kB 11,735.18 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 264.50 MiB Temp Files size Peak
- 2026-07-18 15:25:23 Date
Number of temporary files
Key values
- 2 per second Temp Files Peak
- 2026-07-18 15:25:23 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 18 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 8 771.69 MiB 96.46 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 22 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.62 MiB select * from ( select c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;
Date: 2026-07-18 12:15:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 6 749.74 MiB 34.80 MiB 215.11 MiB 124.96 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-18 12:16:23 Duration: 16s113ms 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-18 20:20:30 Duration: 5s893ms 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-18 15:25:43 Duration: 5s845ms 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-18 12:15:47 Duration: 0ms 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-18 12:15:45 - 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-18 12:16:07 - 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-18 12:16:23 - 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-18 15:25:23 - 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-18 15:25:38 - 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-18 15:25:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-18 20:20:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 215.11 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-18 20:20:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 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-18 20:20:30 - 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-18 12:15:45 - 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-18 15:25:23 - 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-18 20:20:13 - 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-18 12:16:07 - 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-18 12:16:23 - 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-18 15:25:38 - 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-18 15:25:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 34.80 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-18 20:20:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 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-18 20:20:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 3.68 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-18 12:15:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 3.68 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 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-18 12:15:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 1.81 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-18 18:34:51 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 1.81 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-18 18:34:51 Date
Analyzes per table
Key values
- profile.last_stat_user_functions_srv1 (15) Main table analyzed (database etendo)
- 130 analyzes Total
Table Number of analyzes etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.tables_list 10 etendo.profile.last_stat_io 8 etendo.profile.indexes_list 8 etendo.profile.funcs_list 5 etendo.profile.last_stat_activity_count_srv1 5 etendo.profile.last_extension_versions 5 etendo.profile.stmt_list 4 etendo.profile.last_stat_slru 3 etendo.profile.sample_stat_indexes 2 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_slru 1 etendo.public.ad_module 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_tablespaces 1 etendo.profile.sample_stat_user_func_total 1 etendo.profile.sample_stat_cluster 1 etendo.profile.sample_statements 1 etendo.profile.sample_statements_total 1 etendo.public.ad_process_request 1 etendo.profile.sample_stat_wal 1 etendo.profile.servers 1 etendo.profile.sample_stat_tables 1 etendo.public.m_product_org 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.samples 1 etendo.profile.sample_stat_archiver 1 Total 130 Vacuums per table
Key values
- profile.sample_stat_database (900) Main table vacuumed on database etendo
- 46,800 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_database 900 0 145,800 0 13 0 0 21 0 5,061 0 0 etendo.public.ad_preference 900 0 1,904,566 0 2 0 0 1 1 5,645 0 0 etendo.profile.sample_stat_tables_total 900 0 193,209 0 13 0 0 21 0 5,061 0 0 etendo.profile.indexes_list 900 0 608,100 0 4 0 0 21 0 5,061 0 0 etendo.profile.last_stat_indexes_srv1 900 0 84,505,140 0 20 0 0 97 20 129,721 0 0 etendo.profile.last_stat_user_functions_srv1 900 0 6,869,640 0 0 0 0 80 0 37,840 0 0 etendo.pg_toast.pg_toast_2619 900 0 2,774,620 0 17 0 0 31 17 133,413 0 0 etendo.public.c_invoice 900 0 15,204,104 0 20 0 0 85 20 154,325 0 0 etendo.profile.last_stat_statements_srv1 900 0 19,129,328 0 15 0 0 98 15 99,814 0 0 etendo.profile.sample_stat_tablespaces 900 0 51,646 0 45 0 0 21 0 5,061 0 0 etendo.pg_toast.pg_toast_196728 900 0 475,464 0 0 0 0 21 0 3,948 0 0 etendo.profile.sample_stat_user_func_total 900 0 40,994 0 15 0 0 21 0 5,061 0 0 etendo.public.m_stock_proposed 900 0 110,752 0 21 0 0 21 21 160,797 0 0 etendo.profile.last_stat_wal 900 0 31,500 0 15 0 0 21 0 3,948 0 0 etendo.public.m_storage_pending 900 0 588,868 0 21 0 0 21 21 121,737 0 0 etendo.profile.sample_statements_total 900 0 81,460 0 15 0 0 21 0 5,061 0 0 etendo.public.ad_sequence 900 0 111,983 0 0 0 0 21 0 5,397 0 0 etendo.public.m_product_org 900 0 1,678,696 0 46 0 0 160 46 332,576 0 0 etendo.profile.sample_stat_tables 900 0 4,814,592 0 1 0 0 53 1 20,633 0 0 etendo.profile.servers 900 0 46,206 0 36 0 0 36 21 126,774 15 15 etendo.public.ad_session 900 0 1,448,234 0 21 0 0 21 21 169,701 0 0 etendo.profile.last_stat_database_srv1 900 0 96,414 0 18 0 0 21 5 30,393 0 0 etendo.profile.sample_stat_io 900 0 127,181 0 13 0 0 21 0 5,061 0 0 etendo.profile.stmt_list 900 0 2,296,043 0 21 0 0 21 21 36,309 0 0 etendo.profile.sample_stat_indexes_total 900 0 79,367 0 15 0 0 21 0 5,061 0 0 etendo.profile.last_stat_cluster 900 0 33,300 0 36 0 0 21 21 84,357 0 0 etendo.profile.sample_stat_slru 900 0 62,219 0 14 0 0 21 0 5,061 0 0 etendo.profile.last_stat_slru 900 0 57,600 0 14 0 0 21 0 3,948 0 0 etendo.public.ad_process_run 900 0 2,233,308 0 508 0 0 300 129 1,030,668 0 0 etendo.public.ma_processplan_tot_aux 900 0 738,302 0 21 0 0 21 21 170,961 0 0 etendo.pg_catalog.pg_statistic 900 0 10,316,010 0 24 0 0 51 24 156,435 0 0 etendo.public.ad_module 900 0 342,736 0 22 0 0 24 22 126,288 0 0 etendo.profile.last_stat_io 900 0 154,800 0 33 0 0 21 21 79,485 0 0 etendo.profile.funcs_list 900 0 517,714 0 2 0 0 21 0 5,061 0 0 etendo.profile.tables_list 900 0 1,409,819 0 0 0 0 21 0 5,061 0 0 etendo.pg_toast.pg_toast_85256 900 0 1,420,140 0 23 0 0 26 23 135,735 0 0 etendo.profile.sample_statements 900 0 2,019,029 0 2 0 0 52 2 28,252 0 0 etendo.profile.sample_stat_cluster 900 0 38,913 0 15 0 0 21 0 5,061 0 0 etendo.public.fin_financial_account 900 0 82,472 0 0 0 0 21 0 5,397 0 0 etendo.profile.last_stat_tablespaces_srv1 900 0 42,300 0 15 0 0 21 0 9,933 0 0 etendo.public.ad_pinstance 900 3 145,636 0 21 0 0 167 21 127,510 0 0 etendo.profile.sample_stat_wal 900 0 34,321 0 51 0 0 21 20 162,261 0 0 etendo.public.ad_process_request 900 0 1,001,200 0 217 0 0 120 42 341,304 0 0 etendo.profile.last_stat_activity_count_srv1 900 0 105,600 0 29 0 0 21 0 9,933 0 0 etendo.public.ad_ep_instance_para 900 3 130,880 0 21 0 0 106 24 171,677 0 0 etendo.profile.sample_stat_user_functions 900 0 337,857 0 9 0 0 21 0 5,061 0 0 etendo.profile.last_stat_archiver 900 0 27,900 0 45 0 0 21 0 3,948 0 0 etendo.profile.sample_stat_indexes 900 0 767,890 0 1 0 0 32 1 15,572 0 0 etendo.profile.sample_stat_archiver 900 0 31,225 0 45 0 0 21 0 5,061 0 0 etendo.profile.samples 900 0 48,600 0 15 0 0 21 0 5,061 0 0 etendo.profile.last_stat_tables_srv1 900 0 67,833,877 0 17 0 0 90 15 103,950 0 0 etendo.profile.last_extension_versions 900 0 82,365 0 18 0 0 21 5 23,193 0 0 Total 46,800 6 233,429,920 5,265,413 1,625 0 0 2,302 621 4,439,693 15 15 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (1073.64000000002) 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_database 0 0 0 etendo.public.ad_preference 0 0 38.8999999999999 etendo.profile.sample_stat_tables_total 0 0 0 etendo.profile.indexes_list 0 0 0.11 etendo.profile.last_stat_indexes_srv1 0 0 1,073.64000000002 etendo.profile.last_stat_user_functions_srv1 0 0 84.6599999999997 etendo.pg_toast.pg_toast_2619 0 0 31.99 etendo.public.c_invoice 0 0 173.519999999997 etendo.profile.last_stat_statements_srv1 0 0 244.410000000003 etendo.profile.sample_stat_tablespaces 0 0 0 etendo.pg_toast.pg_toast_196728 0 0 0.04 etendo.profile.sample_stat_user_func_total 0 0 0 etendo.public.m_stock_proposed 0 0 0 etendo.profile.last_stat_wal 0 0 0 etendo.public.m_storage_pending 0 0 9.07999999999985 etendo.profile.sample_statements_total 0 0 0 etendo.public.ad_sequence 0 0 0.01 etendo.public.m_product_org 0 0 18.0399999999997 etendo.profile.sample_stat_tables 0 0 82.99 etendo.profile.servers 0 0 0 etendo.public.ad_session 0 0 21.7999999999999 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.sample_stat_io 0 0 0 etendo.profile.stmt_list 0 0 27.0600000000003 etendo.profile.sample_stat_indexes_total 0 0 0 etendo.profile.last_stat_cluster 0 0 0 etendo.profile.sample_stat_slru 0 0 0 etendo.profile.last_stat_slru 0 0 0 etendo.public.ad_process_run 0 0 47.7400000000001 etendo.public.ma_processplan_tot_aux 0 0 12.0099999999998 etendo.pg_catalog.pg_statistic 0 0 140.669999999998 etendo.public.ad_module 0 0 0.02 etendo.profile.last_stat_io 0 0 0 etendo.profile.funcs_list 0 0 0.03 etendo.profile.tables_list 0 0 11.9399999999998 etendo.pg_toast.pg_toast_85256 0 0 9.57999999999985 etendo.profile.sample_statements 0 0 30.1099999999999 etendo.profile.sample_stat_cluster 0 0 0 etendo.public.fin_financial_account 0 0 0 etendo.profile.last_stat_tablespaces_srv1 0 0 0 etendo.public.ad_pinstance 0 0 0 etendo.profile.sample_stat_wal 0 0 0 etendo.public.ad_process_request 0 0 9.18999999999985 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.public.ad_ep_instance_para 0 0 0.02 etendo.profile.sample_stat_user_functions 0 0 0.02 etendo.profile.last_stat_archiver 0 0 0 etendo.profile.sample_stat_indexes 0 0 9.04999999999985 etendo.profile.sample_stat_archiver 0 0 0 etendo.profile.samples 0 0 0 etendo.profile.last_stat_tables_srv1 0 0 852.400000000009 etendo.profile.last_extension_versions 0 0 0 Total 0 0 2,929.03000000002 Tuples removed per table
Key values
- public.ad_pinstance (351) Main table with removed tuples on database etendo
- 486 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.public.ad_pinstance 900 3 351 2,496,600 1,199,700 0 117,900 etendo.public.ad_ep_instance_para 900 3 135 2,550,600 2,550,600 0 52,200 etendo.profile.sample_stat_database 900 0 0 1,296,000 689,280 0 59,400 etendo.public.ad_preference 900 0 0 9,757,250 3,607,550 0 2,529,000 etendo.profile.sample_stat_tables_total 900 0 0 2,916,000 1,550,880 0 86,400 etendo.profile.indexes_list 900 0 0 12,581,040 12,103,020 0 274,800 etendo.profile.last_stat_indexes_srv1 900 0 0 1,035,612,021 1,032,286,980 0 52,574,400 etendo.profile.last_stat_user_functions_srv1 900 0 0 105,624,689 104,997,600 0 4,232,700 etendo.pg_toast.pg_toast_2619 900 0 0 7,061,950 4,363,466 0 1,961,100 etendo.public.c_invoice 900 0 0 128,361,727 37,760,638 0 28,773,000 etendo.profile.last_stat_statements_srv1 900 0 0 178,389,434 177,914,760 0 13,641,300 etendo.profile.sample_stat_tablespaces 900 0 0 648,000 344,640 0 5,400 etendo.pg_toast.pg_toast_196728 900 0 0 960,300 482,400 0 234,900 etendo.profile.sample_stat_user_func_total 900 0 0 648,000 344,640 0 6,300 etendo.public.m_stock_proposed 900 0 0 1,077,300 696,600 0 45,900 etendo.profile.last_stat_wal 900 0 0 172,800 171,900 0 3,600 etendo.public.m_storage_pending 900 0 0 7,044,300 1,256,400 0 443,700 etendo.profile.sample_statements_total 900 0 0 648,000 344,640 0 30,600 etendo.public.ad_sequence 900 0 0 681,300 400,500 0 65,700 etendo.public.m_product_org 900 0 0 57,595,671 11,869,300 0 6,087,600 etendo.profile.sample_stat_tables 900 0 0 90,327,232 45,229,800 0 3,171,600 etendo.profile.servers 900 0 0 172,800 171,900 0 4,500 etendo.public.ad_session 900 0 0 26,692,200 22,266,900 0 2,365,200 etendo.profile.last_stat_database_srv1 900 0 0 691,200 687,600 0 35,100 etendo.profile.sample_stat_io 900 0 0 2,245,680 1,203,120 0 55,800 etendo.profile.stmt_list 900 0 0 11,740,260 10,866,180 0 1,166,400 etendo.profile.sample_stat_indexes_total 900 0 0 1,296,000 689,280 0 17,100 etendo.profile.last_stat_cluster 900 0 0 172,800 171,900 0 4,500 etendo.profile.sample_stat_slru 900 0 0 1,296,900 690,180 0 20,700 etendo.profile.last_stat_slru 900 0 0 864,000 859,500 0 15,300 etendo.public.ad_process_run 900 0 0 17,492,176 7,187,736 0 1,549,980 etendo.public.ma_processplan_tot_aux 900 0 0 19,598,400 9,799,200 0 490,500 etendo.pg_catalog.pg_statistic 900 0 0 76,851,728 67,992,930 0 6,935,400 etendo.public.ad_module 900 0 0 1,751,050 1,421,050 0 202,500 etendo.profile.last_stat_io 900 0 0 2,246,400 2,234,700 0 61,200 etendo.profile.funcs_list 900 0 0 7,049,760 6,784,260 0 243,900 etendo.profile.tables_list 900 0 0 26,995,020 26,163,060 0 695,700 etendo.pg_toast.pg_toast_85256 900 0 0 3,152,922 2,386,200 0 1,216,800 etendo.profile.sample_statements 900 0 0 25,077,077 12,543,960 0 1,366,200 etendo.profile.sample_stat_cluster 900 0 0 324,000 172,320 0 8,100 etendo.public.fin_financial_account 900 0 0 143,100 99,000 0 34,200 etendo.profile.last_stat_tablespaces_srv1 900 0 0 345,600 343,800 0 7,200 etendo.profile.sample_stat_wal 900 0 0 324,000 172,320 0 5,400 etendo.public.ad_process_request 900 0 0 5,454,491 4,024,240 0 1,528,200 etendo.profile.last_stat_activity_count_srv1 900 0 0 1,846,200 1,846,200 0 48,300 etendo.profile.sample_stat_user_functions 900 0 0 16,554,600 8,768,880 0 178,200 etendo.profile.last_stat_archiver 900 0 0 172,800 171,900 0 1,800 etendo.profile.sample_stat_indexes 900 0 0 25,845,211 13,339,620 0 432,900 etendo.profile.sample_stat_archiver 900 0 0 324,000 172,320 0 3,600 etendo.profile.samples 900 0 0 324,000 172,320 0 2,700 etendo.profile.last_stat_tables_srv1 900 0 0 673,413,324 671,377,800 0 42,102,000 etendo.profile.last_extension_versions 900 0 0 1,555,200 1,547,100 0 27,000 Total 46,800 6 486 2,598,463,113 2,316,492,770 0 175,223,880 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_database 900 0 0 0 etendo.public.ad_preference 900 0 0 0 etendo.profile.sample_stat_tables_total 900 0 0 0 etendo.profile.indexes_list 900 0 0 0 etendo.profile.last_stat_indexes_srv1 900 0 0 0 etendo.profile.last_stat_user_functions_srv1 900 0 0 0 etendo.pg_toast.pg_toast_2619 900 0 0 0 etendo.public.c_invoice 900 0 0 0 etendo.profile.last_stat_statements_srv1 900 0 0 0 etendo.profile.sample_stat_tablespaces 900 0 0 0 etendo.pg_toast.pg_toast_196728 900 0 0 0 etendo.profile.sample_stat_user_func_total 900 0 0 0 etendo.public.m_stock_proposed 900 0 0 0 etendo.profile.last_stat_wal 900 0 0 0 etendo.public.m_storage_pending 900 0 0 0 etendo.profile.sample_statements_total 900 0 0 0 etendo.public.ad_sequence 900 0 0 0 etendo.public.m_product_org 900 0 0 0 etendo.profile.sample_stat_tables 900 0 0 0 etendo.profile.servers 900 0 0 0 etendo.public.ad_session 900 0 0 0 etendo.profile.last_stat_database_srv1 900 0 0 0 etendo.profile.sample_stat_io 900 0 0 0 etendo.profile.stmt_list 900 0 0 0 etendo.profile.sample_stat_indexes_total 900 0 0 0 etendo.profile.last_stat_cluster 900 0 0 0 etendo.profile.sample_stat_slru 900 0 0 0 etendo.profile.last_stat_slru 900 0 0 0 etendo.public.ad_process_run 900 0 0 0 etendo.public.ma_processplan_tot_aux 900 0 0 0 etendo.pg_catalog.pg_statistic 900 0 0 0 etendo.public.ad_module 900 0 0 0 etendo.profile.last_stat_io 900 0 0 0 etendo.profile.funcs_list 900 0 0 0 etendo.profile.tables_list 900 0 0 0 etendo.pg_toast.pg_toast_85256 900 0 0 0 etendo.profile.sample_statements 900 0 0 0 etendo.profile.sample_stat_cluster 900 0 0 0 etendo.public.fin_financial_account 900 0 0 0 etendo.profile.last_stat_tablespaces_srv1 900 0 0 0 etendo.public.ad_pinstance 900 3 351 0 etendo.profile.sample_stat_wal 900 0 0 0 etendo.public.ad_process_request 900 0 0 0 etendo.profile.last_stat_activity_count_srv1 900 0 0 0 etendo.public.ad_ep_instance_para 900 3 135 0 etendo.profile.sample_stat_user_functions 900 0 0 0 etendo.profile.last_stat_archiver 900 0 0 0 etendo.profile.sample_stat_indexes 900 0 0 0 etendo.profile.sample_stat_archiver 900 0 0 0 etendo.profile.samples 900 0 0 0 etendo.profile.last_stat_tables_srv1 900 0 0 0 etendo.profile.last_extension_versions 900 0 0 0 Total 46,800 6 486 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 18 07 3,120 9 08 3,120 8 09 3,120 6 10 3,120 6 11 3,120 9 12 3,120 7 13 3,120 11 14 3,120 13 15 3,120 8 16 3,120 13 17 3,120 8 18 3,120 6 19 3,120 10 20 3,120 8 21 3,120 8 22 0 0 - 1.81 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
- 46 Total read queries
- 8 Total write queries
Queries by database
Key values
- etendo Main database
- 54 Requests
- 3m36s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 39 Requests
User Request type Count Duration postgres Total 15 37s740ms select 15 37s740ms tad Total 39 2m58s select 31 2m22s update 8 35s879ms Duration by user
Key values
- 2m58s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 37s740ms select 15 37s740ms tad Total 39 2m58s select 31 2m22s update 8 35s879ms Queries by host
Key values
- 127.0.0.1 Main host
- 39 Requests
- 2m58s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 39 Requests
- 2m58s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-18 13:50:35 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 48 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 16s113ms 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-18 12:16:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 16s49ms 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-18 15:25:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 13s800ms 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-18 12:15:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 13s55ms 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-18 12:15:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 10s470ms 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-18 12:16:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 10s106ms 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-18 12:15:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 7s246ms 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-18 12:15:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 6s536ms 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-18 20:20:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 6s141ms 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-18 12:16:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 5s995ms SELECT * 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) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '7EDC62AE0AF34B74A4B327EA8A957965' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 12:16:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 5s893ms 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-18 20:20:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 5s879ms SELECT * 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) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '7EDC62AE0AF34B74A4B327EA8A957965' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 20:20:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 5s845ms 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-18 15:25:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 5s784ms SELECT * 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) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '7EDC62AE0AF34B74A4B327EA8A957965' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 15:25:38 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 5s197ms SELECT profile.take_sample ();[ Date: 2026-07-18 07:00:06 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
16 4s374ms 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-18 15:25:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 3s699ms 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-18 15:25:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 3s570ms 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-18 12:15:52 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 3s268ms SELECT profile.take_sample ();[ Date: 2026-07-18 13:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
20 3s18ms SELECT profile.take_sample ();[ Date: 2026-07-18 20:00:04 - 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 53s301ms 6 5s784ms 16s49ms 8s883ms 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 #1
Day Hour Count Duration Avg duration Jul 18 12 2 19s50ms 9s525ms 15 2 21s834ms 10s917ms 20 2 12s416ms 6s208ms [ User: tad - Total duration: 53s301ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 53s301ms - 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-18 15:25:23 Duration: 16s49ms 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-18 12:15:45 Duration: 13s55ms 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-18 20:20:13 Duration: 6s536ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 37s740ms 15 1s864ms 5s197ms 2s516ms select profile.take_sample ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 18 07 1 5s197ms 5s197ms 08 1 2s413ms 2s413ms 09 1 2s96ms 2s96ms 10 1 2s796ms 2s796ms 11 1 1s864ms 1s864ms 12 1 2s311ms 2s311ms 13 1 3s268ms 3s268ms 14 1 2s189ms 2s189ms 15 1 2s458ms 2s458ms 16 1 2s346ms 2s346ms 17 1 1s963ms 1s963ms 18 1 1s953ms 1s953ms 19 1 1s940ms 1s940ms 20 1 3s18ms 3s18ms 21 1 1s923ms 1s923ms [ User: postgres - Total duration: 37s740ms - Times executed: 15 ]
[ Application: psql - Total duration: 37s740ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 07:00:06 Duration: 5s197ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 13:00:05 Duration: 3s268ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 3s18ms Database: etendo User: postgres Remote: [local] Application: psql
3 27s980ms 4 2s36ms 13s800ms 6s995ms 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 #3
Day Hour Count Duration Avg duration Jul 18 12 2 23s906ms 11s953ms 15 1 2s36ms 2s36ms 20 1 2s37ms 2s37ms [ User: tad - Total duration: 27s980ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 27s980ms - Times executed: 4 ]
-
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-18 12:15:19 Duration: 13s800ms 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-18 12:15:31 Duration: 10s106ms 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 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-18 20:20:04 Duration: 2s37ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 27s851ms 3 5s845ms 16s113ms 9s283ms 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 #4
Day Hour Count Duration Avg duration Jul 18 12 1 16s113ms 16s113ms 15 1 5s845ms 5s845ms 20 1 5s893ms 5s893ms [ User: tad - Total duration: 27s851ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 27s851ms - 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-18 12:16:23 Duration: 16s113ms 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-18 20:20:30 Duration: 5s893ms 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-18 15:25:43 Duration: 5s845ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 16s753ms 3 1s908ms 10s470ms 5s584ms 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 #5
Day Hour Count Duration Avg duration Jul 18 12 1 10s470ms 10s470ms 15 1 4s374ms 4s374ms 20 1 1s908ms 1s908ms [ User: tad - Total duration: 16s753ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 16s753ms - 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-18 12:16:42 Duration: 10s470ms 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-18 15:25:53 Duration: 4s374ms 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-18 20:20:37 Duration: 1s908ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 12s24ms 3 1s78ms 7s246ms 4s8ms 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 #6
Day Hour Count Duration Avg duration Jul 18 12 1 7s246ms 7s246ms 15 1 3s699ms 3s699ms 20 1 1s78ms 1s78ms [ User: tad - Total duration: 12s24ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 12s24ms - 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-18 12:15:59 Duration: 7s246ms 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-18 15:25:31 Duration: 3s699ms 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-18 20:20:17 Duration: 1s78ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 10s381ms 3 1s966ms 6s141ms 3s460ms 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 #7
Day Hour Count Duration Avg duration Jul 18 12 1 6s141ms 6s141ms 15 1 2s272ms 2s272ms 20 1 1s966ms 1s966ms [ User: tad - Total duration: 10s381ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s381ms - 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-18 12:16:31 Duration: 6s141ms 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-18 15:25:48 Duration: 2s272ms 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-18 20:20:34 Duration: 1s966ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 6s13ms 3 1s995ms 2s22ms 2s4ms 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 #8
Day Hour Count Duration Avg duration Jul 18 12 1 1s995ms 1s995ms 15 1 1s995ms 1s995ms 20 1 2s22ms 2s22ms [ User: tad - Total duration: 6s13ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s13ms - 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-18 20:20:06 Duration: 2s22ms 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-18 12:15:21 Duration: 1s995ms 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-18 15:25:06 Duration: 1s995ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 5s653ms 3 1s856ms 1s923ms 1s884ms 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 #9
Day Hour Count Duration Avg duration Jul 18 12 1 1s923ms 1s923ms 15 1 1s856ms 1s856ms 20 1 1s873ms 1s873ms [ User: tad - Total duration: 5s653ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s653ms - 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-18 12:00:17 Duration: 1s923ms 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-18 20:00:17 Duration: 1s873ms 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-18 15:10:16 Duration: 1s856ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 5s579ms 3 1s842ms 1s877ms 1s859ms 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 #10
Day Hour Count Duration Avg duration Jul 18 12 1 1s877ms 1s877ms 15 1 1s842ms 1s842ms 20 1 1s860ms 1s860ms [ User: tad - Total duration: 5s579ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s579ms - 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-18 12:00:19 Duration: 1s877ms 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-18 20:00:19 Duration: 1s860ms 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-18 15:10:18 Duration: 1s842ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 5s10ms 2 1s440ms 3s570ms 2s505ms 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 #11
Day Hour Count Duration Avg duration Jul 18 12 1 3s570ms 3s570ms 15 1 1s440ms 1s440ms [ User: tad - Total duration: 5s10ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 5s10ms - 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-18 12:15:52 Duration: 3s570ms 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-18 15:25:27 Duration: 1s440ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 3s137ms 3 1s11ms 1s79ms 1s45ms 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 #12
Day Hour Count Duration Avg duration Jul 18 12 1 1s11ms 1s11ms 15 1 1s46ms 1s46ms 20 1 1s79ms 1s79ms [ User: tad - Total duration: 3s137ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s137ms - 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-18 20:20:18 Duration: 1s79ms 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-18 15:25:32 Duration: 1s46ms 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-18 12:16:00 Duration: 1s11ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 2s945ms 1 2s945ms 2s945ms 2s945ms 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 = ? 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 #13
Day Hour Count Duration Avg duration Jul 18 12 1 2s945ms 2s945ms [ User: tad - Total duration: 2s945ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s945ms - Times executed: 1 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED G/L JOURNAL' 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 ('GL_Journal', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '224' 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 = 'F3ED2CADE1D84535A8740867C37D6AB4' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 12:15:05 Duration: 2s945ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 2s14ms 2 1s6ms 1s7ms 1s7ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( 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) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 18 12 1 1s7ms 1s7ms 20 1 1s6ms 1s6ms [ User: tad - Total duration: 2s14ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s14ms - Times executed: 2 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 12:16:43 Duration: 1s7ms 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 = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 20:20:38 Duration: 1s6ms 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 37s740ms 1s864ms 5s197ms 2s516ms select profile.take_sample ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 18 07 1 5s197ms 5s197ms 08 1 2s413ms 2s413ms 09 1 2s96ms 2s96ms 10 1 2s796ms 2s796ms 11 1 1s864ms 1s864ms 12 1 2s311ms 2s311ms 13 1 3s268ms 3s268ms 14 1 2s189ms 2s189ms 15 1 2s458ms 2s458ms 16 1 2s346ms 2s346ms 17 1 1s963ms 1s963ms 18 1 1s953ms 1s953ms 19 1 1s940ms 1s940ms 20 1 3s18ms 3s18ms 21 1 1s923ms 1s923ms [ User: postgres - Total duration: 37s740ms - Times executed: 15 ]
[ Application: psql - Total duration: 37s740ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 07:00:06 Duration: 5s197ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 13:00:05 Duration: 3s268ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 3s18ms Database: etendo User: postgres Remote: [local] Application: psql
2 6 53s301ms 5s784ms 16s49ms 8s883ms 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 #2
Day Hour Count Duration Avg duration Jul 18 12 2 19s50ms 9s525ms 15 2 21s834ms 10s917ms 20 2 12s416ms 6s208ms [ User: tad - Total duration: 53s301ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 53s301ms - 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-18 15:25:23 Duration: 16s49ms 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-18 12:15:45 Duration: 13s55ms 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-18 20:20:13 Duration: 6s536ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 4 27s980ms 2s36ms 13s800ms 6s995ms 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 #3
Day Hour Count Duration Avg duration Jul 18 12 2 23s906ms 11s953ms 15 1 2s36ms 2s36ms 20 1 2s37ms 2s37ms [ User: tad - Total duration: 27s980ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 27s980ms - Times executed: 4 ]
-
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-18 12:15:19 Duration: 13s800ms 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-18 12:15:31 Duration: 10s106ms 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 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-18 20:20:04 Duration: 2s37ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 3 27s851ms 5s845ms 16s113ms 9s283ms 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 #4
Day Hour Count Duration Avg duration Jul 18 12 1 16s113ms 16s113ms 15 1 5s845ms 5s845ms 20 1 5s893ms 5s893ms [ User: tad - Total duration: 27s851ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 27s851ms - 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-18 12:16:23 Duration: 16s113ms 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-18 20:20:30 Duration: 5s893ms 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-18 15:25:43 Duration: 5s845ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 3 16s753ms 1s908ms 10s470ms 5s584ms 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 #5
Day Hour Count Duration Avg duration Jul 18 12 1 10s470ms 10s470ms 15 1 4s374ms 4s374ms 20 1 1s908ms 1s908ms [ User: tad - Total duration: 16s753ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 16s753ms - 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-18 12:16:42 Duration: 10s470ms 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-18 15:25:53 Duration: 4s374ms 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-18 20:20:37 Duration: 1s908ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 3 12s24ms 1s78ms 7s246ms 4s8ms 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 #6
Day Hour Count Duration Avg duration Jul 18 12 1 7s246ms 7s246ms 15 1 3s699ms 3s699ms 20 1 1s78ms 1s78ms [ User: tad - Total duration: 12s24ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 12s24ms - 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-18 12:15:59 Duration: 7s246ms 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-18 15:25:31 Duration: 3s699ms 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-18 20:20:17 Duration: 1s78ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 3 10s381ms 1s966ms 6s141ms 3s460ms 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 #7
Day Hour Count Duration Avg duration Jul 18 12 1 6s141ms 6s141ms 15 1 2s272ms 2s272ms 20 1 1s966ms 1s966ms [ User: tad - Total duration: 10s381ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s381ms - 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-18 12:16:31 Duration: 6s141ms 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-18 15:25:48 Duration: 2s272ms 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-18 20:20:34 Duration: 1s966ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 3 6s13ms 1s995ms 2s22ms 2s4ms 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 #8
Day Hour Count Duration Avg duration Jul 18 12 1 1s995ms 1s995ms 15 1 1s995ms 1s995ms 20 1 2s22ms 2s22ms [ User: tad - Total duration: 6s13ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s13ms - 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-18 20:20:06 Duration: 2s22ms 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-18 12:15:21 Duration: 1s995ms 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-18 15:25:06 Duration: 1s995ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 3 5s653ms 1s856ms 1s923ms 1s884ms 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 #9
Day Hour Count Duration Avg duration Jul 18 12 1 1s923ms 1s923ms 15 1 1s856ms 1s856ms 20 1 1s873ms 1s873ms [ User: tad - Total duration: 5s653ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s653ms - 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-18 12:00:17 Duration: 1s923ms 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-18 20:00:17 Duration: 1s873ms 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-18 15:10:16 Duration: 1s856ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 3 5s579ms 1s842ms 1s877ms 1s859ms 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 #10
Day Hour Count Duration Avg duration Jul 18 12 1 1s877ms 1s877ms 15 1 1s842ms 1s842ms 20 1 1s860ms 1s860ms [ User: tad - Total duration: 5s579ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s579ms - 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-18 12:00:19 Duration: 1s877ms 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-18 20:00:19 Duration: 1s860ms 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-18 15:10:18 Duration: 1s842ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 3 3s137ms 1s11ms 1s79ms 1s45ms 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 #11
Day Hour Count Duration Avg duration Jul 18 12 1 1s11ms 1s11ms 15 1 1s46ms 1s46ms 20 1 1s79ms 1s79ms [ User: tad - Total duration: 3s137ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s137ms - 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-18 20:20:18 Duration: 1s79ms 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-18 15:25:32 Duration: 1s46ms 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-18 12:16:00 Duration: 1s11ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 2 5s10ms 1s440ms 3s570ms 2s505ms 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 #12
Day Hour Count Duration Avg duration Jul 18 12 1 3s570ms 3s570ms 15 1 1s440ms 1s440ms [ User: tad - Total duration: 5s10ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 5s10ms - 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-18 12:15:52 Duration: 3s570ms 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-18 15:25:27 Duration: 1s440ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 2 2s14ms 1s6ms 1s7ms 1s7ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( 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) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 18 12 1 1s7ms 1s7ms 20 1 1s6ms 1s6ms [ User: tad - Total duration: 2s14ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s14ms - Times executed: 2 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 12:16:43 Duration: 1s7ms 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 = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 20:20:38 Duration: 1s6ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1 2s945ms 2s945ms 2s945ms 2s945ms 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 = ? 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 #14
Day Hour Count Duration Avg duration Jul 18 12 1 2s945ms 2s945ms [ User: tad - Total duration: 2s945ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s945ms - Times executed: 1 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED G/L JOURNAL' 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 ('GL_Journal', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '224' 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 = 'F3ED2CADE1D84535A8740867C37D6AB4' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 12:15:05 Duration: 2s945ms 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 5s845ms 16s113ms 9s283ms 3 27s851ms 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 #1
Day Hour Count Duration Avg duration Jul 18 12 1 16s113ms 16s113ms 15 1 5s845ms 5s845ms 20 1 5s893ms 5s893ms [ User: tad - Total duration: 27s851ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 27s851ms - 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-18 12:16:23 Duration: 16s113ms 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-18 20:20:30 Duration: 5s893ms 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-18 15:25:43 Duration: 5s845ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 5s784ms 16s49ms 8s883ms 6 53s301ms 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 #2
Day Hour Count Duration Avg duration Jul 18 12 2 19s50ms 9s525ms 15 2 21s834ms 10s917ms 20 2 12s416ms 6s208ms [ User: tad - Total duration: 53s301ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 53s301ms - 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-18 15:25:23 Duration: 16s49ms 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-18 12:15:45 Duration: 13s55ms 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-18 20:20:13 Duration: 6s536ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 2s36ms 13s800ms 6s995ms 4 27s980ms 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 #3
Day Hour Count Duration Avg duration Jul 18 12 2 23s906ms 11s953ms 15 1 2s36ms 2s36ms 20 1 2s37ms 2s37ms [ User: tad - Total duration: 27s980ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 27s980ms - Times executed: 4 ]
-
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-18 12:15:19 Duration: 13s800ms 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-18 12:15:31 Duration: 10s106ms 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 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-18 20:20:04 Duration: 2s37ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1s908ms 10s470ms 5s584ms 3 16s753ms 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 #4
Day Hour Count Duration Avg duration Jul 18 12 1 10s470ms 10s470ms 15 1 4s374ms 4s374ms 20 1 1s908ms 1s908ms [ User: tad - Total duration: 16s753ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 16s753ms - 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-18 12:16:42 Duration: 10s470ms 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-18 15:25:53 Duration: 4s374ms 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-18 20:20:37 Duration: 1s908ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 1s78ms 7s246ms 4s8ms 3 12s24ms 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 #5
Day Hour Count Duration Avg duration Jul 18 12 1 7s246ms 7s246ms 15 1 3s699ms 3s699ms 20 1 1s78ms 1s78ms [ User: tad - Total duration: 12s24ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 12s24ms - 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-18 12:15:59 Duration: 7s246ms 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-18 15:25:31 Duration: 3s699ms 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-18 20:20:17 Duration: 1s78ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 1s966ms 6s141ms 3s460ms 3 10s381ms 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 #6
Day Hour Count Duration Avg duration Jul 18 12 1 6s141ms 6s141ms 15 1 2s272ms 2s272ms 20 1 1s966ms 1s966ms [ User: tad - Total duration: 10s381ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s381ms - 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-18 12:16:31 Duration: 6s141ms 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-18 15:25:48 Duration: 2s272ms 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-18 20:20:34 Duration: 1s966ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2s945ms 2s945ms 2s945ms 1 2s945ms 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 = ? 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 18 12 1 2s945ms 2s945ms [ User: tad - Total duration: 2s945ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s945ms - Times executed: 1 ]
-
SELECT * FROM ( select record_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'NOT BALANCED G/L JOURNAL' 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 ('GL_Journal', record_id, 'es_ES') AS RECORD_ID FROM fact_acct WHERE ad_table_id = '224' 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 = 'F3ED2CADE1D84535A8740867C37D6AB4' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 12:15:05 Duration: 2s945ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1s864ms 5s197ms 2s516ms 15 37s740ms select profile.take_sample ();Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 18 07 1 5s197ms 5s197ms 08 1 2s413ms 2s413ms 09 1 2s96ms 2s96ms 10 1 2s796ms 2s796ms 11 1 1s864ms 1s864ms 12 1 2s311ms 2s311ms 13 1 3s268ms 3s268ms 14 1 2s189ms 2s189ms 15 1 2s458ms 2s458ms 16 1 2s346ms 2s346ms 17 1 1s963ms 1s963ms 18 1 1s953ms 1s953ms 19 1 1s940ms 1s940ms 20 1 3s18ms 3s18ms 21 1 1s923ms 1s923ms [ User: postgres - Total duration: 37s740ms - Times executed: 15 ]
[ Application: psql - Total duration: 37s740ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 07:00:06 Duration: 5s197ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 13:00:05 Duration: 3s268ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 3s18ms Database: etendo User: postgres Remote: [local] Application: psql
9 1s440ms 3s570ms 2s505ms 2 5s10ms 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 #9
Day Hour Count Duration Avg duration Jul 18 12 1 3s570ms 3s570ms 15 1 1s440ms 1s440ms [ User: tad - Total duration: 5s10ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 5s10ms - 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-18 12:15:52 Duration: 3s570ms 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-18 15:25:27 Duration: 1s440ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1s995ms 2s22ms 2s4ms 3 6s13ms 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 #10
Day Hour Count Duration Avg duration Jul 18 12 1 1s995ms 1s995ms 15 1 1s995ms 1s995ms 20 1 2s22ms 2s22ms [ User: tad - Total duration: 6s13ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s13ms - 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-18 20:20:06 Duration: 2s22ms 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-18 12:15:21 Duration: 1s995ms 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-18 15:25:06 Duration: 1s995ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s856ms 1s923ms 1s884ms 3 5s653ms 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 #11
Day Hour Count Duration Avg duration Jul 18 12 1 1s923ms 1s923ms 15 1 1s856ms 1s856ms 20 1 1s873ms 1s873ms [ User: tad - Total duration: 5s653ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s653ms - 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-18 12:00:17 Duration: 1s923ms 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-18 20:00:17 Duration: 1s873ms 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-18 15:10:16 Duration: 1s856ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1s842ms 1s877ms 1s859ms 3 5s579ms 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 #12
Day Hour Count Duration Avg duration Jul 18 12 1 1s877ms 1s877ms 15 1 1s842ms 1s842ms 20 1 1s860ms 1s860ms [ User: tad - Total duration: 5s579ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s579ms - 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-18 12:00:19 Duration: 1s877ms 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-18 20:00:19 Duration: 1s860ms 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-18 15:10:18 Duration: 1s842ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1s11ms 1s79ms 1s45ms 3 3s137ms 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 #13
Day Hour Count Duration Avg duration Jul 18 12 1 1s11ms 1s11ms 15 1 1s46ms 1s46ms 20 1 1s79ms 1s79ms [ User: tad - Total duration: 3s137ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s137ms - 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-18 20:20:18 Duration: 1s79ms 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-18 15:25:32 Duration: 1s46ms 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-18 12:16:00 Duration: 1s11ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s6ms 1s7ms 1s7ms 2 2s14ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( 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) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 18 12 1 1s7ms 1s7ms 20 1 1s6ms 1s6ms [ User: tad - Total duration: 2s14ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s14ms - Times executed: 2 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 12:16:43 Duration: 1s7ms 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 = '86C9A5FFEA28494D927E2699CEAFEFE1' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 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) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 20:20:38 Duration: 1s6ms 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
- 91,538 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
- 8795 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 8,765 Max number of times the same event was reported
- 8,802 Total events found
Rank Times reported Error 1 8,765 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 18 07 589 08 584 09 585 10 584 11 584 12 582 13 584 14 584 15 582 16 585 17 584 18 582 19 586 20 584 21 585 22 1 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-18 07:00:01 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-18 07:00:03 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-18 07:00:06 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 18 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-18 07:00:10 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-18 07:00:14 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-18 08:00:09 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 18 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-18 08:00:51 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-18 10:00:49 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-18 12:00:51 Database: etendo Application: [unknown] User: tad Remote: 172.30.3.29