Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028854
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajorhave not tried2015-02-03 18:032015-04-28 15:55
ReporteregoitzView Statuspublic 
Assigned Toumartirena 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionf68ed69a17c5
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028854: The add details pick&Execute takes long to show data with a big amount of data

DescriptionThe add details pick&Execute takes long to show data with a big amount of data.
Steps To ReproduceON an environment with the following amount of data open the add details pick&Execute from the payment in window:

697535;'c_order'
694670;'FIN_Payment_Detail'
25216;'c_invoice'
8;'fin_payment_method'
656;'c_bpartmner'
687685;'fin_payment'
695394;'FIN_Payment_ScheduleDetail'
721380;'fin_payment_schedule'
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 00296463.0PR15Q3 closedTriage Omni OMS Performance problem in add payment query 
related to defect 0030570 acknowledgeddmiguelez the "add details" button in payment window is generating performance problems 

-  Notes
(0074050)
egoitz (developer)
2015-02-03 18:10

The following is the query generated on execution time form the hsql of the pick&execute for the grid for orders/invoices. That is doing different sequencial scans


SELECT array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') AS col_0_0_,
       array_to_string(array_agg(order2_.DocumentNo), ',') AS col_1_0_,
       invoice7_.DocumentNo AS col_2_0_,
       coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen1_.Fin_Paymentmethod_ID) AS col_3_0_,
       coalesce(fin_paymen10_.Name, fin_paymen5_.Name) AS col_4_0_,
       coalesce(businesspa8_.C_BPartner_ID, businesspa3_.C_BPartner_ID) AS col_5_0_,
       coalesce(businesspa8_.Name, businesspa3_.Name) AS col_6_0_,
       coalesce(fin_paymen6_.ExpectedDate, fin_paymen1_.ExpectedDate) AS col_7_0_,
       max(coalesce(fin_paymen6_.Amount, fin_paymen1_.Amount)) AS col_8_0_,
       max(coalesce(invoice7_.GrandTotal, 0)) AS col_9_0_,
       sum(fin_paymen0_.Amount+fin_paymen0_.Writeoffamt) AS col_10_0_,
       coalesce(sum(fin_paymen13_.Amount), 0) AS col_11_0_,
       CASE
           WHEN sum(fin_paymen0_.Writeoffamt)<>0 THEN TRUE
           ELSE FALSE
       END AS col_12_0_,
       CASE
           WHEN max(fin_paymen14_.Fin_Payment_ID) IS NOT NULL THEN TRUE
           ELSE FALSE
       END AS col_13_0_
