Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0039023 | Openbravo ERP | A. Platform | public | 2018-07-24 12:27 | 2018-08-08 13:06 |
|
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 | 3.0PR18Q4 | |
Merge Request Status | |
Review Assigned To | caristu |
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 | 0039023: unneeded contention to count active alerts |
Description | Every few seconds a request to AlertActionHandler is performed, it serves 2 purposes:
1. Update ad_session table with current timestamp to mark "session last seen"
2. Count active alerts
They are executed in that order in a single db transaction, in case counting alerts takes long, locks on ad_session table are hold until it completes. |
Steps To Reproduce | 1. Define several alerts for a user, so that counting them takes some time
2. Check pg_locks while executing a AlertActionHandler request:
-> It is kept till request is completed. |
Proposed Solution | Commit ping transaction before starting counting alerts |
Additional Information | |
Tags | Performance |
Relationships | related to | defect | 0039014 | | closed | alostale | unneeded queries to count active alerts |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-07-24 12:27 | alostale | New Issue | |
2018-07-24 12:27 | alostale | Assigned To | => platform |
2018-07-24 12:27 | alostale | OBNetwork customer | => No |
2018-07-24 12:27 | alostale | Modules | => Core |
2018-07-24 12:27 | alostale | Triggers an Emergency Pack | => No |
2018-07-24 12:27 | alostale | Tag Attached: Performance | |
2018-07-24 12:27 | alostale | Relationship added | related to 0039014 |
2018-07-24 12:28 | alostale | Review Assigned To | => caristu |
2018-07-24 12:29 | hgbot | Checkin | |
2018-07-24 12:29 | hgbot | Note Added: 0105911 | |
2018-07-24 12:29 | hgbot | Status | new => resolved |
2018-07-24 12:29 | hgbot | Resolution | open => fixed |
2018-07-24 12:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3d151a1172b8de6feecd545c45f6766cad190414 [^] |
2018-08-03 10:34 | caristu | Assigned To | platform => alostale |
2018-08-03 10:35 | caristu | Note Added: 0106153 | |
2018-08-03 10:35 | caristu | Status | resolved => closed |
2018-08-03 10:35 | caristu | Fixed in Version | => 3.0PR18Q4 |
2018-08-08 13:06 | hudsonbot | Checkin | |
2018-08-08 13:06 | hudsonbot | Note Added: 0106222 | |