Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048756 | Openbravo ERP | 09. Financial management | public | 2022-03-10 07:29 | 2022-04-20 09:41 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q2 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048756: unnecesary OrganizationStructureProvider double initialization on ticket creation |
Description | As reported in 0042370, OrganizationStructureProvider initialization has an important impact in the overall database performance.
When creating tickets from the POS this initialization occurs twice per ticket:
1. Creating the context for processing the ticket (might be addressed by 0042370)
2. When obtaining document type (the goal of this issue). |
Steps To Reproduce | In a retail instance:
1. Log in as System Admin and set debug log level to OrganizationStructureProvider
2. Log in POS and create one ticket
3. Check logs, there should be a single initialization there are two:
2022-03-10 07:28:36,465 [Import Entry - 9] DEBUG org.openbravo.dal.security.OrganizationStructureProvider - Client 39363B0921BB4293B48383844325E84C initialized in 1.023 ms
2022-03-10 07:28:36,554 [Import Entry - 9] DEBUG org.openbravo.dal.security.OrganizationStructureProvider - Client 39363B0921BB4293B48383844325E84C initialized in 0.455 ms
|
Proposed Solution | |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0042370 | | closed | AugustoMauch | Unnecessary executions of a query that loads the complete organizational structure of a client |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-03-10 07:29 | alostale | New Issue | |
2022-03-10 07:29 | alostale | Assigned To | => Triage Omni OMS |
2022-03-10 07:29 | alostale | Modules | => Core |
2022-03-10 07:29 | alostale | Triggers an Emergency Pack | => No |
2022-03-10 07:30 | alostale | Tag Attached: Performance | |
2022-03-10 07:30 | alostale | Relationship added | related to 0042370 |
2022-03-10 07:34 | alostale | Summary | unnecesary OrganizationStructureProvider initialization on ticket creation => unnecesary OrganizationStructureProvider double initialization on ticket creation |
2022-03-10 07:38 | hgbot | Note Added: 0135608 | |
2022-03-15 14:46 | hgbot | Resolution | open => fixed |
2022-03-15 14:46 | hgbot | Status | new => closed |
2022-03-15 14:46 | hgbot | Note Added: 0135735 | |
2022-03-15 14:46 | hgbot | Fixed in Version | => PR22Q2 |
2022-03-15 14:46 | hgbot | Note Added: 0135736 | |
2022-04-20 09:41 | plujan | Note Added: 0136615 | |
2022-04-20 09:41 | plujan | Assigned To | Triage Omni OMS => alostale |