-
Global information
- Generated on Tue Jul 14 23:00:08 2026
- Log file: /var/log/postgresql/postgresql-12-main.log
- Parsed 70,864 log entries in 6s
- Log start from 2026-07-14 07:00:01 to 2026-07-14 22:00:00
-
Overview
Global Stats
- 36 Number of unique normalized queries
- 511 Number of queries
- 40m39s Total query duration
- 2026-07-14 07:00:03 First query
- 2026-07-14 21:55:07 Last query
- 2 queries/s at 2026-07-14 07:00:03 Query peak
- 40m39s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 40m39s Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 186 Total number of automatic vacuums
- 239 Total number of automatic analyzes
- 485 Number temporary file
- 453.33 MiB Max size of temporary file
- 58.13 MiB Average size of temporary file
- 10,407 Total number of sessions
- 6 sessions at 2026-07-14 09:00:02 Session peak
- 1d19h8m14s Total duration of sessions
- 14s922ms Average duration of sessions
- 0 Average queries per session
- 234ms Average queries duration per session
- 10,407 Total number of connections
- 9 connections/s at 2026-07-14 19:55:27 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-14 07:00:03 Date
SELECT Traffic
Key values
- 0 queries/s Query Peak
- Date
INSERT/UPDATE/DELETE Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-14 07:00:03 Date
Queries duration
Key values
- 40m39s 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 14 07 54 0ms 52s375ms 6s72ms 11s875ms 48s755ms 1m12s 08 31 0ms 8s60ms 3s856ms 10s228ms 10s271ms 17s402ms 09 33 0ms 10s849ms 4s56ms 10s312ms 11s564ms 30s135ms 10 31 0ms 7s331ms 4s97ms 10s404ms 11s965ms 17s104ms 11 34 0ms 9s537ms 4s142ms 10s449ms 12s409ms 17s473ms 12 34 0ms 18s637ms 4s430ms 10s380ms 12s202ms 26s345ms 13 33 0ms 7s934ms 4s1ms 10s352ms 10s842ms 17s58ms 14 39 0ms 1m9s 8s932ms 11s824ms 39s46ms 1m46s 15 31 0ms 7s393ms 3s848ms 10s209ms 11s17ms 15s872ms 16 31 0ms 6s433ms 3s910ms 10s404ms 11s299ms 14s420ms 17 31 0ms 6s497ms 3s948ms 10s562ms 11s406ms 14s445ms 18 34 0ms 1m8s 6s682ms 11s369ms 14s556ms 1m8s 19 33 0ms 8s74ms 4s2ms 10s775ms 11s261ms 17s421ms 20 31 0ms 7s272ms 3s836ms 10s86ms 10s474ms 15s811ms 21 31 0ms 5s322ms 3s804ms 10s35ms 11s142ms 13s974ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 19 0 3s889ms 4s88ms 6s383ms 7s170ms 08 19 0 3s681ms 4s86ms 6s311ms 6s711ms 09 19 0 4s227ms 4s41ms 6s417ms 7s333ms 10 19 0 3s809ms 4s181ms 6s502ms 7s15ms 11 22 0 4s71ms 4s246ms 6s393ms 10s140ms 12 22 0 4s453ms 4s198ms 6s350ms 12s804ms 13 21 0 3s874ms 4s217ms 6s387ms 7s71ms 14 27 0 10s973ms 4s375ms 7s232ms 1m7s 15 19 0 3s665ms 4s72ms 6s362ms 6s864ms 16 19 0 3s598ms 4s37ms 6s219ms 7s71ms 17 19 0 3s671ms 4s24ms 6s485ms 7s233ms 18 22 0 7s997ms 4s220ms 6s785ms 37s395ms 19 21 0 3s827ms 4s47ms 6s564ms 8s995ms 20 19 0 3s598ms 4s57ms 6s224ms 6s840ms 21 19 0 3s464ms 4s45ms 6s269ms 6s613ms 22 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 0 12 0 0 4s653ms 0ms 3s856ms 5s360ms 08 0 12 0 0 4s133ms 0ms 3s838ms 4s570ms 09 0 12 0 0 4s123ms 0ms 3s833ms 4s643ms 10 0 12 0 0 4s554ms 0ms 3s902ms 4s781ms 11 0 12 0 0 4s271ms 0ms 3s883ms 4s618ms 12 0 12 0 0 4s388ms 0ms 3s934ms 4s814ms 13 0 12 0 0 4s222ms 0ms 3s849ms 4s713ms 14 0 12 0 0 4s339ms 0ms 3s907ms 4s716ms 15 0 12 0 0 4s137ms 0ms 3s840ms 4s226ms 16 0 12 0 0 4s406ms 0ms 3s969ms 4s740ms 17 0 12 0 0 4s385ms 0ms 3s847ms 4s963ms 18 0 12 0 0 4s271ms 0ms 3s865ms 4s755ms 19 0 12 0 0 4s308ms 0ms 3s750ms 4s842ms 20 0 12 0 0 4s213ms 0ms 3s777ms 4s575ms 21 0 12 0 0 4s343ms 0ms 3s766ms 4s677ms 22 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 14 07 0 30 30.00 0.00% 08 0 30 30.00 0.00% 09 0 32 32.00 0.00% 10 0 30 30.00 0.00% 11 0 33 33.00 0.00% 12 0 33 33.00 0.00% 13 0 32 32.00 0.00% 14 0 38 38.00 0.00% 15 0 30 30.00 0.00% 16 0 30 30.00 0.00% 17 0 30 30.00 0.00% 18 0 33 33.00 0.00% 19 0 32 32.00 0.00% 20 0 30 30.00 0.00% 21 0 30 30.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jul 14 07 700 0.19/s 08 697 0.19/s 09 702 0.20/s 10 697 0.19/s 11 697 0.19/s 12 697 0.19/s 13 697 0.19/s 14 697 0.19/s 15 697 0.19/s 16 697 0.19/s 17 697 0.19/s 18 699 0.19/s 19 697 0.19/s 20 667 0.19/s 21 667 0.19/s 22 2 0.00/s Day Hour Count Average Duration Jul 14 07 702 20s745ms 08 697 19ms 09 702 1m9s 10 697 20ms 11 697 18ms 12 697 20ms 13 697 19ms 14 697 19ms 15 697 19ms 16 697 19ms 17 697 19ms 18 699 2m10s 19 697 20ms 20 667 18ms 21 667 18ms 22 0 0ms -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2026-07-14 19:55:27 Date
Connections per database
Key values
- openbravo Main Database
- 10,407 connections Total
Connections per user
Key values
- postgres Main User
- 10,407 connections Total
-
Sessions
Simultaneous sessions
Key values
- 6 sessions Session Peak
- 2026-07-14 09:00:02 Date
Histogram of session times
Key values
- 10,362 0-500ms duration
Sessions per database
Key values
- openbravo Main Database
- 10,407 sessions Total
Sessions per user
Key values
- postgres Main User
- 10,407 sessions Total
Sessions per host
Key values
- [local] Main Host
- 10,407 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 5,190 buffers Checkpoint Peak
- 2026-07-14 09:08:15 Date
- 269.335 seconds Highest write time
- 0.006 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-14 18:49:55 Date
Checkpoints distance
Key values
- 83.69 Mo Distance Peak
- 2026-07-14 09:08:15 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 14 07 2,402 242.623s 0.015s 242.695s 08 1,849 186.27s 0.015s 186.342s 09 5,567 308.151s 0.012s 308.231s 10 1,681 169.418s 0.013s 169.487s 11 3,547 356.876s 0.02s 356.95s 12 3,568 358.69s 0.026s 358.763s 13 6,591 663.469s 0.031s 663.567s 14 6,971 699.458s 0.029s 699.541s 15 4,777 479.883s 0.028s 479.967s 16 7,379 716.829s 0.04s 716.943s 17 6,764 679.322s 0.03s 679.404s 18 7,551 758.059s 0.029s 758.135s 19 7,997 802.291s 0.039s 802.389s 20 3,583 360.238s 0.016s 360.317s 21 1,643 165.837s 0.013s 165.909s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 14 07 0 1 0 238 0.002s 0.012s 08 0 1 0 198 0.002s 0.011s 09 0 3 0 250 0.001s 0.011s 10 0 1 0 218 0.001s 0.012s 11 0 2 0 883 0.002s 0.012s 12 0 1 0 1,070 0.002s 0.012s 13 0 3 0 1,672 0.003s 0.012s 14 0 3 0 2,253 0.002s 0.012s 15 0 2 0 1,490 0.002s 0.012s 16 0 3 0 1,902 0.002s 0.012s 17 0 3 0 2,011 0.002s 0.012s 18 0 4 0 1,723 0.002s 0.011s 19 0 3 0 2,165 0.005s 0.012s 20 0 2 0 335 0.002s 0.013s 21 0 0 0 210 0.002s 0.012s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 14 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jul 14 07 1,375.83 kB 10,942.25 kB 08 1,327.27 kB 8,371.36 kB 09 4,114.00 kB 26,843.82 kB 10 1,106.58 kB 8,862.42 kB 11 2,268.17 kB 7,356.50 kB 12 2,157.92 kB 9,231.00 kB 13 3,976.08 kB 9,823.08 kB 14 4,211.75 kB 10,379.33 kB 15 2,890.83 kB 8,988.08 kB 16 4,376.58 kB 14,330.67 kB 17 3,926.00 kB 8,976.92 kB 18 4,938.00 kB 11,045.00 kB 19 4,709.17 kB 10,057.50 kB 20 1,886.77 kB 7,887.08 kB 21 1,154.67 kB 7,488.67 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 453.33 MiB Temp Files size Peak
- 2026-07-14 18:46:26 Date
Number of temporary files
Key values
- 6 per second Temp Files Peak
- 2026-07-14 14:31:03 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 14 07 24 1.38 GiB 58.87 MiB 08 24 1.38 GiB 58.87 MiB 09 24 1.38 GiB 58.87 MiB 10 24 1.38 GiB 58.87 MiB 11 25 1.40 GiB 57.17 MiB 12 31 2.33 GiB 77.05 MiB 13 25 1.40 GiB 57.17 MiB 14 101 5.27 GiB 53.48 MiB 15 24 1.38 GiB 58.88 MiB 16 24 1.38 GiB 58.88 MiB 17 24 1.38 GiB 58.88 MiB 18 62 3.32 GiB 54.83 MiB 19 25 1.40 GiB 57.19 MiB 20 24 1.38 GiB 58.89 MiB 21 24 1.38 GiB 58.89 MiB 22 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 7 975.77 MiB 13.76 MiB 254.47 MiB 139.40 MiB select obpos_appl3_.name as col_0_0_, organizati4_.name as col_1_0_, organizati4_.ad_org_id as col_2_0_, obpos_appl3_.obpos_applications_id as col_3_0_, product2_.name as col_4_0_, product2_.m_product_id as col_5_0_, to_char(order0_.created, ?) as col_6_0_, to_char(order0_.created, ?) as col_7_0_, sum(orderline1_.qtyordered) as col_8_0_ from c_order order0_ cross join c_orderline orderline1_ cross join m_product product2_ cross join obpos_applications obpos_appl3_ cross join ad_org organizati4_ where obpos_appl3_.ad_client_id = ? and (obpos_appl3_.ad_org_id in (...)) and obpos_appl3_.obpos_applications_id = order0_.em_obpos_applications_id and order0_.ad_org_id = organizati4_.ad_org_id and orderline1_.c_order_id = order0_.c_order_id and product2_.m_product_id = orderline1_.m_product_id and order0_.issotrx = ? and order0_.docstatus = ? and ? = ? group by obpos_appl3_.name, organizati4_.name, obpos_appl3_.obpos_applications_id, organizati4_.ad_org_id, product2_.name, product2_.m_product_id, to_char(order0_.created, ?), to_char(order0_.created, ?) order by to_char(order0_.created, ?), to_char(order0_.created, ?) limit ?;-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl3_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit '10';
Date: 2026-07-14 12:48:19 Duration: 18s637ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;
Date: 2026-07-14 12:48:09 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
2 63 3.63 GiB 10.50 MiB 258.56 MiB 59.06 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:31:57 Duration: 1m9s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 18:47:26 Duration: 1m8s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:19:12 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
3 55 2.25 GiB 11.07 MiB 453.33 MiB 41.87 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:18:42 Duration: 37s955ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:31:25 Duration: 36s859ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 18:46:53 Duration: 36s15ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
4 180 10.35 GiB 58.87 MiB 58.89 MiB 58.88 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-14 07:00:15 Duration: 6s442ms 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-14 07:05:11 Duration: 5s942ms 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-14 14:00:12 Duration: 5s669ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
5 180 10.35 GiB 58.87 MiB 58.89 MiB 58.88 MiB select * from ( select f.c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;
Date: 2026-07-14 07:00:08 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 453.33 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-14 18:46:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 453.23 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-14 14:30:57 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 453.23 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-14 14:18:14 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 258.56 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-14 18:47:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 258.54 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-14 14:31:58 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 258.53 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-14 14:19:12 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 254.47 MiB select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;[ Date: 2026-07-14 12:48:19 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 227.93 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-14 18:46:30 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 227.84 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-14 14:18:17 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 227.84 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-14 14:31:00 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 227.82 MiB select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;[ Date: 2026-07-14 12:48:12 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 226.36 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-14 18:46:34 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 226.34 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-14 14:31:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 226.34 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-14 14:18:23 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 226.34 MiB select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;[ Date: 2026-07-14 12:48:18 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 225.71 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-14 18:46:32 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 225.69 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-14 14:31:03 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 225.69 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-14 14:18:19 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 225.66 MiB select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;[ Date: 2026-07-14 12:48:15 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 93.15 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-14 18:46:53 - 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 (44) Main table analyzed (database openbravo)
- 239 analyzes Total
Table Number of analyzes openbravo.public.ad_pinstance_para 44 openbravo.public.c_import_entry 28 openbravo.public.ad_session 21 openbravo.profile.last_stat_statements_srv1 15 openbravo.profile.last_stat_indexes_srv1 15 openbravo.profile.last_stat_user_functions_srv1 15 openbravo.profile.last_stat_tables_srv1 15 openbravo.public.ad_process_request 10 openbravo.public.ad_pinstance 10 openbravo.profile.stmt_list 8 openbravo.public.prpres_conf 8 openbravo.profile.tables_list 7 openbravo.public.obpos_applications 7 openbravo.public.ad_ep_instance_para 5 openbravo.profile.funcs_list 5 openbravo.profile.indexes_list 4 openbravo.profile.last_stat_activity_count_srv1 4 openbravo.profile.last_extension_versions 4 openbravo.public.ad_sequence 3 openbravo.profile.sample_stat_user_functions 2 openbravo.profile.sample_stat_tables_total 1 openbravo.public.obmobc_logclient 1 openbravo.profile.sample_stat_tables 1 openbravo.public.fin_financial_account 1 openbravo.profile.sample_stat_database 1 openbravo.profile.sample_stat_indexes_total 1 openbravo.profile.sample_stat_indexes 1 openbravo.profile.sample_statements 1 openbravo.profile.sample_statements_total 1 Total 239 Vacuums per table
Key values
- public.ad_pinstance_para (37) Main table vacuumed on database openbravo
- 186 vacuums Total
Table Number of vacuums Index scans openbravo.public.ad_pinstance_para 37 37 openbravo.profile.last_stat_indexes_srv1 24 15 openbravo.profile.last_stat_user_functions_srv1 24 15 openbravo.profile.last_stat_statements_srv1 24 15 openbravo.profile.last_stat_tables_srv1 24 15 openbravo.public.c_import_entry 15 15 openbravo.pg_toast.pg_toast_70826 8 8 openbravo.profile.tables_list 5 5 openbravo.profile.stmt_list 4 4 openbravo.profile.funcs_list 4 4 openbravo.public.ad_pinstance 3 3 openbravo.public.ad_ep_instance_para 3 3 openbravo.profile.indexes_list 3 3 openbravo.profile.last_stat_activity_count_srv1 2 0 openbravo.pg_toast.pg_toast_2619 2 2 openbravo.profile.last_extension_versions 2 2 openbravo.pg_catalog.pg_statistic 1 1 openbravo.profile.last_stat_database_srv1 1 1 Total 186 148 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (83074) Main table with removed tuples on database openbravo
- 164894 tuples Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.profile.last_stat_indexes_srv1 24 15 83074 551 openbravo.profile.last_stat_tables_srv1 24 15 51134 274 openbravo.profile.last_stat_statements_srv1 24 15 16693 197 openbravo.profile.last_stat_user_functions_srv1 24 15 5953 3 openbravo.public.ad_pinstance_para 37 37 3743 63 openbravo.pg_catalog.pg_statistic 1 1 897 0 openbravo.pg_toast.pg_toast_70826 8 8 796 172 openbravo.public.c_import_entry 15 15 661 72 openbravo.pg_toast.pg_toast_2619 2 2 537 0 openbravo.profile.tables_list 5 5 353 0 openbravo.profile.stmt_list 4 4 299 0 openbravo.profile.funcs_list 4 4 205 0 openbravo.profile.indexes_list 3 3 161 0 openbravo.public.ad_pinstance 3 3 157 3 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.public.ad_ep_instance_para 3 3 79 4 openbravo.profile.last_stat_activity_count_srv1 2 0 40 1 openbravo.profile.last_stat_database_srv1 1 1 8 0 Total 186 148 164,894 1,340 Pages removed per table
Key values
- profile.last_stat_indexes_srv1 (551) Main table with removed pages on database openbravo
- 1340 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.profile.last_stat_indexes_srv1 24 15 83074 551 openbravo.profile.last_stat_tables_srv1 24 15 51134 274 openbravo.profile.last_stat_statements_srv1 24 15 16693 197 openbravo.pg_toast.pg_toast_70826 8 8 796 172 openbravo.public.c_import_entry 15 15 661 72 openbravo.public.ad_pinstance_para 37 37 3743 63 openbravo.public.ad_ep_instance_para 3 3 79 4 openbravo.public.ad_pinstance 3 3 157 3 openbravo.profile.last_stat_user_functions_srv1 24 15 5953 3 openbravo.profile.last_stat_activity_count_srv1 2 0 40 1 openbravo.pg_catalog.pg_statistic 1 1 897 0 openbravo.pg_toast.pg_toast_2619 2 2 537 0 openbravo.profile.tables_list 5 5 353 0 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.profile.stmt_list 4 4 299 0 openbravo.profile.funcs_list 4 4 205 0 openbravo.profile.indexes_list 3 3 161 0 openbravo.profile.last_stat_database_srv1 1 1 8 0 Total 186 148 164,894 1,340 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 14 07 28 9 08 6 5 09 6 9 10 6 6 11 5 8 12 8 15 13 14 25 14 15 23 15 15 21 16 22 24 17 17 22 18 18 31 19 15 23 20 6 10 21 5 8 22 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
- 306 Total read queries
- 180 Total write queries
Queries by database
Key values
- openbravo Main database
- 511 Requests
- 40m39s (openbravo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 496 Requests
User Request type Count Duration postgres Total 15 28s240ms SELECT 15 28s240ms tad Total 496 40m11s COPY 23 3m18s SELECT 291 23m51s UPDATE 180 12m57s others 2 4s50ms Duration by user
Key values
- 40m11s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 28s240ms SELECT 15 28s240ms tad Total 496 40m11s COPY 23 3m18s SELECT 291 23m51s UPDATE 180 12m57s others 2 4s50ms Queries by host
Key values
- 127.0.0.1 Main host
- 496 Requests
- 40m11s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 473 Requests
- 36m52s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-14 21:00:03 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 497 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 1m9s 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:31:57 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 1m8s 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 18:47:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:19:12 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 52s375ms 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-14 07:00:59 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
5 37s955ms 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:18:42 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 36s859ms 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:31:25 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 36s15ms 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 18:46:53 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 20s420ms 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-14 07:02:11 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
9 18s637ms select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl3_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit '10';[ Date: 2026-07-14 12:48:19 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 16s625ms 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-14 07:01:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
11 13s228ms 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-14 07:03:17 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
12 13s4ms 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-14 07:03:33 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
13 12s257ms 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-14 07:02:34 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
14 10s849ms 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-14 09:00:10 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 9s804ms 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-14 07:02:21 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
16 9s537ms 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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00+00', '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-14 11:51:03 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 8s934ms 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-14 07:01:42 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
18 8s462ms 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-14 07:00:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 8s74ms 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-14 19:00:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 8s60ms 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-14 08:00:08 - 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 14m18s 180 3s902ms 10s849ms 4s768ms 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 14 07 12 59s557ms 4s963ms 08 12 56s539ms 4s711ms 09 12 1m 5s42ms 10 12 58s25ms 4s835ms 11 12 57s966ms 4s830ms 12 12 57s565ms 4s797ms 13 12 57s981ms 4s831ms 14 12 58s232ms 4s852ms 15 12 56s43ms 4s670ms 16 12 55s421ms 4s618ms 17 12 56s736ms 4s728ms 18 12 57s204ms 4s767ms 19 12 57s504ms 4s792ms 20 12 55s773ms 4s647ms 21 12 53s226ms 4s435ms [ User: tad - Total duration: 14m18s - Times executed: 180 ]
[ Application: openbravo - Total duration: 14m18s - Times executed: 180 ]
-
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-14 09:00:10 Duration: 10s849ms 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-14 07:00:08 Duration: 8s462ms 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-14 19:00:08 Duration: 8s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 12m57s 180 3s732ms 6s442ms 4s316ms 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 14 07 12 55s847ms 4s653ms 08 12 49s604ms 4s133ms 09 12 49s476ms 4s123ms 10 12 54s655ms 4s554ms 11 12 51s258ms 4s271ms 12 12 52s660ms 4s388ms 13 12 50s667ms 4s222ms 14 12 52s77ms 4s339ms 15 12 49s649ms 4s137ms 16 12 52s876ms 4s406ms 17 12 52s623ms 4s385ms 18 12 51s262ms 4s271ms 19 12 51s707ms 4s308ms 20 12 50s558ms 4s213ms 21 12 52s126ms 4s343ms [ User: tad - Total duration: 12m57s - Times executed: 180 ]
[ Application: openbravo - Total duration: 12m57s - Times executed: 180 ]
-
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-14 07:00:15 Duration: 6s442ms 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-14 07:05:11 Duration: 5s942ms 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-14 14:00:12 Duration: 5s669ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 3m52s 9 3s473ms 1m9s 25s858ms 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 #3
Day Hour Count Duration Avg duration Jul 14 11 1 7s936ms 7s936ms 12 2 7s707ms 3s853ms 13 1 4s217ms 4s217ms 14 3 2m21s 47s70ms 18 1 1m8s 1m8s 19 1 3s473ms 3s473ms [ User: tad - Total duration: 3m52s - Times executed: 9 ]
[ Application: openbravo - Total duration: 3m52s - Times executed: 9 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:31:57 Duration: 1m9s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 18:47:26 Duration: 1m8s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:19:12 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 2m57s 90 1s648ms 6s613ms 1s976ms 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 #4
Day Hour Count Duration Avg duration Jul 14 07 6 12s456ms 2s76ms 08 6 11s529ms 1s921ms 09 6 16s239ms 2s706ms 10 6 12s300ms 2s50ms 11 6 11s584ms 1s930ms 12 6 11s934ms 1s989ms 13 6 11s11ms 1s835ms 14 6 10s766ms 1s794ms 15 6 11s618ms 1s936ms 16 6 11s272ms 1s878ms 17 6 11s492ms 1s915ms 18 6 11s499ms 1s916ms 19 6 11s995ms 1s999ms 20 6 11s53ms 1s842ms 21 6 11s171ms 1s861ms [ User: tad - Total duration: 2m57s - Times executed: 90 ]
[ Application: openbravo - Total duration: 2m57s - Times executed: 90 ]
-
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-14 09:00:06 Duration: 6s613ms 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-14 07:00:03 Duration: 3s261ms 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-14 10:00:03 Duration: 2s945ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2m19s 7 5s521ms 37s955ms 19s899ms 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 14 11 1 9s537ms 9s537ms 13 1 6s377ms 6s377ms 14 3 1m21s 27s281ms 18 1 36s15ms 36s15ms 19 1 5s521ms 5s521ms [ User: tad - Total duration: 2m19s - Times executed: 7 ]
[ Application: openbravo - Total duration: 2m19s - Times executed: 7 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:18:42 Duration: 37s955ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:31:25 Duration: 36s859ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 18:46:53 Duration: 36s15ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 52s375ms 1 52s375ms 52s375ms 52s375ms 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 14 07 1 52s375ms 52s375ms [ User: tad - Total duration: 52s375ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 52s375ms - 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-14 07:00:59 Duration: 52s375ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 28s240ms 15 1s419ms 3s575ms 1s882ms select profile.take_sample ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 14 07 1 1s884ms 1s884ms 08 1 1s877ms 1s877ms 09 1 3s575ms 3s575ms 10 1 2s46ms 2s46ms 11 1 1s554ms 1s554ms 12 1 2s128ms 2s128ms 13 1 1s781ms 1s781ms 14 1 1s675ms 1s675ms 15 1 1s986ms 1s986ms 16 1 1s668ms 1s668ms 17 1 1s538ms 1s538ms 18 1 1s672ms 1s672ms 19 1 1s888ms 1s888ms 20 1 1s544ms 1s544ms 21 1 1s419ms 1s419ms [ User: postgres - Total duration: 28s240ms - Times executed: 15 ]
[ Application: psql - Total duration: 28s240ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:05 Duration: 3s575ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 12:00:03 Duration: 2s128ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 10:00:03 Duration: 2s46ms Database: openbravo User: postgres Remote: [local] Application: psql
8 20s420ms 1 20s420ms 20s420ms 20s420ms 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 14 07 1 20s420ms 20s420ms [ User: tad - Total duration: 20s420ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 20s420ms - 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-14 07:02:11 Duration: 20s420ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 18s637ms 1 18s637ms 18s637ms 18s637ms select obpos_appl3_.name as col_0_0_, organizati4_.name as col_1_0_, organizati4_.ad_org_id as col_2_0_, obpos_appl3_.obpos_applications_id as col_3_0_, product2_.name as col_4_0_, product2_.m_product_id as col_5_0_, to_char(order0_.created, ?) as col_6_0_, to_char(order0_.created, ?) as col_7_0_, sum(orderline1_.qtyordered) as col_8_0_ from c_order order0_ cross join c_orderline orderline1_ cross join m_product product2_ cross join obpos_applications obpos_appl3_ cross join ad_org organizati4_ where obpos_appl3_.ad_client_id = ? and (obpos_appl3_.ad_org_id in (...)) and obpos_appl3_.obpos_applications_id = order0_.em_obpos_applications_id and order0_.ad_org_id = organizati4_.ad_org_id and orderline1_.c_order_id = order0_.c_order_id and product2_.m_product_id = orderline1_.m_product_id and order0_.issotrx = ? and order0_.docstatus = ? and ? = ? group by obpos_appl3_.name, organizati4_.name, obpos_appl3_.obpos_applications_id, organizati4_.ad_org_id, product2_.name, product2_.m_product_id, to_char(order0_.created, ?), to_char(order0_.created, ?) order by to_char(order0_.created, ?), to_char(order0_.created, ?) limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 14 12 1 18s637ms 18s637ms [ User: tad - Total duration: 18s637ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 18s637ms - Times executed: 1 ]
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl3_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit '10';
Date: 2026-07-14 12:48:19 Duration: 18s637ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;
Date: 2026-07-14 12:48:09 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
10 16s625ms 1 16s625ms 16s625ms 16s625ms 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 14 07 1 16s625ms 16s625ms [ User: tad - Total duration: 16s625ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s625ms - 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-14 07:01:26 Duration: 16s625ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 13s228ms 1 13s228ms 13s228ms 13s228ms 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 14 07 1 13s228ms 13s228ms [ User: tad - Total duration: 13s228ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s228ms - 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-14 07:03:17 Duration: 13s228ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 13s4ms 1 13s4ms 13s4ms 13s4ms 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 14 07 1 13s4ms 13s4ms [ User: tad - Total duration: 13s4ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s4ms - 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-14 07:03:33 Duration: 13s4ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 12s257ms 1 12s257ms 12s257ms 12s257ms 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 14 07 1 12s257ms 12s257ms [ User: tad - Total duration: 12s257ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s257ms - 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-14 07:02:34 Duration: 12s257ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 9s804ms 1 9s804ms 9s804ms 9s804ms 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 14 07 1 9s804ms 9s804ms [ User: tad - Total duration: 9s804ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s804ms - 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-14 07:02:21 Duration: 9s804ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 8s934ms 1 8s934ms 8s934ms 8s934ms 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 14 07 1 8s934ms 8s934ms [ User: tad - Total duration: 8s934ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s934ms - 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-14 07:01:42 Duration: 8s934ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 7s186ms 1 7s186ms 7s186ms 7s186ms 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 14 07 1 7s186ms 7s186ms [ User: tad - Total duration: 7s186ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 7s186ms - 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-14 07:01:33 Duration: 7s186ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 6s249ms 1 6s249ms 6s249ms 6s249ms 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 14 07 1 6s249ms 6s249ms [ User: tad - Total duration: 6s249ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s249ms - 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-14 07:01:51 Duration: 6s249ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 5s714ms 1 5s714ms 5s714ms 5s714ms 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 14 07 1 5s714ms 5s714ms [ User: tad - Total duration: 5s714ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s714ms - 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-14 07:02:56 Duration: 5s714ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 4s787ms 1 4s787ms 4s787ms 4s787ms 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 14 07 1 4s787ms 4s787ms [ User: tad - Total duration: 4s787ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s787ms - 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-14 07:01:09 Duration: 4s787ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
20 4s51ms 1 4s51ms 4s51ms 4s51ms 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 14 07 1 4s51ms 4s51ms [ User: tad - Total duration: 4s51ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s51ms - 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-14 07:03:00 Duration: 4s51ms 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 180 14m18s 3s902ms 10s849ms 4s768ms 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 14 07 12 59s557ms 4s963ms 08 12 56s539ms 4s711ms 09 12 1m 5s42ms 10 12 58s25ms 4s835ms 11 12 57s966ms 4s830ms 12 12 57s565ms 4s797ms 13 12 57s981ms 4s831ms 14 12 58s232ms 4s852ms 15 12 56s43ms 4s670ms 16 12 55s421ms 4s618ms 17 12 56s736ms 4s728ms 18 12 57s204ms 4s767ms 19 12 57s504ms 4s792ms 20 12 55s773ms 4s647ms 21 12 53s226ms 4s435ms [ User: tad - Total duration: 14m18s - Times executed: 180 ]
[ Application: openbravo - Total duration: 14m18s - Times executed: 180 ]
-
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-14 09:00:10 Duration: 10s849ms 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-14 07:00:08 Duration: 8s462ms 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-14 19:00:08 Duration: 8s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 180 12m57s 3s732ms 6s442ms 4s316ms 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 14 07 12 55s847ms 4s653ms 08 12 49s604ms 4s133ms 09 12 49s476ms 4s123ms 10 12 54s655ms 4s554ms 11 12 51s258ms 4s271ms 12 12 52s660ms 4s388ms 13 12 50s667ms 4s222ms 14 12 52s77ms 4s339ms 15 12 49s649ms 4s137ms 16 12 52s876ms 4s406ms 17 12 52s623ms 4s385ms 18 12 51s262ms 4s271ms 19 12 51s707ms 4s308ms 20 12 50s558ms 4s213ms 21 12 52s126ms 4s343ms [ User: tad - Total duration: 12m57s - Times executed: 180 ]
[ Application: openbravo - Total duration: 12m57s - Times executed: 180 ]
-
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-14 07:00:15 Duration: 6s442ms 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-14 07:05:11 Duration: 5s942ms 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-14 14:00:12 Duration: 5s669ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 90 2m57s 1s648ms 6s613ms 1s976ms 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 14 07 6 12s456ms 2s76ms 08 6 11s529ms 1s921ms 09 6 16s239ms 2s706ms 10 6 12s300ms 2s50ms 11 6 11s584ms 1s930ms 12 6 11s934ms 1s989ms 13 6 11s11ms 1s835ms 14 6 10s766ms 1s794ms 15 6 11s618ms 1s936ms 16 6 11s272ms 1s878ms 17 6 11s492ms 1s915ms 18 6 11s499ms 1s916ms 19 6 11s995ms 1s999ms 20 6 11s53ms 1s842ms 21 6 11s171ms 1s861ms [ User: tad - Total duration: 2m57s - Times executed: 90 ]
[ Application: openbravo - Total duration: 2m57s - Times executed: 90 ]
-
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-14 09:00:06 Duration: 6s613ms 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-14 07:00:03 Duration: 3s261ms 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-14 10:00:03 Duration: 2s945ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 15 28s240ms 1s419ms 3s575ms 1s882ms select profile.take_sample ();Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 14 07 1 1s884ms 1s884ms 08 1 1s877ms 1s877ms 09 1 3s575ms 3s575ms 10 1 2s46ms 2s46ms 11 1 1s554ms 1s554ms 12 1 2s128ms 2s128ms 13 1 1s781ms 1s781ms 14 1 1s675ms 1s675ms 15 1 1s986ms 1s986ms 16 1 1s668ms 1s668ms 17 1 1s538ms 1s538ms 18 1 1s672ms 1s672ms 19 1 1s888ms 1s888ms 20 1 1s544ms 1s544ms 21 1 1s419ms 1s419ms [ User: postgres - Total duration: 28s240ms - Times executed: 15 ]
[ Application: psql - Total duration: 28s240ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:05 Duration: 3s575ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 12:00:03 Duration: 2s128ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 10:00:03 Duration: 2s46ms Database: openbravo User: postgres Remote: [local] Application: psql
5 9 3m52s 3s473ms 1m9s 25s858ms 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 14 11 1 7s936ms 7s936ms 12 2 7s707ms 3s853ms 13 1 4s217ms 4s217ms 14 3 2m21s 47s70ms 18 1 1m8s 1m8s 19 1 3s473ms 3s473ms [ User: tad - Total duration: 3m52s - Times executed: 9 ]
[ Application: openbravo - Total duration: 3m52s - Times executed: 9 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:31:57 Duration: 1m9s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 18:47:26 Duration: 1m8s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:19:12 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 7 2m19s 5s521ms 37s955ms 19s899ms 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 14 11 1 9s537ms 9s537ms 13 1 6s377ms 6s377ms 14 3 1m21s 27s281ms 18 1 36s15ms 36s15ms 19 1 5s521ms 5s521ms [ User: tad - Total duration: 2m19s - Times executed: 7 ]
[ Application: openbravo - Total duration: 2m19s - Times executed: 7 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:18:42 Duration: 37s955ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:31:25 Duration: 36s859ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 18:46:53 Duration: 36s15ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2 2s470ms 1s91ms 1s379ms 1s235ms select order0_.c_order_id as c_order_1_249_, order0_.ad_client_id as ad_clien2_249_, order0_.ad_org_id as ad_org_i3_249_, order0_.isactive as isactive4_249_, order0_.created as created5_249_, order0_.createdby as createdb6_249_, order0_.updated as updated7_249_, order0_.updatedby as updatedb8_249_, order0_.issotrx as issotrx9_249_, order0_.documentno as documen10_249_, order0_.docstatus as docstat11_249_, order0_.docaction as docacti12_249_, order0_.processing as process13_249_, order0_.processed as process14_249_, order0_.c_doctype_id as c_docty15_249_, order0_.c_doctypetarget_id as c_docty16_249_, order0_.description as descrip17_249_, order0_.isdelivered as isdeliv18_249_, order0_.isinvoiced as isinvoi19_249_, order0_.isprinted as isprint20_249_, order0_.isselected as isselec21_249_, order0_.salesrep_id as salesre22_249_, order0_.dateordered as dateord23_249_, order0_.datepromised as datepro24_249_, order0_.dateprinted as datepri25_249_, order0_.dateacct as dateacc26_249_, order0_.c_bpartner_id as c_bpart27_249_, order0_.billto_id as billto_28_249_, order0_.c_bpartner_location_id as c_bpart29_249_, order0_.poreference as porefer30_249_, order0_.isdiscountprinted as isdisco31_249_, order0_.c_currency_id as c_curre32_249_, order0_.paymentrule as payment33_249_, order0_.c_paymentterm_id as c_payme34_249_, order0_.invoicerule as invoice35_249_, order0_.deliveryrule as deliver36_249_, order0_.freightcostrule as freight37_249_, order0_.freightamt as freight38_249_, order0_.deliveryviarule as deliver39_249_, order0_.m_shipper_id as m_shipp40_249_, order0_.c_charge_id as c_charg41_249_, order0_.chargeamt as chargea42_249_, order0_.priorityrule as priorit43_249_, order0_.totallines as totalli44_249_, order0_.grandtotal as grandto45_249_, order0_.m_warehouse_id as m_wareh46_249_, order0_.m_pricelist_id as m_price47_249_, order0_.istaxincluded as istaxin48_249_, order0_.c_campaign_id as c_campa49_249_, order0_.c_project_id as c_proje50_249_, order0_.c_activity_id as c_activ51_249_, order0_.posted as posted52_249_, order0_.ad_user_id as ad_user53_249_, order0_.copyfrom as copyfro54_249_, order0_.dropship_bpartner_id as dropshi55_249_, order0_.dropship_location_id as dropshi56_249_, order0_.dropship_user_id as dropshi57_249_, order0_.isselfservice as isselfs58_249_, order0_.ad_orgtrx_id as ad_orgt59_249_, order0_.user1_id as user60_249_, order0_.user2_id as user61_249_, order0_.deliverynotes as deliver62_249_, order0_.c_incoterms_id as c_incot63_249_, order0_.incotermsdescription as incoter64_249_, order0_.generatetemplate as generat65_249_, order0_.delivery_location_id as deliver66_249_, order0_.copyfrompo as copyfro67_249_, order0_.fin_paymentmethod_id as fin_pay68_249_, order0_.fin_payment_priority_id as fin_pay69_249_, order0_.rm_pickfromshipment as rm_pick70_249_, order0_.rm_receivematerials as rm_rece71_249_, order0_.rm_createinvoice as rm_crea72_249_, order0_.c_return_reason_id as c_retur73_249_, order0_.rm_addorphanline as rm_addo74_249_, order0_.a_asset_id as a_asset75_249_, order0_.calculate_promotions as calcula76_249_, order0_.c_costcenter_id as c_costc77_249_, order0_.convertquotation as convert78_249_, order0_.c_reject_reason_id as c_rejec79_249_, order0_.validuntil as validun80_249_, order0_.quotation_id as quotati81_249_, order0_.so_res_status as so_res_82_249_, order0_.create_polines as create_83_249_, order0_.em_obdisc_addpack as em_obdi84_249_, order0_.iscashvat as iscashv85_249_, order0_.em_obmfm_selectfreight as em_obmf86_249_, order0_.em_obmfm_delivery_period_id as em_obmf87_249_, order0_.rm_pickfromreceipt as rm_pick88_249_, order0_.cancelandreplace as cancela89_249_, order0_.em_aprm_addpayment as em_aprm90_249_, order0_.em_obmfm_delivery_charges as em_obmf91_249_, order0_.confirmcancelandreplace as confirm92_249_, order0_.em_obmfm_freight_id as em_obmf93_249_, order0_.em_obwpl_generatepicking as em_obwp94_249_, order0_.cancelledorder_id as cancell95_249_, order0_.em_obmfm_weight as em_obmf96_249_, order0_.em_obwpl_isinpickinglist as em_obwp97_249_, order0_.em_obwpl_readypl as em_obwp98_249_, order0_.replacedorder_id as replace99_249_, order0_.em_opxmm_btn_purch as em_opx100_249_, order0_.iscancelled as iscanc101_249_, order0_.em_obmfm_weight_uom_id as em_obm102_249_, order0_.replacementorder_id as replac103_249_, order0_.em_obmfm_set_weight as em_obm104_249_, order0_.bpartner_extref as bpartn105_249_, order0_.em_obpos_applications_id as em_obp106_249_, order0_.em_obpos_sendemail as em_obp107_249_, order0_.em_obpos_email_status as em_obp108_249_, order0_.em_obpos_app_cashup_id as em_obp109_249_, order0_.em_obpos_createdabsolute as em_obp110_249_, order0_.em_obpos_notinvoiceoncashup as em_obp111_249_, order0_.em_obpos_rejected_quotat_id as em_obp112_249_, order0_.em_obpos_isdeleted as em_obp113_249_, order0_.em_obpos_islayaway as em_obp114_249_, order0_.em_obpos_prepaymentamt as em_obp115_249_, order0_.em_obpos_prepaymentlimitamt as em_obp116_249_, order0_.em_obpos_prepaymentlaylimitamt as em_obp117_249_, order0_.em_obpos_rounding_amount as em_obp118_249_, order0_.em_obpos_sequencename as em_obp119_249_, order0_.em_obpos_sequencenumber as em_obp120_249_, order0_.c_alternate_location_id as c_alte121_249_, order0_.em_prpp_generatepicking as em_prp122_249_, order0_.em_prpres_reference as em_prp123_249_, order0_.em_prpres_void_order as em_prp124_249_, order0_.em_prpres_gross_total as em_prp125_249_, order0_.em_mntc_createinvoice as em_mnt126_249_, order0_.em_prpres_net_total as em_prp127_249_, order0_.em_prpres_isgift as em_prp128_249_, order0_.em_prpres_giftmessage as em_prp129_249_, order0_.em_prpres_id_cart as em_prp130_249_, order0_.em_prpres_id_paym_transaction as em_prp131_249_, order0_.em_obpos_skip_tax_calculation as em_obp132_249_, order0_.em_prpres_processing as em_prp133_249_, order0_.em_prpres_generatepicking as em_prp134_249_ from c_order order0_ inner join c_bpartner businesspa1_ on order0_.c_bpartner_id = businesspa1_.c_bpartner_id cross join c_doctype documentty2_ where order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.issotrx = ? and (documentty2_.docsubtypeso like ?) and (order0_.updated > ? or order0_.processed = ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by businesspa1_.name, order0_.c_order_id limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 14 14 1 1s91ms 1s91ms 18 1 1s379ms 1s379ms [ User: tad - Total duration: 2s470ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s470ms - Times executed: 2 ]
-
select order0_.C_Order_ID as c_order_1_249_, order0_.AD_Client_ID as ad_clien2_249_, order0_.AD_Org_ID as ad_org_i3_249_, order0_.IsActive as isactive4_249_, order0_.Created as created5_249_, order0_.CreatedBy as createdb6_249_, order0_.Updated as updated7_249_, order0_.UpdatedBy as updatedb8_249_, order0_.IsSOTrx as issotrx9_249_, order0_.DocumentNo as documen10_249_, order0_.DocStatus as docstat11_249_, order0_.DocAction as docacti12_249_, order0_.Processing as process13_249_, order0_.Processed as process14_249_, order0_.C_DocType_ID as c_docty15_249_, order0_.C_DocTypeTarget_ID as c_docty16_249_, order0_.Description as descrip17_249_, order0_.IsDelivered as isdeliv18_249_, order0_.IsInvoiced as isinvoi19_249_, order0_.IsPrinted as isprint20_249_, order0_.IsSelected as isselec21_249_, order0_.SalesRep_ID as salesre22_249_, order0_.DateOrdered as dateord23_249_, order0_.DatePromised as datepro24_249_, order0_.DatePrinted as datepri25_249_, order0_.DateAcct as dateacc26_249_, order0_.C_BPartner_ID as c_bpart27_249_, order0_.BillTo_ID as billto_28_249_, order0_.C_BPartner_Location_ID as c_bpart29_249_, order0_.POReference as porefer30_249_, order0_.IsDiscountPrinted as isdisco31_249_, order0_.C_Currency_ID as c_curre32_249_, order0_.PaymentRule as payment33_249_, order0_.C_PaymentTerm_ID as c_payme34_249_, order0_.InvoiceRule as invoice35_249_, order0_.DeliveryRule as deliver36_249_, order0_.FreightCostRule as freight37_249_, order0_.FreightAmt as freight38_249_, order0_.DeliveryViaRule as deliver39_249_, order0_.M_Shipper_ID as m_shipp40_249_, order0_.C_Charge_ID as c_charg41_249_, order0_.ChargeAmt as chargea42_249_, order0_.PriorityRule as priorit43_249_, order0_.TotalLines as totalli44_249_, order0_.GrandTotal as grandto45_249_, order0_.M_Warehouse_ID as m_wareh46_249_, order0_.M_PriceList_ID as m_price47_249_, order0_.IsTaxIncluded as istaxin48_249_, order0_.C_Campaign_ID as c_campa49_249_, order0_.C_Project_ID as c_proje50_249_, order0_.C_Activity_ID as c_activ51_249_, order0_.Posted as posted52_249_, order0_.AD_User_ID as ad_user53_249_, order0_.CopyFrom as copyfro54_249_, order0_.DropShip_BPartner_ID as dropshi55_249_, order0_.DropShip_Location_ID as dropshi56_249_, order0_.DropShip_User_ID as dropshi57_249_, order0_.IsSelfService as isselfs58_249_, order0_.AD_OrgTrx_ID as ad_orgt59_249_, order0_.User1_ID as user60_249_, order0_.User2_ID as user61_249_, order0_.Deliverynotes as deliver62_249_, order0_.C_Incoterms_ID as c_incot63_249_, order0_.Incotermsdescription as incoter64_249_, order0_.Generatetemplate as generat65_249_, order0_.Delivery_Location_ID as deliver66_249_, order0_.CopyFromPO as copyfro67_249_, order0_.FIN_Paymentmethod_ID as fin_pay68_249_, order0_.FIN_Payment_Priority_ID as fin_pay69_249_, order0_.RM_PickFromShipment as rm_pick70_249_, order0_.RM_ReceiveMaterials as rm_rece71_249_, order0_.RM_CreateInvoice as rm_crea72_249_, order0_.C_Return_Reason_ID as c_retur73_249_, order0_.RM_AddOrphanLine as rm_addo74_249_, order0_.A_Asset_ID as a_asset75_249_, order0_.Calculate_Promotions as calcula76_249_, order0_.C_Costcenter_ID as c_costc77_249_, order0_.Convertquotation as convert78_249_, order0_.C_Reject_Reason_ID as c_rejec79_249_, order0_.validuntil as validun80_249_, order0_.Quotation_ID as quotati81_249_, order0_.SO_Res_Status as so_res_82_249_, order0_.Create_POLines as create_83_249_, order0_.EM_Obdisc_Addpack as em_obdi84_249_, order0_.Iscashvat as iscashv85_249_, order0_.EM_OBMFM_Selectfreight as em_obmf86_249_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_249_, order0_.RM_Pickfromreceipt as rm_pick88_249_, order0_.Cancelandreplace as cancela89_249_, order0_.EM_APRM_AddPayment as em_aprm90_249_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_249_, order0_.Confirmcancelandreplace as confirm92_249_, order0_.EM_OBMFM_Freight_ID as em_obmf93_249_, order0_.EM_Obwpl_Generatepicking as em_obwp94_249_, order0_.Cancelledorder_id as cancell95_249_, order0_.EM_OBMFM_Weight as em_obmf96_249_, order0_.EM_Obwpl_Isinpickinglist as em_obwp97_249_, order0_.EM_Obwpl_Readypl as em_obwp98_249_, order0_.Replacedorder_id as replace99_249_, order0_.EM_Opxmm_Btn_Purch as em_opx100_249_, order0_.Iscancelled as iscanc101_249_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm102_249_, order0_.Replacementorder_ID as replac103_249_, order0_.EM_OBMFM_Set_Weight as em_obm104_249_, order0_.BPartner_ExtRef as bpartn105_249_, order0_.EM_Obpos_Applications_ID as em_obp106_249_, order0_.EM_Obpos_Sendemail as em_obp107_249_, order0_.EM_Obpos_Email_Status as em_obp108_249_, order0_.EM_Obpos_App_Cashup_ID as em_obp109_249_, order0_.EM_Obpos_Createdabsolute as em_obp110_249_, order0_.EM_OBPOS_NotInvoiceOnCashUp as em_obp111_249_, order0_.EM_Obpos_Rejected_Quotat_ID as em_obp112_249_, order0_.EM_Obpos_Isdeleted as em_obp113_249_, order0_.EM_Obpos_Islayaway as em_obp114_249_, order0_.EM_Obpos_Prepaymentamt as em_obp115_249_, order0_.EM_Obpos_Prepaymentlimitamt as em_obp116_249_, order0_.EM_Obpos_Prepaymentlaylimitamt as em_obp117_249_, order0_.EM_Obpos_Rounding_Amount as em_obp118_249_, order0_.EM_Obpos_Sequencename as em_obp119_249_, order0_.EM_Obpos_Sequencenumber as em_obp120_249_, order0_.C_Alternate_Location_ID as c_alte121_249_, order0_.EM_Prpp_Generatepicking as em_prp122_249_, order0_.EM_Prpres_Reference as em_prp123_249_, order0_.EM_Prpres_Void_Order as em_prp124_249_, order0_.EM_Prpres_Gross_Total as em_prp125_249_, order0_.EM_Mntc_Createinvoice as em_mnt126_249_, order0_.EM_Prpres_Net_Total as em_prp127_249_, order0_.EM_Prpres_Isgift as em_prp128_249_, order0_.EM_Prpres_Giftmessage as em_prp129_249_, order0_.EM_Prpres_Id_Cart as em_prp130_249_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp131_249_, order0_.EM_Obpos_Skip_Tax_Calculation as em_obp132_249_, order0_.EM_Prpres_Processing as em_prp133_249_, order0_.EM_Prpres_Generatepicking as em_prp134_249_ from C_Order order0_ inner join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.IsSOTrx = 'Y' and (documentty2_.DocSubTypeSO like 'OB') and (order0_.Updated > '2026-07-13 18:46:19.137' or order0_.Processed = 'N') and (order0_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and (order0_.AD_Client_ID in ('F1F033983E8740EC81BE7129A38DC0A2', '0')) order by businesspa1_.Name, order0_.C_Order_ID limit '101';
Date: 2026-07-14 18:46:20 Duration: 1s379ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_249_, order0_.AD_Client_ID as ad_clien2_249_, order0_.AD_Org_ID as ad_org_i3_249_, order0_.IsActive as isactive4_249_, order0_.Created as created5_249_, order0_.CreatedBy as createdb6_249_, order0_.Updated as updated7_249_, order0_.UpdatedBy as updatedb8_249_, order0_.IsSOTrx as issotrx9_249_, order0_.DocumentNo as documen10_249_, order0_.DocStatus as docstat11_249_, order0_.DocAction as docacti12_249_, order0_.Processing as process13_249_, order0_.Processed as process14_249_, order0_.C_DocType_ID as c_docty15_249_, order0_.C_DocTypeTarget_ID as c_docty16_249_, order0_.Description as descrip17_249_, order0_.IsDelivered as isdeliv18_249_, order0_.IsInvoiced as isinvoi19_249_, order0_.IsPrinted as isprint20_249_, order0_.IsSelected as isselec21_249_, order0_.SalesRep_ID as salesre22_249_, order0_.DateOrdered as dateord23_249_, order0_.DatePromised as datepro24_249_, order0_.DatePrinted as datepri25_249_, order0_.DateAcct as dateacc26_249_, order0_.C_BPartner_ID as c_bpart27_249_, order0_.BillTo_ID as billto_28_249_, order0_.C_BPartner_Location_ID as c_bpart29_249_, order0_.POReference as porefer30_249_, order0_.IsDiscountPrinted as isdisco31_249_, order0_.C_Currency_ID as c_curre32_249_, order0_.PaymentRule as payment33_249_, order0_.C_PaymentTerm_ID as c_payme34_249_, order0_.InvoiceRule as invoice35_249_, order0_.DeliveryRule as deliver36_249_, order0_.FreightCostRule as freight37_249_, order0_.FreightAmt as freight38_249_, order0_.DeliveryViaRule as deliver39_249_, order0_.M_Shipper_ID as m_shipp40_249_, order0_.C_Charge_ID as c_charg41_249_, order0_.ChargeAmt as chargea42_249_, order0_.PriorityRule as priorit43_249_, order0_.TotalLines as totalli44_249_, order0_.GrandTotal as grandto45_249_, order0_.M_Warehouse_ID as m_wareh46_249_, order0_.M_PriceList_ID as m_price47_249_, order0_.IsTaxIncluded as istaxin48_249_, order0_.C_Campaign_ID as c_campa49_249_, order0_.C_Project_ID as c_proje50_249_, order0_.C_Activity_ID as c_activ51_249_, order0_.Posted as posted52_249_, order0_.AD_User_ID as ad_user53_249_, order0_.CopyFrom as copyfro54_249_, order0_.DropShip_BPartner_ID as dropshi55_249_, order0_.DropShip_Location_ID as dropshi56_249_, order0_.DropShip_User_ID as dropshi57_249_, order0_.IsSelfService as isselfs58_249_, order0_.AD_OrgTrx_ID as ad_orgt59_249_, order0_.User1_ID as user60_249_, order0_.User2_ID as user61_249_, order0_.Deliverynotes as deliver62_249_, order0_.C_Incoterms_ID as c_incot63_249_, order0_.Incotermsdescription as incoter64_249_, order0_.Generatetemplate as generat65_249_, order0_.Delivery_Location_ID as deliver66_249_, order0_.CopyFromPO as copyfro67_249_, order0_.FIN_Paymentmethod_ID as fin_pay68_249_, order0_.FIN_Payment_Priority_ID as fin_pay69_249_, order0_.RM_PickFromShipment as rm_pick70_249_, order0_.RM_ReceiveMaterials as rm_rece71_249_, order0_.RM_CreateInvoice as rm_crea72_249_, order0_.C_Return_Reason_ID as c_retur73_249_, order0_.RM_AddOrphanLine as rm_addo74_249_, order0_.A_Asset_ID as a_asset75_249_, order0_.Calculate_Promotions as calcula76_249_, order0_.C_Costcenter_ID as c_costc77_249_, order0_.Convertquotation as convert78_249_, order0_.C_Reject_Reason_ID as c_rejec79_249_, order0_.validuntil as validun80_249_, order0_.Quotation_ID as quotati81_249_, order0_.SO_Res_Status as so_res_82_249_, order0_.Create_POLines as create_83_249_, order0_.EM_Obdisc_Addpack as em_obdi84_249_, order0_.Iscashvat as iscashv85_249_, order0_.EM_OBMFM_Selectfreight as em_obmf86_249_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_249_, order0_.RM_Pickfromreceipt as rm_pick88_249_, order0_.Cancelandreplace as cancela89_249_, order0_.EM_APRM_AddPayment as em_aprm90_249_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_249_, order0_.Confirmcancelandreplace as confirm92_249_, order0_.EM_OBMFM_Freight_ID as em_obmf93_249_, order0_.EM_Obwpl_Generatepicking as em_obwp94_249_, order0_.Cancelledorder_id as cancell95_249_, order0_.EM_OBMFM_Weight as em_obmf96_249_, order0_.EM_Obwpl_Isinpickinglist as em_obwp97_249_, order0_.EM_Obwpl_Readypl as em_obwp98_249_, order0_.Replacedorder_id as replace99_249_, order0_.EM_Opxmm_Btn_Purch as em_opx100_249_, order0_.Iscancelled as iscanc101_249_, order0_.EM_OBMFM_Weight_Uom_ID as em_obm102_249_, order0_.Replacementorder_ID as replac103_249_, order0_.EM_OBMFM_Set_Weight as em_obm104_249_, order0_.BPartner_ExtRef as bpartn105_249_, order0_.EM_Obpos_Applications_ID as em_obp106_249_, order0_.EM_Obpos_Sendemail as em_obp107_249_, order0_.EM_Obpos_Email_Status as em_obp108_249_, order0_.EM_Obpos_App_Cashup_ID as em_obp109_249_, order0_.EM_Obpos_Createdabsolute as em_obp110_249_, order0_.EM_OBPOS_NotInvoiceOnCashUp as em_obp111_249_, order0_.EM_Obpos_Rejected_Quotat_ID as em_obp112_249_, order0_.EM_Obpos_Isdeleted as em_obp113_249_, order0_.EM_Obpos_Islayaway as em_obp114_249_, order0_.EM_Obpos_Prepaymentamt as em_obp115_249_, order0_.EM_Obpos_Prepaymentlimitamt as em_obp116_249_, order0_.EM_Obpos_Prepaymentlaylimitamt as em_obp117_249_, order0_.EM_Obpos_Rounding_Amount as em_obp118_249_, order0_.EM_Obpos_Sequencename as em_obp119_249_, order0_.EM_Obpos_Sequencenumber as em_obp120_249_, order0_.C_Alternate_Location_ID as c_alte121_249_, order0_.EM_Prpp_Generatepicking as em_prp122_249_, order0_.EM_Prpres_Reference as em_prp123_249_, order0_.EM_Prpres_Void_Order as em_prp124_249_, order0_.EM_Prpres_Gross_Total as em_prp125_249_, order0_.EM_Mntc_Createinvoice as em_mnt126_249_, order0_.EM_Prpres_Net_Total as em_prp127_249_, order0_.EM_Prpres_Isgift as em_prp128_249_, order0_.EM_Prpres_Giftmessage as em_prp129_249_, order0_.EM_Prpres_Id_Cart as em_prp130_249_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp131_249_, order0_.EM_Obpos_Skip_Tax_Calculation as em_obp132_249_, order0_.EM_Prpres_Processing as em_prp133_249_, order0_.EM_Prpres_Generatepicking as em_prp134_249_ from C_Order order0_ inner join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.IsSOTrx = 'Y' and (documentty2_.DocSubTypeSO like 'OB') and (order0_.Updated > '2026-07-13 14:18:05.797' or order0_.Processed = 'N') and (order0_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and (order0_.AD_Client_ID in ('F1F033983E8740EC81BE7129A38DC0A2', '0')) order by businesspa1_.Name, order0_.C_Order_ID limit '101';
Date: 2026-07-14 14:18:06 Duration: 1s91ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1 52s375ms 52s375ms 52s375ms 52s375ms 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 14 07 1 52s375ms 52s375ms [ User: tad - Total duration: 52s375ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 52s375ms - 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-14 07:00:59 Duration: 52s375ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 1 20s420ms 20s420ms 20s420ms 20s420ms 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 14 07 1 20s420ms 20s420ms [ User: tad - Total duration: 20s420ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 20s420ms - 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-14 07:02:11 Duration: 20s420ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 1 18s637ms 18s637ms 18s637ms 18s637ms select obpos_appl3_.name as col_0_0_, organizati4_.name as col_1_0_, organizati4_.ad_org_id as col_2_0_, obpos_appl3_.obpos_applications_id as col_3_0_, product2_.name as col_4_0_, product2_.m_product_id as col_5_0_, to_char(order0_.created, ?) as col_6_0_, to_char(order0_.created, ?) as col_7_0_, sum(orderline1_.qtyordered) as col_8_0_ from c_order order0_ cross join c_orderline orderline1_ cross join m_product product2_ cross join obpos_applications obpos_appl3_ cross join ad_org organizati4_ where obpos_appl3_.ad_client_id = ? and (obpos_appl3_.ad_org_id in (...)) and obpos_appl3_.obpos_applications_id = order0_.em_obpos_applications_id and order0_.ad_org_id = organizati4_.ad_org_id and orderline1_.c_order_id = order0_.c_order_id and product2_.m_product_id = orderline1_.m_product_id and order0_.issotrx = ? and order0_.docstatus = ? and ? = ? group by obpos_appl3_.name, organizati4_.name, obpos_appl3_.obpos_applications_id, organizati4_.ad_org_id, product2_.name, product2_.m_product_id, to_char(order0_.created, ?), to_char(order0_.created, ?) order by to_char(order0_.created, ?), to_char(order0_.created, ?) limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 14 12 1 18s637ms 18s637ms [ User: tad - Total duration: 18s637ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 18s637ms - Times executed: 1 ]
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl3_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit '10';
Date: 2026-07-14 12:48:19 Duration: 18s637ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;
Date: 2026-07-14 12:48:09 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
11 1 16s625ms 16s625ms 16s625ms 16s625ms 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 #11
Day Hour Count Duration Avg duration Jul 14 07 1 16s625ms 16s625ms [ User: tad - Total duration: 16s625ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s625ms - 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-14 07:01:26 Duration: 16s625ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 1 13s228ms 13s228ms 13s228ms 13s228ms 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 #12
Day Hour Count Duration Avg duration Jul 14 07 1 13s228ms 13s228ms [ User: tad - Total duration: 13s228ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s228ms - 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-14 07:03:17 Duration: 13s228ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 1 13s4ms 13s4ms 13s4ms 13s4ms 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 #13
Day Hour Count Duration Avg duration Jul 14 07 1 13s4ms 13s4ms [ User: tad - Total duration: 13s4ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s4ms - 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-14 07:03:33 Duration: 13s4ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 1 12s257ms 12s257ms 12s257ms 12s257ms 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 #14
Day Hour Count Duration Avg duration Jul 14 07 1 12s257ms 12s257ms [ User: tad - Total duration: 12s257ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s257ms - 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-14 07:02:34 Duration: 12s257ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 1 9s804ms 9s804ms 9s804ms 9s804ms 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 #15
Day Hour Count Duration Avg duration Jul 14 07 1 9s804ms 9s804ms [ User: tad - Total duration: 9s804ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s804ms - 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-14 07:02:21 Duration: 9s804ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 1 8s934ms 8s934ms 8s934ms 8s934ms 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 #16
Day Hour Count Duration Avg duration Jul 14 07 1 8s934ms 8s934ms [ User: tad - Total duration: 8s934ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s934ms - 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-14 07:01:42 Duration: 8s934ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 1 7s186ms 7s186ms 7s186ms 7s186ms 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 #17
Day Hour Count Duration Avg duration Jul 14 07 1 7s186ms 7s186ms [ User: tad - Total duration: 7s186ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 7s186ms - 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-14 07:01:33 Duration: 7s186ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 1 6s249ms 6s249ms 6s249ms 6s249ms 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 #18
Day Hour Count Duration Avg duration Jul 14 07 1 6s249ms 6s249ms [ User: tad - Total duration: 6s249ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s249ms - 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-14 07:01:51 Duration: 6s249ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 1 5s714ms 5s714ms 5s714ms 5s714ms 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 #19
Day Hour Count Duration Avg duration Jul 14 07 1 5s714ms 5s714ms [ User: tad - Total duration: 5s714ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s714ms - 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-14 07:02:56 Duration: 5s714ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
20 1 4s787ms 4s787ms 4s787ms 4s787ms 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 #20
Day Hour Count Duration Avg duration Jul 14 07 1 4s787ms 4s787ms [ User: tad - Total duration: 4s787ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s787ms - 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-14 07:01:09 Duration: 4s787ms 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 52s375ms 52s375ms 52s375ms 1 52s375ms 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 14 07 1 52s375ms 52s375ms [ User: tad - Total duration: 52s375ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 52s375ms - 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-14 07:00:59 Duration: 52s375ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
2 3s473ms 1m9s 25s858ms 9 3m52s 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 14 11 1 7s936ms 7s936ms 12 2 7s707ms 3s853ms 13 1 4s217ms 4s217ms 14 3 2m21s 47s70ms 18 1 1m8s 1m8s 19 1 3s473ms 3s473ms [ User: tad - Total duration: 3m52s - Times executed: 9 ]
[ Application: openbravo - Total duration: 3m52s - Times executed: 9 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:31:57 Duration: 1m9s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 18:47:26 Duration: 1m8s 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('1900-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00+00', '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-14 14:19:12 Duration: 1m7s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 20s420ms 20s420ms 20s420ms 1 20s420ms 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 14 07 1 20s420ms 20s420ms [ User: tad - Total duration: 20s420ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 20s420ms - 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-14 07:02:11 Duration: 20s420ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
4 5s521ms 37s955ms 19s899ms 7 2m19s 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 #4
Day Hour Count Duration Avg duration Jul 14 11 1 9s537ms 9s537ms 13 1 6s377ms 6s377ms 14 3 1m21s 27s281ms 18 1 36s15ms 36s15ms 19 1 5s521ms 5s521ms [ User: tad - Total duration: 2m19s - Times executed: 7 ]
[ Application: openbravo - Total duration: 2m19s - Times executed: 7 ]
-
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+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:18:42 Duration: 37s955ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 14:31:25 Duration: 36s859ms 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('2021-01-01 00:00:00+00', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00+00', '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-14 18:46:53 Duration: 36s15ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 18s637ms 18s637ms 18s637ms 1 18s637ms select obpos_appl3_.name as col_0_0_, organizati4_.name as col_1_0_, organizati4_.ad_org_id as col_2_0_, obpos_appl3_.obpos_applications_id as col_3_0_, product2_.name as col_4_0_, product2_.m_product_id as col_5_0_, to_char(order0_.created, ?) as col_6_0_, to_char(order0_.created, ?) as col_7_0_, sum(orderline1_.qtyordered) as col_8_0_ from c_order order0_ cross join c_orderline orderline1_ cross join m_product product2_ cross join obpos_applications obpos_appl3_ cross join ad_org organizati4_ where obpos_appl3_.ad_client_id = ? and (obpos_appl3_.ad_org_id in (...)) and obpos_appl3_.obpos_applications_id = order0_.em_obpos_applications_id and order0_.ad_org_id = organizati4_.ad_org_id and orderline1_.c_order_id = order0_.c_order_id and product2_.m_product_id = orderline1_.m_product_id and order0_.issotrx = ? and order0_.docstatus = ? and ? = ? group by obpos_appl3_.name, organizati4_.name, obpos_appl3_.obpos_applications_id, organizati4_.ad_org_id, product2_.name, product2_.m_product_id, to_char(order0_.created, ?), to_char(order0_.created, ?) order by to_char(order0_.created, ?), to_char(order0_.created, ?) limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 14 12 1 18s637ms 18s637ms [ User: tad - Total duration: 18s637ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 18s637ms - Times executed: 1 ]
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl3_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit '10';
Date: 2026-07-14 12:48:19 Duration: 18s637ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select obpos_appl3_.Name as col_0_0_, organizati4_.Name as col_1_0_, organizati4_.AD_Org_ID as col_2_0_, obpos_appl3_.Obpos_Applications_ID as col_3_0_, product2_.Name as col_4_0_, product2_.M_Product_ID as col_5_0_, to_char(order0_.Created, 'YYYY') as col_6_0_, to_char(order0_.Created, 'MM') as col_7_0_, sum(orderline1_.QtyOrdered) as col_8_0_ from C_Order order0_ cross join C_OrderLine orderline1_ cross join M_Product product2_ cross join OBPOS_APPLICATIONS obpos_appl3_ cross join AD_Org organizati4_ where obpos_appl3_.AD_Client_ID = $1 and (obpos_appl3_.AD_Org_ID in ($2, $3)) and obpos_appl3_.Obpos_Applications_ID = order0_.EM_Obpos_Applications_ID and order0_.AD_Org_ID = organizati4_.AD_Org_ID and orderline1_.C_Order_ID = order0_.C_Order_ID and product2_.M_Product_ID = orderline1_.M_Product_ID and order0_.IsSOTrx = 'Y' and order0_.DocStatus = 'CO' and 1 = 1 group by obpos_appl3_.Name, organizati4_.Name, obpos_appl3_.Obpos_Applications_ID, organizati4_.AD_Org_ID, product2_.Name, product2_.M_Product_ID, to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') order by to_char(order0_.Created, 'YYYY'), to_char(order0_.Created, 'MM') limit $4;
Date: 2026-07-14 12:48:09 Duration: 0ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
6 16s625ms 16s625ms 16s625ms 1 16s625ms 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 #6
Day Hour Count Duration Avg duration Jul 14 07 1 16s625ms 16s625ms [ User: tad - Total duration: 16s625ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s625ms - 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-14 07:01:26 Duration: 16s625ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 13s228ms 13s228ms 13s228ms 1 13s228ms 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 #7
Day Hour Count Duration Avg duration Jul 14 07 1 13s228ms 13s228ms [ User: tad - Total duration: 13s228ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s228ms - 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-14 07:03:17 Duration: 13s228ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
8 13s4ms 13s4ms 13s4ms 1 13s4ms 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 #8
Day Hour Count Duration Avg duration Jul 14 07 1 13s4ms 13s4ms [ User: tad - Total duration: 13s4ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 13s4ms - 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-14 07:03:33 Duration: 13s4ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 12s257ms 12s257ms 12s257ms 1 12s257ms 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 #9
Day Hour Count Duration Avg duration Jul 14 07 1 12s257ms 12s257ms [ User: tad - Total duration: 12s257ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s257ms - 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-14 07:02:34 Duration: 12s257ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 9s804ms 9s804ms 9s804ms 1 9s804ms 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 #10
Day Hour Count Duration Avg duration Jul 14 07 1 9s804ms 9s804ms [ User: tad - Total duration: 9s804ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s804ms - 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-14 07:02:21 Duration: 9s804ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 8s934ms 8s934ms 8s934ms 1 8s934ms 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 #11
Day Hour Count Duration Avg duration Jul 14 07 1 8s934ms 8s934ms [ User: tad - Total duration: 8s934ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s934ms - 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-14 07:01:42 Duration: 8s934ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 7s186ms 7s186ms 7s186ms 1 7s186ms 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 #12
Day Hour Count Duration Avg duration Jul 14 07 1 7s186ms 7s186ms [ User: tad - Total duration: 7s186ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 7s186ms - 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-14 07:01:33 Duration: 7s186ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 6s249ms 6s249ms 6s249ms 1 6s249ms 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 #13
Day Hour Count Duration Avg duration Jul 14 07 1 6s249ms 6s249ms [ User: tad - Total duration: 6s249ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s249ms - 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-14 07:01:51 Duration: 6s249ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 5s714ms 5s714ms 5s714ms 1 5s714ms 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 #14
Day Hour Count Duration Avg duration Jul 14 07 1 5s714ms 5s714ms [ User: tad - Total duration: 5s714ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s714ms - 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-14 07:02:56 Duration: 5s714ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 4s787ms 4s787ms 4s787ms 1 4s787ms 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 #15
Day Hour Count Duration Avg duration Jul 14 07 1 4s787ms 4s787ms [ User: tad - Total duration: 4s787ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s787ms - 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-14 07:01:09 Duration: 4s787ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 3s902ms 10s849ms 4s768ms 180 14m18s 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 #16
Day Hour Count Duration Avg duration Jul 14 07 12 59s557ms 4s963ms 08 12 56s539ms 4s711ms 09 12 1m 5s42ms 10 12 58s25ms 4s835ms 11 12 57s966ms 4s830ms 12 12 57s565ms 4s797ms 13 12 57s981ms 4s831ms 14 12 58s232ms 4s852ms 15 12 56s43ms 4s670ms 16 12 55s421ms 4s618ms 17 12 56s736ms 4s728ms 18 12 57s204ms 4s767ms 19 12 57s504ms 4s792ms 20 12 55s773ms 4s647ms 21 12 53s226ms 4s435ms [ User: tad - Total duration: 14m18s - Times executed: 180 ]
[ Application: openbravo - Total duration: 14m18s - Times executed: 180 ]
-
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-14 09:00:10 Duration: 10s849ms 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-14 07:00:08 Duration: 8s462ms 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-14 19:00:08 Duration: 8s74ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3s732ms 6s442ms 4s316ms 180 12m57s 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 #17
Day Hour Count Duration Avg duration Jul 14 07 12 55s847ms 4s653ms 08 12 49s604ms 4s133ms 09 12 49s476ms 4s123ms 10 12 54s655ms 4s554ms 11 12 51s258ms 4s271ms 12 12 52s660ms 4s388ms 13 12 50s667ms 4s222ms 14 12 52s77ms 4s339ms 15 12 49s649ms 4s137ms 16 12 52s876ms 4s406ms 17 12 52s623ms 4s385ms 18 12 51s262ms 4s271ms 19 12 51s707ms 4s308ms 20 12 50s558ms 4s213ms 21 12 52s126ms 4s343ms [ User: tad - Total duration: 12m57s - Times executed: 180 ]
[ Application: openbravo - Total duration: 12m57s - Times executed: 180 ]
-
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-14 07:00:15 Duration: 6s442ms 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-14 07:05:11 Duration: 5s942ms 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-14 14:00:12 Duration: 5s669ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 4s51ms 4s51ms 4s51ms 1 4s51ms 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 #18
Day Hour Count Duration Avg duration Jul 14 07 1 4s51ms 4s51ms [ User: tad - Total duration: 4s51ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s51ms - 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-14 07:03:00 Duration: 4s51ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 1s648ms 6s613ms 1s976ms 90 2m57s 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 14 07 6 12s456ms 2s76ms 08 6 11s529ms 1s921ms 09 6 16s239ms 2s706ms 10 6 12s300ms 2s50ms 11 6 11s584ms 1s930ms 12 6 11s934ms 1s989ms 13 6 11s11ms 1s835ms 14 6 10s766ms 1s794ms 15 6 11s618ms 1s936ms 16 6 11s272ms 1s878ms 17 6 11s492ms 1s915ms 18 6 11s499ms 1s916ms 19 6 11s995ms 1s999ms 20 6 11s53ms 1s842ms 21 6 11s171ms 1s861ms [ User: tad - Total duration: 2m57s - Times executed: 90 ]
[ Application: openbravo - Total duration: 2m57s - Times executed: 90 ]
-
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-14 09:00:06 Duration: 6s613ms 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-14 07:00:03 Duration: 3s261ms 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-14 10:00:03 Duration: 2s945ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s419ms 3s575ms 1s882ms 15 28s240ms select profile.take_sample ();Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 14 07 1 1s884ms 1s884ms 08 1 1s877ms 1s877ms 09 1 3s575ms 3s575ms 10 1 2s46ms 2s46ms 11 1 1s554ms 1s554ms 12 1 2s128ms 2s128ms 13 1 1s781ms 1s781ms 14 1 1s675ms 1s675ms 15 1 1s986ms 1s986ms 16 1 1s668ms 1s668ms 17 1 1s538ms 1s538ms 18 1 1s672ms 1s672ms 19 1 1s888ms 1s888ms 20 1 1s544ms 1s544ms 21 1 1s419ms 1s419ms [ User: postgres - Total duration: 28s240ms - Times executed: 15 ]
[ Application: psql - Total duration: 28s240ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:05 Duration: 3s575ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 12:00:03 Duration: 2s128ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 10:00:03 Duration: 2s46ms 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
- 33,673 Log entries
Events distribution
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
Errors per 5 minutes
NO DATASET
Most Frequent Errors/Events
Key values
- 0 Max number of times the same event was reported
- 0 Total events found
Rank Times reported Error NO DATASET