-
Global information
- Generated on Sat Jul 18 20:00:10 2026
- Log file: /var/log/postgresql/postgresql-12-main.log
- Parsed 61,056 log entries in 8s
- Log start from 2026-07-18 07:00:01 to 2026-07-18 20:00:07
-
Overview
Global Stats
- 34 Number of unique normalized queries
- 443 Number of queries
- 32m40s Total query duration
- 2026-07-18 07:00:03 First query
- 2026-07-18 20:00:07 Last query
- 3 queries/s at 2026-07-18 09:00:04 Query peak
- 32m40s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 32m40s Execute total duration
- 1 Number of events
- 1 Number of unique normalized events
- 1 Max number of times the same event was reported
- 0 Number of cancellation
- 171 Total number of automatic vacuums
- 230 Total number of automatic analyzes
- 353 Number temporary file
- 454.32 MiB Max size of temporary file
- 57.78 MiB Average size of temporary file
- 8,992 Total number of sessions
- 5 sessions at 2026-07-18 09:00:02 Session peak
- 2d16h23m45s Total duration of sessions
- 25s781ms Average duration of sessions
- 0 Average queries per session
- 218ms Average queries duration per session
- 8,990 Total number of connections
- 10 connections/s at 2026-07-18 19:55:27 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-18 09:00:04 Date
SELECT Traffic
Key values
- 0 queries/s Query Peak
- Date
INSERT/UPDATE/DELETE Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-18 07:00:03 Date
Queries duration
Key values
- 32m40s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 18 07 53 0ms 50s336ms 5s938ms 10s678ms 45s175ms 1m10s 08 31 0ms 6s384ms 4s14ms 10s574ms 11s793ms 14s329ms 09 36 0ms 10s475ms 4s252ms 11s324ms 12s237ms 24s21ms 10 36 0ms 6s449ms 3s844ms 10s482ms 11s981ms 14s731ms 11 31 0ms 6s869ms 3s939ms 10s534ms 10s740ms 16s28ms 12 31 0ms 7s227ms 3s964ms 10s545ms 10s772ms 15s559ms 13 34 0ms 1m7s 6s720ms 10s898ms 16s837ms 1m7s 14 31 0ms 5s560ms 3s918ms 10s352ms 12s122ms 14s256ms 15 33 0ms 6s723ms 4s225ms 11s659ms 12s234ms 14s515ms 16 31 0ms 6s560ms 3s884ms 10s390ms 11s688ms 15s228ms 17 31 0ms 5s651ms 3s854ms 10s138ms 11s419ms 14s210ms 18 31 0ms 5s621ms 3s962ms 10s925ms 11s781ms 14s405ms 19 31 0ms 6s710ms 3s904ms 10s153ms 11s82ms 15s70ms 20 3 1s794ms 7s904ms 3s935ms 11s805ms 11s805ms 11s805ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 18 07 19 0 3s880ms 3s999ms 6s424ms 6s516ms 08 19 0 3s733ms 4s108ms 6s602ms 8s762ms 09 22 0 4s420ms 4s230ms 6s922ms 15s868ms 10 24 0 3s536ms 4s279ms 6s612ms 9s508ms 11 19 0 3s703ms 4s165ms 6s385ms 6s660ms 12 19 0 3s683ms 4s226ms 6s571ms 6s960ms 13 22 0 7s904ms 4s352ms 6s603ms 36s345ms 14 19 0 3s620ms 4s78ms 6s450ms 7s373ms 15 21 0 3s900ms 4s276ms 6s882ms 9s394ms 16 19 0 3s642ms 4s79ms 6s498ms 7s36ms 17 19 0 3s515ms 4s94ms 6s270ms 7s315ms 18 19 0 3s592ms 4s129ms 6s663ms 6s942ms 19 19 0 3s632ms 4s32ms 6s221ms 7s213ms 20 3 0 3s935ms 11s805ms 11s805ms 11s805ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 18 07 0 12 0 0 4s671ms 0ms 3s883ms 4s625ms 08 0 12 0 0 4s459ms 0ms 3s894ms 4s941ms 09 0 12 0 0 4s390ms 0ms 3s863ms 4s938ms 10 0 12 0 0 4s459ms 0ms 3s819ms 4s985ms 11 0 12 0 0 4s314ms 0ms 3s843ms 4s673ms 12 0 12 0 0 4s409ms 0ms 3s935ms 4s657ms 13 0 12 0 0 4s549ms 0ms 3s866ms 4s855ms 14 0 12 0 0 4s391ms 0ms 3s870ms 4s924ms 15 0 12 0 0 4s794ms 0ms 4s54ms 4s957ms 16 0 12 0 0 4s266ms 0ms 3s862ms 4s683ms 17 0 12 0 0 4s390ms 0ms 3s867ms 4s745ms 18 0 12 0 0 4s548ms 0ms 3s983ms 4s953ms 19 0 12 0 0 4s336ms 0ms 3s887ms 4s686ms 20 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 18 07 0 30 30.00 0.00% 08 0 30 30.00 0.00% 09 0 35 35.00 0.00% 10 0 35 35.00 0.00% 11 0 30 30.00 0.00% 12 0 30 30.00 0.00% 13 0 33 33.00 0.00% 14 0 30 30.00 0.00% 15 0 32 32.00 0.00% 16 0 30 30.00 0.00% 17 0 30 30.00 0.00% 18 0 30 30.00 0.00% 19 0 30 30.00 0.00% 20 0 2 2.00 0.00% Day Hour Count Average / Second Jul 18 07 698 0.19/s 08 697 0.19/s 09 704 0.20/s 10 697 0.19/s 11 697 0.19/s 12 700 0.19/s 13 698 0.19/s 14 697 0.19/s 15 699 0.19/s 16 697 0.19/s 17 667 0.19/s 18 667 0.19/s 19 667 0.19/s 20 5 0.00/s Day Hour Count Average Duration Jul 18 07 700 1m10s 08 697 17ms 09 704 2m27s 10 697 18ms 11 697 19ms 12 701 52s372ms 13 697 19ms 14 697 19ms 15 699 58s889ms 16 697 19ms 17 667 17ms 18 667 19ms 19 667 18ms 20 5 810ms -
Connections
Established Connections
Key values
- 10 connections Connection Peak
- 2026-07-18 19:55:27 Date
Connections per database
Key values
- openbravo Main Database
- 8,990 connections Total
Connections per user
Key values
- postgres Main User
- 8,990 connections Total
-
Sessions
Simultaneous sessions
Key values
- 5 sessions Session Peak
- 2026-07-18 09:00:02 Date
Histogram of session times
Key values
- 8,944 0-500ms duration
Sessions per database
Key values
- openbravo Main Database
- 8,992 sessions Total
Sessions per user
Key values
- postgres Main User
- 8,992 sessions Total
Sessions per host
Key values
- [local] Main Host
- 8,992 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 6,318 buffers Checkpoint Peak
- 2026-07-18 09:07:59 Date
- 269.543 seconds Highest write time
- 0.011 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-18 17:08:37 Date
Checkpoints distance
Key values
- 96.02 Mo Distance Peak
- 2026-07-18 09:07:59 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 18 07 2,478 250.139s 0.015s 250.213s 08 3,664 368.312s 0.019s 368.399s 09 8,765 516.287s 0.023s 516.384s 10 7,490 751.799s 0.033s 751.882s 11 5,852 588.138s 0.026s 588.222s 12 5,595 564.436s 0.029s 564.527s 13 5,915 594.037s 0.038s 594.135s 14 8,061 811.019s 0.045s 811.127s 15 7,575 760.606s 0.038s 760.709s 16 5,938 574.44s 0.029s 574.525s 17 2,782 280.342s 0.023s 280.425s 18 2,418 243.157s 0.014s 243.239s 19 1,799 181.173s 0.012s 181.237s 20 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 18 07 0 0 0 230 0.002s 0.012s 08 0 2 0 869 0.001s 0.012s 09 0 4 0 1,109 0.002s 0.012s 10 0 3 0 2,154 0.002s 0.012s 11 0 3 0 1,754 0.002s 0.012s 12 0 2 0 1,791 0.002s 0.012s 13 0 3 0 1,959 0.003s 0.012s 14 0 4 0 2,173 0.004s 0.012s 15 0 3 0 1,972 0.002s 0.012s 16 0 3 0 1,425 0.002s 0.012s 17 0 1 0 598 0.002s 0.012s 18 0 1 0 218 0.002s 0.011s 19 0 1 0 210 0.001s 0.012s 20 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 18 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s Day Hour Mean distance Mean estimate Jul 18 07 1,344.50 kB 7,374.50 kB 08 2,246.25 kB 7,824.08 kB 09 5,466.58 kB 30,082.50 kB 10 4,426.50 kB 12,314.42 kB 11 3,491.92 kB 12,152.92 kB 12 3,318.50 kB 9,259.92 kB 13 3,512.50 kB 9,571.25 kB 14 4,926.58 kB 11,048.92 kB 15 4,592.67 kB 13,525.58 kB 16 3,581.67 kB 14,186.92 kB 17 1,723.50 kB 8,041.58 kB 18 1,621.64 kB 9,629.09 kB 19 1,141.67 kB 7,310.42 kB 20 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 454.32 MiB Temp Files size Peak
- 2026-07-18 13:23:26 Date
Number of temporary files
Key values
- 4 per second Temp Files Peak
- 2026-07-18 13:23:41 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 18 07 24 1.38 GiB 58.94 MiB 08 24 1.38 GiB 58.94 MiB 09 25 1.40 GiB 57.23 MiB 10 25 1.40 GiB 57.23 MiB 11 24 1.38 GiB 58.94 MiB 12 24 1.38 GiB 58.95 MiB 13 61 3.23 GiB 54.29 MiB 14 24 1.38 GiB 58.95 MiB 15 25 1.40 GiB 57.25 MiB 16 24 1.38 GiB 58.95 MiB 17 24 1.38 GiB 58.95 MiB 18 24 1.38 GiB 58.95 MiB 19 24 1.38 GiB 58.95 MiB 20 1 58.95 MiB 58.95 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 21 1.21 GiB 10.52 MiB 258.88 MiB 59.16 MiB select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-18 13:24:24 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 09:23:50 Duration: 9s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 10:42:09 Duration: 4s26ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
2 19 703.34 MiB 11.10 MiB 454.32 MiB 37.02 MiB select organizati9_.name as col_0_0_, organizati9_.ad_org_id as col_1_0_, businesspa6_.c_bpartner_id as col_2_0_, businesspa6_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet14_.taxamt) from c_orderlinetax orderlinet14_ where orderlinet14_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join c_bpartner businesspa6_ on order5_.c_bpartner_id = businesspa6_.c_bpartner_id left outer join m_product_category productcat7_ on product4_.m_product_category_id = productcat7_.m_product_category_id left outer join obpos_applications obpos_appl8_ on order5_.em_obpos_applications_id = obpos_appl8_.obpos_applications_id left outer join ad_org organizati9_ on order5_.ad_org_id = organizati9_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl8_.ad_client_id = ? and (obpos_appl8_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati9_.name, organizati9_.ad_org_id, businesspa6_.name, businesspa6_.c_bpartner_id order by col_7_0_ desc, col_4_0_ desc, organizati9_.name, businesspa6_.name limit ?;-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-18 13:23:52 Duration: 34s944ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 09:23:51 Duration: 10s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 10:42:11 Duration: 5s987ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
3 157 9.04 GiB 58.94 MiB 58.95 MiB 58.95 MiB select * from ( select f.c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;
Date: 2026-07-18 07:00:09 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
4 156 8.98 GiB 58.94 MiB 58.95 MiB 58.95 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 07:05:15 Duration: 8s919ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 15:45:11 Duration: 6s723ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 13:00:12 Duration: 6s494ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 454.32 MiB select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = $1 and (obpos_appl8_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit $6;[ Date: 2026-07-18 13:23:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 258.88 MiB select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = $1 and (obpos_appl7_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit $6;[ Date: 2026-07-18 13:24:24 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 228.47 MiB select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = $1 and (obpos_appl7_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit $6;[ Date: 2026-07-18 13:23:29 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 226.85 MiB select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = $1 and (obpos_appl7_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit $6;[ Date: 2026-07-18 13:23:33 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 226.13 MiB select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = $1 and (obpos_appl7_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit $6;[ Date: 2026-07-18 13:23:31 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 14:50:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 14:50:10 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 14:55:04 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 14:55:07 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:00:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:00:10 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:05:04 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:05:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:10:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:10:10 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:15:04 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:15:09 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:20:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 58.95 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 f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:20:10 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 58.95 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-18 15:25:04 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0 sec Highest CPU-cost vacuum
Table
Database - Date
- 0 sec Highest CPU-cost analyze
Table
Database - Date
Analyzes per table
Key values
- public.ad_pinstance_para (56) Main table analyzed (database openbravo)
- 230 analyzes Total
Table Number of analyzes openbravo.public.ad_pinstance_para 56 openbravo.public.c_import_entry 31 openbravo.public.ad_session 16 openbravo.profile.last_stat_tables_srv1 13 openbravo.profile.last_stat_indexes_srv1 13 openbravo.profile.last_stat_statements_srv1 13 openbravo.profile.last_stat_user_functions_srv1 13 openbravo.public.obpos_applications 8 openbravo.public.ad_process_request 8 openbravo.public.ad_pinstance 8 openbravo.public.prpres_conf 6 openbravo.profile.stmt_list 6 openbravo.profile.tables_list 6 openbravo.profile.indexes_list 4 openbravo.profile.funcs_list 4 openbravo.public.ad_sequence 3 openbravo.profile.last_stat_activity_count_srv1 3 openbravo.profile.last_extension_versions 3 openbravo.public.ad_ep_instance_para 2 openbravo.profile.sample_stat_tables 2 openbravo.profile.sample_statements 2 openbravo.profile.sample_stat_indexes 2 openbravo.public.fin_financial_account 2 openbravo.profile.sample_stat_user_functions 2 openbravo.profile.sample_stat_tables_total 1 openbravo.profile.sample_stat_indexes_total 1 openbravo.profile.sample_statements_total 1 openbravo.profile.sample_stat_database 1 Total 230 Vacuums per table
Key values
- public.ad_pinstance_para (47) Main table vacuumed on database openbravo
- 171 vacuums Total
Table Number of vacuums Index scans openbravo.public.ad_pinstance_para 47 47 openbravo.profile.last_stat_statements_srv1 18 13 openbravo.profile.last_stat_indexes_srv1 18 13 openbravo.profile.last_stat_user_functions_srv1 18 13 openbravo.profile.last_stat_tables_srv1 18 13 openbravo.public.c_import_entry 16 16 openbravo.pg_toast.pg_toast_70826 9 9 openbravo.profile.tables_list 5 5 openbravo.profile.stmt_list 4 4 openbravo.public.ad_pinstance 3 3 openbravo.profile.indexes_list 3 3 openbravo.profile.funcs_list 3 3 openbravo.profile.last_stat_activity_count_srv1 2 0 openbravo.profile.last_extension_versions 2 2 openbravo.pg_toast.pg_toast_2619 2 2 openbravo.public.ad_ep_instance_para 1 1 openbravo.pg_catalog.pg_statistic 1 1 openbravo.profile.last_stat_database_srv1 1 1 Total 171 149 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (71987) Main table with removed tuples on database openbravo
- 145498 tuples Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.profile.last_stat_indexes_srv1 18 13 71987 220 openbravo.profile.last_stat_tables_srv1 18 13 44386 0 openbravo.profile.last_stat_statements_srv1 18 13 15359 157 openbravo.profile.last_stat_user_functions_srv1 18 13 5232 1 openbravo.public.ad_pinstance_para 47 47 3744 80 openbravo.pg_catalog.pg_statistic 1 1 1001 0 openbravo.pg_toast.pg_toast_70826 9 9 929 239 openbravo.public.c_import_entry 16 16 906 55 openbravo.pg_toast.pg_toast_2619 2 2 538 0 openbravo.profile.tables_list 5 5 442 0 openbravo.profile.stmt_list 4 4 325 0 openbravo.profile.indexes_list 3 3 178 0 openbravo.profile.funcs_list 3 3 168 0 openbravo.public.ad_pinstance 3 3 122 4 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.profile.last_stat_activity_count_srv1 2 0 40 2 openbravo.public.ad_ep_instance_para 1 1 25 1 openbravo.profile.last_stat_database_srv1 1 1 12 0 Total 171 149 145,498 759 Pages removed per table
Key values
- pg_toast.pg_toast_70826 (239) Main table with removed pages on database openbravo
- 759 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.pg_toast.pg_toast_70826 9 9 929 239 openbravo.profile.last_stat_indexes_srv1 18 13 71987 220 openbravo.profile.last_stat_statements_srv1 18 13 15359 157 openbravo.public.ad_pinstance_para 47 47 3744 80 openbravo.public.c_import_entry 16 16 906 55 openbravo.public.ad_pinstance 3 3 122 4 openbravo.profile.last_stat_activity_count_srv1 2 0 40 2 openbravo.public.ad_ep_instance_para 1 1 25 1 openbravo.profile.last_stat_user_functions_srv1 18 13 5232 1 openbravo.pg_catalog.pg_statistic 1 1 1001 0 openbravo.profile.last_stat_database_srv1 1 1 12 0 openbravo.profile.stmt_list 4 4 325 0 openbravo.profile.indexes_list 3 3 178 0 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.pg_toast.pg_toast_2619 2 2 538 0 openbravo.profile.tables_list 5 5 442 0 openbravo.profile.last_stat_tables_srv1 18 13 44386 0 openbravo.profile.funcs_list 3 3 168 0 Total 171 149 145,498 759 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 18 07 27 5 08 7 13 09 11 13 10 13 25 11 10 18 12 14 23 13 18 28 14 21 31 15 15 21 16 13 24 17 8 11 18 6 10 19 8 8 20 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 263 Total read queries
- 156 Total write queries
Queries by database
Key values
- openbravo Main database
- 443 Requests
- 32m40s (openbravo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 429 Requests
User Request type Count Duration postgres Total 14 24s279ms SELECT 14 24s279ms tad Total 429 32m16s COPY 22 3m4s SELECT 249 17m32s UPDATE 156 11m35s others 2 3s159ms Duration by user
Key values
- 32m16s (tad) Main time consuming user
User Request type Count Duration postgres Total 14 24s279ms SELECT 14 24s279ms tad Total 429 32m16s COPY 22 3m4s SELECT 249 17m32s UPDATE 156 11m35s others 2 3s159ms Queries by host
Key values
- 127.0.0.1 Main host
- 429 Requests
- 32m16s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 407 Requests
- 29m11s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-18 13:23:26 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 434 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 1m7s select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';[ Date: 2026-07-18 13:24:24 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 50s336ms COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout;[ Date: 2026-07-18 07:00:57 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
3 34s944ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';[ Date: 2026-07-18 13:23:52 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 19s663ms COPY public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) TO stdout;[ Date: 2026-07-18 07:02:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
5 15s588ms COPY public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) TO stdout;[ Date: 2026-07-18 07:01:22 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
6 12s273ms COPY public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) TO stdout;[ Date: 2026-07-18 07:03:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
7 11s978ms COPY public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) TO stdout;[ Date: 2026-07-18 07:03:20 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
8 11s192ms COPY public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) TO stdout;[ Date: 2026-07-18 07:02:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
9 10s475ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';[ Date: 2026-07-18 09:23:51 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 9s460ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 07:00:09 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 9s191ms COPY public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) TO stdout;[ Date: 2026-07-18 07:02:14 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
12 9s74ms select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';[ Date: 2026-07-18 09:23:50 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 8s960ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 09:00:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 8s919ms UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 07:05:15 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 8s475ms COPY public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) TO stdout;[ Date: 2026-07-18 07:01:37 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
16 7s904ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 20:00:07 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 7s227ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 12:00:07 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 6s869ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 11:00:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 6s723ms UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-18 15:45:11 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 6s710ms SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-18 19:00:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
Time consuming queries
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 12m32s 157 3s956ms 9s460ms 4s791ms select * from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 18 07 12 1m 5s3ms 08 12 57s11ms 4s750ms 09 12 59s577ms 4s964ms 10 12 58s569ms 4s880ms 11 12 56s653ms 4s721ms 12 12 57s391ms 4s782ms 13 12 57s85ms 4s757ms 14 12 56s393ms 4s699ms 15 12 59s71ms 4s922ms 16 12 56s163ms 4s680ms 17 12 54s283ms 4s523ms 18 12 55s895ms 4s657ms 19 12 56s258ms 4s688ms 20 1 7s904ms 7s904ms [ User: tad - Total duration: 12m32s - Times executed: 157 ]
[ Application: openbravo - Total duration: 12m32s - Times executed: 157 ]
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 07:00:09 Duration: 9s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 09:00:08 Duration: 8s960ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 20:00:07 Duration: 7s904ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 11m35s 156 3s807ms 8s919ms 4s460ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 18 07 12 56s53ms 4s671ms 08 12 53s515ms 4s459ms 09 12 52s687ms 4s390ms 10 12 53s509ms 4s459ms 11 12 51s772ms 4s314ms 12 12 52s910ms 4s409ms 13 12 54s597ms 4s549ms 14 12 52s696ms 4s391ms 15 12 57s533ms 4s794ms 16 12 51s202ms 4s266ms 17 12 52s684ms 4s390ms 18 12 54s582ms 4s548ms 19 12 52s33ms 4s336ms [ User: tad - Total duration: 11m35s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m35s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 07:05:15 Duration: 8s919ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 15:45:11 Duration: 6s723ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 13:00:12 Duration: 6s494ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 2m32s 79 1s676ms 4s460ms 1s932ms select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, ? as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, ?) as group_id, coalesce(pprod.out_of_stock, ?) as out_of_stock, coalesce(pprod.depends_on_stock, ?) as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) union select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, ?) as group_id, coalesce(pcomb.out_of_stock, ?) as out_of_stock, coalesce(pcomb.depends_on_stock, ?) as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 18 07 6 11s868ms 1s978ms 08 6 12s511ms 2s85ms 09 6 14s90ms 2s348ms 10 6 11s516ms 1s919ms 11 6 11s771ms 1s961ms 12 6 11s14ms 1s835ms 13 6 11s365ms 1s894ms 14 6 10s739ms 1s789ms 15 6 11s818ms 1s969ms 16 6 11s209ms 1s868ms 17 6 11s76ms 1s846ms 18 6 10s777ms 1s796ms 19 6 11s130ms 1s855ms 20 1 1s794ms 1s794ms [ User: tad - Total duration: 2m32s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m32s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 09:00:04 Duration: 4s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 08:40:03 Duration: 3s184ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 07:00:03 Duration: 2s778ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1m24s 4 3s532ms 1m7s 21s12ms select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 18 09 1 9s74ms 9s74ms 10 1 4s26ms 4s26ms 13 1 1m7s 1m7s 15 1 3s532ms 3s532ms [ User: tad - Total duration: 1m24s - Times executed: 4 ]
[ Application: openbravo - Total duration: 1m24s - Times executed: 4 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-18 13:24:24 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 09:23:50 Duration: 9s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 10:42:09 Duration: 4s26ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 57s269ms 4 5s862ms 34s944ms 14s317ms select organizati9_.name as col_0_0_, organizati9_.ad_org_id as col_1_0_, businesspa6_.c_bpartner_id as col_2_0_, businesspa6_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet14_.taxamt) from c_orderlinetax orderlinet14_ where orderlinet14_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join c_bpartner businesspa6_ on order5_.c_bpartner_id = businesspa6_.c_bpartner_id left outer join m_product_category productcat7_ on product4_.m_product_category_id = productcat7_.m_product_category_id left outer join obpos_applications obpos_appl8_ on order5_.em_obpos_applications_id = obpos_appl8_.obpos_applications_id left outer join ad_org organizati9_ on order5_.ad_org_id = organizati9_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl8_.ad_client_id = ? and (obpos_appl8_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati9_.name, organizati9_.ad_org_id, businesspa6_.name, businesspa6_.c_bpartner_id order by col_7_0_ desc, col_4_0_ desc, organizati9_.name, businesspa6_.name limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 18 09 1 10s475ms 10s475ms 10 1 5s987ms 5s987ms 13 1 34s944ms 34s944ms 15 1 5s862ms 5s862ms [ User: tad - Total duration: 57s269ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 57s269ms - Times executed: 4 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-18 13:23:52 Duration: 34s944ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 09:23:51 Duration: 10s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 10:42:11 Duration: 5s987ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 50s336ms 1 50s336ms 50s336ms 50s336ms copy public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 18 07 1 50s336ms 50s336ms [ User: tad - Total duration: 50s336ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 50s336ms - Times executed: 1 ]
-
COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout;
Date: 2026-07-18 07:00:57 Duration: 50s336ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 24s279ms 14 1s404ms 2s447ms 1s734ms select profile.take_sample ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 18 07 1 1s812ms 1s812ms 08 1 1s404ms 1s404ms 09 1 2s447ms 2s447ms 10 1 1s528ms 1s528ms 11 1 1s936ms 1s936ms 12 1 1s578ms 1s578ms 13 1 1s691ms 1s691ms 14 1 1s659ms 1s659ms 15 1 1s633ms 1s633ms 16 1 1s829ms 1s829ms 17 1 1s442ms 1s442ms 18 1 1s586ms 1s586ms 19 1 1s622ms 1s622ms 20 1 2s105ms 2s105ms [ User: postgres - Total duration: 24s279ms - Times executed: 14 ]
[ Application: psql - Total duration: 24s279ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 09:00:04 Duration: 2s447ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 2s105ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 11:00:03 Duration: 1s936ms Database: openbravo User: postgres Remote: [local] Application: psql
8 19s663ms 1 19s663ms 19s663ms 19s663ms copy public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 18 07 1 19s663ms 19s663ms [ User: tad - Total duration: 19s663ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 19s663ms - Times executed: 1 ]
-
COPY public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) TO stdout;
Date: 2026-07-18 07:02:05 Duration: 19s663ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 15s588ms 1 15s588ms 15s588ms 15s588ms copy public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 18 07 1 15s588ms 15s588ms [ User: tad - Total duration: 15s588ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 15s588ms - Times executed: 1 ]
-
COPY public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) TO stdout;
Date: 2026-07-18 07:01:22 Duration: 15s588ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 12s273ms 1 12s273ms 12s273ms 12s273ms copy public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 18 07 1 12s273ms 12s273ms [ User: tad - Total duration: 12s273ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s273ms - Times executed: 1 ]
-
COPY public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) TO stdout;
Date: 2026-07-18 07:03:06 Duration: 12s273ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 11s978ms 1 11s978ms 11s978ms 11s978ms copy public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 18 07 1 11s978ms 11s978ms [ User: tad - Total duration: 11s978ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s978ms - Times executed: 1 ]
-
COPY public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) TO stdout;
Date: 2026-07-18 07:03:20 Duration: 11s978ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 11s192ms 1 11s192ms 11s192ms 11s192ms copy public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 18 07 1 11s192ms 11s192ms [ User: tad - Total duration: 11s192ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s192ms - Times executed: 1 ]
-
COPY public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) TO stdout;
Date: 2026-07-18 07:02:26 Duration: 11s192ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 9s191ms 1 9s191ms 9s191ms 9s191ms copy public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 18 07 1 9s191ms 9s191ms [ User: tad - Total duration: 9s191ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s191ms - Times executed: 1 ]
-
COPY public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) TO stdout;
Date: 2026-07-18 07:02:14 Duration: 9s191ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 8s475ms 1 8s475ms 8s475ms 8s475ms copy public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 18 07 1 8s475ms 8s475ms [ User: tad - Total duration: 8s475ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s475ms - Times executed: 1 ]
-
COPY public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) TO stdout;
Date: 2026-07-18 07:01:37 Duration: 8s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 6s416ms 1 6s416ms 6s416ms 6s416ms copy public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) to stdout;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 18 07 1 6s416ms 6s416ms [ User: tad - Total duration: 6s416ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s416ms - Times executed: 1 ]
-
COPY public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) TO stdout;
Date: 2026-07-18 07:01:28 Duration: 6s416ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 5s940ms 1 5s940ms 5s940ms 5s940ms copy public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 18 07 1 5s940ms 5s940ms [ User: tad - Total duration: 5s940ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s940ms - Times executed: 1 ]
-
COPY public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) TO stdout;
Date: 2026-07-18 07:01:45 Duration: 5s940ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 5s621ms 1 5s621ms 5s621ms 5s621ms copy public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 18 07 1 5s621ms 5s621ms [ User: tad - Total duration: 5s621ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s621ms - Times executed: 1 ]
-
COPY public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) TO stdout;
Date: 2026-07-18 07:02:46 Duration: 5s621ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 4s290ms 1 4s290ms 4s290ms 4s290ms copy public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 18 07 1 4s290ms 4s290ms [ User: tad - Total duration: 4s290ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s290ms - Times executed: 1 ]
-
COPY public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) TO stdout;
Date: 2026-07-18 07:01:06 Duration: 4s290ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 3s596ms 1 3s596ms 3s596ms 3s596ms copy public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 18 07 1 3s596ms 3s596ms [ User: tad - Total duration: 3s596ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s596ms - Times executed: 1 ]
-
COPY public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) TO stdout;
Date: 2026-07-18 07:02:50 Duration: 3s596ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
20 3s595ms 1 3s595ms 3s595ms 3s595ms copy public.fin_finacc_transaction (fin_finacc_transaction_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, isactive, c_currency_id, fin_financial_account_id, line, fin_payment_id, dateacct, c_glitem_id, status, paymentamt, depositamt, processed, processing, posted, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, trxtype, statementdate, description, fin_reconciliation_id, createdbyalgorithm, foreign_currency_id, foreign_convert_rate, foreign_amount, c_bpartner_id, m_product_id, c_salesregion_id, c_costcenter_id, em_aprm_processed, em_aprm_finacc_trans_origin, em_obpos_app_cashup_id) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 18 07 1 3s595ms 3s595ms [ User: tad - Total duration: 3s595ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s595ms - Times executed: 1 ]
-
COPY public.fin_finacc_transaction (fin_finacc_transaction_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, isactive, c_currency_id, fin_financial_account_id, line, fin_payment_id, dateacct, c_glitem_id, status, paymentamt, depositamt, processed, processing, posted, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, trxtype, statementdate, description, fin_reconciliation_id, createdbyalgorithm, foreign_currency_id, foreign_convert_rate, foreign_amount, c_bpartner_id, m_product_id, c_salesregion_id, c_costcenter_id, em_aprm_processed, em_aprm_finacc_trans_origin, em_obpos_app_cashup_id) TO stdout;
Date: 2026-07-18 07:02:32 Duration: 3s595ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 157 12m32s 3s956ms 9s460ms 4s791ms select * from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 18 07 12 1m 5s3ms 08 12 57s11ms 4s750ms 09 12 59s577ms 4s964ms 10 12 58s569ms 4s880ms 11 12 56s653ms 4s721ms 12 12 57s391ms 4s782ms 13 12 57s85ms 4s757ms 14 12 56s393ms 4s699ms 15 12 59s71ms 4s922ms 16 12 56s163ms 4s680ms 17 12 54s283ms 4s523ms 18 12 55s895ms 4s657ms 19 12 56s258ms 4s688ms 20 1 7s904ms 7s904ms [ User: tad - Total duration: 12m32s - Times executed: 157 ]
[ Application: openbravo - Total duration: 12m32s - Times executed: 157 ]
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 07:00:09 Duration: 9s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 09:00:08 Duration: 8s960ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 20:00:07 Duration: 7s904ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 156 11m35s 3s807ms 8s919ms 4s460ms update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 18 07 12 56s53ms 4s671ms 08 12 53s515ms 4s459ms 09 12 52s687ms 4s390ms 10 12 53s509ms 4s459ms 11 12 51s772ms 4s314ms 12 12 52s910ms 4s409ms 13 12 54s597ms 4s549ms 14 12 52s696ms 4s391ms 15 12 57s533ms 4s794ms 16 12 51s202ms 4s266ms 17 12 52s684ms 4s390ms 18 12 54s582ms 4s548ms 19 12 52s33ms 4s336ms [ User: tad - Total duration: 11m35s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m35s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 07:05:15 Duration: 8s919ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 15:45:11 Duration: 6s723ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 13:00:12 Duration: 6s494ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 79 2m32s 1s676ms 4s460ms 1s932ms select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, ? as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, ?) as group_id, coalesce(pprod.out_of_stock, ?) as out_of_stock, coalesce(pprod.depends_on_stock, ?) as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) union select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, ?) as group_id, coalesce(pcomb.out_of_stock, ?) as out_of_stock, coalesce(pcomb.depends_on_stock, ?) as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 18 07 6 11s868ms 1s978ms 08 6 12s511ms 2s85ms 09 6 14s90ms 2s348ms 10 6 11s516ms 1s919ms 11 6 11s771ms 1s961ms 12 6 11s14ms 1s835ms 13 6 11s365ms 1s894ms 14 6 10s739ms 1s789ms 15 6 11s818ms 1s969ms 16 6 11s209ms 1s868ms 17 6 11s76ms 1s846ms 18 6 10s777ms 1s796ms 19 6 11s130ms 1s855ms 20 1 1s794ms 1s794ms [ User: tad - Total duration: 2m32s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m32s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 09:00:04 Duration: 4s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 08:40:03 Duration: 3s184ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 07:00:03 Duration: 2s778ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 14 24s279ms 1s404ms 2s447ms 1s734ms select profile.take_sample ();Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 18 07 1 1s812ms 1s812ms 08 1 1s404ms 1s404ms 09 1 2s447ms 2s447ms 10 1 1s528ms 1s528ms 11 1 1s936ms 1s936ms 12 1 1s578ms 1s578ms 13 1 1s691ms 1s691ms 14 1 1s659ms 1s659ms 15 1 1s633ms 1s633ms 16 1 1s829ms 1s829ms 17 1 1s442ms 1s442ms 18 1 1s586ms 1s586ms 19 1 1s622ms 1s622ms 20 1 2s105ms 2s105ms [ User: postgres - Total duration: 24s279ms - Times executed: 14 ]
[ Application: psql - Total duration: 24s279ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 09:00:04 Duration: 2s447ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 2s105ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 11:00:03 Duration: 1s936ms Database: openbravo User: postgres Remote: [local] Application: psql
5 4 1m24s 3s532ms 1m7s 21s12ms select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 18 09 1 9s74ms 9s74ms 10 1 4s26ms 4s26ms 13 1 1m7s 1m7s 15 1 3s532ms 3s532ms [ User: tad - Total duration: 1m24s - Times executed: 4 ]
[ Application: openbravo - Total duration: 1m24s - Times executed: 4 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-18 13:24:24 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 09:23:50 Duration: 9s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 10:42:09 Duration: 4s26ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 4 57s269ms 5s862ms 34s944ms 14s317ms select organizati9_.name as col_0_0_, organizati9_.ad_org_id as col_1_0_, businesspa6_.c_bpartner_id as col_2_0_, businesspa6_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet14_.taxamt) from c_orderlinetax orderlinet14_ where orderlinet14_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join c_bpartner businesspa6_ on order5_.c_bpartner_id = businesspa6_.c_bpartner_id left outer join m_product_category productcat7_ on product4_.m_product_category_id = productcat7_.m_product_category_id left outer join obpos_applications obpos_appl8_ on order5_.em_obpos_applications_id = obpos_appl8_.obpos_applications_id left outer join ad_org organizati9_ on order5_.ad_org_id = organizati9_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl8_.ad_client_id = ? and (obpos_appl8_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati9_.name, organizati9_.ad_org_id, businesspa6_.name, businesspa6_.c_bpartner_id order by col_7_0_ desc, col_4_0_ desc, organizati9_.name, businesspa6_.name limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 18 09 1 10s475ms 10s475ms 10 1 5s987ms 5s987ms 13 1 34s944ms 34s944ms 15 1 5s862ms 5s862ms [ User: tad - Total duration: 57s269ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 57s269ms - Times executed: 4 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-18 13:23:52 Duration: 34s944ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 09:23:51 Duration: 10s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 10:42:11 Duration: 5s987ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 3 3s256ms 1s17ms 1s128ms 1s85ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_470_, productbyp0_.ad_client_id as ad_clien2_470_, productbyp0_.ad_org_id as ad_org_i3_470_, productbyp0_.isactive as isactive4_470_, productbyp0_.updated as updated5_470_, productbyp0_.updatedby as updatedb6_470_, productbyp0_.created as created7_470_, productbyp0_.createdby as createdb8_470_, productbyp0_.m_product_id as m_produc9_470_, productbyp0_.m_warehouse_id as m_wareh10_470_, productbyp0_.m_productprice_id as m_produ11_470_, productbyp0_.qty_available as qty_ava12_470_, productbyp0_.qty_onhand as qty_onh13_470_, productbyp0_.qty_reserved as qty_res14_470_, productbyp0_.qty_ordered as qty_ord15_470_, productbyp0_.pricelist as priceli16_470_, productbyp0_.pricestd as pricest17_470_, productbyp0_.pricelimit as priceli18_470_, productbyp0_.orgwarehouse as orgware19_470_ from m_product_price_warehouse_v productbyp0_ left outer join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro4_ cross join m_pricelist_version pricingpri5_ cross join m_pricelist pricingpri9_ where productbyp0_.m_productprice_id = pricingpro4_.m_productprice_id and pricingpro4_.m_pricelist_version_id = pricingpri5_.m_pricelist_version_id and pricingpri5_.m_pricelist_id = pricingpri9_.m_pricelist_id and (upper(product1_.value) like upper(?) escape ? or upper(product1_.name) like upper(?) escape ? or upper(coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?)) like upper(?) escape ? or upper(coalesce(to_char(( select producttrl3_.name from m_product_trl producttrl3_ where producttrl3_.m_product_id = product1_.m_product_id and producttrl3_.ad_language = ?)), to_char(product1_.name), ?)) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri5_.isactive = ? and ad_org_isinnaturaltree (pricingpro4_.ad_org_id, ?, ?) = ? and pricingpri9_.issopricelist = ? and pricingpri9_.c_currency_id = ? and pricingpro4_.m_pricelist_version_id = ? and productbyp0_.m_warehouse_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 18 10 3 3s256ms 1s85ms [ User: tad - Total duration: 3s256ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s256ms - Times executed: 3 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_470_, productbyp0_.AD_Client_ID as ad_clien2_470_, productbyp0_.AD_Org_ID as ad_org_i3_470_, productbyp0_.Isactive as isactive4_470_, productbyp0_.Updated as updated5_470_, productbyp0_.Updatedby as updatedb6_470_, productbyp0_.Created as created7_470_, productbyp0_.Createdby as createdb8_470_, productbyp0_.M_Product_ID as m_produc9_470_, productbyp0_.M_Warehouse_ID as m_wareh10_470_, productbyp0_.M_Productprice_ID as m_produ11_470_, productbyp0_.QTY_Available as qty_ava12_470_, productbyp0_.QTY_Onhand as qty_onh13_470_, productbyp0_.QTY_Reserved as qty_res14_470_, productbyp0_.QTY_Ordered as qty_ord15_470_, productbyp0_.Pricelist as priceli16_470_, productbyp0_.Pricestd as pricest17_470_, productbyp0_.Pricelimit as priceli18_470_, productbyp0_.Orgwarehouse as orgware19_470_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%69%') escape '|' or upper(product1_.Name) like upper('%69%') escape '|' or upper(coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%69%') escape '|' or upper(coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%69%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri9_.IsSOPriceList = 'N' and pricingpri9_.C_Currency_ID = '100' and pricingpro4_.M_PriceList_Version_ID = 'C29169EBA3B94A8C98A1AEE13A53257C' and productbyp0_.M_Warehouse_ID = '2E9CA65750E54DEDB03E7977A91CE1FC' and (productbyp0_.AD_Client_ID in ('F1F033983E8740EC81BE7129A38DC0A2', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-18 10:46:05 Duration: 1s128ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_470_, productbyp0_.AD_Client_ID as ad_clien2_470_, productbyp0_.AD_Org_ID as ad_org_i3_470_, productbyp0_.Isactive as isactive4_470_, productbyp0_.Updated as updated5_470_, productbyp0_.Updatedby as updatedb6_470_, productbyp0_.Created as created7_470_, productbyp0_.Createdby as createdb8_470_, productbyp0_.M_Product_ID as m_produc9_470_, productbyp0_.M_Warehouse_ID as m_wareh10_470_, productbyp0_.M_Productprice_ID as m_produ11_470_, productbyp0_.QTY_Available as qty_ava12_470_, productbyp0_.QTY_Onhand as qty_onh13_470_, productbyp0_.QTY_Reserved as qty_res14_470_, productbyp0_.QTY_Ordered as qty_ord15_470_, productbyp0_.Pricelist as priceli16_470_, productbyp0_.Pricestd as pricest17_470_, productbyp0_.Pricelimit as priceli18_470_, productbyp0_.Orgwarehouse as orgware19_470_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%6%') escape '|' or upper(product1_.Name) like upper('%6%') escape '|' or upper(coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%6%') escape '|' or upper(coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%6%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri9_.IsSOPriceList = 'N' and pricingpri9_.C_Currency_ID = '100' and pricingpro4_.M_PriceList_Version_ID = 'C29169EBA3B94A8C98A1AEE13A53257C' and productbyp0_.M_Warehouse_ID = '2E9CA65750E54DEDB03E7977A91CE1FC' and (productbyp0_.AD_Client_ID in ('F1F033983E8740EC81BE7129A38DC0A2', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-18 10:46:05 Duration: 1s110ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_470_, productbyp0_.AD_Client_ID as ad_clien2_470_, productbyp0_.AD_Org_ID as ad_org_i3_470_, productbyp0_.Isactive as isactive4_470_, productbyp0_.Updated as updated5_470_, productbyp0_.Updatedby as updatedb6_470_, productbyp0_.Created as created7_470_, productbyp0_.Createdby as createdb8_470_, productbyp0_.M_Product_ID as m_produc9_470_, productbyp0_.M_Warehouse_ID as m_wareh10_470_, productbyp0_.M_Productprice_ID as m_produ11_470_, productbyp0_.QTY_Available as qty_ava12_470_, productbyp0_.QTY_Onhand as qty_onh13_470_, productbyp0_.QTY_Reserved as qty_res14_470_, productbyp0_.QTY_Ordered as qty_ord15_470_, productbyp0_.Pricelist as priceli16_470_, productbyp0_.Pricestd as pricest17_470_, productbyp0_.Pricelimit as priceli18_470_, productbyp0_.Orgwarehouse as orgware19_470_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%18%') escape '|' or upper(product1_.Name) like upper('%18%') escape '|' or upper(coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%18%') escape '|' or upper(coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'en_US')), to_char(product1_.Name), '')) like upper('%18%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'A22222CD0A46452CA481F8F5CE47ABA3', 'F1F033983E8740EC81BE7129A38DC0A2') = 'Y' and pricingpri9_.IsSOPriceList = 'N' and pricingpri9_.C_Currency_ID = '100' and pricingpro4_.M_PriceList_Version_ID = 'C29169EBA3B94A8C98A1AEE13A53257C' and productbyp0_.M_Warehouse_ID = '2E9CA65750E54DEDB03E7977A91CE1FC' and (productbyp0_.AD_Client_ID in ('F1F033983E8740EC81BE7129A38DC0A2', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-18 10:46:44 Duration: 1s17ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1 50s336ms 50s336ms 50s336ms 50s336ms copy public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 18 07 1 50s336ms 50s336ms [ User: tad - Total duration: 50s336ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 50s336ms - Times executed: 1 ]
-
COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout;
Date: 2026-07-18 07:00:57 Duration: 50s336ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 1 19s663ms 19s663ms 19s663ms 19s663ms copy public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 18 07 1 19s663ms 19s663ms [ User: tad - Total duration: 19s663ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 19s663ms - Times executed: 1 ]
-
COPY public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) TO stdout;
Date: 2026-07-18 07:02:05 Duration: 19s663ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 1 15s588ms 15s588ms 15s588ms 15s588ms copy public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 18 07 1 15s588ms 15s588ms [ User: tad - Total duration: 15s588ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 15s588ms - Times executed: 1 ]
-
COPY public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) TO stdout;
Date: 2026-07-18 07:01:22 Duration: 15s588ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 1 12s273ms 12s273ms 12s273ms 12s273ms copy public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 18 07 1 12s273ms 12s273ms [ User: tad - Total duration: 12s273ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s273ms - Times executed: 1 ]
-
COPY public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) TO stdout;
Date: 2026-07-18 07:03:06 Duration: 12s273ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 1 11s978ms 11s978ms 11s978ms 11s978ms copy public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 18 07 1 11s978ms 11s978ms [ User: tad - Total duration: 11s978ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s978ms - Times executed: 1 ]
-
COPY public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) TO stdout;
Date: 2026-07-18 07:03:20 Duration: 11s978ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 1 11s192ms 11s192ms 11s192ms 11s192ms copy public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 18 07 1 11s192ms 11s192ms [ User: tad - Total duration: 11s192ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s192ms - Times executed: 1 ]
-
COPY public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) TO stdout;
Date: 2026-07-18 07:02:26 Duration: 11s192ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 1 9s191ms 9s191ms 9s191ms 9s191ms copy public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 18 07 1 9s191ms 9s191ms [ User: tad - Total duration: 9s191ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s191ms - Times executed: 1 ]
-
COPY public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) TO stdout;
Date: 2026-07-18 07:02:14 Duration: 9s191ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 1 8s475ms 8s475ms 8s475ms 8s475ms copy public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) to stdout;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 18 07 1 8s475ms 8s475ms [ User: tad - Total duration: 8s475ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s475ms - Times executed: 1 ]
-
COPY public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) TO stdout;
Date: 2026-07-18 07:01:37 Duration: 8s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 1 6s416ms 6s416ms 6s416ms 6s416ms copy public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 18 07 1 6s416ms 6s416ms [ User: tad - Total duration: 6s416ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s416ms - Times executed: 1 ]
-
COPY public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) TO stdout;
Date: 2026-07-18 07:01:28 Duration: 6s416ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 1 5s940ms 5s940ms 5s940ms 5s940ms copy public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 18 07 1 5s940ms 5s940ms [ User: tad - Total duration: 5s940ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s940ms - Times executed: 1 ]
-
COPY public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) TO stdout;
Date: 2026-07-18 07:01:45 Duration: 5s940ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 1 5s621ms 5s621ms 5s621ms 5s621ms copy public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 18 07 1 5s621ms 5s621ms [ User: tad - Total duration: 5s621ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s621ms - Times executed: 1 ]
-
COPY public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) TO stdout;
Date: 2026-07-18 07:02:46 Duration: 5s621ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 1 4s290ms 4s290ms 4s290ms 4s290ms copy public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 18 07 1 4s290ms 4s290ms [ User: tad - Total duration: 4s290ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s290ms - Times executed: 1 ]
-
COPY public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) TO stdout;
Date: 2026-07-18 07:01:06 Duration: 4s290ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
20 1 3s596ms 3s596ms 3s596ms 3s596ms copy public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 18 07 1 3s596ms 3s596ms [ User: tad - Total duration: 3s596ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s596ms - Times executed: 1 ]
-
COPY public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) TO stdout;
Date: 2026-07-18 07:02:50 Duration: 3s596ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 50s336ms 50s336ms 50s336ms 1 50s336ms copy public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) to stdout;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 18 07 1 50s336ms 50s336ms [ User: tad - Total duration: 50s336ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 50s336ms - Times executed: 1 ]
-
COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout;
Date: 2026-07-18 07:00:57 Duration: 50s336ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
2 3s532ms 1m7s 21s12ms 4 1m24s select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 18 09 1 9s74ms 9s74ms 10 1 4s26ms 4s26ms 13 1 1m7s 1m7s 15 1 3s532ms 3s532ms [ User: tad - Total duration: 1m24s - Times executed: 4 ]
[ Application: openbravo - Total duration: 1m24s - Times executed: 4 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-18 13:24:24 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 09:23:50 Duration: 9s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';
Date: 2026-07-18 10:42:09 Duration: 4s26ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 19s663ms 19s663ms 19s663ms 1 19s663ms copy public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) to stdout;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 18 07 1 19s663ms 19s663ms [ User: tad - Total duration: 19s663ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 19s663ms - Times executed: 1 ]
-
COPY public.c_orderline (c_orderline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_order_id, line, c_bpartner_id, c_bpartner_location_id, dateordered, datepromised, datedelivered, dateinvoiced, description, m_product_id, m_warehouse_id, directship, c_uom_id, qtyordered, qtyreserved, qtydelivered, qtyinvoiced, m_shipper_id, c_currency_id, pricelist, priceactual, pricelimit, linenetamt, discount, freightamt, c_charge_id, chargeamt, c_tax_id, s_resourceassignment_id, ref_orderline_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_offer_id, pricestd, cancelpricead, c_order_discount_id, iseditlinenetamt, taxbaseamt, m_inoutline_id, c_return_reason_id, gross_unit_price, line_gross_amount, grosspricelist, c_costcenter_id, grosspricestd, a_asset_id, m_warehouse_rule_id, user1_id, quotationline_id, user2_id, create_reservation, c_project_id, so_res_status, manage_reservation, manage_prereservation, explode, bom_parent_id, em_mntc_discount, print_description, overdue_return_days, relate_orderline, replacedorderline_id, c_aum, aumqty, returnline, em_obpos_epccode, em_obpos_serialnumber, em_obpos_isdeleted, em_obpos_service_proposed, em_obpos_qtydeleted, em_obpos_canbedelivered, em_obpos_ispaid, em_obpos_pricereason_id, em_obrdm_delivery_mode, em_obrdm_delivery_date, em_obrdm_delivery_time, em_obrdm_amttopayindelivery, em_obmfm_isfreightamt, em_obmfm_freight_definition_id, em_obwpl_readypl, salesrep_id, em_prpres_ps_line_id) TO stdout;
Date: 2026-07-18 07:02:05 Duration: 19s663ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
4 15s588ms 15s588ms 15s588ms 1 15s588ms copy public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 18 07 1 15s588ms 15s588ms [ User: tad - Total duration: 15s588ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 15s588ms - Times executed: 1 ]
-
COPY public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) TO stdout;
Date: 2026-07-18 07:01:22 Duration: 15s588ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
5 5s862ms 34s944ms 14s317ms 4 57s269ms select organizati9_.name as col_0_0_, organizati9_.ad_org_id as col_1_0_, businesspa6_.c_bpartner_id as col_2_0_, businesspa6_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet14_.taxamt) from c_orderlinetax orderlinet14_ where orderlinet14_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join c_bpartner businesspa6_ on order5_.c_bpartner_id = businesspa6_.c_bpartner_id left outer join m_product_category productcat7_ on product4_.m_product_category_id = productcat7_.m_product_category_id left outer join obpos_applications obpos_appl8_ on order5_.em_obpos_applications_id = obpos_appl8_.obpos_applications_id left outer join ad_org organizati9_ on order5_.ad_org_id = organizati9_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl8_.ad_client_id = ? and (obpos_appl8_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati9_.name, organizati9_.ad_org_id, businesspa6_.name, businesspa6_.c_bpartner_id order by col_7_0_ desc, col_4_0_ desc, organizati9_.name, businesspa6_.name limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 18 09 1 10s475ms 10s475ms 10 1 5s987ms 5s987ms 13 1 34s944ms 34s944ms 15 1 5s862ms 5s862ms [ User: tad - Total duration: 57s269ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 57s269ms - Times executed: 4 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-18 13:23:52 Duration: 34s944ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 09:23:51 Duration: 10s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';
Date: 2026-07-18 10:42:11 Duration: 5s987ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 12s273ms 12s273ms 12s273ms 1 12s273ms copy public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) to stdout;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 18 07 1 12s273ms 12s273ms [ User: tad - Total duration: 12s273ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s273ms - Times executed: 1 ]
-
COPY public.m_inoutline (m_inoutline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, line, description, m_inout_id, c_orderline_id, m_locator_id, m_product_id, c_uom_id, movementqty, isinvoiced, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, m_condition_goods_id, canceled_inoutline_id, a_asset_id, manage_prereservation, user1_id, user2_id, c_project_id, c_costcenter_id, c_bpartner_id, explode, bom_parent_id, c_aum, aumqty, em_obwpl_pickinglist_id, em_obwpl_editlines_pe, em_obwpl_removeline, em_prpp_qtyverified, salesrep_id) TO stdout;
Date: 2026-07-18 07:03:06 Duration: 12s273ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 11s978ms 11s978ms 11s978ms 1 11s978ms copy public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) to stdout;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 18 07 1 11s978ms 11s978ms [ User: tad - Total duration: 11s978ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s978ms - Times executed: 1 ]
-
COPY public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) TO stdout;
Date: 2026-07-18 07:03:20 Duration: 11s978ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
8 11s192ms 11s192ms 11s192ms 1 11s192ms copy public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 18 07 1 11s192ms 11s192ms [ User: tad - Total duration: 11s192ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 11s192ms - Times executed: 1 ]
-
COPY public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) TO stdout;
Date: 2026-07-18 07:02:26 Duration: 11s192ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 9s191ms 9s191ms 9s191ms 1 9s191ms copy public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 18 07 1 9s191ms 9s191ms [ User: tad - Total duration: 9s191ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s191ms - Times executed: 1 ]
-
COPY public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) TO stdout;
Date: 2026-07-18 07:02:14 Duration: 9s191ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 8s475ms 8s475ms 8s475ms 1 8s475ms copy public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 18 07 1 8s475ms 8s475ms [ User: tad - Total duration: 8s475ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s475ms - Times executed: 1 ]
-
COPY public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) TO stdout;
Date: 2026-07-18 07:01:37 Duration: 8s475ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 6s416ms 6s416ms 6s416ms 1 6s416ms copy public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 18 07 1 6s416ms 6s416ms [ User: tad - Total duration: 6s416ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s416ms - Times executed: 1 ]
-
COPY public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) TO stdout;
Date: 2026-07-18 07:01:28 Duration: 6s416ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 5s940ms 5s940ms 5s940ms 1 5s940ms copy public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 18 07 1 5s940ms 5s940ms [ User: tad - Total duration: 5s940ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s940ms - Times executed: 1 ]
-
COPY public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) TO stdout;
Date: 2026-07-18 07:01:45 Duration: 5s940ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 5s621ms 5s621ms 5s621ms 1 5s621ms copy public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 18 07 1 5s621ms 5s621ms [ User: tad - Total duration: 5s621ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s621ms - Times executed: 1 ]
-
COPY public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) TO stdout;
Date: 2026-07-18 07:02:46 Duration: 5s621ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 3s956ms 9s460ms 4s791ms 157 12m32s select * from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 18 07 12 1m 5s3ms 08 12 57s11ms 4s750ms 09 12 59s577ms 4s964ms 10 12 58s569ms 4s880ms 11 12 56s653ms 4s721ms 12 12 57s391ms 4s782ms 13 12 57s85ms 4s757ms 14 12 56s393ms 4s699ms 15 12 59s71ms 4s922ms 16 12 56s163ms 4s680ms 17 12 54s283ms 4s523ms 18 12 55s895ms 4s657ms 19 12 56s258ms 4s688ms 20 1 7s904ms 7s904ms [ User: tad - Total duration: 12m32s - Times executed: 157 ]
[ Application: openbravo - Total duration: 12m32s - Times executed: 157 ]
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 07:00:09 Duration: 9s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 09:00:08 Duration: 8s960ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '463465B5BE664902A40F05E84E1587CD' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-18 20:00:07 Duration: 7s904ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3s807ms 8s919ms 4s460ms 156 11m35s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 18 07 12 56s53ms 4s671ms 08 12 53s515ms 4s459ms 09 12 52s687ms 4s390ms 10 12 53s509ms 4s459ms 11 12 51s772ms 4s314ms 12 12 52s910ms 4s409ms 13 12 54s597ms 4s549ms 14 12 52s696ms 4s391ms 15 12 57s533ms 4s794ms 16 12 51s202ms 4s266ms 17 12 52s684ms 4s390ms 18 12 54s582ms 4s548ms 19 12 52s33ms 4s336ms [ User: tad - Total duration: 11m35s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m35s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 07:05:15 Duration: 8s919ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 15:45:11 Duration: 6s723ms Database: openbravo 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 = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-18 13:00:12 Duration: 6s494ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 4s290ms 4s290ms 4s290ms 1 4s290ms copy public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 18 07 1 4s290ms 4s290ms [ User: tad - Total duration: 4s290ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s290ms - Times executed: 1 ]
-
COPY public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) TO stdout;
Date: 2026-07-18 07:01:06 Duration: 4s290ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 3s596ms 3s596ms 3s596ms 1 3s596ms copy public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 18 07 1 3s596ms 3s596ms [ User: tad - Total duration: 3s596ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s596ms - Times executed: 1 ]
-
COPY public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) TO stdout;
Date: 2026-07-18 07:02:50 Duration: 3s596ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 3s595ms 3s595ms 3s595ms 1 3s595ms copy public.fin_finacc_transaction (fin_finacc_transaction_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, isactive, c_currency_id, fin_financial_account_id, line, fin_payment_id, dateacct, c_glitem_id, status, paymentamt, depositamt, processed, processing, posted, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, trxtype, statementdate, description, fin_reconciliation_id, createdbyalgorithm, foreign_currency_id, foreign_convert_rate, foreign_amount, c_bpartner_id, m_product_id, c_salesregion_id, c_costcenter_id, em_aprm_processed, em_aprm_finacc_trans_origin, em_obpos_app_cashup_id) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 18 07 1 3s595ms 3s595ms [ User: tad - Total duration: 3s595ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s595ms - Times executed: 1 ]
-
COPY public.fin_finacc_transaction (fin_finacc_transaction_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, isactive, c_currency_id, fin_financial_account_id, line, fin_payment_id, dateacct, c_glitem_id, status, paymentamt, depositamt, processed, processing, posted, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, trxtype, statementdate, description, fin_reconciliation_id, createdbyalgorithm, foreign_currency_id, foreign_convert_rate, foreign_amount, c_bpartner_id, m_product_id, c_salesregion_id, c_costcenter_id, em_aprm_processed, em_aprm_finacc_trans_origin, em_obpos_app_cashup_id) TO stdout;
Date: 2026-07-18 07:02:32 Duration: 3s595ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 1s676ms 4s460ms 1s932ms 79 2m32s select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, ? as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, ?) as group_id, coalesce(pprod.out_of_stock, ?) as out_of_stock, coalesce(pprod.depends_on_stock, ?) as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_product.m_product_id is not null and m_product.isgeneric = ?) union select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, ?) as group_id, coalesce(pcomb.out_of_stock, ?) as out_of_stock, coalesce(pcomb.depends_on_stock, ?) as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?) or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = ? and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id is not null and prpres_combination.m_product_id is not null and m_product.isgeneric = ?);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 18 07 6 11s868ms 1s978ms 08 6 12s511ms 2s85ms 09 6 14s90ms 2s348ms 10 6 11s516ms 1s919ms 11 6 11s771ms 1s961ms 12 6 11s14ms 1s835ms 13 6 11s365ms 1s894ms 14 6 10s739ms 1s789ms 15 6 11s818ms 1s969ms 16 6 11s209ms 1s868ms 17 6 11s76ms 1s846ms 18 6 10s777ms 1s796ms 19 6 11s130ms 1s855ms 20 1 1s794ms 1s794ms [ User: tad - Total duration: 2m32s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m32s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 09:00:04 Duration: 4s460ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 08:40:03 Duration: 3s184ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-18 07:00:03 Duration: 2s778ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s404ms 2s447ms 1s734ms 14 24s279ms select profile.take_sample ();Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 18 07 1 1s812ms 1s812ms 08 1 1s404ms 1s404ms 09 1 2s447ms 2s447ms 10 1 1s528ms 1s528ms 11 1 1s936ms 1s936ms 12 1 1s578ms 1s578ms 13 1 1s691ms 1s691ms 14 1 1s659ms 1s659ms 15 1 1s633ms 1s633ms 16 1 1s829ms 1s829ms 17 1 1s442ms 1s442ms 18 1 1s586ms 1s586ms 19 1 1s622ms 1s622ms 20 1 2s105ms 2s105ms [ User: postgres - Total duration: 24s279ms - Times executed: 14 ]
[ Application: psql - Total duration: 24s279ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-18 09:00:04 Duration: 2s447ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 20:00:04 Duration: 2s105ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-18 11:00:03 Duration: 1s936ms Database: openbravo User: postgres Remote: [local] Application: psql
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
- 29,000 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 1 ERROR entries
- 0 WARNING entries
Most Frequent Errors/Events
Key values
- 1 Max number of times the same event was reported
- 1 Total events found
Rank Times reported Error 1 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 18 10 1 - ERROR: duplicate key value violates unique constraint "m_product_value"
Detail: Key (value, ad_org_id, ad_client_id)=(074300935195, A22222CD0A46452CA481F8F5CE47ABA3, F1F033983E8740EC81BE7129A38DC0A2) already exists.
Statement: update M_Product set Updated=$1, Value=$2, EM_Prpres_Short_Description=$3, EM_Prpres_Description=$4, EM_Prpres_Meta_Title=$5, EM_Prpres_Meta_Description=$6 where M_Product_ID=$7Date: 2026-07-18 10:44:00 Database: openbravo Application: openbravo User: tad Remote: 127.0.0.1