-
Global information
- Generated on Sun Jul 19 23:00:16 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 140,885 log entries in 14s
- Log start from 2026-07-19 07:00:01 to 2026-07-19 21:59:58
-
Overview
Global Stats
- 16 Number of unique normalized queries
- 53 Number of queries
- 3m43s Total query duration
- 2026-07-19 07:00:04 First query
- 2026-07-19 21:00:04 Last query
- 1 queries/s at 2026-07-19 11:00:05 Query peak
- 3m43s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 3m43s Execute total duration
- 8,796 Number of events
- 5 Number of unique normalized events
- 8,755 Max number of times the same event was reported
- 0 Number of cancellation
- 49,374 Total number of automatic vacuums
- 127 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,823 Total number of sessions
- 3 sessions at 2026-07-19 19:00:01 Session peak
- 31m30s Total duration of sessions
- 214ms Average duration of sessions
- 0 Average queries per session
- 25ms Average queries duration per session
- 188ms Average idle time per session
- 8,823 Total number of connections
- 5 connections/s at 2026-07-19 19:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-19 11:00:05 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-19 11:00:05 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-19 12:16:44 Date
Queries duration
Key values
- 3m43s 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 19 07 1 0ms 2s730ms 2s730ms 0ms 0ms 2s730ms 08 1 0ms 2s607ms 2s607ms 0ms 0ms 2s607ms 09 1 0ms 2s152ms 2s152ms 0ms 0ms 2s152ms 10 1 0ms 3s475ms 3s475ms 0ms 0ms 3s475ms 11 1 0ms 3s780ms 3s780ms 0ms 0ms 3s780ms 12 16 0ms 14s919ms 6s228ms 0ms 7s351ms 46s555ms 13 1 0ms 2s542ms 2s542ms 0ms 0ms 2s542ms 14 1 0ms 2s256ms 2s256ms 0ms 0ms 2s256ms 15 12 0ms 19s742ms 4s50ms 0ms 2s44ms 42s798ms 16 1 0ms 2s7ms 2s7ms 0ms 0ms 2s7ms 17 1 0ms 1s988ms 1s988ms 0ms 0ms 1s988ms 18 1 0ms 2s127ms 2s127ms 0ms 0ms 2s127ms 19 1 0ms 1s956ms 1s956ms 0ms 0ms 1s956ms 20 13 0ms 9s881ms 3s430ms 0ms 0ms 38s716ms 21 1 0ms 2s892ms 2s892ms 0ms 0ms 2s892ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 19 07 1 0 2s730ms 0ms 0ms 0ms 08 1 0 2s607ms 0ms 0ms 0ms 09 1 0 2s152ms 0ms 0ms 0ms 10 1 0 3s475ms 0ms 0ms 0ms 11 1 0 3s780ms 0ms 0ms 0ms 12 13 0 6s283ms 0ms 0ms 29s781ms 13 1 0 2s542ms 0ms 0ms 0ms 14 1 0 2s256ms 0ms 0ms 0ms 15 9 0 4s404ms 0ms 0ms 3s756ms 16 1 0 2s7ms 0ms 0ms 0ms 17 1 0 1s988ms 0ms 0ms 0ms 18 1 0 2s127ms 0ms 0ms 0ms 19 1 0 1s956ms 0ms 0ms 0ms 20 10 0 3s566ms 0ms 0ms 5s879ms 21 1 0 2s892ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 19 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 5s989ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 3 0 0 2s986ms 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 2s978ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 19 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 11 11.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% Day Hour Count Average / Second Jul 19 07 591 0.16/s 08 587 0.16/s 09 586 0.16/s 10 590 0.16/s 11 585 0.16/s 12 590 0.16/s 13 584 0.16/s 14 590 0.16/s 15 588 0.16/s 16 587 0.16/s 17 589 0.16/s 18 589 0.16/s 19 588 0.16/s 20 589 0.16/s 21 590 0.16/s Day Hour Count Average Duration Average idle time Jul 19 07 591 216ms 212ms 08 587 207ms 203ms 09 586 225ms 221ms 10 590 232ms 226ms 11 585 233ms 226ms 12 590 244ms 76ms 13 584 231ms 226ms 14 590 208ms 204ms 15 588 200ms 117ms 16 587 197ms 193ms 17 589 206ms 203ms 18 589 201ms 197ms 19 588 200ms 196ms 20 589 205ms 129ms 21 590 203ms 198ms -
Connections
Established Connections
Key values
- 5 connections Connection Peak
- 2026-07-19 19:00:01 Date
Connections per database
Key values
- etendo Main Database
- 8,823 connections Total
Connections per user
Key values
- tad Main User
- 8,823 connections Total
-
Sessions
Simultaneous sessions
Key values
- 3 sessions Session Peak
- 2026-07-19 19:00:01 Date
Histogram of session times
Key values
- 8,587 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 8,823 sessions Total
Sessions per user
Key values
- tad Main User
- 8,823 sessions Total
Sessions per host
Key values
- 10.10.11.43 Main Host
- 8,823 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 2,981 buffers Checkpoint Peak
- 2026-07-19 09:17:47 Date
- 269.929 seconds Highest write time
- 0.007 seconds Sync time
Checkpoints Wal files
Key values
- 2 files Wal files usage Peak
- 2026-07-19 14:07:04 Date
Checkpoints distance
Key values
- 35.75 Mo Distance Peak
- 2026-07-19 21:17:55 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 19 07 1,944 193.27s 0.048s 193.526s 08 1,899 190.012s 0.047s 190.285s 09 4,802 450.927s 0.049s 451.176s 10 2,360 235.07s 0.047s 235.313s 11 1,955 194.34s 0.047s 194.591s 12 2,721 270.965s 0.058s 271.244s 13 4,883 459.995s 0.051s 460.271s 14 2,418 242.461s 0.052s 242.758s 15 2,778 276.67s 0.054s 276.921s 16 2,290 227.718s 0.046s 227.961s 17 4,915 463.109s 0.042s 463.339s 18 2,601 259.437s 0.046s 259.687s 19 2,002 198.872s 0.052s 199.142s 20 2,746 273.166s 0.054s 273.454s 21 4,925 463.769s 0.046s 464.017s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 19 07 0 0 1 280 0.004s 0.011s 08 0 0 0 282 0.004s 0.011s 09 0 0 2 304 0.004s 0.011s 10 0 0 1 321 0.004s 0.011s 11 0 0 1 275 0.004s 0.011s 12 0 0 1 305 0.004s 0.012s 13 0 0 2 305 0.005s 0.011s 14 0 0 2 323 0.006s 0.011s 15 0 0 1 290 0.004s 0.011s 16 0 0 1 300 0.004s 0.011s 17 0 0 2 297 0.004s 0.01s 18 0 0 1 360 0.004s 0.011s 19 0 0 1 321 0.005s 0.012s 20 0 0 1 295 0.004s 0.012s 21 0 0 2 319 0.004s 0.011s Day Hour Count Avg time (sec) Jul 19 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s Day Hour Mean distance Mean estimate Jul 19 07 1,343.55 kB 8,834.36 kB 08 1,314.82 kB 8,518.82 kB 09 2,923.45 kB 12,433.00 kB 10 1,587.09 kB 10,509.64 kB 11 1,356.00 kB 8,914.55 kB 12 1,522.50 kB 10,386.17 kB 13 2,991.45 kB 12,048.91 kB 14 1,623.64 kB 10,775.09 kB 15 1,711.82 kB 8,887.64 kB 16 1,593.18 kB 8,823.00 kB 17 3,308.50 kB 12,599.70 kB 18 1,680.82 kB 10,985.09 kB 19 1,259.08 kB 8,565.42 kB 20 1,562.00 kB 10,778.00 kB 21 3,011.91 kB 12,146.91 kB -
Temporary Files
Size of temporary files
Key values
- 264.50 MiB Temp Files size Peak
- 2026-07-19 20:20:14 Date
Number of temporary files
Key values
- 2 per second Temp Files Peak
- 2026-07-19 15:25:28 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 19 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 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-19 12:15:46 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-19 12:16:24 Duration: 14s919ms 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-19 15:25:45 Duration: 5s915ms 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-19 20:20:32 Duration: 5s915ms 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-19 12:15:49 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-19 12:15:46 - 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-19 12:16:09 - 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-19 12:16:24 - 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-19 15:25:27 - 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-19 15:25:39 - 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-19 15:25:45 - 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-19 20:20:14 - 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-19 20:20:26 - 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-19 20:20:32 - 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-19 12:15:46 - 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-19 15:25:27 - 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-19 20:20:14 - 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-19 12:16:09 - 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-19 12:16:24 - 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-19 15:25:39 - 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-19 15:25:45 - 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-19 20:20:26 - 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-19 20:20:32 - 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-19 12:15:49 - 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-19 12:15:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 2.01 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-19 14:03:09 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 2.01 sec Highest CPU-cost vacuum
Table profile.last_stat_indexes_srv1
Database etendo - 2026-07-19 14:03:09 Date
Analyzes per table
Key values
- profile.last_stat_tables_srv1 (15) Main table analyzed (database etendo)
- 127 analyzes Total
Table Number of analyzes etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.tables_list 10 etendo.profile.last_stat_io 8 etendo.profile.indexes_list 6 etendo.profile.last_extension_versions 5 etendo.profile.last_stat_activity_count_srv1 5 etendo.profile.funcs_list 5 etendo.profile.stmt_list 4 etendo.profile.last_stat_slru 3 etendo.public.ad_process_request 2 etendo.profile.sample_stat_indexes 2 etendo.profile.sample_stat_tables 2 etendo.profile.sample_statements 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_user_func_total 1 etendo.profile.last_stat_cluster 1 etendo.profile.sample_stat_tablespaces 1 etendo.profile.sample_stat_user_functions 1 etendo.public.ad_module 1 etendo.public.ad_process_run 1 etendo.profile.last_stat_wal 1 etendo.profile.sample_statements_total 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_io 1 etendo.profile.last_stat_archiver 1 etendo.profile.sample_stat_slru 1 Total 127 Vacuums per table
Key values
- pg_toast.pg_toast_84969 (898) Main table vacuumed on database etendo
- 49,374 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.pg_toast.pg_toast_84969 898 0 94,415 0 11 0 0 27 2 15,990 0 0 etendo.pg_catalog.pg_statistic 898 0 11,199,002 0 45 0 0 61 27 176,805 0 0 etendo.public.m_storage_pending 898 0 587,874 0 22 0 0 24 22 128,048 0 0 etendo.profile.sample_stat_indexes 898 0 680,352 0 4 0 0 25 0 6,025 0 0 etendo.profile.sample_stat_user_func_total 898 0 40,468 0 45 0 0 24 0 5,784 0 0 etendo.profile.last_stat_io 898 0 154,456 0 32 0 0 24 21 80,049 0 0 etendo.public.ma_processplan_tot_aux 898 0 693,672 0 22 0 0 24 22 179,616 0 0 etendo.pg_toast.pg_toast_196728 898 0 470,403 0 1 0 0 24 1 11,085 0 0 etendo.profile.sample_stat_user_functions 898 0 331,057 0 9 0 0 24 0 5,784 0 0 etendo.public.ad_ep_instance_para 898 4 130,721 0 23 0 0 93 21 146,763 0 0 etendo.profile.last_extension_versions 898 0 82,557 0 18 0 0 24 4 19,908 0 0 etendo.public.ad_process_run 898 0 2,246,599 0 566 0 0 295 129 1,029,383 0 0 etendo.profile.last_stat_slru 898 0 57,472 0 20 0 0 25 1 8,297 0 0 etendo.profile.last_stat_wal 898 0 31,430 0 15 0 0 24 0 4,512 0 0 etendo.public.ad_sequence 898 0 110,174 0 0 0 0 24 0 6,168 0 0 etendo.public.ad_preference 898 0 2,127,877 0 5 0 0 2 2 11,290 0 0 etendo.public.ad_pinstance 898 4 145,430 0 23 0 0 193 23 145,889 0 0 etendo.profile.last_stat_activity_count_srv1 898 0 117,218 0 33 0 0 24 0 11,352 0 0 etendo.profile.last_stat_archiver 898 0 27,838 0 45 0 0 24 0 4,512 0 0 etendo.public.ad_pinstance_para 898 0 86,908 0 21 0 0 24 21 170,472 0 0 etendo.profile.sample_stat_tables 898 0 4,636,442 0 1 0 0 45 1 18,705 0 0 etendo.profile.indexes_list 898 0 667,920 0 7 0 0 25 1 13,885 0 0 etendo.profile.funcs_list 898 0 522,540 0 2 0 0 24 0 5,784 0 0 etendo.profile.sample_stat_slru 898 0 56,865 0 19 0 0 24 0 5,784 0 0 etendo.profile.stmt_list 898 0 2,305,573 0 22 0 0 25 22 38,761 0 0 etendo.public.ad_process_request 898 0 1,097,471 0 202 0 0 105 37 300,489 0 0 etendo.profile.sample_statements 898 0 2,093,230 0 2 0 0 45 2 26,565 0 0 etendo.profile.sample_stat_database 898 0 145,476 0 13 0 0 24 0 5,784 0 0 etendo.profile.sample_stat_indexes_total 898 0 74,351 0 25 0 0 24 0 5,784 0 0 etendo.profile.last_stat_cluster 898 0 33,226 0 67 0 0 24 22 88,750 0 0 etendo.profile.sample_stat_tablespaces 898 0 50,918 0 21 0 0 24 0 5,784 0 0 etendo.profile.sample_stat_archiver 898 0 30,686 0 31 0 0 24 0 5,784 0 0 etendo.pg_toast.pg_toast_2619 898 0 2,871,445 0 20 0 0 39 20 157,432 0 0 etendo.profile.servers 898 0 46,288 0 43 0 0 39 22 133,139 15 15 etendo.public.c_invoice 898 0 16,275,638 0 17 0 0 78 17 132,654 0 0 etendo.public.ad_module 898 0 355,974 0 24 0 0 25 23 132,005 0 0 etendo.public.fin_financial_account 898 0 80,562 0 0 0 0 24 0 6,168 0 0 etendo.profile.sample_statements_total 898 0 79,359 0 17 0 0 24 0 5,784 0 0 etendo.profile.sample_stat_tables_total 898 0 187,313 0 12 0 0 24 0 5,784 0 0 etendo.public.ad_session_usage_audit 898 0 7,929,249 0 10 0 0 4 2 13,644 0 0 etendo.profile.sample_stat_io 898 0 111,284 0 14 0 0 24 0 5,784 0 0 etendo.profile.sample_stat_cluster 898 0 36,970 0 29 0 0 24 0 5,784 0 0 etendo.public.m_product_org 898 0 1,807,140 0 41 0 0 130 41 293,186 0 0 etendo.profile.samples 898 0 48,492 0 15 0 0 24 0 5,784 0 0 etendo.public.ad_session 898 0 1,571,169 0 27 0 0 29 4 38,749 0 0 etendo.profile.tables_list 898 0 1,417,092 0 0 0 0 24 0 5,784 0 0 etendo.public.m_stock_proposed 898 0 108,194 0 22 0 0 24 22 168,968 0 0 etendo.pg_toast.pg_toast_85256 898 0 1,627,356 0 24 0 0 29 24 141,988 0 0 etendo.profile.sample_stat_wal 898 0 33,095 0 65 0 0 24 20 162,984 0 0 etendo.profile.last_stat_tables_srv1 896 0 75,981,717 0 11 0 0 67 10 72,611 0 0 etendo.profile.last_stat_statements_srv1 896 0 20,404,426 0 16 0 0 90 16 99,594 0 0 etendo.profile.last_stat_user_functions_srv1 896 0 7,684,968 0 3 0 0 62 3 41,902 0 0 etendo.profile.last_stat_tablespaces_srv1 895 0 42,065 0 15 0 0 23 0 10,879 0 0 etendo.profile.last_stat_database_srv1 895 0 96,349 0 19 0 0 23 6 35,431 0 0 etendo.profile.last_stat_indexes_srv1 894 0 94,458,178 0 14 0 0 67 14 90,379 0 0 Total 49,374 8 264,384,944 10,073,486 1,830 0 0 2,343 625 4,456,008 15 15 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (1212.09) Max CPU elapsed for vacuum on database etendo
- unknown (0 ms) Max I/O read time for vacuum on database etendo
- unknown (0 ms) Max I/O write time for vacuum on database etendo
I/O timing (ms) CPU (s) Table read write elapsed etendo.pg_toast.pg_toast_84969 0 0 0 etendo.pg_catalog.pg_statistic 0 0 151.419999999999 etendo.public.m_storage_pending 0 0 9.03999999999986 etendo.profile.sample_stat_indexes 0 0 9.51999999999985 etendo.profile.sample_stat_user_func_total 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.public.ma_processplan_tot_aux 0 0 14.6199999999998 etendo.pg_toast.pg_toast_196728 0 0 0.17 etendo.profile.sample_stat_user_functions 0 0 0.25 etendo.public.ad_ep_instance_para 0 0 0.01 etendo.profile.last_extension_versions 0 0 0 etendo.public.ad_process_run 0 0 48.4500000000002 etendo.profile.last_stat_slru 0 0 0 etendo.profile.last_stat_wal 0 0 0 etendo.public.ad_sequence 0 0 0 etendo.public.ad_preference 0 0 36.1600000000003 etendo.public.ad_pinstance 0 0 0.03 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.profile.last_stat_archiver 0 0 0 etendo.public.ad_pinstance_para 0 0 0.01 etendo.profile.sample_stat_tables 0 0 93.1599999999999 etendo.profile.indexes_list 0 0 0.53 etendo.profile.funcs_list 0 0 0.16 etendo.profile.sample_stat_slru 0 0 0 etendo.profile.stmt_list 0 0 27.2400000000003 etendo.public.ad_process_request 0 0 9.64999999999985 etendo.profile.sample_statements 0 0 31.31 etendo.profile.sample_stat_database 0 0 0 etendo.profile.sample_stat_indexes_total 0 0 0 etendo.profile.last_stat_cluster 0 0 0 etendo.profile.sample_stat_tablespaces 0 0 0 etendo.profile.sample_stat_archiver 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 35.2199999999999 etendo.profile.servers 0 0 0 etendo.public.c_invoice 0 0 189.710000000001 etendo.public.ad_module 0 0 0.09 etendo.public.fin_financial_account 0 0 0.01 etendo.profile.sample_statements_total 0 0 0 etendo.profile.sample_stat_tables_total 0 0 0 etendo.public.ad_session_usage_audit 0 0 197.340000000002 etendo.profile.sample_stat_io 0 0 0.05 etendo.profile.sample_stat_cluster 0 0 0 etendo.public.m_product_org 0 0 18.1899999999997 etendo.profile.samples 0 0 0 etendo.public.ad_session 0 0 27.38 etendo.profile.tables_list 0 0 14.7599999999998 etendo.public.m_stock_proposed 0 0 0.01 etendo.pg_toast.pg_toast_85256 0 0 13.3899999999998 etendo.profile.sample_stat_wal 0 0 0 etendo.profile.last_stat_tables_srv1 0 0 965.020000000016 etendo.profile.last_stat_statements_srv1 0 0 260.969999999998 etendo.profile.last_stat_user_functions_srv1 0 0 97.2199999999998 etendo.profile.last_stat_tablespaces_srv1 0 0 0 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.last_stat_indexes_srv1 0 0 1,212.09 Total 0 0 3,463.18000000002 Tuples removed per table
Key values
- public.ad_pinstance (324) Main table with removed tuples on database etendo
- 414 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.public.ad_pinstance 898 4 324 2,340,188 1,503,252 0 117,638 etendo.public.ad_ep_instance_para 898 4 90 2,567,382 2,567,382 0 52,084 etendo.pg_toast.pg_toast_84969 898 0 0 191,626 85,310 0 36,502 etendo.profile.last_stat_tables_srv1 896 0 0 754,141,422 752,340,601 0 41,914,880 etendo.pg_catalog.pg_statistic 898 0 0 84,384,622 76,225,147 0 6,919,988 etendo.profile.last_stat_statements_srv1 896 0 0 190,107,075 189,636,736 0 13,580,672 etendo.public.m_storage_pending 898 0 0 7,028,646 1,253,608 0 442,714 etendo.profile.sample_stat_indexes 898 0 0 27,017,770 14,986,194 0 433,191 etendo.profile.sample_stat_user_func_total 898 0 0 689,654 387,206 0 6,286 etendo.profile.last_stat_io 898 0 0 2,521,506 2,509,832 0 61,064 etendo.public.ma_processplan_tot_aux 898 0 0 19,554,848 9,777,424 0 489,410 etendo.pg_toast.pg_toast_196728 898 0 0 958,166 481,328 0 234,378 etendo.profile.sample_stat_user_functions 898 0 0 17,473,795 9,676,609 0 177,804 etendo.profile.last_stat_indexes_srv1 894 0 0 1,157,218,203 1,154,283,515 0 52,223,904 etendo.profile.last_extension_versions 898 0 0 1,745,658 1,737,576 0 26,940 etendo.public.ad_process_run 898 0 0 18,356,596 10,860,695 0 1,603,352 etendo.profile.last_stat_slru 898 0 0 969,810 965,320 0 15,266 etendo.profile.last_stat_user_functions_srv1 896 0 0 118,124,828 117,569,661 0 4,213,888 etendo.profile.last_stat_wal 898 0 0 193,962 193,064 0 3,592 etendo.public.ad_sequence 898 0 0 679,786 399,610 0 65,554 etendo.public.ad_preference 898 0 0 9,736,651 3,600,617 0 2,523,380 etendo.profile.last_stat_activity_count_srv1 898 0 0 2,072,579 2,072,579 0 54,119 etendo.profile.last_stat_archiver 898 0 0 193,962 193,064 0 1,796 etendo.public.ad_pinstance_para 898 0 0 1,017,434 437,326 0 37,716 etendo.profile.last_stat_tablespaces_srv1 895 0 0 386,646 384,856 0 7,160 etendo.profile.sample_stat_tables 898 0 0 93,074,097 50,806,398 0 3,164,552 etendo.profile.indexes_list 898 0 0 13,971,986 13,499,875 0 304,775 etendo.profile.funcs_list 898 0 0 7,764,004 7,499,094 0 243,358 etendo.profile.sample_stat_slru 898 0 0 1,380,202 775,306 0 20,654 etendo.profile.stmt_list 898 0 0 12,804,609 11,943,546 0 1,163,808 etendo.public.ad_process_request 898 0 0 5,734,906 4,554,052 0 1,524,804 etendo.profile.sample_statements 898 0 0 25,717,198 13,893,325 0 1,363,164 etendo.profile.sample_stat_database 898 0 0 1,379,308 774,412 0 59,268 etendo.profile.sample_stat_indexes_total 898 0 0 1,379,308 774,412 0 17,062 etendo.profile.last_stat_cluster 898 0 0 193,962 193,064 0 4,490 etendo.profile.sample_stat_tablespaces 898 0 0 689,654 387,206 0 5,388 etendo.profile.sample_stat_archiver 898 0 0 344,826 193,602 0 3,592 etendo.pg_toast.pg_toast_2619 898 0 0 7,405,163 4,850,836 0 1,956,742 etendo.profile.servers 898 0 0 193,962 193,064 0 4,490 etendo.public.c_invoice 898 0 0 126,284,807 41,974,756 0 28,709,060 etendo.public.ad_module 898 0 0 1,967,957 1,678,011 0 202,050 etendo.public.fin_financial_account 898 0 0 142,782 98,780 0 34,124 etendo.profile.sample_statements_total 898 0 0 689,654 387,206 0 30,532 etendo.profile.sample_stat_tables_total 898 0 0 3,103,443 1,742,427 0 86,208 etendo.public.ad_session_usage_audit 898 0 0 212,775,873 58,683,402 0 8,403,484 etendo.profile.sample_stat_io 898 0 0 2,383,669 1,340,310 0 55,676 etendo.profile.sample_stat_cluster 898 0 0 344,826 193,602 0 8,082 etendo.public.m_product_org 898 0 0 55,798,519 13,350,281 0 6,074,072 etendo.profile.samples 898 0 0 344,827 193,603 0 2,694 etendo.public.ad_session 898 0 0 26,017,000 22,567,194 0 2,359,944 etendo.profile.tables_list 898 0 0 30,040,681 29,209,911 0 694,154 etendo.profile.last_stat_database_srv1 895 0 0 773,292 769,712 0 34,905 etendo.public.m_stock_proposed 898 0 0 1,074,906 700,440 0 45,798 etendo.pg_toast.pg_toast_85256 898 0 0 3,478,991 2,817,684 0 1,214,096 etendo.profile.sample_stat_wal 898 0 0 344,826 193,602 0 5,388 Total 49,374 8 414 3,057,272,053 2,640,367,625 0 183,039,692 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed etendo.pg_toast.pg_toast_84969 898 0 0 0 etendo.profile.last_stat_tables_srv1 896 0 0 0 etendo.pg_catalog.pg_statistic 898 0 0 0 etendo.profile.last_stat_statements_srv1 896 0 0 0 etendo.public.m_storage_pending 898 0 0 0 etendo.profile.sample_stat_indexes 898 0 0 0 etendo.profile.sample_stat_user_func_total 898 0 0 0 etendo.profile.last_stat_io 898 0 0 0 etendo.public.ma_processplan_tot_aux 898 0 0 0 etendo.pg_toast.pg_toast_196728 898 0 0 0 etendo.profile.sample_stat_user_functions 898 0 0 0 etendo.public.ad_ep_instance_para 898 4 90 0 etendo.profile.last_stat_indexes_srv1 894 0 0 0 etendo.profile.last_extension_versions 898 0 0 0 etendo.public.ad_process_run 898 0 0 0 etendo.profile.last_stat_slru 898 0 0 0 etendo.profile.last_stat_user_functions_srv1 896 0 0 0 etendo.profile.last_stat_wal 898 0 0 0 etendo.public.ad_sequence 898 0 0 0 etendo.public.ad_preference 898 0 0 0 etendo.public.ad_pinstance 898 4 324 0 etendo.profile.last_stat_activity_count_srv1 898 0 0 0 etendo.profile.last_stat_archiver 898 0 0 0 etendo.public.ad_pinstance_para 898 0 0 0 etendo.profile.last_stat_tablespaces_srv1 895 0 0 0 etendo.profile.sample_stat_tables 898 0 0 0 etendo.profile.indexes_list 898 0 0 0 etendo.profile.funcs_list 898 0 0 0 etendo.profile.sample_stat_slru 898 0 0 0 etendo.profile.stmt_list 898 0 0 0 etendo.public.ad_process_request 898 0 0 0 etendo.profile.sample_statements 898 0 0 0 etendo.profile.sample_stat_database 898 0 0 0 etendo.profile.sample_stat_indexes_total 898 0 0 0 etendo.profile.last_stat_cluster 898 0 0 0 etendo.profile.sample_stat_tablespaces 898 0 0 0 etendo.profile.sample_stat_archiver 898 0 0 0 etendo.pg_toast.pg_toast_2619 898 0 0 0 etendo.profile.servers 898 0 0 0 etendo.public.c_invoice 898 0 0 0 etendo.public.ad_module 898 0 0 0 etendo.public.fin_financial_account 898 0 0 0 etendo.profile.sample_statements_total 898 0 0 0 etendo.profile.sample_stat_tables_total 898 0 0 0 etendo.public.ad_session_usage_audit 898 0 0 0 etendo.profile.sample_stat_io 898 0 0 0 etendo.profile.sample_stat_cluster 898 0 0 0 etendo.public.m_product_org 898 0 0 0 etendo.profile.samples 898 0 0 0 etendo.public.ad_session 898 0 0 0 etendo.profile.tables_list 898 0 0 0 etendo.profile.last_stat_database_srv1 895 0 0 0 etendo.public.m_stock_proposed 898 0 0 0 etendo.pg_toast.pg_toast_85256 898 0 0 0 etendo.profile.sample_stat_wal 898 0 0 0 Total 49,374 8 414 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 19 07 3,300 10 08 3,300 9 09 3,245 7 10 3,299 5 11 3,297 11 12 3,294 5 13 3,294 12 14 3,300 8 15 3,300 8 16 3,300 7 17 3,300 10 18 3,300 10 19 3,300 8 20 3,300 9 21 3,245 8 - 2.01 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareUpdateExclusiveLock Main Lock Type
- 2 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 2 2s1ms 1s 1s1ms 1s select profile.take_sample ();-
SELECT profile.take_sample ();
Date: 2026-07-19 11:00:05 Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 10:00:04 Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 12:00:05 Database: etendo User: postgres Remote: [local] Application: psql
Queries that waited the most
Rank Wait time Query 1 1s1ms SELECT profile.take_sample ();[ Date: 2026-07-19 10:00:03 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
2 1s SELECT profile.take_sample ();[ Date: 2026-07-19 11:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
-
Queries
Queries by type
Key values
- 44 Total read queries
- 9 Total write queries
Queries by database
Key values
- etendo Main database
- 53 Requests
- 3m43s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 38 Requests
User Request type Count Duration postgres Total 15 38s199ms select 15 38s199ms tad Total 38 3m5s select 29 2m29s update 9 35s860ms Duration by user
Key values
- 3m5s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 38s199ms select 15 38s199ms tad Total 38 3m5s select 29 2m29s update 9 35s860ms Queries by host
Key values
- 127.0.0.1 Main host
- 38 Requests
- 3m5s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 38 Requests
- 3m5s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-19 21:57:51 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 47 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 19s742ms 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-19 15:25:27 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 14s919ms 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-19 12:16:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 14s556ms 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-19 12:15:20 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 12s976ms 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-19 12:15:46 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 10s949ms 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-19 12:16:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 10s217ms 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-19 12:15:32 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 9s881ms 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-19 20:20:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 7s476ms 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-19 12:16:02 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 6s697ms 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-19 20:20:14 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 6s276ms 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-19 12:16:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 5s915ms 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-19 15:25:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 5s915ms 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-19 20:20:32 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 5s899ms 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-19 15:25:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 5s867ms 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-19 20:20:26 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 4s46ms 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-19 12:16:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 3s780ms SELECT profile.take_sample ();[ Date: 2026-07-19 11:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
17 3s741ms 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-19 12:15:54 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 3s475ms SELECT profile.take_sample ();[ Date: 2026-07-19 10:00:04 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
19 3s438ms SELECT profile.take_sample ();[ Date: 2026-07-19 12:00:05 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
20 3s61ms 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-19 12:15:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 57s460ms 6 5s867ms 19s742ms 9s576ms 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 19 12 2 19s252ms 9s626ms 15 2 25s642ms 12s821ms 20 2 12s565ms 6s282ms [ User: tad - Total duration: 57s460ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 57s460ms - 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-19 15:25:27 Duration: 19s742ms 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-19 12:15:46 Duration: 12s976ms 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-19 20:20:14 Duration: 6s697ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 38s199ms 15 1s956ms 3s780ms 2s546ms select profile.take_sample ();Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 19 07 1 2s730ms 2s730ms 08 1 2s607ms 2s607ms 09 1 2s152ms 2s152ms 10 1 3s475ms 3s475ms 11 1 3s780ms 3s780ms 12 1 3s438ms 3s438ms 13 1 2s542ms 2s542ms 14 1 2s256ms 2s256ms 15 1 2s44ms 2s44ms 16 1 2s7ms 2s7ms 17 1 1s988ms 1s988ms 18 1 2s127ms 2s127ms 19 1 1s956ms 1s956ms 20 1 2s199ms 2s199ms 21 1 2s892ms 2s892ms [ User: postgres - Total duration: 38s199ms - Times executed: 15 ]
[ Application: psql - Total duration: 38s199ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-19 11:00:05 Duration: 3s780ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 10:00:04 Duration: 3s475ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 12:00:05 Duration: 3s438ms Database: etendo User: postgres Remote: [local] Application: psql
3 29s280ms 4 2s93ms 14s556ms 7s320ms 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 19 12 2 24s773ms 12s386ms 15 1 2s93ms 2s93ms 20 1 2s413ms 2s413ms [ User: tad - Total duration: 29s280ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 29s280ms - 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-19 12:15:20 Duration: 14s556ms 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-19 12:15:32 Duration: 10s217ms 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-19 20:20:04 Duration: 2s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 26s751ms 3 5s915ms 14s919ms 8s917ms 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 19 12 1 14s919ms 14s919ms 15 1 5s915ms 5s915ms 20 1 5s915ms 5s915ms [ User: tad - Total duration: 26s751ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 26s751ms - 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-19 12:16:24 Duration: 14s919ms 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-19 15:25:45 Duration: 5s915ms 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-19 20:20:32 Duration: 5s915ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 22s372ms 3 1s540ms 10s949ms 7s457ms 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 19 12 1 10s949ms 10s949ms 15 1 1s540ms 1s540ms 20 1 9s881ms 9s881ms [ User: tad - Total duration: 22s372ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 22s372ms - 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-19 12:16:43 Duration: 10s949ms 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-19 20:20:47 Duration: 9s881ms 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-19 15:25:53 Duration: 1s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 11s209ms 3 1s740ms 7s476ms 3s736ms 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 19 12 1 7s476ms 7s476ms 15 1 1s992ms 1s992ms 20 1 1s740ms 1s740ms [ User: tad - Total duration: 11s209ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 11s209ms - 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-19 12:16:02 Duration: 7s476ms 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-19 15:25:32 Duration: 1s992ms 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-19 20:20:19 Duration: 1s740ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 8s683ms 3 2s66ms 4s46ms 2s894ms 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 19 12 1 4s46ms 4s46ms 15 1 2s570ms 2s570ms 20 1 2s66ms 2s66ms [ User: tad - Total duration: 8s683ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 8s683ms - 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-19 12:16:30 Duration: 4s46ms 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-19 15:25:50 Duration: 2s570ms 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-19 20:20:36 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 6s36ms 3 2s1ms 2s27ms 2s12ms 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 19 12 1 2s1ms 2s1ms 15 1 2s27ms 2s27ms 20 1 2s7ms 2s7ms [ User: tad - Total duration: 6s36ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s36ms - 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-19 15:25:06 Duration: 2s27ms 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-19 20:20:06 Duration: 2s7ms 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-19 12:15:22 Duration: 2s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 5s696ms 3 1s841ms 1s970ms 1s898ms 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 19 12 1 1s970ms 1s970ms 15 1 1s883ms 1s883ms 20 1 1s841ms 1s841ms [ User: tad - Total duration: 5s696ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s696ms - 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-19 12:00:18 Duration: 1s970ms 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-19 15:10:19 Duration: 1s883ms 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-19 20:00:16 Duration: 1s841ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 5s652ms 3 1s837ms 1s942ms 1s884ms 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 19 12 1 1s942ms 1s942ms 15 1 1s872ms 1s872ms 20 1 1s837ms 1s837ms [ User: tad - Total duration: 5s652ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s652ms - 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-19 12:00:20 Duration: 1s942ms 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-19 15:10:21 Duration: 1s872ms 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-19 20:00:18 Duration: 1s837ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 4s856ms 2 1s114ms 3s741ms 2s428ms 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 19 12 1 3s741ms 3s741ms 20 1 1s114ms 1s114ms [ User: tad - Total duration: 4s856ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s856ms - 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-19 12:15:54 Duration: 3s741ms 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-19 20:20:17 Duration: 1s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 3s72ms 3 1s11ms 1s46ms 1s24ms 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 #12
Day Hour Count Duration Avg duration Jul 19 12 1 1s46ms 1s46ms 15 1 1s14ms 1s14ms 20 1 1s11ms 1s11ms [ User: tad - Total duration: 3s72ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s72ms - Times executed: 3 ]
-
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-19 12:16:44 Duration: 1s46ms 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-19 15:25:54 Duration: 1s14ms 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-19 20:20:48 Duration: 1s11ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3s61ms 1 3s61ms 3s61ms 3s61ms 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 19 12 1 3s61ms 3s61ms [ User: tad - Total duration: 3s61ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s61ms - 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-19 12:15:06 Duration: 3s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s32ms 1 1s32ms 1s32ms 1s32ms 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 #14
Day Hour Count Duration Avg duration Jul 19 12 1 1s32ms 1s32ms [ User: tad - Total duration: 1s32ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s32ms - Times executed: 1 ]
-
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-19 12:16:03 Duration: 1s32ms 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 38s199ms 1s956ms 3s780ms 2s546ms select profile.take_sample ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 19 07 1 2s730ms 2s730ms 08 1 2s607ms 2s607ms 09 1 2s152ms 2s152ms 10 1 3s475ms 3s475ms 11 1 3s780ms 3s780ms 12 1 3s438ms 3s438ms 13 1 2s542ms 2s542ms 14 1 2s256ms 2s256ms 15 1 2s44ms 2s44ms 16 1 2s7ms 2s7ms 17 1 1s988ms 1s988ms 18 1 2s127ms 2s127ms 19 1 1s956ms 1s956ms 20 1 2s199ms 2s199ms 21 1 2s892ms 2s892ms [ User: postgres - Total duration: 38s199ms - Times executed: 15 ]
[ Application: psql - Total duration: 38s199ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-19 11:00:05 Duration: 3s780ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 10:00:04 Duration: 3s475ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 12:00:05 Duration: 3s438ms Database: etendo User: postgres Remote: [local] Application: psql
2 6 57s460ms 5s867ms 19s742ms 9s576ms 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 19 12 2 19s252ms 9s626ms 15 2 25s642ms 12s821ms 20 2 12s565ms 6s282ms [ User: tad - Total duration: 57s460ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 57s460ms - 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-19 15:25:27 Duration: 19s742ms 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-19 12:15:46 Duration: 12s976ms 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-19 20:20:14 Duration: 6s697ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 4 29s280ms 2s93ms 14s556ms 7s320ms 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 19 12 2 24s773ms 12s386ms 15 1 2s93ms 2s93ms 20 1 2s413ms 2s413ms [ User: tad - Total duration: 29s280ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 29s280ms - 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-19 12:15:20 Duration: 14s556ms 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-19 12:15:32 Duration: 10s217ms 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-19 20:20:04 Duration: 2s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 3 26s751ms 5s915ms 14s919ms 8s917ms 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 19 12 1 14s919ms 14s919ms 15 1 5s915ms 5s915ms 20 1 5s915ms 5s915ms [ User: tad - Total duration: 26s751ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 26s751ms - 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-19 12:16:24 Duration: 14s919ms 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-19 15:25:45 Duration: 5s915ms 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-19 20:20:32 Duration: 5s915ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 3 22s372ms 1s540ms 10s949ms 7s457ms 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 19 12 1 10s949ms 10s949ms 15 1 1s540ms 1s540ms 20 1 9s881ms 9s881ms [ User: tad - Total duration: 22s372ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 22s372ms - 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-19 12:16:43 Duration: 10s949ms 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-19 20:20:47 Duration: 9s881ms 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-19 15:25:53 Duration: 1s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 3 11s209ms 1s740ms 7s476ms 3s736ms 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 19 12 1 7s476ms 7s476ms 15 1 1s992ms 1s992ms 20 1 1s740ms 1s740ms [ User: tad - Total duration: 11s209ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 11s209ms - 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-19 12:16:02 Duration: 7s476ms 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-19 15:25:32 Duration: 1s992ms 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-19 20:20:19 Duration: 1s740ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 3 8s683ms 2s66ms 4s46ms 2s894ms 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 19 12 1 4s46ms 4s46ms 15 1 2s570ms 2s570ms 20 1 2s66ms 2s66ms [ User: tad - Total duration: 8s683ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 8s683ms - 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-19 12:16:30 Duration: 4s46ms 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-19 15:25:50 Duration: 2s570ms 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-19 20:20:36 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 3 6s36ms 2s1ms 2s27ms 2s12ms 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 19 12 1 2s1ms 2s1ms 15 1 2s27ms 2s27ms 20 1 2s7ms 2s7ms [ User: tad - Total duration: 6s36ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s36ms - 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-19 15:25:06 Duration: 2s27ms 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-19 20:20:06 Duration: 2s7ms 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-19 12:15:22 Duration: 2s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 3 5s696ms 1s841ms 1s970ms 1s898ms 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 19 12 1 1s970ms 1s970ms 15 1 1s883ms 1s883ms 20 1 1s841ms 1s841ms [ User: tad - Total duration: 5s696ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s696ms - 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-19 12:00:18 Duration: 1s970ms 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-19 15:10:19 Duration: 1s883ms 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-19 20:00:16 Duration: 1s841ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 3 5s652ms 1s837ms 1s942ms 1s884ms 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 19 12 1 1s942ms 1s942ms 15 1 1s872ms 1s872ms 20 1 1s837ms 1s837ms [ User: tad - Total duration: 5s652ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s652ms - 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-19 12:00:20 Duration: 1s942ms 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-19 15:10:21 Duration: 1s872ms 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-19 20:00:18 Duration: 1s837ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 3 3s72ms 1s11ms 1s46ms 1s24ms 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 #11
Day Hour Count Duration Avg duration Jul 19 12 1 1s46ms 1s46ms 15 1 1s14ms 1s14ms 20 1 1s11ms 1s11ms [ User: tad - Total duration: 3s72ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s72ms - Times executed: 3 ]
-
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-19 12:16:44 Duration: 1s46ms 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-19 15:25:54 Duration: 1s14ms 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-19 20:20:48 Duration: 1s11ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 2 4s856ms 1s114ms 3s741ms 2s428ms 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 19 12 1 3s741ms 3s741ms 20 1 1s114ms 1s114ms [ User: tad - Total duration: 4s856ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s856ms - 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-19 12:15:54 Duration: 3s741ms 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-19 20:20:17 Duration: 1s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1 3s61ms 3s61ms 3s61ms 3s61ms 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 19 12 1 3s61ms 3s61ms [ User: tad - Total duration: 3s61ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s61ms - 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-19 12:15:06 Duration: 3s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1 1s32ms 1s32ms 1s32ms 1s32ms 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 #14
Day Hour Count Duration Avg duration Jul 19 12 1 1s32ms 1s32ms [ User: tad - Total duration: 1s32ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s32ms - Times executed: 1 ]
-
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-19 12:16:03 Duration: 1s32ms 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 5s867ms 19s742ms 9s576ms 6 57s460ms 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 19 12 2 19s252ms 9s626ms 15 2 25s642ms 12s821ms 20 2 12s565ms 6s282ms [ User: tad - Total duration: 57s460ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 57s460ms - 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-19 15:25:27 Duration: 19s742ms 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-19 12:15:46 Duration: 12s976ms 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-19 20:20:14 Duration: 6s697ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 5s915ms 14s919ms 8s917ms 3 26s751ms 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 #2
Day Hour Count Duration Avg duration Jul 19 12 1 14s919ms 14s919ms 15 1 5s915ms 5s915ms 20 1 5s915ms 5s915ms [ User: tad - Total duration: 26s751ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 26s751ms - 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-19 12:16:24 Duration: 14s919ms 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-19 15:25:45 Duration: 5s915ms 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-19 20:20:32 Duration: 5s915ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1s540ms 10s949ms 7s457ms 3 22s372ms 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 #3
Day Hour Count Duration Avg duration Jul 19 12 1 10s949ms 10s949ms 15 1 1s540ms 1s540ms 20 1 9s881ms 9s881ms [ User: tad - Total duration: 22s372ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 22s372ms - 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-19 12:16:43 Duration: 10s949ms 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-19 20:20:47 Duration: 9s881ms 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-19 15:25:53 Duration: 1s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 2s93ms 14s556ms 7s320ms 4 29s280ms 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 #4
Day Hour Count Duration Avg duration Jul 19 12 2 24s773ms 12s386ms 15 1 2s93ms 2s93ms 20 1 2s413ms 2s413ms [ User: tad - Total duration: 29s280ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 29s280ms - 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-19 12:15:20 Duration: 14s556ms 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-19 12:15:32 Duration: 10s217ms 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-19 20:20:04 Duration: 2s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 1s740ms 7s476ms 3s736ms 3 11s209ms 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 19 12 1 7s476ms 7s476ms 15 1 1s992ms 1s992ms 20 1 1s740ms 1s740ms [ User: tad - Total duration: 11s209ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 11s209ms - 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-19 12:16:02 Duration: 7s476ms 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-19 15:25:32 Duration: 1s992ms 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-19 20:20:19 Duration: 1s740ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 3s61ms 3s61ms 3s61ms 1 3s61ms 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 #6
Day Hour Count Duration Avg duration Jul 19 12 1 3s61ms 3s61ms [ User: tad - Total duration: 3s61ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s61ms - 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-19 12:15:06 Duration: 3s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2s66ms 4s46ms 2s894ms 3 8s683ms 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 19 12 1 4s46ms 4s46ms 15 1 2s570ms 2s570ms 20 1 2s66ms 2s66ms [ User: tad - Total duration: 8s683ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 8s683ms - 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-19 12:16:30 Duration: 4s46ms 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-19 15:25:50 Duration: 2s570ms 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-19 20:20:36 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1s956ms 3s780ms 2s546ms 15 38s199ms select profile.take_sample ();Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 19 07 1 2s730ms 2s730ms 08 1 2s607ms 2s607ms 09 1 2s152ms 2s152ms 10 1 3s475ms 3s475ms 11 1 3s780ms 3s780ms 12 1 3s438ms 3s438ms 13 1 2s542ms 2s542ms 14 1 2s256ms 2s256ms 15 1 2s44ms 2s44ms 16 1 2s7ms 2s7ms 17 1 1s988ms 1s988ms 18 1 2s127ms 2s127ms 19 1 1s956ms 1s956ms 20 1 2s199ms 2s199ms 21 1 2s892ms 2s892ms [ User: postgres - Total duration: 38s199ms - Times executed: 15 ]
[ Application: psql - Total duration: 38s199ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-19 11:00:05 Duration: 3s780ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 10:00:04 Duration: 3s475ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-19 12:00:05 Duration: 3s438ms Database: etendo User: postgres Remote: [local] Application: psql
9 1s114ms 3s741ms 2s428ms 2 4s856ms 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 19 12 1 3s741ms 3s741ms 20 1 1s114ms 1s114ms [ User: tad - Total duration: 4s856ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s856ms - 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-19 12:15:54 Duration: 3s741ms 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-19 20:20:17 Duration: 1s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 2s1ms 2s27ms 2s12ms 3 6s36ms 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 19 12 1 2s1ms 2s1ms 15 1 2s27ms 2s27ms 20 1 2s7ms 2s7ms [ User: tad - Total duration: 6s36ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s36ms - 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-19 15:25:06 Duration: 2s27ms 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-19 20:20:06 Duration: 2s7ms 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-19 12:15:22 Duration: 2s1ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s841ms 1s970ms 1s898ms 3 5s696ms 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 19 12 1 1s970ms 1s970ms 15 1 1s883ms 1s883ms 20 1 1s841ms 1s841ms [ User: tad - Total duration: 5s696ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s696ms - 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-19 12:00:18 Duration: 1s970ms 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-19 15:10:19 Duration: 1s883ms 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-19 20:00:16 Duration: 1s841ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1s837ms 1s942ms 1s884ms 3 5s652ms 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 19 12 1 1s942ms 1s942ms 15 1 1s872ms 1s872ms 20 1 1s837ms 1s837ms [ User: tad - Total duration: 5s652ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s652ms - 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-19 12:00:20 Duration: 1s942ms 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-19 15:10:21 Duration: 1s872ms 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-19 20:00:18 Duration: 1s837ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1s32ms 1s32ms 1s32ms 1 1s32ms 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 19 12 1 1s32ms 1s32ms [ User: tad - Total duration: 1s32ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s32ms - Times executed: 1 ]
-
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-19 12:16:03 Duration: 1s32ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s11ms 1s46ms 1s24ms 3 3s72ms 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 19 12 1 1s46ms 1s46ms 15 1 1s14ms 1s14ms 20 1 1s11ms 1s11ms [ User: tad - Total duration: 3s72ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s72ms - Times executed: 3 ]
-
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-19 12:16:44 Duration: 1s46ms 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-19 15:25:54 Duration: 1s14ms 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-19 20:20:48 Duration: 1s11ms 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
- 94,079 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
- 9 ERROR entries
- 0 WARNING entries
- 8787 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 8,755 Max number of times the same event was reported
- 8,796 Total events found
Rank Times reported Error 1 8,755 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 19 07 587 08 582 09 582 10 585 11 581 12 584 13 580 14 585 15 584 16 582 17 585 18 584 19 584 20 584 21 586 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-19 07:00:06 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-19 07:00:07 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-19 07:00:10 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 19 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-19 07:00:12 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-19 07:00:15 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
Date: 2026-07-19 08:00:07 Database: etendo Application: [unknown] User: tad Remote: 10.10.11.43
3 7 ERROR: relation "..." does not exist
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 19 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-19 08:00:46 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-19 10:00:46 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-19 12:00:46 Database: etendo Application: [unknown] User: tad Remote: 172.30.3.29
4 2 LOG: process ... still waiting for ShareUpdateExclusiveLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 19 10 1 11 1 - LOG: process 927020 still waiting for ShareUpdateExclusiveLock on relation 197143 of database 82477 after 1000.106 ms
- LOG: process 930999 still waiting for ShareUpdateExclusiveLock on relation 197143 of database 82477 after 1000.122 ms
Detail: Process holding the lock: 926999. Wait queue: 927020.
Context: SQL statement "ANALYZE last_stat_indexes_srv1" PL/pgSQL function collect_obj_stats(jsonb,integer,integer,boolean) line 832 at EXECUTE PL/pgSQL function take_sample(integer,boolean) line 276 at assignment PL/pgSQL function take_sample_subset(integer,integer) line 37 at assignment SQL function "take_sample" statement 1
Statement: SELECT profile.take_sample();Date: 2026-07-19 10:00:03 Database: etendo Application: psql User: postgres Remote: [local]
Detail: Process holding the lock: 930980. Wait queue: 930999.
Context: SQL statement "ANALYZE last_stat_indexes_srv1" PL/pgSQL function collect_obj_stats(jsonb,integer,integer,boolean) line 832 at EXECUTE PL/pgSQL function take_sample(integer,boolean) line 276 at assignment PL/pgSQL function take_sample_subset(integer,integer) line 37 at assignment SQL function "take_sample" statement 1
Statement: SELECT profile.take_sample();Date: 2026-07-19 11:00:04 Database: etendo Application: psql User: postgres Remote: [local]
5 2 ERROR: canceling autovacuum task automatic vacuum of table "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 19 10 1 11 1 - ERROR: canceling autovacuum task automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
- ERROR: canceling autovacuum task automatic vacuum of table "etendo.profile.last_stat_indexes_srv1"
Context: while scanning block 45279 of relation "profile.last_stat_indexes_srv1"
Date: 2026-07-19 10:00:03
Context: while scanning block 45107 of relation "profile.last_stat_indexes_srv1"
Date: 2026-07-19 11:00:04