recent item do a lot query

Description

every time recent item list do refresh, with each item it do a query to get model of this item to
+ get label
+ check this item is out date (deleted) or not
it same to favourite list.

better do some improve:
1. save label of item on recent_Item table
2. just check out date on bellow case :

  • user click to item

  • when user click to refresh button

  • when load items at first time

Environment

None

Activity

Show:
Hiep Lq
September 2, 2016, 4:16 PM

ah, when i thinking about "save label of item on recent_Item table" i didn't thinking about case out date
ok. will try this way.

other hand, when rise event onRecentItemChanged in case change a record,
also give recode_id of record changing, so we only query for one record.

Carlos Ruiz
June 7, 2018, 8:36 AM

Implemented cache for MRecentItem and its label with
https://bitbucket.org/idempiere/idempiere/commits/604ad6a

Murilo Habermann Torquato
June 14, 2018, 1:09 PM

hi ,

After this new feature when users are doing a long operation (importing a CSV file in a window), and then the processors star i found a concurrent modification exception on logs.

Carlos Ruiz
June 14, 2018, 2:14 PM

Thanks , I committed this:
https://bitbucket.org/idempiere/idempiere/commits/f729c00

Can you please check and provide feedback if that helps with the issue.

Regards,

Carlos Ruiz

Murilo Habermann Torquato
June 14, 2018, 5:04 PM

It's solved now , tks!

Assignee

Carlos Ruiz

Reporter

Hiep Lq

Labels

Tested By

None

Affects versions

Priority

Major
Configure