FROM FIN_Payment_ScheduleDetail fin_paymen0_
LEFT OUTER JOIN FIN_Payment_Schedule fin_paymen1_ ON fin_paymen0_.FIN_Payment_Schedule_Order=fin_paymen1_.Fin_Payment_Schedule_ID
LEFT OUTER JOIN C_Order order2_ ON fin_paymen1_.C_Order_ID=order2_.C_Order_ID
LEFT OUTER JOIN C_BPartner businesspa3_ ON order2_.C_BPartner_ID=businesspa3_.C_BPartner_ID
LEFT OUTER JOIN FIN_Payment_Priority fin_paymen4_ ON fin_paymen1_.FIN_Payment_Priority_ID=fin_paymen4_.FIN_Payment_Priority_ID
LEFT OUTER JOIN FIN_PaymentMethod fin_paymen5_ ON fin_paymen1_.Fin_Paymentmethod_ID=fin_paymen5_.Fin_Paymentmethod_ID
LEFT OUTER JOIN FIN_Payment_Schedule fin_paymen6_ ON fin_paymen0_.FIN_Payment_Schedule_Invoice=fin_paymen6_.Fin_Payment_Schedule_ID
LEFT OUTER JOIN C_Invoice invoice7_ ON fin_paymen6_.C_Invoice_ID=invoice7_.C_Invoice_ID
LEFT OUTER JOIN C_BPartner businesspa8_ ON invoice7_.C_BPartner_ID=businesspa8_.C_BPartner_ID
LEFT OUTER JOIN FIN_Payment_Priority fin_paymen9_ ON fin_paymen6_.FIN_Payment_Priority_ID=fin_paymen9_.FIN_Payment_Priority_ID
LEFT OUTER JOIN FIN_PaymentMethod fin_paymen10_ ON fin_paymen6_.Fin_Paymentmethod_ID=fin_paymen10_.Fin_Paymentmethod_ID
LEFT OUTER JOIN AD_Org organizati11_ ON fin_paymen0_.AD_Org_ID=organizati11_.AD_Org_ID
LEFT OUTER JOIN AD_OrgInfo organizati12_ ON organizati11_.AD_Org_ID=organizati12_.AD_Org_ID
LEFT OUTER JOIN FIN_Payment_Detail fin_paymen13_ ON fin_paymen0_.FIN_Payment_Detail_ID=fin_paymen13_.Fin_Payment_Detail_ID
LEFT OUTER JOIN FIN_Payment fin_paymen14_ ON fin_paymen13_.Fin_Payment_ID=fin_paymen14_.Fin_Payment_ID
WHERE (fin_paymen0_.AD_Client_ID IN ('0',
                                     '7273232E589944E3B2C314CCFA24CE51'))
  AND (fin_paymen0_.AD_Org_ID IN ('93026108D6314843BDAF1E2C9582029E',
                                  '52096B938D1B4A0BBED92CC51175D8B5',
                                  'BB2D2052246D434196A576FF79FA93B7',
                                  'C640F59345554138AA2278DA89B3D525',
                                  '4F5E7419E38A437B9381C738F4891E3F',
                                  '816D6E5805944BAEB234679DF99B5859',
                                  '951205728A984C9585E3C2179B4F2418',
                                  'C9040AD8D77642D98F89A5201E1EE1F5',
                                  '190B2FF54907429591CE631C2A03BF24',
                                  'CFC24A4468734E5D9A05A7ACD63C78F5',
                                  '725320F3DF8A4FD7A35F43B38CF7427C',
                                  'B9886DDD96124C5B8BE0F7BFADE5E3C3',
                                  'DEDB6F837E5F401DA3A5568D5E15A8C7',
                                  'A79072D955404CB3BC5F79C455560A62',
                                  '00CC3456888E4B7889C7104D6384D307',
                                  'D448757A4607489C8915CDC5469CC1DD',
                                  '1860BD190DCC4A3BA8441B7D55178E61',
                                  '16510591DECE46039236AD9E96D7FB55',
                                  '994E4D2FA96A4C66B063E0A58E009481',
                                  '0',
                                  'A598837D7B0446649105844584E6565A',
                                  '9DE20F09DABA46BFA99DAFA52D9A6624',
                                  '9C753DB213FA4F8B9FADA2136DFEF83E',
                                  '926E25B8E6C8455AB36BC04738EEF394',
                                  '77A6A6E722384AF884E80AC54D0E9A14',
                                  '19BB9330D92F4D12AA94DF1D26C1C643'))
  AND (fin_paymen0_.FIN_Payment_Detail_ID IS NULL
       OR fin_paymen14_.Fin_Payment_ID='075F0B8695E247748210C927D0EAB037'
       AND (fin_paymen6_.Fin_Payment_Schedule_ID IS NOT NULL
            OR fin_paymen1_.Fin_Payment_Schedule_ID IS NOT NULL))
  AND (organizati12_.AD_Org_ID IS NULL
       OR organizati12_.IsActive='Y')
  AND (fin_paymen14_.Fin_Payment_ID='075F0B8695E247748210C927D0EAB037'
       OR (invoice7_.C_Invoice_ID IS NOT NULL)
       AND businesspa8_.C_BPartner_ID='05DBE41BC3294E5EA0A96DB004E255A8'
       AND invoice7_.IsSOTrx='N'
       AND invoice7_.C_Currency_ID='303')
GROUP BY invoice7_.DocumentNo,
         coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen1_.Fin_Paymentmethod_ID),
         coalesce(fin_paymen10_.Name, fin_paymen5_.Name),
         coalesce(fin_paymen6_.ExpectedDate, fin_paymen1_.ExpectedDate),
         coalesce(fin_paymen9_.Priority, fin_paymen4_.Priority),
         coalesce(businesspa8_.C_BPartner_ID, businesspa3_.C_BPartner_ID),
         coalesce(businesspa8_.Name, businesspa3_.Name)
