Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0027775 | Openbravo ERP | I. Performance | public | 2014-10-06 17:01 | 2014-12-30 23:22 | ||||||||||||||
Reporter | vmromanos | ||||||||||||||||||
Assigned To | vmromanos | ||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | 3.0PR15Q1 | Fixed in Version | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | fsoto82 | ||||||||||||||||||
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 | 0027775: Improve performance in TruncInvoiceDate and Issue26826_Org_AllowPeriodControl module scripts | ||||||||||||||||||
Description | The TruncInvoiceDate and Issue26826_Org_AllowPeriodControl module scripts runs a full table scan each time they are run, regardless any record is updated or not. For this kind of heavy queries, it is better to set a preference the first time the module script is executed and avoid the following executions if the preference is set. | ||||||||||||||||||
Steps To Reproduce | 1. As group admin, go to Purchase Invoice. 2. Create a new header and save it 3. Go to the database and run the following update for the created header: update c_invoice set dateinvoiced=now() where docstatus = 'DR' and c_invoice_id = <THE ID> 4. Run ant smartbuild -Dlocal=no 5. Verify the TruncInvoiceDate module script has fixed it. You can either take a look at the log or query the database 6. Repeat steps 3 and 4. The TruncInvoiceDate module script has fixed it. You can either take a look at the log or query the database. This is wrong, because we only want the module script to be executed just one time | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2014-10-06 17:01 | vmromanos | New Issue | |||||||||||||||||
2014-10-06 17:01 | vmromanos | Assigned To | => vmromanos | ||||||||||||||||
2014-10-06 17:01 | vmromanos | Modules | => Core | ||||||||||||||||
2014-10-06 17:01 | vmromanos | Triggers an Emergency Pack | => No | ||||||||||||||||
2014-10-06 17:02 | vmromanos | Relationship added | related to 0026826 | ||||||||||||||||
2014-10-06 17:02 | vmromanos | Relationship added | related to 0027089 | ||||||||||||||||
2014-10-06 17:02 | vmromanos | Status | new => scheduled | ||||||||||||||||
2014-10-06 17:02 | vmromanos | fix_in_branch | => pi | ||||||||||||||||
2014-10-06 17:11 | vmromanos | Note Added: 0070746 | |||||||||||||||||
2014-10-06 17:15 | vmromanos | Review Assigned To | => shuehner | ||||||||||||||||
2014-10-06 17:15 | vmromanos | fix_in_branch | pi => | ||||||||||||||||
2014-10-06 17:22 | vmromanos | Note Edited: 0070746 | bug_revision_view_page.php?bugnote_id=0070746#r6740 | ||||||||||||||||
2014-10-06 17:29 | vmromanos | Note Edited: 0070746 | bug_revision_view_page.php?bugnote_id=0070746#r6741 | ||||||||||||||||
2014-10-06 17:54 | vmromanos | Review Assigned To | shuehner => vmromanos | ||||||||||||||||
2014-10-06 17:55 | hgbot | Checkin | |||||||||||||||||
2014-10-06 17:55 | hgbot | Note Added: 0070748 | |||||||||||||||||
2014-10-06 17:55 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2014-10-06 17:55 | hgbot | Resolution | open => fixed | ||||||||||||||||
2014-10-06 17:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bda678370986e6eb7f81c83ed8cbe4167359ebc6 [^] | ||||||||||||||||
2014-10-07 09:59 | vmromanos | Review Assigned To | vmromanos => fsoto82 | ||||||||||||||||
2014-10-07 09:59 | vmromanos | Status | resolved => closed | ||||||||||||||||
2014-12-30 23:22 | hudsonbot | Checkin | |||||||||||||||||
2014-12-30 23:22 | hudsonbot | Note Added: 0072905 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|