Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0036937 | Openbravo ERP | A. Platform | public | 2017-09-25 10:54 | 2017-09-26 15:25 |
|
Reporter | alostale | |
Assigned To | alostale | |
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 | AugustoMauch |
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 | 0036937: update.database source data queries current time to DB for each change |
Description | When updating database, each change in source data queries DB for current time stamp. |
Steps To Reproduce | 0. Enable logging all DB statements
1. run update.database ensuring there are changes in source data
-> check there are as many queries to "select now() from dual" as changes detected in source data |
Proposed Solution | Assuming db and sources server are in the same time zone, it's not necessary to query data to DB, being possible to calculate it in JVM preventing in this way round trips to DB. |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0035653 | | closed | alostale | update.database can fail updating src tables with a check constraint where more than one column participates |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-09-25 10:54 | alostale | New Issue | |
2017-09-25 10:54 | alostale | Assigned To | => platform |
2017-09-25 10:54 | alostale | OBNetwork customer | => No |
2017-09-25 10:54 | alostale | Modules | => Core |
2017-09-25 10:54 | alostale | Triggers an Emergency Pack | => No |
2017-09-25 10:54 | alostale | Assigned To | platform => alostale |
2017-09-25 10:55 | alostale | Review Assigned To | => AugustoMauch |
2017-09-25 10:55 | alostale | Relationship added | related to 0035653 |
2017-09-25 10:55 | alostale | Tag Attached: Performance | |
2017-09-25 11:23 | hgbot | Checkin | |
2017-09-25 11:23 | hgbot | Note Added: 0099525 | |
2017-09-25 11:23 | hgbot | Status | new => resolved |
2017-09-25 11:23 | hgbot | Resolution | open => fixed |
2017-09-25 11:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/ecd35e9def0f0f83e1b53bfb1af3098034ba37c8 [^] |
2017-09-25 11:23 | hgbot | Checkin | |
2017-09-25 11:23 | hgbot | Note Added: 0099527 | |
2017-09-25 11:23 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/ecd35e9def0f0f83e1b53bfb1af3098034ba37c8 [^] => http://code.openbravo.com/erp/devel/pi/rev/5778a1eb46718a99ff7479e483a108f24a529198 [^] |
2017-09-25 15:20 | AugustoMauch | Note Added: 0099562 | |
2017-09-25 15:20 | AugustoMauch | Status | resolved => closed |
2017-09-26 15:25 | hudsonbot | Checkin | |
2017-09-26 15:25 | hudsonbot | Note Added: 0099588 | |
Notes |
|
(0099525)
|
hgbot
|
2017-09-25 11:23
|
|
Repository: erp/devel/dbsm-main
Changeset: ecd35e9def0f0f83e1b53bfb1af3098034ba37c8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Sep 25 10:41:15 2017 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/ecd35e9def0f0f83e1b53bfb1af3098034ba37c8 [^]
fixed bug 36937: update.database source data queries time to DB for each change
There is not need to query current time from DB. Now it is calculated in JVM
instead.
---
M src/org/apache/ddlutils/platform/PlatformImplBase.java
---
|
|
|
(0099527)
|
hgbot
|
2017-09-25 11:23
|
|
|
|
|
Code reviewed and verified |
|
|
|
|