Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0025466 | Openbravo ERP | A. Platform | public | 2014-01-13 11:47 | 2014-02-12 18:29 | ||||||||||||||
Reporter | jecharri | ||||||||||||||||||
Assigned To | alostale | ||||||||||||||||||
Priority | urgent | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | pi | ||||||||||||||||||
Target Version | 3.0PR14Q2 | Fixed in Version | 3.0PR14Q2 | ||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | shankarb | ||||||||||||||||||
OBNetwork customer | OBPS | ||||||||||||||||||
Web browser | Google Chrome | ||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | 23706 | ||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0025466: Performace problem during the login | ||||||||||||||||||
Description | Performace problem during the login Due to solve issue https://issues.openbravo.com/view.php?id=24962 [^] now we are having this issue. The problem is that now the query: StringBuilder hql = new StringBuilder(); hql.append("select count(*)"); hql.append(" from ADSession s "); hql.append(" where s.loginStatus='F'"); hql.append(" and s.username = :name"); hql.append(" and s.creationDate > (select coalesce(max(s1.creationDate), s.creationDate-1)"); hql.append(" from ADSession s1"); hql.append(" where s1.username = s.username"); hql.append(" and s1.loginStatus!='F')"); Query q = OBDal.getInstance().getSession().createQuery(hql.toString()); q.setParameter("name", userName); is executed in file "src/org/openbravo/base/secureApp/UserLock.java" and that query has bad performance | ||||||||||||||||||
Steps To Reproduce | -confiure parameter "login.trial.user.lock" Verify that it takes a long time to login for example if your table ad_session is big (200MB) | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | Performance | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2014-01-13 11:47 | jecharri | New Issue | |||||||||||||||||
2014-01-13 11:47 | jecharri | Assigned To | => AugustoMauch | ||||||||||||||||
2014-01-13 11:47 | jecharri | Web browser | => Google Chrome | ||||||||||||||||
2014-01-13 11:47 | jecharri | Modules | => Core | ||||||||||||||||
2014-01-13 11:47 | jecharri | OBNetwork customer | => Yes | ||||||||||||||||
2014-01-13 11:47 | jecharri | Support ticket | => 23706 | ||||||||||||||||
2014-01-13 11:47 | jecharri | Resolution time | => 1392764400 | ||||||||||||||||
2014-01-13 11:47 | jecharri | Triggers an Emergency Pack | => No | ||||||||||||||||
2014-01-14 13:34 | alostale | Tag Attached: Performance | |||||||||||||||||
2014-01-15 09:01 | shuehner | Issue Monitored: shuehner | |||||||||||||||||
2014-01-27 15:30 | alostale | Note Added: 0063718 | |||||||||||||||||
2014-01-27 15:30 | alostale | Assigned To | AugustoMauch => alostale | ||||||||||||||||
2014-01-27 15:32 | hgbot | Checkin | |||||||||||||||||
2014-01-27 15:32 | hgbot | Note Added: 0063719 | |||||||||||||||||
2014-01-27 15:32 | hgbot | Status | new => resolved | ||||||||||||||||
2014-01-27 15:32 | hgbot | Resolution | open => fixed | ||||||||||||||||
2014-01-27 15:32 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/496cbeb8f989ceabb54b9d0e00c3400dfb2e61d8 [^] | ||||||||||||||||
2014-01-27 15:33 | alostale | Review Assigned To | => shankarb | ||||||||||||||||
2014-01-28 06:45 | shankarb | Note Added: 0063731 | |||||||||||||||||
2014-01-28 06:45 | shankarb | Status | resolved => closed | ||||||||||||||||
2014-01-28 06:45 | shankarb | Fixed in Version | => 3.0MP32 | ||||||||||||||||
2014-01-28 11:57 | jecharri | Note Added: 0063745 | |||||||||||||||||
2014-01-28 11:57 | jecharri | Status | closed => new | ||||||||||||||||
2014-01-28 11:57 | jecharri | Resolution | fixed => open | ||||||||||||||||
2014-01-28 11:57 | jecharri | Fixed in Version | 3.0MP32 => | ||||||||||||||||
2014-01-29 11:06 | hgbot | Checkin | |||||||||||||||||
2014-01-29 11:06 | hgbot | Note Added: 0063776 | |||||||||||||||||
2014-01-29 11:06 | hgbot | Status | new => resolved | ||||||||||||||||
2014-01-29 11:06 | hgbot | Resolution | open => fixed | ||||||||||||||||
2014-01-29 11:06 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/496cbeb8f989ceabb54b9d0e00c3400dfb2e61d8 [^] => http://code.openbravo.com/erp/devel/pi/rev/b424cda58024897df64fdf1ba1512444bb741038 [^] | ||||||||||||||||
2014-01-29 11:09 | alostale | Note Added: 0063778 | |||||||||||||||||
2014-02-04 22:39 | jecharri | Note Added: 0063905 | |||||||||||||||||
2014-02-12 04:23 | shankarb | Note Added: 0064070 | |||||||||||||||||
2014-02-12 04:23 | shankarb | Status | resolved => closed | ||||||||||||||||
2014-02-12 04:23 | shankarb | Fixed in Version | => 3.0MP32 | ||||||||||||||||
2014-02-12 18:29 | hudsonbot | Checkin | |||||||||||||||||
2014-02-12 18:29 | hudsonbot | Note Added: 0064119 | |||||||||||||||||
2014-02-12 18:29 | hudsonbot | Checkin | |||||||||||||||||
2014-02-12 18:29 | hudsonbot | Note Added: 0064133 | |||||||||||||||||
2018-05-29 16:18 | alostale | Relationship added | related to 0038651 | ||||||||||||||||
2020-06-18 17:00 | shuehner | Relationship added | related to 0044414 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|