-
Global information
- Generated on Thu Jul 16 20:00:08 2026
- Log file: /var/log/postgresql/postgresql-12-main.log
- Parsed 61,411 log entries in 7s
- Log start from 2026-07-16 07:00:01 to 2026-07-16 20:00:07
-
Overview
Global Stats
- 35 Number of unique normalized queries
- 467 Number of queries
- 38m1s Total query duration
- 2026-07-16 07:00:03 First query
- 2026-07-16 20:00:03 Last query
- 2 queries/s at 2026-07-16 09:00:04 Query peak
- 38m1s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 38m1s 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
- 165 Total number of automatic vacuums
- 208 Total number of automatic analyzes
- 439 Number temporary file
- 453.77 MiB Max size of temporary file
- 55.94 MiB Average size of temporary file
- 8,999 Total number of sessions
- 5 sessions at 2026-07-16 09:00:02 Session peak
- 1d18h52m43s Total duration of sessions
- 17s153ms Average duration of sessions
- 0 Average queries per session
- 253ms Average queries duration per session
- 8,997 Total number of connections
- 9 connections/s at 2026-07-16 15:15:27 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-16 09:00:04 Date
SELECT Traffic
Key values
- 0 queries/s Query Peak
- Date
INSERT/UPDATE/DELETE Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-16 13:00:03 Date
Queries duration
Key values
- 38m1s 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 16 07 53 0ms 49s947ms 6s56ms 12s860ms 46s544ms 1m9s 08 39 0ms 10s121ms 4s452ms 11s866ms 15s301ms 23s825ms 09 35 0ms 8s560ms 4s104ms 10s711ms 12s40ms 23s493ms 10 37 0ms 1m12s 6s719ms 11s698ms 16s591ms 1m12s 11 38 0ms 1m6s 6s408ms 11s483ms 14s34ms 1m39s 12 33 0ms 6s691ms 4s20ms 10s272ms 11s865ms 14s841ms 13 33 0ms 8s948ms 4s79ms 10s198ms 11s716ms 19s984ms 14 38 0ms 1m14s 6s801ms 10s809ms 14s682ms 1m14s 15 35 0ms 7s786ms 4s78ms 10s510ms 11s24ms 26s188ms 16 31 0ms 6s915ms 3s958ms 10s440ms 11s583ms 15s669ms 17 31 0ms 5s697ms 3s839ms 10s385ms 10s518ms 14s207ms 18 31 0ms 6s8ms 3s717ms 10s214ms 10s894ms 13s933ms 19 31 0ms 6s683ms 3s876ms 10s393ms 11s515ms 14s367ms 20 2 2s375ms 3s257ms 2s816ms 5s633ms 5s633ms 5s633ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 19 0 4s16ms 4s259ms 6s522ms 7s749ms 08 27 0 4s420ms 4s286ms 8s44ms 18s580ms 09 21 0 4s191ms 4s193ms 6s572ms 12s40ms 10 25 0 7s860ms 4s437ms 7s12ms 37s708ms 11 26 0 7s285ms 4s444ms 6s815ms 14s787ms 12 21 0 3s808ms 4s316ms 6s617ms 9s361ms 13 21 0 3s945ms 4s235ms 6s411ms 9s576ms 14 26 0 7s986ms 4s939ms 6s547ms 51s630ms 15 23 0 3s924ms 4s267ms 6s582ms 10s308ms 16 19 0 3s694ms 4s126ms 6s497ms 7s154ms 17 19 0 3s570ms 4s34ms 6s490ms 7s21ms 18 19 0 3s494ms 3s989ms 6s331ms 6s523ms 19 19 0 3s608ms 4s106ms 6s308ms 7s40ms 20 2 0 2s816ms 5s633ms 5s633ms 5s633ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 0 12 0 0 4s994ms 0ms 3s954ms 5s110ms 08 0 12 0 0 4s525ms 0ms 3s937ms 4s965ms 09 0 12 0 0 4s362ms 0ms 3s965ms 4s722ms 10 0 12 0 0 4s343ms 0ms 3s925ms 4s766ms 11 0 12 0 0 4s508ms 0ms 3s879ms 4s909ms 12 0 12 0 0 4s391ms 0ms 3s915ms 4s913ms 13 0 12 0 0 4s315ms 0ms 3s928ms 4s797ms 14 0 12 0 0 4s232ms 0ms 3s926ms 4s466ms 15 0 12 0 0 4s373ms 0ms 3s853ms 4s862ms 16 0 12 0 0 4s377ms 0ms 3s873ms 4s873ms 17 0 12 0 0 4s265ms 0ms 3s894ms 4s675ms 18 0 12 0 0 4s71ms 0ms 3s823ms 4s250ms 19 0 12 0 0 4s301ms 0ms 3s946ms 4s649ms 20 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 16 07 0 30 30.00 0.00% 08 0 38 38.00 0.00% 09 0 34 34.00 0.00% 10 0 36 36.00 0.00% 11 0 37 37.00 0.00% 12 0 32 32.00 0.00% 13 0 32 32.00 0.00% 14 0 37 37.00 0.00% 15 0 34 34.00 0.00% 16 0 30 30.00 0.00% 17 0 30 30.00 0.00% 18 0 30 30.00 0.00% 19 0 30 30.00 0.00% 20 0 1 1.00 0.00% Day Hour Count Average / Second Jul 16 07 698 0.19/s 08 699 0.19/s 09 701 0.19/s 10 697 0.19/s 11 699 0.19/s 12 698 0.19/s 13 697 0.19/s 14 697 0.19/s 15 697 0.19/s 16 698 0.19/s 17 667 0.19/s 18 667 0.19/s 19 667 0.19/s 20 15 0.00/s Day Hour Count Average Duration Jul 16 07 700 21s548ms 08 699 8s137ms 09 701 48s709ms 10 697 19ms 11 699 1m56s 12 698 2s845ms 13 697 20ms 14 697 19ms 15 697 19ms 16 698 22s617ms 17 667 18ms 18 667 18ms 19 667 18ms 20 15 313ms -
Connections
Established Connections
Key values
- 9 connections Connection Peak
- 2026-07-16 15:15:27 Date
Connections per database
Key values
- openbravo Main Database
- 8,997 connections Total
Connections per user
Key values
- postgres Main User
- 8,997 connections Total
-
Sessions
Simultaneous sessions
Key values
- 5 sessions Session Peak
- 2026-07-16 09:00:02 Date
Histogram of session times
Key values
- 8,953 0-500ms duration
Sessions per database
Key values
- openbravo Main Database
- 8,999 sessions Total
Sessions per user
Key values
- postgres Main User
- 8,999 sessions Total
Sessions per host
Key values
- [local] Main Host
- 8,999 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 10,557 buffers Checkpoint Peak
- 2026-07-16 09:08:01 Date
- 269.817 seconds Highest write time
- 0.026 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-16 10:06:03 Date
Checkpoints distance
Key values
- 157.76 Mo Distance Peak
- 2026-07-16 09:08:01 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 16 07 2,537 255.768s 0.016s 255.838s 08 4,000 402.104s 0.047s 402.205s 09 13,997 615.675s 0.029s 615.788s 10 7,326 709.324s 0.034s 709.417s 11 3,953 398.168s 0.024s 398.253s 12 6,389 642.417s 0.025s 642.494s 13 5,084 513.528s 0.033s 513.625s 14 8,347 841.217s 0.041s 841.309s 15 5,588 561.114s 0.025s 561.186s 16 6,860 690.583s 0.042s 690.69s 17 2,031 207.577s 0.015s 207.644s 18 2,232 224.563s 0.013s 224.632s 19 1,677 169.349s 0.014s 169.419s 20 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 16 07 0 1 0 240 0.003s 0.012s 08 0 1 0 961 0.003s 0.012s 09 0 7 0 1,546 0.002s 0.012s 10 0 3 0 1,472 0.002s 0.012s 11 0 2 0 1,230 0.002s 0.012s 12 0 3 0 1,926 0.002s 0.012s 13 0 2 0 1,826 0.002s 0.012s 14 0 4 0 1,649 0.002s 0.012s 15 0 2 0 1,622 0.002s 0.011s 16 0 3 0 1,907 0.002s 0.013s 17 0 1 0 234 0.002s 0.011s 18 0 1 0 216 0.001s 0.012s 19 0 1 0 202 0.002s 0.012s 20 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 16 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s Day Hour Mean distance Mean estimate Jul 16 07 1,350.58 kB 7,194.75 kB 08 2,461.58 kB 7,897.92 kB 09 8,700.25 kB 49,270.42 kB 10 4,628.25 kB 17,886.50 kB 11 2,357.17 kB 9,393.08 kB 12 3,701.83 kB 9,644.75 kB 13 2,954.17 kB 8,357.83 kB 14 5,049.42 kB 9,788.83 kB 15 3,504.27 kB 10,475.64 kB 16 3,681.85 kB 10,739.38 kB 17 1,452.55 kB 8,658.91 kB 18 1,421.83 kB 7,699.42 kB 19 1,056.00 kB 6,763.83 kB 20 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 453.77 MiB Temp Files size Peak
- 2026-07-16 14:40:18 Date
Number of temporary files
Key values
- 8 per second Temp Files Peak
- 2026-07-16 11:35:45 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 16 07 24 1.38 GiB 58.91 MiB 08 27 1.43 GiB 54.18 MiB 09 25 1.40 GiB 57.21 MiB 10 63 3.34 GiB 54.26 MiB 11 64 3.35 GiB 53.67 MiB 12 25 1.40 GiB 57.21 MiB 13 25 1.40 GiB 57.21 MiB 14 64 3.35 GiB 53.67 MiB 15 26 1.41 GiB 55.65 MiB 16 24 1.38 GiB 58.92 MiB 17 24 1.38 GiB 58.92 MiB 18 24 1.38 GiB 58.92 MiB 19 24 1.38 GiB 58.92 MiB 20 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 64 2.40 GiB 11.09 MiB 453.77 MiB 38.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)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet14_.taxamt) from c_orderlinetax orderlinet14_ where orderlinet14_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join c_bpartner businesspa6_ on order5_.c_bpartner_id = businesspa6_.c_bpartner_id left outer join m_product_category productcat7_ on product4_.m_product_category_id = productcat7_.m_product_category_id left outer join obpos_applications obpos_appl8_ on order5_.em_obpos_applications_id = obpos_appl8_.obpos_applications_id left outer join ad_org organizati9_ on order5_.ad_org_id = organizati9_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl8_.ad_client_id = ? and (obpos_appl8_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati9_.name, organizati9_.ad_org_id, businesspa6_.name, businesspa6_.c_bpartner_id order by col_7_0_ desc, col_4_0_ desc, organizati9_.name, businesspa6_.name limit ?;-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 14:40:51 Duration: 43s744ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 10:26:26 Duration: 37s708ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 11:36:06 Duration: 33s542ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
2 63 3.64 GiB 10.51 MiB 258.71 MiB 59.11 MiB select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 14:41:22 Duration: 1m14s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 10:27:01 Duration: 1m12s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 11:36:39 Duration: 1m6s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
3 156 8.98 GiB 58.91 MiB 58.92 MiB 58.92 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-16 07:05:15 Duration: 9s344ms 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-16 07:00:14 Duration: 6s100ms 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-16 09:30:10 Duration: 5s401ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo
4 156 8.98 GiB 58.91 MiB 58.92 MiB 58.92 MiB select * from ( select f.c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;
Date: 2026-07-16 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.77 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-16 14:40:18 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 453.74 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-16 11:35:41 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 453.72 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-16 10:25:59 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 258.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-16 14:41:23 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 258.70 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-16 10:27:01 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 258.70 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-16 11:36:39 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 228.25 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-16 14:40:23 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 228.25 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-16 11:35:45 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 228.24 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-16 10:26:03 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 226.63 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-16 14:40:28 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 226.61 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-16 10:26:07 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 226.61 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-16 11:35:48 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 225.88 MiB select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = $1 and (obpos_appl7_.AD_Org_ID in ($2, $3)) and order5_.Created > to_date($4, 'YYYY-MM-DD') and order5_.Created & lt; to_date($5, 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit $6;[ Date: 2026-07-16 14:40:25 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 225.83 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-16 11:35:46 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 225.82 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-16 10:26:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 93.29 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-16 14:40:52 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 93.28 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-16 11:36:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 93.27 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-16 10:26:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 58.92 MiB SELECT * FROM ( select f.c_invoice_id as referencekey_id, ;[ Date: 2026-07-16 13:45:04 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 58.92 MiB UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);[ Date: 2026-07-16 13:45:08 - 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 (39) Main table analyzed (database openbravo)
- 208 analyzes Total
Table Number of analyzes openbravo.public.ad_pinstance_para 39 openbravo.public.c_import_entry 27 openbravo.public.ad_session 20 openbravo.profile.last_stat_indexes_srv1 13 openbravo.profile.last_stat_tables_srv1 13 openbravo.profile.last_stat_user_functions_srv1 13 openbravo.profile.last_stat_statements_srv1 13 openbravo.public.ad_process_request 8 openbravo.public.ad_pinstance 7 openbravo.public.prpres_conf 6 openbravo.profile.stmt_list 6 openbravo.profile.tables_list 5 openbravo.public.obpos_applications 5 openbravo.profile.funcs_list 4 openbravo.public.ad_ep_instance_para 4 openbravo.profile.indexes_list 4 openbravo.profile.last_stat_activity_count_srv1 3 openbravo.profile.last_extension_versions 3 openbravo.public.ad_sequence 2 openbravo.profile.sample_stat_tables 2 openbravo.profile.sample_stat_indexes 2 openbravo.profile.sample_statements 2 openbravo.profile.sample_stat_user_functions 2 openbravo.profile.sample_stat_tables_total 1 openbravo.public.fin_financial_account 1 openbravo.profile.sample_stat_indexes_total 1 openbravo.profile.sample_stat_database 1 openbravo.profile.sample_statements_total 1 Total 208 Vacuums per table
Key values
- public.ad_pinstance_para (31) Main table vacuumed on database openbravo
- 165 vacuums Total
Table Number of vacuums Index scans openbravo.public.ad_pinstance_para 31 31 openbravo.profile.last_stat_indexes_srv1 21 13 openbravo.profile.last_stat_user_functions_srv1 21 13 openbravo.profile.last_stat_statements_srv1 21 13 openbravo.profile.last_stat_tables_srv1 21 13 openbravo.public.c_import_entry 13 13 openbravo.pg_toast.pg_toast_70826 8 8 openbravo.profile.stmt_list 5 5 openbravo.profile.funcs_list 4 4 openbravo.profile.tables_list 4 4 openbravo.profile.indexes_list 3 3 openbravo.public.ad_pinstance 3 3 openbravo.public.ad_ep_instance_para 3 3 openbravo.profile.last_stat_activity_count_srv1 2 0 openbravo.profile.last_extension_versions 2 2 openbravo.pg_toast.pg_toast_2619 1 1 openbravo.profile.last_stat_database_srv1 1 1 openbravo.pg_catalog.pg_statistic 1 1 Total 165 131 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (71965) Main table with removed tuples on database openbravo
- 144970 tuples Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.profile.last_stat_indexes_srv1 21 13 71965 110 openbravo.profile.last_stat_tables_srv1 21 13 44305 0 openbravo.profile.last_stat_statements_srv1 21 13 14990 116 openbravo.profile.last_stat_user_functions_srv1 21 13 5187 5 openbravo.public.ad_pinstance_para 31 31 4321 57 openbravo.pg_catalog.pg_statistic 1 1 929 0 openbravo.public.c_import_entry 13 13 678 63 openbravo.pg_toast.pg_toast_70826 8 8 611 156 openbravo.profile.stmt_list 5 5 393 0 openbravo.public.ad_pinstance 3 3 354 0 openbravo.profile.tables_list 4 4 278 0 openbravo.public.ad_ep_instance_para 3 3 250 7 openbravo.pg_toast.pg_toast_2619 1 1 238 0 openbravo.profile.funcs_list 4 4 187 0 openbravo.profile.indexes_list 3 3 128 0 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.profile.last_stat_activity_count_srv1 2 0 40 2 openbravo.profile.last_stat_database_srv1 1 1 12 0 Total 165 131 144,970 516 Pages removed per table
Key values
- pg_toast.pg_toast_70826 (156) Main table with removed pages on database openbravo
- 516 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed openbravo.pg_toast.pg_toast_70826 8 8 611 156 openbravo.profile.last_stat_statements_srv1 21 13 14990 116 openbravo.profile.last_stat_indexes_srv1 21 13 71965 110 openbravo.public.c_import_entry 13 13 678 63 openbravo.public.ad_pinstance_para 31 31 4321 57 openbravo.public.ad_ep_instance_para 3 3 250 7 openbravo.profile.last_stat_user_functions_srv1 21 13 5187 5 openbravo.profile.last_stat_activity_count_srv1 2 0 40 2 openbravo.pg_toast.pg_toast_2619 1 1 238 0 openbravo.profile.stmt_list 5 5 393 0 openbravo.profile.last_extension_versions 2 2 104 0 openbravo.profile.funcs_list 4 4 187 0 openbravo.profile.last_stat_database_srv1 1 1 12 0 openbravo.profile.tables_list 4 4 278 0 openbravo.profile.last_stat_tables_srv1 21 13 44305 0 openbravo.profile.indexes_list 3 3 128 0 openbravo.public.ad_pinstance 3 3 354 0 openbravo.pg_catalog.pg_statistic 1 1 929 0 Total 165 131 144,970 516 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 16 07 31 5 08 5 12 09 16 22 10 11 23 11 9 14 12 21 26 13 13 14 14 15 21 15 13 25 16 14 20 17 6 10 18 7 10 19 4 6 20 0 0 - 0 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 287 Total read queries
- 156 Total write queries
Queries by database
Key values
- openbravo Main database
- 467 Requests
- 38m1s (openbravo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 453 Requests
User Request type Count Duration postgres Total 14 25s682ms SELECT 14 25s682ms tad Total 453 37m36s COPY 22 3m4s SELECT 273 23m3s UPDATE 156 11m24s others 2 3s301ms Duration by user
Key values
- 37m36s (tad) Main time consuming user
User Request type Count Duration postgres Total 14 25s682ms SELECT 14 25s682ms tad Total 453 37m36s COPY 22 3m4s SELECT 273 23m3s UPDATE 156 11m24s others 2 3s301ms Queries by host
Key values
- 127.0.0.1 Main host
- 453 Requests
- 37m36s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 431 Requests
- 34m31s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-16 09:28:46 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 454 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 1m14s select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';[ Date: 2026-07-16 14:41:22 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 1m12s select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';[ Date: 2026-07-16 10:27:01 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 1m6s select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';[ Date: 2026-07-16 11:36:39 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 49s947ms 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-16 07:00:57 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
5 43s744ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';[ Date: 2026-07-16 14:40:51 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 37s708ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';[ Date: 2026-07-16 10:26:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 33s542ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';[ Date: 2026-07-16 11:36:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 18s825ms 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-16 07:02:05 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
9 16s613ms 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-16 07:01:23 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
10 12s214ms 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-16 07:03:20 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
11 12s97ms 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-16 07:03:06 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
12 10s810ms 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-16 07:02:26 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
13 10s121ms select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2024-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2025-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '50';[ Date: 2026-07-16 08:29:36 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 9s344ms 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-16 07:05:15 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 9s231ms 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-16 07:02:15 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
16 8s948ms 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-16 13:00:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 8s582ms select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2026-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2026-07-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '50';[ Date: 2026-07-16 08:29:34 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 8s560ms 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-16 09:00:08 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 8s293ms 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-16 07:01:38 - Database: openbravo - User: tad - Remote: 127.0.0.1 - Application: pg_dump ]
20 8s244ms 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-16 08:30: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 12m26s 156 3s966ms 8s948ms 4s787ms 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 16 07 12 1m 5s61ms 08 12 1m1s 5s146ms 09 12 59s394ms 4s949ms 10 12 58s787ms 4s898ms 11 12 55s802ms 4s650ms 12 12 57s303ms 4s775ms 13 12 58s648ms 4s887ms 14 12 55s985ms 4s665ms 15 12 57s608ms 4s800ms 16 12 56s385ms 4s698ms 17 12 54s909ms 4s575ms 18 12 53s707ms 4s475ms 19 12 55s836ms 4s653ms [ User: tad - Total duration: 12m26s - Times executed: 156 ]
[ Application: openbravo - Total duration: 12m26s - Times executed: 156 ]
-
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-16 13:00:08 Duration: 8s948ms 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-16 09:00:08 Duration: 8s560ms 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-16 08:30:08 Duration: 8s244ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 11m24s 156 3s810ms 9s344ms 4s389ms 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 16 07 12 59s934ms 4s994ms 08 12 54s305ms 4s525ms 09 12 52s351ms 4s362ms 10 12 52s123ms 4s343ms 11 12 54s99ms 4s508ms 12 12 52s693ms 4s391ms 13 12 51s783ms 4s315ms 14 12 50s794ms 4s232ms 15 12 52s480ms 4s373ms 16 12 52s531ms 4s377ms 17 12 51s191ms 4s265ms 18 12 48s852ms 4s71ms 19 12 51s612ms 4s301ms [ User: tad - Total duration: 11m24s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m24s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-16 07:05:15 Duration: 9s344ms 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-16 07:00:14 Duration: 6s100ms 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-16 09:30:10 Duration: 5s401ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 4m29s 16 3s119ms 1m14s 16s850ms 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 16 08 3 17s418ms 5s806ms 09 1 4s946ms 4s946ms 10 2 1m16s 38s135ms 11 3 1m14s 24s762ms 12 1 3s612ms 3s612ms 13 1 3s649ms 3s649ms 14 3 1m21s 27s249ms 15 2 7s668ms 3s834ms [ User: tad - Total duration: 4m29s - Times executed: 16 ]
[ Application: openbravo - Total duration: 4m29s - Times executed: 16 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 14:41:22 Duration: 1m14s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 10:27:01 Duration: 1m12s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 11:36:39 Duration: 1m6s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 3m19s 16 5s388ms 43s744ms 12s449ms 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 16 08 3 23s110ms 7s703ms 09 1 7s93ms 7s93ms 10 2 44s97ms 22s48ms 11 3 45s477ms 15s159ms 12 1 5s748ms 5s748ms 13 1 5s927ms 5s927ms 14 3 55s887ms 18s629ms 15 2 11s855ms 5s927ms [ User: tad - Total duration: 3m19s - Times executed: 16 ]
[ Application: openbravo - Total duration: 3m19s - Times executed: 16 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 14:40:51 Duration: 43s744ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 10:26:26 Duration: 37s708ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 11:36:06 Duration: 33s542ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2m38s 79 1s692ms 4s884ms 2s9ms 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 #5
Day Hour Count Duration Avg duration Jul 16 07 6 13s470ms 2s245ms 08 6 12s663ms 2s110ms 09 6 13s962ms 2s327ms 10 6 11s956ms 1s992ms 11 6 11s132ms 1s855ms 12 6 11s680ms 1s946ms 13 6 12s632ms 2s105ms 14 6 10s972ms 1s828ms 15 6 11s334ms 1s889ms 16 6 11s905ms 1s984ms 17 6 11s454ms 1s909ms 18 6 11s235ms 1s872ms 19 6 11s103ms 1s850ms 20 1 3s257ms 3s257ms [ User: tad - Total duration: 2m38s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m38s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-16 09:00:05 Duration: 4s884ms 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-16 13:00:03 Duration: 3s793ms 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-16 07:00:03 Duration: 3s728ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 49s947ms 1 49s947ms 49s947ms 49s947ms 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 16 07 1 49s947ms 49s947ms [ User: tad - Total duration: 49s947ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 49s947ms - 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-16 07:00:57 Duration: 49s947ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 25s682ms 14 1s457ms 2s619ms 1s834ms select profile.take_sample ();Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 07 1 2s101ms 2s101ms 08 1 1s816ms 1s816ms 09 1 2s619ms 2s619ms 10 1 1s634ms 1s634ms 11 1 1s562ms 1s562ms 12 1 1s629ms 1s629ms 13 1 1s993ms 1s993ms 14 1 1s673ms 1s673ms 15 1 1s807ms 1s807ms 16 1 1s901ms 1s901ms 17 1 1s483ms 1s483ms 18 1 1s457ms 1s457ms 19 1 1s628ms 1s628ms 20 1 2s375ms 2s375ms [ User: postgres - Total duration: 25s682ms - Times executed: 14 ]
[ Application: psql - Total duration: 25s682ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-16 09:00:04 Duration: 2s619ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 20:00:03 Duration: 2s375ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 07:00:03 Duration: 2s101ms Database: openbravo User: postgres Remote: [local] Application: psql
8 18s825ms 1 18s825ms 18s825ms 18s825ms 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 16 07 1 18s825ms 18s825ms [ User: tad - Total duration: 18s825ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 18s825ms - 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-16 07:02:05 Duration: 18s825ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 16s613ms 1 16s613ms 16s613ms 16s613ms copy public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 07 1 16s613ms 16s613ms [ User: tad - Total duration: 16s613ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s613ms - 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-16 07:01:23 Duration: 16s613ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 12s214ms 1 12s214ms 12s214ms 12s214ms 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 #10
Day Hour Count Duration Avg duration Jul 16 07 1 12s214ms 12s214ms [ User: tad - Total duration: 12s214ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s214ms - 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-16 07:03:20 Duration: 12s214ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 12s97ms 1 12s97ms 12s97ms 12s97ms 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 16 07 1 12s97ms 12s97ms [ User: tad - Total duration: 12s97ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s97ms - 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-16 07:03:06 Duration: 12s97ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 10s810ms 1 10s810ms 10s810ms 10s810ms copy public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 07 1 10s810ms 10s810ms [ User: tad - Total duration: 10s810ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 10s810ms - 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-16 07:02:26 Duration: 10s810ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 9s231ms 1 9s231ms 9s231ms 9s231ms copy public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 07 1 9s231ms 9s231ms [ User: tad - Total duration: 9s231ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s231ms - 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-16 07:02:15 Duration: 9s231ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 8s293ms 1 8s293ms 8s293ms 8s293ms copy public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) to stdout;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 07 1 8s293ms 8s293ms [ User: tad - Total duration: 8s293ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s293ms - 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-16 07:01:38 Duration: 8s293ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 6s679ms 1 6s679ms 6s679ms 6s679ms copy public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) to stdout;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 07 1 6s679ms 6s679ms [ User: tad - Total duration: 6s679ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s679ms - 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-16 07:01:29 Duration: 6s679ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 5s842ms 1 5s842ms 5s842ms 5s842ms copy public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 07 1 5s842ms 5s842ms [ User: tad - Total duration: 5s842ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s842ms - 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-16 07:01:46 Duration: 5s842ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 5s528ms 1 5s528ms 5s528ms 5s528ms copy public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 07 1 5s528ms 5s528ms [ User: tad - Total duration: 5s528ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s528ms - 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-16 07:02:46 Duration: 5s528ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 4s199ms 1 4s199ms 4s199ms 4s199ms copy public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) to stdout;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 07 1 4s199ms 4s199ms [ User: tad - Total duration: 4s199ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s199ms - 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-16 07:01:06 Duration: 4s199ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 4s51ms 3 1s153ms 1s509ms 1s350ms 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 #19
Day Hour Count Duration Avg duration Jul 16 10 1 1s509ms 1s509ms 11 1 1s153ms 1s153ms 14 1 1s388ms 1s388ms [ User: tad - Total duration: 4s51ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s51ms - Times executed: 3 ]
-
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-15 10:25:51.084' 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-16 10:25:52 Duration: 1s509ms 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-15 14:40:09.522' 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-16 14:40:10 Duration: 1s388ms 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-15 11:35:35.156' 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-16 11:35:36 Duration: 1s153ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 3s796ms 1 3s796ms 3s796ms 3s796ms 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 16 07 1 3s796ms 3s796ms [ User: tad - Total duration: 3s796ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s796ms - 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-16 07:02:49 Duration: 3s796ms 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 156 12m26s 3s966ms 8s948ms 4s787ms 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 16 07 12 1m 5s61ms 08 12 1m1s 5s146ms 09 12 59s394ms 4s949ms 10 12 58s787ms 4s898ms 11 12 55s802ms 4s650ms 12 12 57s303ms 4s775ms 13 12 58s648ms 4s887ms 14 12 55s985ms 4s665ms 15 12 57s608ms 4s800ms 16 12 56s385ms 4s698ms 17 12 54s909ms 4s575ms 18 12 53s707ms 4s475ms 19 12 55s836ms 4s653ms [ User: tad - Total duration: 12m26s - Times executed: 156 ]
[ Application: openbravo - Total duration: 12m26s - Times executed: 156 ]
-
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-16 13:00:08 Duration: 8s948ms 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-16 09:00:08 Duration: 8s560ms 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-16 08:30:08 Duration: 8s244ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 156 11m24s 3s810ms 9s344ms 4s389ms 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 16 07 12 59s934ms 4s994ms 08 12 54s305ms 4s525ms 09 12 52s351ms 4s362ms 10 12 52s123ms 4s343ms 11 12 54s99ms 4s508ms 12 12 52s693ms 4s391ms 13 12 51s783ms 4s315ms 14 12 50s794ms 4s232ms 15 12 52s480ms 4s373ms 16 12 52s531ms 4s377ms 17 12 51s191ms 4s265ms 18 12 48s852ms 4s71ms 19 12 51s612ms 4s301ms [ User: tad - Total duration: 11m24s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m24s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-16 07:05:15 Duration: 9s344ms 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-16 07:00:14 Duration: 6s100ms 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-16 09:30:10 Duration: 5s401ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 79 2m38s 1s692ms 4s884ms 2s9ms 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 16 07 6 13s470ms 2s245ms 08 6 12s663ms 2s110ms 09 6 13s962ms 2s327ms 10 6 11s956ms 1s992ms 11 6 11s132ms 1s855ms 12 6 11s680ms 1s946ms 13 6 12s632ms 2s105ms 14 6 10s972ms 1s828ms 15 6 11s334ms 1s889ms 16 6 11s905ms 1s984ms 17 6 11s454ms 1s909ms 18 6 11s235ms 1s872ms 19 6 11s103ms 1s850ms 20 1 3s257ms 3s257ms [ User: tad - Total duration: 2m38s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m38s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-16 09:00:05 Duration: 4s884ms 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-16 13:00:03 Duration: 3s793ms 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-16 07:00:03 Duration: 3s728ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 16 4m29s 3s119ms 1m14s 16s850ms select organizati8_.name as col_0_0_, organizati8_.ad_org_id as col_1_0_, product4_.m_product_id as col_2_0_, product4_.name as col_3_0_, sum(orderline3_.qtyordered) as col_4_0_, round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) as col_5_0_, case when round(sum(orderline3_.qtyordered * (orderline3_.grosspricelist - orderline3_.gross_unit_price)), ?) = ? then ? else case when sum(orderline3_.grosspricelist) = ? then ? else round(sum(orderline3_.grosspricelist - orderline3_.gross_unit_price) / sum(orderline3_.grosspricelist) * ?, ?) end end as col_6_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet9_.taxamt) from c_orderlinetax orderlinet9_ where orderlinet9_.c_orderline_id = orderline3_.c_orderline_id)), ?) as col_7_0_, round(sum(transactio0_.cost), ?) as col_8_0_, case when round(sum(transactio0_.cost), ?) > ? then round(sum(orderline3_.linenetamt + ( select sum(orderlinet10_.taxamt) from c_orderlinetax orderlinet10_ where orderlinet10_.c_orderline_id = orderline3_.c_orderline_id)) / sum(transactio0_.cost), ?) else null end as col_9_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet11_.taxamt) from c_orderlinetax orderlinet11_ where orderlinet11_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost), ?) as col_10_0_, round(sum(orderline3_.linenetamt + ( select sum(orderlinet12_.taxamt) from c_orderlinetax orderlinet12_ where orderlinet12_.c_orderline_id = orderline3_.c_orderline_id) - transactio0_.cost) / sum(orderline3_.linenetamt + ( select sum(orderlinet13_.taxamt) from c_orderlinetax orderlinet13_ where orderlinet13_.c_orderline_id = orderline3_.c_orderline_id)) * ?, ?) as col_11_0_ from m_transaction_cost transactio0_ inner join m_transaction materialmg1_ on transactio0_.m_transaction_id = materialmg1_.m_transaction_id right outer join m_inoutline materialmg2_ on materialmg1_.m_inoutline_id = materialmg2_.m_inoutline_id left outer join c_orderline orderline3_ on materialmg2_.c_orderline_id = orderline3_.c_orderline_id left outer join m_product product4_ on orderline3_.m_product_id = product4_.m_product_id left outer join c_order order5_ on orderline3_.c_order_id = order5_.c_order_id left outer join m_product_category productcat6_ on product4_.m_product_category_id = productcat6_.m_product_category_id left outer join obpos_applications obpos_appl7_ on order5_.em_obpos_applications_id = obpos_appl7_.obpos_applications_id left outer join ad_org organizati8_ on order5_.ad_org_id = organizati8_.ad_org_id where order5_.issotrx = ? and order5_.docstatus = ? and obpos_appl7_.ad_client_id = ? and (obpos_appl7_.ad_org_id in (...)) and order5_.created > to_date(?, ?) and order5_.created & lt; to_date(?, ?) and ? = ? group by organizati8_.name, organizati8_.ad_org_id, product4_.name, product4_.m_product_id order by col_7_0_ desc, col_4_0_ desc, organizati8_.name, product4_.name limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 08 3 17s418ms 5s806ms 09 1 4s946ms 4s946ms 10 2 1m16s 38s135ms 11 3 1m14s 24s762ms 12 1 3s612ms 3s612ms 13 1 3s649ms 3s649ms 14 3 1m21s 27s249ms 15 2 7s668ms 3s834ms [ User: tad - Total duration: 4m29s - Times executed: 16 ]
[ Application: openbravo - Total duration: 4m29s - Times executed: 16 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 14:41:22 Duration: 1m14s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 10:27:01 Duration: 1m12s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 11:36:39 Duration: 1m6s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 16 3m19s 5s388ms 43s744ms 12s449ms 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 16 08 3 23s110ms 7s703ms 09 1 7s93ms 7s93ms 10 2 44s97ms 22s48ms 11 3 45s477ms 15s159ms 12 1 5s748ms 5s748ms 13 1 5s927ms 5s927ms 14 3 55s887ms 18s629ms 15 2 11s855ms 5s927ms [ User: tad - Total duration: 3m19s - Times executed: 16 ]
[ Application: openbravo - Total duration: 3m19s - Times executed: 16 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 14:40:51 Duration: 43s744ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 10:26:26 Duration: 37s708ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 11:36:06 Duration: 33s542ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 14 25s682ms 1s457ms 2s619ms 1s834ms select profile.take_sample ();Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 07 1 2s101ms 2s101ms 08 1 1s816ms 1s816ms 09 1 2s619ms 2s619ms 10 1 1s634ms 1s634ms 11 1 1s562ms 1s562ms 12 1 1s629ms 1s629ms 13 1 1s993ms 1s993ms 14 1 1s673ms 1s673ms 15 1 1s807ms 1s807ms 16 1 1s901ms 1s901ms 17 1 1s483ms 1s483ms 18 1 1s457ms 1s457ms 19 1 1s628ms 1s628ms 20 1 2s375ms 2s375ms [ User: postgres - Total duration: 25s682ms - Times executed: 14 ]
[ Application: psql - Total duration: 25s682ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-16 09:00:04 Duration: 2s619ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 20:00:03 Duration: 2s375ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 07:00:03 Duration: 2s101ms Database: openbravo User: postgres Remote: [local] Application: psql
7 3 4s51ms 1s153ms 1s509ms 1s350ms 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 16 10 1 1s509ms 1s509ms 11 1 1s153ms 1s153ms 14 1 1s388ms 1s388ms [ User: tad - Total duration: 4s51ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s51ms - Times executed: 3 ]
-
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-15 10:25:51.084' 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-16 10:25:52 Duration: 1s509ms 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-15 14:40:09.522' 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-16 14:40:10 Duration: 1s388ms 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-15 11:35:35.156' 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-16 11:35:36 Duration: 1s153ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1 49s947ms 49s947ms 49s947ms 49s947ms 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 16 07 1 49s947ms 49s947ms [ User: tad - Total duration: 49s947ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 49s947ms - 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-16 07:00:57 Duration: 49s947ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 1 18s825ms 18s825ms 18s825ms 18s825ms 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 16 07 1 18s825ms 18s825ms [ User: tad - Total duration: 18s825ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 18s825ms - 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-16 07:02:05 Duration: 18s825ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 1 16s613ms 16s613ms 16s613ms 16s613ms 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 16 07 1 16s613ms 16s613ms [ User: tad - Total duration: 16s613ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s613ms - 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-16 07:01:23 Duration: 16s613ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 1 12s214ms 12s214ms 12s214ms 12s214ms copy public.m_transaction (m_transaction_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, movementtype, m_locator_id, m_product_id, movementdate, movementqty, m_inventoryline_id, m_movementline_id, m_inoutline_id, m_productionline_id, c_projectissue_id, m_attributesetinstance_id, m_product_uom_id, quantityorder, c_uom_id, m_internal_consumptionline_id, transactioncost, trxprocessdate, m_costing_algorithm_id, iscostcalculated, c_currency_id, costing_status, checkreservedqty, isprocessed, checkpricedifference, manualcostadjustment, iscostpermanent) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 07 1 12s214ms 12s214ms [ User: tad - Total duration: 12s214ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s214ms - 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-16 07:03:20 Duration: 12s214ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 1 12s97ms 12s97ms 12s97ms 12s97ms 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 16 07 1 12s97ms 12s97ms [ User: tad - Total duration: 12s97ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s97ms - 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-16 07:03:06 Duration: 12s97ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 1 10s810ms 10s810ms 10s810ms 10s810ms 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 16 07 1 10s810ms 10s810ms [ User: tad - Total duration: 10s810ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 10s810ms - 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-16 07:02:26 Duration: 10s810ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 1 9s231ms 9s231ms 9s231ms 9s231ms 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 16 07 1 9s231ms 9s231ms [ User: tad - Total duration: 9s231ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s231ms - 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-16 07:02:15 Duration: 9s231ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
15 1 8s293ms 8s293ms 8s293ms 8s293ms 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 16 07 1 8s293ms 8s293ms [ User: tad - Total duration: 8s293ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s293ms - 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-16 07:01:38 Duration: 8s293ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
16 1 6s679ms 6s679ms 6s679ms 6s679ms 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 16 07 1 6s679ms 6s679ms [ User: tad - Total duration: 6s679ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s679ms - 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-16 07:01:29 Duration: 6s679ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 1 5s842ms 5s842ms 5s842ms 5s842ms 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 16 07 1 5s842ms 5s842ms [ User: tad - Total duration: 5s842ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s842ms - 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-16 07:01:46 Duration: 5s842ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 1 5s528ms 5s528ms 5s528ms 5s528ms 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 16 07 1 5s528ms 5s528ms [ User: tad - Total duration: 5s528ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s528ms - 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-16 07:02:46 Duration: 5s528ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
19 1 4s199ms 4s199ms 4s199ms 4s199ms 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 16 07 1 4s199ms 4s199ms [ User: tad - Total duration: 4s199ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s199ms - 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-16 07:01:06 Duration: 4s199ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
20 1 3s796ms 3s796ms 3s796ms 3s796ms 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 16 07 1 3s796ms 3s796ms [ User: tad - Total duration: 3s796ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s796ms - 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-16 07:02:49 Duration: 3s796ms 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 49s947ms 49s947ms 49s947ms 1 49s947ms 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 16 07 1 49s947ms 49s947ms [ User: tad - Total duration: 49s947ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 49s947ms - 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-16 07:00:57 Duration: 49s947ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
2 18s825ms 18s825ms 18s825ms 1 18s825ms 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 #2
Day Hour Count Duration Avg duration Jul 16 07 1 18s825ms 18s825ms [ User: tad - Total duration: 18s825ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 18s825ms - 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-16 07:02:05 Duration: 18s825ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
3 3s119ms 1m14s 16s850ms 16 4m29s 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 16 08 3 17s418ms 5s806ms 09 1 4s946ms 4s946ms 10 2 1m16s 38s135ms 11 3 1m14s 24s762ms 12 1 3s612ms 3s612ms 13 1 3s649ms 3s649ms 14 3 1m21s 27s249ms 15 2 7s668ms 3s834ms [ User: tad - Total duration: 4m29s - Times executed: 16 ]
[ Application: openbravo - Total duration: 4m29s - Times executed: 16 ]
-
select organizati8_.Name as col_0_0_, organizati8_.AD_Org_ID as col_1_0_, product4_.M_Product_ID as col_2_0_, product4_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet9_.Taxamt) from C_OrderLineTax orderlinet9_ where orderlinet9_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join M_Product_Category productcat6_ on product4_.M_Product_Category_ID = productcat6_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl7_ on order5_.EM_Obpos_Applications_ID = obpos_appl7_.Obpos_Applications_ID left outer join AD_Org organizati8_ on order5_.AD_Org_ID = organizati8_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl7_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl7_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('1900-01-01 00:00:00-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 14:41:22 Duration: 1m14s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 10:27:01 Duration: 1m12s 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-03:50:40', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2999-01-01 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati8_.Name, organizati8_.AD_Org_ID, product4_.Name, product4_.M_Product_ID order by col_7_0_ desc, col_4_0_ desc, organizati8_.Name, product4_.Name limit '30';
Date: 2026-07-16 11:36:39 Duration: 1m6s Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 16s613ms 16s613ms 16s613ms 1 16s613ms copy public.c_invoiceline (c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoice_id, c_orderline_id, m_inoutline_id, line, description, financial_invoice_line, account_id, m_product_id, qtyinvoiced, pricelist, priceactual, pricelimit, linenetamt, c_charge_id, chargeamt, c_uom_id, c_tax_id, s_resourceassignment_id, m_attributesetinstance_id, isdescription, quantityorder, m_product_uom_id, c_invoice_discount_id, c_projectline_id, m_offer_id, pricestd, excludeforwithholding, iseditlinenetamt, taxbaseamt, line_gross_amount, gross_unit_price, c_bpartner_id, periodnumber, grosspricestd, a_asset_id, defplantype, grosspricelist, c_project_id, isdeferred, c_period_id, c_costcenter_id, user1_id, user2_id, explode, bom_parent_id, match_lccosts, c_aum, aumqty, salesrep_id) to stdout;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 07 1 16s613ms 16s613ms [ User: tad - Total duration: 16s613ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 16s613ms - 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-16 07:01:23 Duration: 16s613ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
5 5s388ms 43s744ms 12s449ms 16 3m19s 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 16 08 3 23s110ms 7s703ms 09 1 7s93ms 7s93ms 10 2 44s97ms 22s48ms 11 3 45s477ms 15s159ms 12 1 5s748ms 5s748ms 13 1 5s927ms 5s927ms 14 3 55s887ms 18s629ms 15 2 11s855ms 5s927ms [ User: tad - Total duration: 3m19s - Times executed: 16 ]
[ Application: openbravo - Total duration: 3m19s - Times executed: 16 ]
-
select organizati9_.Name as col_0_0_, organizati9_.AD_Org_ID as col_1_0_, businesspa6_.C_BPartner_ID as col_2_0_, businesspa6_.Name as col_3_0_, sum(orderline3_.QtyOrdered) as col_4_0_, round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) as col_5_0_, case when round(sum(orderline3_.QtyOrdered * (orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price)), 2) = 0 then 0 else case when sum(orderline3_.GrossPriceList) = 0 then 100 else round(sum(orderline3_.GrossPriceList - orderline3_.Gross_Unit_Price) / sum(orderline3_.GrossPriceList) * 100, 2) end end as col_6_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet10_.Taxamt) from C_OrderLineTax orderlinet10_ where orderlinet10_.C_Orderline_ID = orderline3_.C_OrderLine_ID)), 2) as col_7_0_, round(sum(transactio0_.Cost), 2) as col_8_0_, case when round(sum(transactio0_.Cost), 2) > 0 then round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet11_.Taxamt) from C_OrderLineTax orderlinet11_ where orderlinet11_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) / sum(transactio0_.Cost), 2) else null end as col_9_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet12_.Taxamt) from C_OrderLineTax orderlinet12_ where orderlinet12_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost), 2) as col_10_0_, round(sum(orderline3_.LineNetAmt + ( select sum(orderlinet13_.Taxamt) from C_OrderLineTax orderlinet13_ where orderlinet13_.C_Orderline_ID = orderline3_.C_OrderLine_ID) - transactio0_.Cost) / sum(orderline3_.LineNetAmt + ( select sum(orderlinet14_.Taxamt) from C_OrderLineTax orderlinet14_ where orderlinet14_.C_Orderline_ID = orderline3_.C_OrderLine_ID)) * 100, 2) as col_11_0_ from M_Transaction_Cost transactio0_ inner join M_Transaction materialmg1_ on transactio0_.M_Transaction_ID = materialmg1_.M_Transaction_ID right outer join M_InOutLine materialmg2_ on materialmg1_.M_InOutLine_ID = materialmg2_.M_InOutLine_ID left outer join C_OrderLine orderline3_ on materialmg2_.C_OrderLine_ID = orderline3_.C_OrderLine_ID left outer join M_Product product4_ on orderline3_.M_Product_ID = product4_.M_Product_ID left outer join C_Order order5_ on orderline3_.C_Order_ID = order5_.C_Order_ID left outer join C_BPartner businesspa6_ on order5_.C_BPartner_ID = businesspa6_.C_BPartner_ID left outer join M_Product_Category productcat7_ on product4_.M_Product_Category_ID = productcat7_.M_Product_Category_ID left outer join OBPOS_APPLICATIONS obpos_appl8_ on order5_.EM_Obpos_Applications_ID = obpos_appl8_.Obpos_Applications_ID left outer join AD_Org organizati9_ on order5_.AD_Org_ID = organizati9_.AD_Org_ID where order5_.IsSOTrx = 'Y' and order5_.DocStatus = 'CO' and obpos_appl8_.AD_Client_ID = 'F1F033983E8740EC81BE7129A38DC0A2' and (obpos_appl8_.AD_Org_ID in ('0', 'A22222CD0A46452CA481F8F5CE47ABA3')) and order5_.Created > to_date('2021-01-01 00:00:00-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 14:40:51 Duration: 43s744ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 10:26:26 Duration: 37s708ms 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-03', 'YYYY-MM-DD') and order5_.Created & lt; to_date('2998-12-31 00:00:00-03', 'YYYY-MM-DD') and 1 = 1 group by organizati9_.Name, organizati9_.AD_Org_ID, businesspa6_.Name, businesspa6_.C_BPartner_ID order by col_7_0_ desc, col_4_0_ desc, organizati9_.Name, businesspa6_.Name limit '20';
Date: 2026-07-16 11:36:06 Duration: 33s542ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 12s214ms 12s214ms 12s214ms 1 12s214ms 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 #6
Day Hour Count Duration Avg duration Jul 16 07 1 12s214ms 12s214ms [ User: tad - Total duration: 12s214ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s214ms - 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-16 07:03:20 Duration: 12s214ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
7 12s97ms 12s97ms 12s97ms 1 12s97ms 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 16 07 1 12s97ms 12s97ms [ User: tad - Total duration: 12s97ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 12s97ms - 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-16 07:03:06 Duration: 12s97ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
8 10s810ms 10s810ms 10s810ms 1 10s810ms copy public.c_orderlinetax (c_orderlinetax_id, c_orderline_id, c_tax_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, c_order_id) to stdout;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 07 1 10s810ms 10s810ms [ User: tad - Total duration: 10s810ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 10s810ms - 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-16 07:02:26 Duration: 10s810ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
9 9s231ms 9s231ms 9s231ms 1 9s231ms copy public.c_orderline_offer (c_orderline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_orderline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer, em_obdisc_identifier, em_obpos_discountinstance, em_obpos_extraproperties) to stdout;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 07 1 9s231ms 9s231ms [ User: tad - Total duration: 9s231ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 9s231ms - 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-16 07:02:15 Duration: 9s231ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
10 8s293ms 8s293ms 8s293ms 1 8s293ms copy public.c_invoicelinetax (c_invoicelinetax_id, c_tax_id, c_invoice_id, c_invoiceline_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, taxbaseamt, taxamt, line, recalculate) to stdout;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 07 1 8s293ms 8s293ms [ User: tad - Total duration: 8s293ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 8s293ms - 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-16 07:01:38 Duration: 8s293ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
11 6s679ms 6s679ms 6s679ms 1 6s679ms copy public.c_invoiceline_offer (c_invoiceline_offer_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_invoiceline_id, line, m_offer_id, priceoffer, amtoffer, priceoffergross, totalamt, displayedtotalamt, em_obdisc_qtyoffer) to stdout;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 07 1 6s679ms 6s679ms [ User: tad - Total duration: 6s679ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 6s679ms - 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-16 07:01:29 Duration: 6s679ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
12 5s842ms 5s842ms 5s842ms 1 5s842ms copy public.c_order (c_order_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, c_doctype_id, c_doctypetarget_id, description, isdelivered, isinvoiced, isprinted, isselected, salesrep_id, dateordered, datepromised, dateprinted, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, poreference, isdiscountprinted, c_currency_id, paymentrule, c_paymentterm_id, invoicerule, deliveryrule, freightcostrule, freightamt, deliveryviarule, m_shipper_id, c_charge_id, chargeamt, priorityrule, totallines, grandtotal, m_warehouse_id, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, posted, ad_user_id, copyfrom, dropship_bpartner_id, dropship_location_id, dropship_user_id, isselfservice, ad_orgtrx_id, user1_id, user2_id, deliverynotes, c_incoterms_id, incotermsdescription, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, fin_payment_priority_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, c_return_reason_id, rm_addorphanline, a_asset_id, calculate_promotions, c_costcenter_id, convertquotation, c_reject_reason_id, validuntil, quotation_id, so_res_status, create_polines, iscashvat, rm_pickfromreceipt, em_opxmm_btn_purch, em_obdisc_addpack, em_obpos_applications_id, em_obpos_sendemail, em_obpos_email_status, cancelandreplace, confirmcancelandreplace, cancelledorder_id, replacedorder_id, iscancelled, replacementorder_id, em_aprm_addpayment, em_obpos_app_cashup_id, em_obpos_createdabsolute, em_obpos_notinvoiceoncashup, em_obpos_rejected_quotat_id, em_obpos_isdeleted, em_obpos_islayaway, em_obpos_prepaymentamt, em_obpos_prepaymentlimitamt, em_obpos_prepaymentlaylimitamt, em_prpres_reference, em_prpres_void_order, em_prpres_gross_total, em_prpres_net_total, em_prpres_isgift, em_prpres_giftmessage, em_prpres_id_cart, em_prpres_id_paym_transaction, em_obmfm_selectfreight, em_obmfm_delivery_period_id, em_obmfm_delivery_charges, em_obmfm_freight_id, em_obmfm_weight, em_obmfm_weight_uom_id, em_obmfm_set_weight, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, em_prpp_generatepicking, em_mntc_createinvoice, bpartner_extref, c_alternate_location_id, em_prpres_processing, em_prpres_generatepicking, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_obpos_skip_tax_calculation) to stdout;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 07 1 5s842ms 5s842ms [ User: tad - Total duration: 5s842ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s842ms - 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-16 07:01:46 Duration: 5s842ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
13 5s528ms 5s528ms 5s528ms 1 5s528ms copy public.fin_payment_schedule (fin_payment_schedule_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, c_invoice_id, c_order_id, duedate, fin_paymentmethod_id, c_currency_id, amount, paidamt, outstandingamt, isactive, fin_payment_priority_id, update_payment_plan, origduedate, description, expecteddate, em_kctrp_isretention_payment, em_aprm_modif_paym_sched, em_aprm_modif_paym_out_sched) to stdout;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 07 1 5s528ms 5s528ms [ User: tad - Total duration: 5s528ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 5s528ms - 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-16 07:02:46 Duration: 5s528ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
14 3s966ms 8s948ms 4s787ms 156 12m26s select * from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 07 12 1m 5s61ms 08 12 1m1s 5s146ms 09 12 59s394ms 4s949ms 10 12 58s787ms 4s898ms 11 12 55s802ms 4s650ms 12 12 57s303ms 4s775ms 13 12 58s648ms 4s887ms 14 12 55s985ms 4s665ms 15 12 57s608ms 4s800ms 16 12 56s385ms 4s698ms 17 12 54s909ms 4s575ms 18 12 53s707ms 4s475ms 19 12 55s836ms 4s653ms [ User: tad - Total duration: 12m26s - Times executed: 156 ]
[ Application: openbravo - Total duration: 12m26s - Times executed: 156 ]
-
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-16 13:00:08 Duration: 8s948ms 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-16 09:00:08 Duration: 8s560ms 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-16 08:30:08 Duration: 8s244ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3s810ms 9s344ms 4s389ms 156 11m24s update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select f.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || f.documentno || ? as description, ? as isactive, f.ad_org_id, f.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, f.c_invoice_id, ?) as record_id from ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = ? and co.em_obpos_applications_id is not null group by ci.documentno, extract(year from dateinvoiced), ci.c_doctype_id having count(ci.documentno) > ? order by max(dateinvoiced) desc) as f) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 07 12 59s934ms 4s994ms 08 12 54s305ms 4s525ms 09 12 52s351ms 4s362ms 10 12 52s123ms 4s343ms 11 12 54s99ms 4s508ms 12 12 52s693ms 4s391ms 13 12 51s783ms 4s315ms 14 12 50s794ms 4s232ms 15 12 52s480ms 4s373ms 16 12 52s531ms 4s377ms 17 12 51s191ms 4s265ms 18 12 48s852ms 4s71ms 19 12 51s612ms 4s301ms [ User: tad - Total duration: 11m24s - Times executed: 156 ]
[ Application: openbravo - Total duration: 11m24s - Times executed: 156 ]
-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = '463465B5BE664902A40F05E84E1587CD' AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select f.c_invoice_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'Factura: ' || f.documentno || ' duplicada' as description, 'Y' as isActive, f.ad_org_id, f.ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('c_invoice', f.c_invoice_id, 'es_ES') AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id = ci.c_order_id where ci.issotrx = 'Y' and co.em_obpos_applications_id is not null group by ci.documentno, EXTRACT(YEAR FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno) > 1 order by max(dateinvoiced) desc) as f) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-16 07:05:15 Duration: 9s344ms 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-16 07:00:14 Duration: 6s100ms 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-16 09:30:10 Duration: 5s401ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 4s199ms 4s199ms 4s199ms 1 4s199ms copy public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, em_lpy_controle_impressos_id, em_lpy_isfiscalserno, em_lpy_fiscalno, em_lpy_fiscalserno, em_kctrp_isretention_payment, em_kctrp_retention_grossamt_id, em_aprm_addpayment, em_aprm_processinvoice, prepaymentamt, createfromorders, createfrominouts, paidamtatinvoicing, bpartner_extref, c_alternate_location_id, einvoice_status, einvoice_generated, einvoice_externalid, einvoice_send_status, einvoice_sent, em_obpos_rounding_amount, em_obpos_sequencename, em_obpos_sequencenumber, em_mntc_invoice_format) to stdout;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 07 1 4s199ms 4s199ms [ User: tad - Total duration: 4s199ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 4s199ms - 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-16 07:01:06 Duration: 4s199ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
17 3s796ms 3s796ms 3s796ms 1 3s796ms copy public.fin_payment_scheduledetail (fin_payment_scheduledetail_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, fin_payment_detail_id, fin_payment_schedule_order, fin_payment_schedule_invoice, amount, isactive, writeoffamt, iscanceled, c_bpartner_id, c_activity_id, m_product_id, c_campaign_id, c_project_id, c_salesregion_id, c_costcenter_id, user1_id, user2_id, doubtfuldebt_amount, isinvoicepaid) to stdout;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 07 1 3s796ms 3s796ms [ User: tad - Total duration: 3s796ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 3s796ms - 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-16 07:02:49 Duration: 3s796ms Database: openbravo User: tad Remote: 127.0.0.1 Application: pg_dump
18 1s692ms 4s884ms 2s9ms 79 2m38s 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 #18
Day Hour Count Duration Avg duration Jul 16 07 6 13s470ms 2s245ms 08 6 12s663ms 2s110ms 09 6 13s962ms 2s327ms 10 6 11s956ms 1s992ms 11 6 11s132ms 1s855ms 12 6 11s680ms 1s946ms 13 6 12s632ms 2s105ms 14 6 10s972ms 1s828ms 15 6 11s334ms 1s889ms 16 6 11s905ms 1s984ms 17 6 11s454ms 1s909ms 18 6 11s235ms 1s872ms 19 6 11s103ms 1s850ms 20 1 3s257ms 3s257ms [ User: tad - Total duration: 2m38s - Times executed: 79 ]
[ Application: openbravo - Total duration: 2m38s - Times executed: 79 ]
-
select distinct pprod.m_product_id, pprod.ps_product_id as baseprodid, '0' as combinationid, pprod.stock_id, pprod.shop_id, coalesce(pprod.group_id, '0') as group_id, coalesce(pprod.out_of_stock, '2') as out_of_stock, coalesce(pprod.depends_on_stock, '0') as depends_on_stock from prpres_product pprod where pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_transaction left join prpres_product on m_transaction.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from prpres_product left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id left join m_product on prpres_product.m_product_id = m_product.m_product_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_product.inventory_date, prpres_product.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') or pprod.prpres_product_id in ( select distinct (prpres_product_id) from m_reservation left join prpres_product on m_reservation.m_product_id = prpres_product.m_product_id left join m_product on prpres_product.m_product_id = m_product.m_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_product.m_product_id is not null and m_product.isgeneric = 'N') UNION select distinct pcomb.m_product_id, pprod.ps_product_id as baseprodid, pcomb.ps_combination_id as combinationid, pcomb.stock_id, pcomb.shop_id, coalesce(pcomb.group_id, '0') as group_id, coalesce(pcomb.out_of_stock, '2') as out_of_stock, coalesce(pcomb.depends_on_stock, '0') as depends_on_stock from prpres_combination pcomb left join prpres_product pprod on pcomb.prpres_product_id = pprod.prpres_product_id where pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_transaction left join prpres_combination on m_transaction.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_transaction.trxprocessdate >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from prpres_combination left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and coalesce(prpres_combination.inventory_date, prpres_combination.created) >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N') or pcomb.prpres_combination_id in ( select distinct (prpres_combination_id) from m_reservation left join prpres_combination on m_reservation.m_product_id = prpres_combination.m_product_id left join m_product on prpres_combination.m_product_id = m_product.m_product_id left join prpres_product on prpres_combination.prpres_product_id = prpres_product.prpres_product_id left join prpres_conf on prpres_conf.prpres_conf_id = prpres_product.prpres_conf_id where prpres_conf.prpres_conf_id = '83A67C3749514528BCB99879C97E01BE' and m_reservation.created >= prpres_conf.last_inventory_sync and prpres_product.ps_product_id IS NOT NULL and prpres_combination.m_product_id is not null and m_product.isgeneric = 'N');
Date: 2026-07-16 09:00:05 Duration: 4s884ms 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-16 13:00:03 Duration: 3s793ms 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-16 07:00:03 Duration: 3s728ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s457ms 2s619ms 1s834ms 14 25s682ms select profile.take_sample ();Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 07 1 2s101ms 2s101ms 08 1 1s816ms 1s816ms 09 1 2s619ms 2s619ms 10 1 1s634ms 1s634ms 11 1 1s562ms 1s562ms 12 1 1s629ms 1s629ms 13 1 1s993ms 1s993ms 14 1 1s673ms 1s673ms 15 1 1s807ms 1s807ms 16 1 1s901ms 1s901ms 17 1 1s483ms 1s483ms 18 1 1s457ms 1s457ms 19 1 1s628ms 1s628ms 20 1 2s375ms 2s375ms [ User: postgres - Total duration: 25s682ms - Times executed: 14 ]
[ Application: psql - Total duration: 25s682ms - Times executed: 14 ]
-
SELECT profile.take_sample ();
Date: 2026-07-16 09:00:04 Duration: 2s619ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 20:00:03 Duration: 2s375ms Database: openbravo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 07:00:03 Duration: 2s101ms Database: openbravo User: postgres Remote: [local] Application: psql
20 1s153ms 1s509ms 1s350ms 3 4s51ms 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 #20
Day Hour Count Duration Avg duration Jul 16 10 1 1s509ms 1s509ms 11 1 1s153ms 1s153ms 14 1 1s388ms 1s388ms [ User: tad - Total duration: 4s51ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s51ms - Times executed: 3 ]
-
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-15 10:25:51.084' 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-16 10:25:52 Duration: 1s509ms 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-15 14:40:09.522' 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-16 14:40:10 Duration: 1s388ms 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-15 11:35:35.156' 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-16 11:35:36 Duration: 1s153ms Database: openbravo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 29,196 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