Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024727 | Openbravo ERP | Y. DBSourceManager | public | 2013-09-03 18:26 | 2013-09-10 18:07 |
|
Reporter | marvintm | |
Assigned To | marvintm | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | shuehner |
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 | 0024727: Three different performance issues in dbsm which should be addressed |
Description | We've found three different performance issues in dbsm which should be addressed:
- Currently, the oncreatedefault expressions are being tested in a dummy select to verify whether the oncreatedefault can be safely executed or not. This select is not limited, so if the oncreatedefault affects a big table, then it's very slow.
- Currently, update.database executes statements to ensure that "on delete cascade" foreign keys can be activated successfully. These statements were designed to prevent the problem from having tables from having records which point to AD records which no longer exist. However, currently these statements are executed for all tables, even for those which have nothing to do with AD tables.
- In update.database, all foreign keys are dropped and recreated. This is really not needed, because this was needed only to update the Application Dictionary tables. This could be improved by disabling just the AD tables, and the foreign keys of non-AD tables which point to the AD. |
Steps To Reproduce | Try update.database in a database with lots of data. Notice that it can be really slow. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | defect | 0024682 | | closed | marvintm | Three different performance issues in dbsm which should be addressed |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-09-10 11:37 | shuehner | Type | defect => backport |
2013-09-10 11:37 | shuehner | fix_in_branch | => 2.50 |
2013-09-10 17:58 | hgbot | Checkin | |
2013-09-10 17:58 | hgbot | Note Added: 0061061 | |
2013-09-10 17:58 | hgbot | Status | scheduled => resolved |
2013-09-10 17:58 | hgbot | Resolution | open => fixed |
2013-09-10 17:58 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/912c4ac086e00a8cc8f8b93e105e138848ac2388 [^] => http://code.openbravo.com/erp/stable/2.50/rev/416da0ef63d4fbdff5c51f6671909faeff1c1721 [^] |
2013-09-10 18:07 | shuehner | Review Assigned To | => shuehner |
2013-09-10 18:07 | shuehner | Note Added: 0061065 | |
2013-09-10 18:07 | shuehner | Status | resolved => closed |