HAVING upper(coalesce(fin_paymen10_.Name, fin_paymen5_.Name)) LIKE upper('%Bank%Transfer%') ESCAPE '|'
ORDER BY CASE
             WHEN max(fin_paymen14_.Fin_Payment_ID) IS NOT NULL THEN 0
             ELSE 1
         END,
         coalesce(fin_paymen9_.Priority, fin_paymen4_.Priority),
         coalesce(fin_paymen6_.ExpectedDate, fin_paymen1_.ExpectedDate),
         invoice7_.DocumentNo LIMIT '76';
(0074349)
hgbot (developer)
2015-02-11 10:25

Repository: erp/devel/pi
Changeset: f68ed69a17c5d1d503d63229d1c2187645c05cef
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Feb 11 10:22:22 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f68ed69a17c5d1d503d63229d1c2187645c05cef [^]

Fixes Bug 28854: Performance problems improved in Add Payment window.

AddPaymentOrderInvoicesTransformer has been changed to improve the performance of the query

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TABLE.xml
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/hqlinjections/AddPaymentOrderInvoicesTransformer.java
---
(0074364)
hgbot (developer)
2015-02-12 08:52

Repository: erp/devel/pi
Changeset: 8e9266e715957e8b78c9903decfcfceec7b90ce4
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Feb 11 18:25:54 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8e9266e715957e8b78c9903decfcfceec7b90ce4 [^]

Related to bug 28854: Fix on JoinClauserOrder and JoinClauseInvoice.

filter by business partner only if a business partner is selected in the parent window

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/hqlinjections/AddPaymentOrderInvoicesTransformer.java
---
(0074452)
hgbot (developer)
2015-02-13 14:02

Repository: erp/devel/pi
Changeset: 3cf79f7adef9b4e4fbafef4533b30134a15013aa
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Feb 12 18:43:18 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3cf79f7adef9b4e4fbafef4533b30134a15013aa [^]

Related to bug 28854: Fix on whereClause, add missing or clause

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/hqlinjections/AddPaymentOrderInvoicesTransformer.java
---
(0074746)
hudsonbot (developer)
2015-02-23 05:11

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6856352d7235 [^]
Maturity status: Test
(0074749)
hudsonbot (developer)
2015-02-23 05:11

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6856352d7235 [^]
Maturity status: Test
(0074756)
hudsonbot (developer)
2015-02-23 05:11

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6856352d7235 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2015-02-03 18:03 egoitz New Issue
2015-02-03 18:03 egoitz Assigned To => dmiguelez
2015-02-03 18:03 egoitz Modules => Core
2015-02-03 18:03 egoitz Resolution time => 1391554800
2015-02-03 18:03 egoitz Triggers an Emergency Pack => No
2015-02-03 18:07 egoitz Assigned To dmiguelez => Sandrahuguet
2015-02-03 18:10 egoitz Note Added: 0074050
2015-02-03 18:27 caristu Resolution time 1391554800 => 1423090800
2015-02-04 10:24 Sandrahuguet Assigned To Sandrahuguet => umartirena
2015-02-04 18:52 egoitz Tag Attached: performane
2015-02-11 10:25 hgbot Checkin
2015-02-11 10:25 hgbot Note Added: 0074349
2015-02-11 10:25 hgbot Status new => resolved
2015-02-11 10:25 hgbot Resolution open => fixed
2015-02-11 10:25 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f68ed69a17c5d1d503d63229d1c2187645c05cef [^]
2015-02-12 08:52 hgbot Checkin
2015-02-12 08:52 hgbot Note Added: 0074364
2015-02-13 14:02 hgbot Checkin
2015-02-13 14:02 hgbot Note Added: 0074452
2015-02-17 17:38 eduardo_Argal Status resolved => closed
2015-02-23 05:11 hudsonbot Checkin
2015-02-23 05:11 hudsonbot Note Added: 0074746
2015-02-23 05:11 hudsonbot Checkin
2015-02-23 05:11 hudsonbot Note Added: 0074749
2015-02-23 05:11 hudsonbot Checkin
2015-02-23 05:11 hudsonbot Note Added: 0074756
2015-04-23 10:26 ioritzCia Relationship added has duplicate 0029646
2015-04-28 15:55 egoitz Tag Detached: performane
2015-04-28 15:55 egoitz Tag Attached: Performance
2015-08-13 12:09 malsasua Relationship added related to 0030570


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker