Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013775 | Openbravo ERP | I. Performance | public | 2010-06-24 18:35 | 2010-07-24 00:00 |
|
Reporter | adrianromero | |
Assigned To | adrianromero | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 2.50MP20 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0013775: Business partners and Products take a lot of time to insert when the database is big |
Description | If for example we have a database with more than 100000 business partners or products, inserting a new Business partner o a new product takes a lot of time.
This is particularly problematic when populating the database with new Business partners or products an the volume of data to import is very big |
Steps To Reproduce | |
Proposed Solution | The problem is because the triggers for these tables executes a query for the corresponding tree tables that are not optimized. A new index is required to optimize this query. For example the index required for Business partners is:
CREATE INDEX AD_TREENODEBP_PARENT2 ON AD_TreeNodeBP(AD_TREE_ID, PARENT_ID);
A similar trigger must be added for the AD_TREENODEPR table. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-06-24 18:35 | adrianromero | New Issue | |
2010-06-24 18:35 | adrianromero | Assigned To | => adrianromero |
2010-06-24 18:35 | adrianromero | OBNetwork customer | => No |
2010-06-24 19:00 | adrianromero | Status | new => scheduled |
2010-06-24 19:00 | adrianromero | fix_in_branch | => pi |
2010-07-15 15:45 | hgbot | Checkin | |
2010-07-15 15:45 | hgbot | Note Added: 0029349 | |
2010-07-15 15:45 | hgbot | Status | scheduled => resolved |
2010-07-15 15:45 | hgbot | Resolution | open => fixed |
2010-07-15 15:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/92dd3f29a38e767b25ec5e4c57835af0c4a67074 [^] |
2010-07-15 15:47 | hgbot | Checkin | |
2010-07-15 15:47 | hgbot | Note Added: 0029350 | |
2010-07-15 15:47 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/92dd3f29a38e767b25ec5e4c57835af0c4a67074 [^] => http://code.openbravo.com/erp/devel/api-checks/rev/cd2f604911ad51aabb50fcc18875e95596887e34 [^] |
2010-07-15 15:51 | adrianromero | Note Added: 0029351 | |
2010-07-16 06:55 | hudsonbot | Checkin | |
2010-07-16 06:55 | hudsonbot | Note Added: 0029360 | |
2010-07-23 12:14 | psarobe | Note Added: 0029527 | |
2010-07-23 12:14 | psarobe | Status | resolved => closed |
2010-07-24 00:00 | anonymous | sf_bug_id | 0 => 3033803 |
Notes |
|
(0029349)
|
hgbot
|
2010-07-15 15:45
|
|
Repository: erp/devel/pi
Changeset: 92dd3f29a38e767b25ec5e4c57835af0c4a67074
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jul 15 15:44:44 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/92dd3f29a38e767b25ec5e4c57835af0c4a67074 [^]
Fixes issue 0013775: Business partners and Products take a lot of time to insert when the database is big
---
M src-db/database/model/tables/AD_TREENODEBP.xml
M src-db/database/model/tables/AD_TREENODEPR.xml
---
|
|
|
(0029350)
|
hgbot
|
2010-07-15 15:47
|
|
Repository: erp/devel/api-checks
Changeset: cd2f604911ad51aabb50fcc18875e95596887e34
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jul 15 15:47:22 2010 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/cd2f604911ad51aabb50fcc18875e95596887e34 [^]
Fixes issue 0013775: Business partners and Products take a lot of time to insert when the database is big
---
M model/model/tables/AD_TREENODEBP.xml
M model/model/tables/AD_TREENODEPR.xml
---
|
|
|
|
* Testing of the issue
In a database with 100000 Business partners and / or 100000 Products. Inserting a new Business partner and / or a new Product is faster
* Other areas affected
The change is just a new index for the Products tree and Business partners tree. Nothing else needs to be verified. |
|
|
|
|
|
|
|